From 62b3ecb9c59d9170de58a5ca56da4becd932b9d2 Mon Sep 17 00:00:00 2001 From: dengjianbin Date: Thu, 12 Oct 2023 09:57:57 +0800 Subject: [PATCH 01/25] PHP WS connect --- bitget-php-sdk-api/example_ws.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitget-php-sdk-api/example_ws.php b/bitget-php-sdk-api/example_ws.php index 110af81c..7ec77df1 100644 --- a/bitget-php-sdk-api/example_ws.php +++ b/bitget-php-sdk-api/example_ws.php @@ -30,7 +30,11 @@ public function recevie(string $msg): void } }); -$bitgetWsClient->startWorker(); +// Bitget Websocket server domain is "wss://ws.bitget.com/spot/v1/stream" +// which in PHP it automatically connect to "wss://ws.bitget.com:443/spot/v1/stream" +// and so got connection rejected because the port 443 is not enabled in Bitget's websocket server +// Please try an alternative or, switch to another Dev language +// $bitgetWsClient->startWorker(); From 5f3116d9ab6091c54fc5ac88b1ed367c6249ca3e Mon Sep 17 00:00:00 2001 From: jidening Date: Mon, 16 Oct 2023 14:23:16 +0800 Subject: [PATCH 02/25] java sdk --- .../com/bitget/openapi/BitgetApiFacade.java | 167 ++++++++++++++++++ .../com/bitget/openapi/BrokerApiFacade.java | 51 ------ .../java/com/bitget/openapi/MixApiFacade.java | 78 -------- .../com/bitget/openapi/SpotApiFacade.java | 82 --------- .../com/bitget/openapi/api/BitgetApi.java | 16 ++ .../openapi/api/broker/BrokerAccountApi.java | 102 ----------- .../openapi/api/broker/BrokerManageApi.java | 36 ---- .../bitget/openapi/api/mix/MixAccountApi.java | 101 ----------- .../bitget/openapi/api/mix/MixMarketApi.java | 139 --------------- .../bitget/openapi/api/mix/MixOrderApi.java | 144 --------------- .../bitget/openapi/api/mix/MixPlanApi.java | 118 ------------- .../openapi/api/mix/MixPositionApi.java | 34 ---- .../bitget/openapi/api/mix/MixTraceApi.java | 152 ---------------- .../openapi/api/spot/SpotAccountApi.java | 48 ----- .../openapi/api/spot/SpotMarketApi.java | 66 ------- .../bitget/openapi/api/spot/SpotOrderApi.java | 79 --------- .../bitget/openapi/api/spot/SpotPlanApi.java | 25 --- .../openapi/api/spot/SpotPublicApi.java | 44 ----- .../openapi/api/spot/SpotWalletApi.java | 79 --------- .../bitget/openapi/api/v1/MixAccountApi.java | 39 ++++ .../bitget/openapi/api/v1/MixMarketApi.java | 31 ++++ .../bitget/openapi/api/v1/MixOrderApi.java | 66 +++++++ .../bitget/openapi/api/v1/SpotAccountApi.java | 24 +++ .../bitget/openapi/api/v1/SpotMarketApi.java | 36 ++++ .../bitget/openapi/api/v1/SpotOrderApi.java | 58 ++++++ .../bitget/openapi/api/v1/SpotWalletApi.java | 27 +++ .../bitget/openapi/api/v2/MixAccountApi.java | 39 ++++ .../bitget/openapi/api/v2/MixMarketApi.java | 31 ++++ .../bitget/openapi/api/v2/MixOrderApi.java | 69 ++++++++ .../bitget/openapi/api/v2/SpotAccountApi.java | 24 +++ .../bitget/openapi/api/v2/SpotMarketApi.java | 29 +++ .../bitget/openapi/api/v2/SpotOrderApi.java | 59 +++++++ .../bitget/openapi/api/v2/SpotWalletApi.java | 27 +++ .../openapi/common/client/ApiClient.java | 42 ++++- .../common/client/BitgetRestClient.java | 21 +-- .../openapi/common/constant/HttpHeader.java | 4 +- .../common/domain/ClientParameter.java | 19 +- .../openapi/common/enums/spot/ForceEnum.java | 33 ---- .../common/enums/spot/OrderSideEnum.java | 35 ---- .../common/enums/spot/SpotOrderTypeEnum.java | 34 ---- .../common/enums/spot/SpotWalletTypeEnum.java | 16 -- .../common/exception/BitgetApiException.java | 33 ++++ .../openapi/common/utils/ResponseUtils.java | 17 ++ .../openapi/common/utils/SignatureUtils.java | 19 +- .../bitget/openapi/common/utils/ZipUtil.java | 28 +++ .../request/broker/BrokerSubAddressReq.java | 22 --- .../dto/request/broker/BrokerSubApiReq.java | 25 --- .../request/broker/BrokerSubCreateReq.java | 19 -- .../broker/BrokerSubModifyEmailReq.java | 19 -- .../request/broker/BrokerSubModifyReq.java | 21 --- .../request/broker/BrokerSubTransferReq.java | 21 --- .../request/broker/BrokerSubWithdrawReq.java | 35 ---- .../dto/request/mix/AdjustHoldModeReq.java | 40 ----- .../dto/request/mix/AdjustMarginModeReq.java | 38 ---- .../request/mix/MixAdjustMarginFixReq.java | 42 ----- .../dto/request/mix/MixCancelAllPlanReq.java | 24 --- .../request/mix/MixCancelBatchOrdersReq.java | 37 ---- .../dto/request/mix/MixCancelOrderReq.java | 34 ---- .../dto/request/mix/MixCancelPlanReq.java | 42 ----- .../dto/request/mix/MixChangeLeverageReq.java | 43 ----- .../request/mix/MixCloseTrackOrderReq.java | 31 ---- .../dto/request/mix/MixModifyPlanReq.java | 58 ------ .../dto/request/mix/MixModifyPresetReq.java | 52 ------ .../dto/request/mix/MixModifyTPSLReq.java | 48 ----- .../dto/request/mix/MixOpenCountReq.java | 43 ----- .../dto/request/mix/MixPlaceOrderReq.java | 75 -------- .../dto/request/mix/MixPlanOrderReq.java | 68 ------- .../dto/request/mix/MixTPSLOrderReq.java | 54 ------ .../dto/request/mix/MixTPSLPositionsReq.java | 45 ----- .../mix/MixTraceModifyTPSLOrderReq.java | 34 ---- .../mix/MixTraceSetCopyTradeSymbolReq.java | 19 -- .../dto/request/mix/MixTrailOrderReq.java | 45 ----- .../dto/request/mix/PlaceBatchOrderReq.java | 38 ---- .../dto/request/mix/PlaceOrderBaseReq.java | 40 ----- .../openapi/dto/request/other/LoginArgs.java | 39 ++++ .../openapi/dto/request/other/ParamArgs.java | 25 +++ .../dto/request/spot/SpotBatchOrdersReq.java | 32 ---- .../dto/request/spot/SpotBillQueryReq.java | 47 ----- .../request/spot/SpotCancelBatchOrderReq.java | 32 ---- .../dto/request/spot/SpotCancelOrderReq.java | 31 ---- .../request/spot/SpotCancelPlanOrderReq.java | 19 -- .../dto/request/spot/SpotFillsOrderReq.java | 47 ----- .../dto/request/spot/SpotHistoryOrderReq.java | 42 ----- .../dto/request/spot/SpotModifyPlanReq.java | 27 --- .../dto/request/spot/SpotOpenOrderReq.java | 27 --- .../dto/request/spot/SpotOrderInfoReq.java | 35 ---- .../dto/request/spot/SpotOrderReq.java | 50 ------ .../dto/request/spot/SpotOrdersReq.java | 42 ----- .../request/spot/SpotPlanOpenOrderReq.java | 29 --- .../dto/request/spot/SpotPlanOrderReq.java | 37 ---- .../dto/request/spot/SpotSubTransferReq.java | 20 --- .../dto/request/spot/SpotTransferReq.java | 25 --- .../request/spot/SpotWithdrawalInnerReq.java | 24 --- .../dto/request/spot/SpotWithdrawalReq.java | 31 ---- .../openapi/dto/request/ws/SubscribeReq.java | 1 - .../openapi/dto/request/ws/WsBaseReq.java | 2 - .../openapi/dto/request/ws/WsLoginReq.java | 4 - .../openapi/dto/response/ResponseResult.java | 31 ++-- .../bitget/openapi/service/BitgetService.java | 34 ++++ .../service/broker/BrokerAccountService.java | 89 ---------- .../service/broker/BrokerManageService.java | 36 ---- .../broker/impl/BrokerAccountServiceImpl.java | 76 -------- .../broker/impl/BrokerManageServiceImpl.java | 35 ---- .../service/mix/MixAccountService.java | 63 ------- .../openapi/service/mix/MixMarketService.java | 107 ----------- .../openapi/service/mix/MixOrderService.java | 86 --------- .../openapi/service/mix/MixPlanService.java | 75 -------- .../service/mix/MixPositionService.java | 28 --- .../openapi/service/mix/MixTraceService.java | 120 ------------- .../mix/impl/MixAccountServiceImpl.java | 93 ---------- .../mix/impl/MixMarketServiceImpl.java | 151 ---------------- .../service/mix/impl/MixOrderServiceImpl.java | 122 ------------- .../service/mix/impl/MixPlanServiceImpl.java | 108 ----------- .../mix/impl/MixPositionServiceImpl.java | 43 ----- .../service/mix/impl/MixTraceServiceImpl.java | 166 ----------------- .../service/spot/SpotAccountService.java | 37 ---- .../service/spot/SpotMarketService.java | 53 ------ .../service/spot/SpotOrderService.java | 69 -------- .../openapi/service/spot/SpotPlanService.java | 22 --- .../service/spot/SpotPublicService.java | 38 ---- .../service/spot/SpotWalletService.java | 72 -------- .../spot/impl/SpotAccountServiceImpl.java | 55 ------ .../spot/impl/SpotMarketServiceImpl.java | 77 -------- .../spot/impl/SpotOrderServiceImpl.java | 102 ----------- .../spot/impl/SpotPlanServiceImpl.java | 46 ----- .../spot/impl/SpotPublicServiceImpl.java | 59 ------- .../spot/impl/SpotWalletServiceImpl.java | 57 ------ .../service/v1/mix/MixAccountService.java | 50 ++++++ .../service/v1/mix/MixMarketService.java | 43 +++++ .../service/v1/mix/MixOrderService.java | 87 +++++++++ .../service/v1/spot/SpotAccountService.java | 39 ++++ .../service/v1/spot/SpotMarketService.java | 50 ++++++ .../service/v1/spot/SpotOrderService.java | 76 ++++++++ .../service/v1/spot/SpotWalletService.java | 38 ++++ .../service/v2/mix/MixAccountService.java | 50 ++++++ .../service/v2/mix/MixMarketService.java | 42 +++++ .../service/v2/mix/MixOrderService.java | 91 ++++++++++ .../service/v2/spot/SpotAccountService.java | 39 ++++ .../service/v2/spot/SpotMarketService.java | 42 +++++ .../service/v2/spot/SpotOrderService.java | 79 +++++++++ .../service/v2/spot/SpotWalletService.java | 38 ++++ .../com/bitget/openapi/ws/BitgetWsClient.java | 3 +- .../bitget/openapi/ws/BitgetWsListener.java | 13 +- .../java/com/bitget/openapi/BaseTest.java | 12 +- .../com/bitget/openapi/api/MixOrderTest.java | 65 +++++++ .../openapi/broker/BrokerAccountTest.java | 30 ---- .../bitget/openapi/enums/MatchTypeEnum.java | 66 ------- .../bitget/openapi/enums/OrderTypeEnum.java | 34 ---- .../com/bitget/openapi/enums/SideEnum.java | 65 ------- .../openapi/enums/SpotDepthTypeEnum.java | 53 ------ .../openapi/enums/SupportedLocaleEnum.java | 20 --- .../openapi/enums/mix/MixHoldModeEnum.java | 15 -- .../openapi/enums/mix/MixHoldSideEnum.java | 17 -- .../openapi/enums/mix/MixMarginModeEnum.java | 19 -- .../openapi/enums/mix/MixOrderTypeEnum.java | 14 -- .../openapi/enums/mix/MixPlanTypeEnum.java | 20 --- .../openapi/enums/mix/MixProductTypeEnum.java | 20 --- .../openapi/enums/mix/MixQueryPlanEnum.java | 16 -- .../bitget/openapi/enums/mix/MixSideEnum.java | 30 ---- .../openapi/enums/mix/MixTriggerTypeEnum.java | 16 -- .../bitget/openapi/enums/spot/ForceEnum.java | 33 ---- .../openapi/enums/spot/OrderSideEnum.java | 35 ---- .../openapi/enums/spot/SpotOrderTypeEnum.java | 34 ---- .../bitget/openapi/enums/ws/ChannelEnum.java | 32 ---- .../bitget/openapi/enums/ws/SubEventEnum.java | 17 -- .../bitget/openapi/mix/MixAccountTest.java | 98 ---------- .../openapi/mix/MixMarketServiceTest.java | 102 ----------- .../com/bitget/openapi/mix/MixOrderTest.java | 144 --------------- .../openapi/mix/MixPlanServiceTest.java | 129 -------------- .../bitget/openapi/mix/MixPositionTest.java | 27 --- .../openapi/mix/MixTraceServiceTest.java | 122 ------------- .../openapi/spot/MarketServiceTest.java | 57 ------ .../openapi/spot/PublicServiceTest.java | 40 ----- .../openapi/spot/SpotAccountServiceTest.java | 42 ----- .../openapi/spot/SpotOrderServiceTest.java | 116 ------------ .../openapi/spot/SpotPlanServiceTest.java | 78 -------- bitget-python-sdk-open-api/test/__init__.py | 0 177 files changed, 1838 insertions(+), 6911 deletions(-) create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/BrokerApiFacade.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/MixApiFacade.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/SpotApiFacade.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/BitgetApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerAccountApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerManageApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixAccountApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixMarketApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixOrderApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPlanApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPositionApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixTraceApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotAccountApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotMarketApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotOrderApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPlanApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPublicApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotWalletApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixAccountApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixMarketApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotMarketApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotOrderApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixAccountApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixMarketApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotAccountApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotMarketApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/ForceEnum.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/OrderSideEnum.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotOrderTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotWalletTypeEnum.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/exception/BitgetApiException.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ResponseUtils.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ZipUtil.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubAddressReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubApiReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubCreateReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyEmailReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubTransferReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubWithdrawReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustHoldModeReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustMarginModeReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixAdjustMarginFixReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelAllPlanReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelBatchOrdersReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelPlanReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixChangeLeverageReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCloseTrackOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPlanReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPresetReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyTPSLReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixOpenCountReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlaceOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlanOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLPositionsReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceModifyTPSLOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceSetCopyTradeSymbolReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTrailOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceBatchOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceOrderBaseReq.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/LoginArgs.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/ParamArgs.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBatchOrdersReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBillQueryReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelBatchOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelPlanOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotFillsOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotHistoryOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotModifyPlanReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOpenOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderInfoReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrdersReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOpenOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOrderReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotSubTransferReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotTransferReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalInnerReq.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalReq.java mode change 100755 => 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/BitgetService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerAccountService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerManageService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerAccountServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerManageServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixAccountService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixMarketService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixOrderService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPlanService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPositionService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixTraceService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixAccountServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixMarketServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixOrderServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPlanServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPositionServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixTraceServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotAccountService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotMarketService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotOrderService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPlanService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPublicService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotWalletService.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotAccountServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotMarketServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotOrderServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPlanServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPublicServiceImpl.java delete mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotWalletServiceImpl.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixAccountService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixMarketService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixOrderService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotAccountService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotMarketService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotOrderService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotWalletService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixAccountService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixMarketService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixOrderService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotAccountService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotMarketService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotOrderService.java create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotWalletService.java create mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/broker/BrokerAccountTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/MatchTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/OrderTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SideEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SpotDepthTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SupportedLocaleEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldModeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldSideEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixMarginModeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixOrderTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixPlanTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixProductTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixQueryPlanEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixSideEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixTriggerTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/ForceEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/OrderSideEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/SpotOrderTypeEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/ChannelEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/SubEventEnum.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixAccountTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixMarketServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixOrderTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPlanServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPositionTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixTraceServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/MarketServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/PublicServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotAccountServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotOrderServiceTest.java delete mode 100644 bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotPlanServiceTest.java delete mode 100644 bitget-python-sdk-open-api/test/__init__.py diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java new file mode 100644 index 00000000..193e4a5b --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java @@ -0,0 +1,167 @@ +package com.bitget.openapi; + +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.service.BitgetService; +import com.bitget.openapi.service.v1.mix.MixAccountService; +import com.bitget.openapi.service.v1.mix.MixMarketService; +import com.bitget.openapi.service.v1.mix.MixOrderService; +import com.bitget.openapi.service.v1.spot.SpotAccountService; +import com.bitget.openapi.service.v1.spot.SpotMarketService; +import com.bitget.openapi.service.v1.spot.SpotOrderService; +import com.bitget.openapi.service.v1.spot.SpotWalletService; + +public class BitgetApiFacade { + + private final ApiClient apiClient; + + public BitgetApiFacade(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * REST API Endpoint + */ + public BitgetApiFacade.BgEndpoint v1() { + return new BitgetApiFacade.BgEndpoint(apiClient); + } + + public BitgetApiFacade.BgEndpointV2 v2() { + return new BitgetApiFacade.BgEndpointV2(apiClient); + } + + public static class BgEndpoint { + private final ApiClient apiClient; + + BgEndpoint(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public T createRetrofit(Class clazz) { + return apiClient.create(clazz); + } + + /** + * bitget service + */ + public BitgetService request() { + return new BitgetService(apiClient); + } + + /** + * market service + */ + public MixMarketService mixMarket() { + return new MixMarketService(apiClient); + } + + /** + * account service + */ + public MixAccountService mixAccount() { + return new MixAccountService(apiClient); + } + + /** + * order service + */ + public MixOrderService mixOrder() { + return new MixOrderService(apiClient); + } + + /** + * account service + */ + public SpotAccountService spotAccount() { + return new SpotAccountService(apiClient); + } + + /** + * market service + */ + public SpotMarketService spotMarket() { + return new SpotMarketService(apiClient); + } + + /** + * order service + */ + public SpotOrderService spotOrder() { + return new SpotOrderService(apiClient); + } + + /** + * wallet service + */ + public SpotWalletService spotWallet() { + return new SpotWalletService(apiClient); + } + } + + public static class BgEndpointV2 { + private final ApiClient apiClient; + + BgEndpointV2(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public T createRetrofit(Class clazz) { + return apiClient.create(clazz); + } + + /** + * bitget service + */ + public BitgetService request() { + return new BitgetService(apiClient); + } + + /** + * market service + */ + public MixMarketService mixMarket() { + return new MixMarketService(apiClient); + } + + /** + * account service + */ + public MixAccountService mixAccount() { + return new MixAccountService(apiClient); + } + + /** + * order service + */ + public MixOrderService mixOrder() { + return new MixOrderService(apiClient); + } + + /** + * account service + */ + public SpotAccountService spotAccount() { + return new SpotAccountService(apiClient); + } + + /** + * market service + */ + public SpotMarketService spotMarket() { + return new SpotMarketService(apiClient); + } + + /** + * order service + */ + public SpotOrderService spotOrder() { + return new SpotOrderService(apiClient); + } + + /** + * wallet service + */ + public SpotWalletService spotWallet() { + return new SpotWalletService(apiClient); + } + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BrokerApiFacade.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BrokerApiFacade.java deleted file mode 100644 index 65537222..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BrokerApiFacade.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.bitget.openapi; - -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.service.broker.BrokerAccountService; -import com.bitget.openapi.service.broker.BrokerManageService; -import com.bitget.openapi.service.broker.impl.BrokerAccountServiceImpl; -import com.bitget.openapi.service.broker.impl.BrokerManageServiceImpl; -import com.bitget.openapi.service.spot.SpotAccountService; -import com.bitget.openapi.service.spot.impl.SpotAccountServiceImpl; - -public class BrokerApiFacade { - - - private final ApiClient apiClient; - - public BrokerApiFacade(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * REST API Endpoint - * - * @return SpotEndpoint - */ - public BrokerApiFacade.BrokerEndpoint bitget() { - return new BrokerApiFacade.BrokerEndpoint(apiClient); - } - - - public static class BrokerEndpoint { - private final ApiClient apiClient; - - BrokerEndpoint(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * sub account service - */ - public BrokerAccountService account() { - return new BrokerAccountServiceImpl(apiClient); - } - - /** - * sub api manage service - */ - public BrokerManageService manage() { - return new BrokerManageServiceImpl(apiClient); - } - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/MixApiFacade.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/MixApiFacade.java deleted file mode 100644 index 12de0fb2..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/MixApiFacade.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.bitget.openapi; - -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.service.mix.*; -import com.bitget.openapi.service.mix.impl.*; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: mix api facade - */ -public class MixApiFacade { - - private final ApiClient apiClient; - - public MixApiFacade(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * REST API Endpoint - * - * @return SpotEndpoint - */ - public MixApiFacade.MixEndpoint bitget() { - return new MixApiFacade.MixEndpoint(apiClient); - } - - public static class MixEndpoint { - private final ApiClient apiClient; - - MixEndpoint(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * market service - * @return - */ - public MixMarketService market() { - return new MixMarketServiceImpl(apiClient); - } - /** - * account service - */ - public MixAccountService account() { - return new MixAccountServiceImpl(apiClient); - } - /** - * position service - * @return - */ - public MixPositionService position() { - return new MixPositionServiceImpl(apiClient); - } - /** - * order service - * @return - */ - public MixOrderService order() { - return new MixOrderServiceImpl(apiClient); - } - /** - * plan service - * @return - */ - public MixPlanService plan(){ return new MixPlanServiceImpl(apiClient); }; - /** - * trace service - * @return - */ - public MixTraceService trace(){ return new MixTraceServiceImpl(apiClient); }; - - - - - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/SpotApiFacade.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/SpotApiFacade.java deleted file mode 100644 index 3715457f..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/SpotApiFacade.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.bitget.openapi; - -import com.bitget.openapi.api.spot.SpotWalletApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.service.spot.*; -import com.bitget.openapi.service.spot.impl.*; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot api facade - */ -public class SpotApiFacade { - - private final ApiClient apiClient; - - public SpotApiFacade(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * REST API Endpoint - * - * @return SpotEndpoint - */ - public SpotApiFacade.SpotEndpoint bitget() { - return new SpotApiFacade.SpotEndpoint(apiClient); - } - - public static class SpotEndpoint { - private final ApiClient apiClient; - - SpotEndpoint(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * account service - */ - public SpotAccountService account() { - return new SpotAccountServiceImpl(apiClient); - } - - /** - * common service - */ - public SpotPublicService common() { - return new SpotPublicServiceImpl(apiClient); - } - - /** - * market service - */ - public SpotMarketService market() { - return new SpotMarketServiceImpl(apiClient); - } - - /** - * order service - */ - public SpotOrderService order() { - return new SpotOrderServiceImpl(apiClient); - } - - /** - * order service - */ - public SpotWalletService wallet() { - return new SpotWalletServiceImpl(apiClient); - } - - /** - * plan service - */ - public SpotPlanService plan() { - return new SpotPlanServiceImpl(apiClient); - } - - - - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/BitgetApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/BitgetApi.java new file mode 100644 index 00000000..e9f5384c --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/BitgetApi.java @@ -0,0 +1,16 @@ +package com.bitget.openapi.api; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.*; + +import java.util.Map; + +public interface BitgetApi { + + @GET + Call sendGetRequest(@Url String url, @QueryMap Map paramMap); + + @POST + Call sendPostRequest(@Url String url, @Body Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerAccountApi.java deleted file mode 100644 index 9cb563fb..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerAccountApi.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.bitget.openapi.api.broker; - -import com.bitget.openapi.dto.request.broker.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -public interface BrokerAccountApi { - - /** - * get broker info - * @return ResponseResult - */ - @GET("/api/broker/v1/account/info") - Call info(); - - /** - * sub create - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-create") - Call subCreate(@Body BrokerSubCreateReq req); - - - /** - * get sub info list - * @return ResponseResult - */ - @GET("/api/broker/v1/account/sub-list") - Call subList(@Query("pageSize")int pageSize, - @Query("lastEndId") String lastEndId, - @Query("status")String status); - - - /** - * sub modify - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-modify") - Call subModify(@Body BrokerSubModifyReq req); - - - /** - * sub bind email - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-modify-email") - Call subModifyEmail(@Body BrokerSubModifyEmailReq req); - - - /** - * get sub email - * @return ResponseResult - */ - @GET("/api/broker/v1/account/sub-email") - Call subEmail(@Query("subUid") String subUid); - - /** - * get sub spot account list - * @return ResponseResult - */ - @GET("/api/broker/v1/account/sub-spot-assets") - Call subSpotAssets(@Query("subUid") String subUid); - - - /** - * get sub future account list - * @return ResponseResult - */ - @GET("/api/broker/v1/account/sub-future-assets") - Call subFutureAssets(@Query("subUid") String subUid, - @Query("productType") String productType); - - - /** - * get sub deposit address - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-address") - Call subDepositAddress(@Body BrokerSubAddressReq req); - - /** - * sub withdraw - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-withdrawal") - Call subWithdraw(@Body BrokerSubWithdrawReq req); - - - /** - * sub config auto transfer - * @return ResponseResult - */ - @POST("/api/broker/v1/account/sub-auto-transfer") - Call subAutoTransfer(@Body BrokerSubTransferReq req); - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerManageApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerManageApi.java deleted file mode 100644 index 99e5c070..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/broker/BrokerManageApi.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.bitget.openapi.api.broker; - -import com.bitget.openapi.dto.request.broker.BrokerSubApiReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - - -public interface BrokerManageApi { - - /** - * sub create api - * @return ResponseResult - */ - @POST("/api/broker/v1/manage/sub-api-create") - Call subApiCreate(@Body BrokerSubApiReq req); - - /** - * sub api list - * @return ResponseResult - */ - @GET("/api/broker/v1/manage/sub-api-list") - Call subApiList(@Query("subUid")String subUid); - - - /** - * sub modify api - * @return ResponseResult - */ - @POST("/api/broker/v1/manage/sub-api-modify") - Call subApiModify(@Body BrokerSubApiReq req); - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixAccountApi.java deleted file mode 100644 index 29a65b01..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixAccountApi.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.bitget.openapi.api.mix; - -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract account api - */ -public interface MixAccountApi { - - /** - * Get account information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - @GET("/api/mix/v1/account/account") - Call account(@Query("symbol") String symbol, - @Query("marginCoin") String marginCoin); - /** - * Get account information list - * @param productType - * @return ResponseResult - */ - @GET("/api/mix/v1/account/accounts") - Call accounts(@Query("productType") String productType); - - /** - * set lever - * @param mixChangeLeverageReq - * @return ResponseResult - */ - @POST("/api/mix/v1/account/setLeverage") - Call leverage(@Body MixChangeLeverageReq mixChangeLeverageReq); - - /** - * Adjustment margin - * @param mixAdjustMarginFixReq - * @return ResponseResult - */ - @POST("/api/mix/v1/account/setMargin") - Call margin(@Body MixAdjustMarginFixReq mixAdjustMarginFixReq); - - /** - * Adjust margin mode - * @param adjustMarginModeReq - * @return ResponseResult - */ - @POST("/api/mix/v1/account/setMarginMode") - Call marginMode(@Body AdjustMarginModeReq adjustMarginModeReq); - - /** - * Adjust hold mode - * @param adjustHoldModeReq - * @return ResponseResult - */ - @POST("/api/mix/v1/account/setPositionMode") - Call positionMode(@Body AdjustHoldModeReq adjustHoldModeReq); - - /** - * Get the openable quantity - * @param mixOpenCountReq - * @return ResponseResult - */ - @POST("/api/mix/v1/account/open-count") - Call openCount(@Body MixOpenCountReq mixOpenCountReq); - - - /** - * Get Account Bill - * @return ResponseResult - */ - @GET("/api/mix/v1/account/accountBill") - Call accountBill(@Query("symbol") String symbol, - @Query("marginCoin") String marginCoin, - @Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageSize") int pageSize, - @Query("lastEndId") String lastEndId, - @Query("next") boolean next); - - - /** - * Get Account Bill - * @return ResponseResult - */ - @GET("/api/mix/v1/account/accountBusinessBill") - Call accountBusinessBill(@Query("productType") String productType, - @Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageSize") int pageSize, - @Query("lastEndId") String lastEndId, - @Query("next") boolean next); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixMarketApi.java deleted file mode 100644 index ebc64cbb..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixMarketApi.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.bitget.openapi.api.mix; - -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.GET; -import retrofit2.http.Query; -import java.util.List; - - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract quotation api - */ -public interface MixMarketApi { - - /** - * Contract information - * @param productType - * @return ResponseResult - */ - @GET("/api/mix/v1/market/contracts") - Call contracts(@Query("productType") String productType); - - /** - * Deep market - * @param symbol - * @param limit - * @return ResponseResult - */ - @GET("/api/mix/v1/market/depth") - Call depth(@Query("symbol") String symbol, - @Query("limit") int limit); - - /** - * Deep market - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/ticker") - Call ticker(@Query("symbol") String symbol); - - /** - * Acquisition of single ticker market - * @param productType - * @return ResponseResult - */ - @GET("/api/mix/v1/market/tickers") - Call tickers(@Query("productType") String productType); - - /** - * Obtain transaction details - * @param symbol - * @param limit - * @return ResponseResult - */ - @GET("/api/mix/v1/market/fills") - Call fills(@Query("symbol") String symbol, - @Query("limit") int limit); - - /** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - * @return ResponseResult - */ - @GET("/api/mix/v1/market/candles") - Call> candles(@Query("symbol") String symbol, - @Query("granularity") String granularity, - @Query("startTime") String startTime, - @Query("endTime") String endTime); - - /** - * Get currency index - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/index") - Call index(@Query("symbol") String symbol); - - /** - * Get the next settlement time of the contract - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/funding-time") - Call fundingTime(@Query("symbol") String symbol); - - /** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - * @return ResponseResult - */ - @GET("/api/mix/v1/market/history-fundRate") - Call historyFundRate(@Query("symbol") String symbol, - @Query("pageSize") int pageSize, - @Query("pageNo") int pageNo, - @Query("nextPage") boolean nextPage); - - /** - * Get the current fund rate - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/current-fundRate") - Call currentFundRate(@Query("symbol") String symbol); - - /** - * Obtain the total position of the platform - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/open-interest") - Call openInterest(@Query("symbol") String symbol); - - /** - * Get contract tag price - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/mark-price") - Call markPrice(@Query("symbol") String symbol); - - /** - * Get symbol leverage - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/market/symbol-leverage") - Call symbolLeverage(@Query("symbol") String symbol); - - -} - diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixOrderApi.java deleted file mode 100644 index 3acb48ab..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixOrderApi.java +++ /dev/null @@ -1,144 +0,0 @@ -package com.bitget.openapi.api.mix; - - -import com.bitget.openapi.dto.request.mix.MixCancelBatchOrdersReq; -import com.bitget.openapi.dto.request.mix.MixCancelOrderReq; -import com.bitget.openapi.dto.request.mix.MixPlaceOrderReq; -import com.bitget.openapi.dto.request.mix.PlaceBatchOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract order api - */ -public interface MixOrderApi { - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/order/placeOrder") - Call placeOrder(@Body MixPlaceOrderReq mixPlaceOrderReq); - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/order/proportionOrder") - Call proportionOrder(@Body MixPlaceOrderReq mixPlaceOrderReq); - - /** - * Place orders in batches - * @param placeBatchOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/order/batch-orders") - Call batchOrders(@Body PlaceBatchOrderReq placeBatchOrderReq); - - /** - * cancel the order - * @param mixCancelOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/order/cancel-order") - Call cancelOrder(@Body MixCancelOrderReq mixCancelOrderReq); - - /** - * Batch cancellation - * @param mixCancelBatchOrdersReq - * @return ResponseResult - */ - @POST("/api/mix/v1/order/cancel-batch-orders") - Call cancelBatchOrder(@Body MixCancelBatchOrdersReq mixCancelBatchOrdersReq); - - /** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - * @return ResponseResult - */ - @GET("/api/mix/v1/order/history") - Call history(@Query("symbol")String symbol, - @Query("startTime")String startTime, - @Query("endTime")String endTime, - @Query("pageSize") int pageSize, - @Query("lastEndId")String lastEndId, - @Query("isPre") boolean isPre); - - /** - * Get all Historical Delegation - * @param productType - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - * @return ResponseResult - */ - @GET("/api/mix/v1/order/historyProductType") - Call historyProductType(@Query("productType")String productType, - @Query("startTime")String startTime, - @Query("endTime")String endTime, - @Query("pageSize") int pageSize, - @Query("lastEndId")String lastEndId, - @Query("isPre") boolean isPre); - - /** - * Get the current delegate - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/order/current") - Call current(@Query("symbol")String symbol); - - /** - * Get the all current delegate - * @param symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/order/marginCoinCurrent") - Call marginCoinCurrent(@Query("productType")String productType, - @Query("symbol")String symbol); - - /** - * Get order details - * @param symbol - * @param orderId - * @return ResponseResult - */ - @GET("/api/mix/v1/order/detail") - Call detail(@Query("symbol")String symbol, - @Query("orderId")String orderId); - - /** - * Query transaction details - * @param symbol - * @param orderId - * @return ResponseResult - */ - @GET("/api/mix/v1/order/fills") - Call fills(@Query("symbol")String symbol, - @Query("orderId")String orderId); - - /** - * Query productType transaction details - * @return ResponseResult - */ - @GET("/api/mix/v1/order/allFills") - Call allFills(@Query("productType")String productType, - @Query("startTime")String startTime, - @Query("endTime")String endTime, - @Query("lastEndId")String lastEndId); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPlanApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPlanApi.java deleted file mode 100644 index bd3f1af9..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPlanApi.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.bitget.openapi.api.mix; - -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract plan api - */ -public interface MixPlanApi { - - /** - * Plan Entrusted Order - * @param mixPlanOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/placePlan") - Call placePlan(@Body MixPlanOrderReq mixPlanOrderReq); - - /** - * Modify Plan Delegation - * @param mixModifyPlanReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/modifyPlan") - Call modifyPlan(@Body MixModifyPlanReq mixModifyPlanReq); - - /** - * Modify the preset profit and loss stop of plan entrustment - * @param mixModifyPresetReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/modifyPlanPreset") - Call modifyPlanPreset(@Body MixModifyPresetReq mixModifyPresetReq); - - /** - * Modify profit and loss stop - * @param mixModifyTPSLReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/modifyTPSLPlan") - Call modifyTPSLPlan(@Body MixModifyTPSLReq mixModifyTPSLReq); - - /** - * Stop profit and stop loss Order - * @param mixTPSLOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/placeTPSL") - Call placeTPSL(@Body MixTPSLOrderReq mixTPSLOrderReq); - - /** - * trail order - * @param mixTrailOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/placeTrailStop") - Call placeTrailStop(@Body MixTrailOrderReq mixTrailOrderReq); - - - /** - * position tpsl order - * @param mixTPSLPositionsReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/placePositionsTPSL") - Call placePositionsTPSL(@Body MixTPSLPositionsReq mixTPSLPositionsReq); - - /** - * Planned entrustment (profit and loss stop) cancellation - * @param mixCancelPlanReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/cancelPlan") - Call cancelPlan(@Body MixCancelPlanReq mixCancelPlanReq); - - /** - * cancel all trigger order - * @param mixCancelAllPlanReq - * @return ResponseResult - */ - @POST("/api/mix/v1/plan/cancelAllPlan") - Call cancelAllPlan(@Body MixCancelAllPlanReq mixCancelAllPlanReq); - - /** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - * @return ResponseResult - */ - @GET("/api/mix/v1/plan/currentPlan") - Call currentPlan(@Query("symbol") String symbol, - @Query("isPlan") String isPlan); - - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - * @return ResponseResult - */ - @GET("/api/mix/v1/plan/historyPlan") - Call historyPlan(@Query("symbol") String symbol, - @Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageSize") int pageSize, - @Query("isPre") boolean isPre, - @Query("isPlan") String isPlan); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPositionApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPositionApi.java deleted file mode 100644 index 6bc328c8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixPositionApi.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.api.mix; - -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.GET; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract position api - */ -public interface MixPositionApi { - - /** - * Obtain single contract position information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - @GET("/api/mix/v1/position/singlePosition") - Call singlePosition(@Query("symbol") String symbol, - @Query("marginCoin") String marginCoin); - - /** - * Obtain all contract position information - * @param productType - * @param marginCoin - * @return ResponseResult - */ - @GET("/api/mix/v1/position/allPosition") - Call allPosition(@Query("productType") String productType, - @Query("marginCoin") String marginCoin); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixTraceApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixTraceApi.java deleted file mode 100644 index 3451e877..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/mix/MixTraceApi.java +++ /dev/null @@ -1,152 +0,0 @@ -package com.bitget.openapi.api.mix; - -import com.bitget.openapi.dto.request.mix.MixCloseTrackOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceModifyTPSLOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceSetCopyTradeSymbolReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: mix trace api - */ -public interface MixTraceApi { - - /** - * Dealer closing interface - * @param mixCloseTrackOrderReq - * @return ResponseResult - */ - @POST("/api/mix/v1/trace/closeTrackOrder") - Call closeTraceOrder(@Body MixCloseTrackOrderReq mixCloseTrackOrderReq); - - /** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/currentTrack") - Call currentTrack(@Query("symbol") String symbol, - @Query("productType") String productType, - @Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - - /** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/historyTrack") - Call historyTrack(@Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - - /** - * Summary of traders' profit sharing - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/summary") - Call summary(); - - /** - * Historical profit sharing summary of traders (by settlement currency) - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/profitSettleTokenIdGroup") - Call profitSettleTokenIdGroup(); - - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/profitDateGroupList") - Call profitDateGroupList(@Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - - - /** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/profitDateList") - Call profitDateList(@Query("marginCoin") String marginCoin, - @Query("date") String date, - @Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - - /** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/waitProfitDateList") - Call waitProfitDateList(@Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - - /** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/followerHistoryOrders") - Call followerHistoryOrders(@Query("pageSize") String pageSize, - @Query("pageNo") String pageNo, - @Query("startTime") String startTime, - @Query("endTime") String endTime); - - /** - * trader get copytrade symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/traderSymbols") - Call traderSymbols(); - - /** - * trader set copytrade symbol - * @return ResponseResult - */ - @POST("/api/mix/v1/trace/setUpCopySymbols") - Call setUpCopySymbols(@Body MixTraceSetCopyTradeSymbolReq mixTraceSetCopyTradeSymbol); - - /** - * trader modify tpsl order - * @return ResponseResult - */ - @POST("/api/mix/v1/trace/modifyTPSL") - Call modifyTPSL(@Body MixTraceModifyTPSLOrderReq mixTraceModifyTPSLOrderReq); - - - - /** - * trader get copytrade symbol - * @return ResponseResult - */ - @GET("/api/mix/v1/trace/followerOrder") - Call followerOrder(@Query("symbol") String symbol, - @Query("productType") String productType, - @Query("pageSize") int pageSize, - @Query("pageNo") int pageNo); - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotAccountApi.java deleted file mode 100644 index c9f08608..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotAccountApi.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.request.spot.SpotBillQueryReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot account api - */ -public interface SpotAccountApi { - - /** - * Obtain account assets - * @return ResponseResult - */ - @GET("/api/spot/v1/account/assets-lite") - Call assets(@Query("coin") String coin); - - /** - * Get the bill flow - * @param spotBillQueryReq - * @return ResponseResult - */ - @POST("/api/spot/v1/account/bills") - Call bills(@Body SpotBillQueryReq spotBillQueryReq); - - /** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - * @return ResponseResult - */ - @GET("/api/spot/v1/account/transferRecords") - Call transferRecords(@Query("coinId") String coinId, - @Query("fromType") String fromType, - @Query("limit") String limit, - @Query("after") String after, - @Query("before") String before); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotMarketApi.java deleted file mode 100644 index bbc569fa..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotMarketApi.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.GET; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot market api - */ -public interface SpotMarketApi { - - /** - * Obtain transaction data - * @param symbol - * @param limit - * @return ResponseResult - */ - @GET("/api/spot/v1/market/fills") - Call fills(@Query("symbol") String symbol,@Query("limit") Integer limit); - - /** - * Get depth data - * @param symbol - * @param limit - * @param type - * @return ResponseResult - */ - @GET("/api/spot/v1/market/depth") - Call depth(@Query("symbol") String symbol, - @Query("limit") Integer limit, - @Query("type") String type); - - /** - * Get a Ticker Information - * @param symbol - * @return ResponseResult - */ - @GET("/api/spot/v1/market/ticker") - Call ticker(@Query("symbol") String symbol); - - /** - * Get all Ticker information - * @return ResponseResult - */ - @GET("/api/spot/v1/market/tickers") - Call tickers(); - - /** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - * @return ResponseResult - */ - @GET("/api/spot/v1/market/candles") - Call candles(@Query("symbol") String symbol, - @Query("period") String period, - @Query("after") String after, - @Query("before") String before, - @Query("limit") Integer limit); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotOrderApi.java deleted file mode 100644 index 1f79459b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotOrderApi.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.request.spot.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.POST; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot order api - */ -public interface SpotOrderApi { - - /** - * place an order - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/orders") - Call orders(@Body SpotOrderReq body); - - /** - * Place orders in batches - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/batch-orders") - Call batchOrders(@Body SpotBatchOrdersReq body); - - /** - * cancel the order - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/cancel-order") - Call cancelOrder(@Body SpotCancelOrderReq body); - - /** - * Batch cancellation - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/cancel-batch-orders") - Call cancelBatchOrder(@Body SpotCancelBatchOrderReq body); - - /** - * Get order details - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/orderInfo") - Call orderInfo(@Body SpotOrderInfoReq body); - - /** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/open-orders") - Call openOrders(@Body SpotOpenOrderReq body); - - /** - * Get historical delegation list - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/history") - Call history(@Body SpotHistoryOrderReq body); - - /** - * Obtain transaction details - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/trade/fills") - Call fills(@Body SpotFillsOrderReq body); -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPlanApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPlanApi.java deleted file mode 100644 index 286d533a..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPlanApi.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.request.spot.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.POST; - -public interface SpotPlanApi { - - @POST("/api/spot/v1/plan/placePlan") - Call placePlan(@Body SpotPlanOrderReq body); - - @POST("/api/spot/v1/plan/modifyPlan") - Call modifyPlan(@Body SpotModifyPlanReq body); - - @POST("/api/spot/v1/plan/cancelPlan") - Call cancelPlan(@Body SpotCancelPlanOrderReq body); - - @POST("/api/spot/v1/plan/currentPlan") - Call currentPlan(@Body SpotPlanOpenOrderReq body); - - @POST("/api/spot/v1/plan/historyPlan") - Call historyPlan(@Body SpotPlanOpenOrderReq body); -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPublicApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPublicApi.java deleted file mode 100644 index 55e50e7b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotPublicApi.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.GET; -import retrofit2.http.Query; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot public api - */ -public interface SpotPublicApi { - - /** - * Get server time - * @return ResponseResult - */ - @GET("/api/spot/v1/public/time") - Call time(); - - /** - * Basic information of currency - * @return ResponseResult - */ - @GET("/api/spot/v1/public/currencies") - Call currencies(); - - /** - * Get all product information - * @return ResponseResult - */ - @GET("/api/spot/v1/public/products") - Call products(); - - /** - * Get single product information - * @param symbol - * @return ResponseResult - */ - @GET("/api/spot/v1/public/product") - Call product(@Query("symbol") String symbol); - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotWalletApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotWalletApi.java deleted file mode 100644 index 274622d1..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/spot/SpotWalletApi.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.bitget.openapi.api.spot; - -import com.bitget.openapi.dto.request.spot.SpotSubTransferReq; -import com.bitget.openapi.dto.request.spot.SpotTransferReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalInnerReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -public interface SpotWalletApi { - - /** - * transfer - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/wallet/transfer") - Call transfer(@Body SpotTransferReq body); - - - /** - * subTransfer - * @param body - * @return ResponseResult - */ - @POST("/api/spot/v1/wallet/subTransfer") - Call subTransfer(@Body SpotSubTransferReq body); - - /** - * get deposit address - * @return ResponseResult - */ - @GET("/api/spot/v1/wallet/deposit-address") - Call depositAddress(@Query("coin")String coin, - @Query("chain")String chain); - - /** - * withdrawal - * @return ResponseResult - */ - @POST("/api/spot/v1/wallet/withdrawal") - Call withdrawal(@Body SpotWithdrawalReq body); - - /** - * withdrawal-inner - * @return ResponseResult - */ - @POST("/api/spot/v1/wallet/withdrawal-inner") - Call withdrawalInner(@Body SpotWithdrawalInnerReq body); - - - /** - * get withdrawal record list - * @return ResponseResult - */ - @GET("/api/spot/v1/wallet/withdrawal-list") - Call withdrawalList(@Query("coin")String coin, - @Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageNo") Integer pageNo, - @Query("pageSize") Integer pageSize); - - /** - * get deposit record list - * @return ResponseResult - */ - @GET("/api/spot/v1/wallet/deposit-list") - Call depositList(@Query("coin")String coin, - @Query("startTime") String startTime, - @Query("endTime") String endTime, - @Query("pageNo") Integer pageNo, - @Query("pageSize") Integer pageSize); - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixAccountApi.java new file mode 100644 index 00000000..7f7a785d --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixAccountApi.java @@ -0,0 +1,39 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface MixAccountApi { + + @GET("/api/mix/v1/account/account") + Call account(@QueryMap Map paramMap); + + @GET("/api/mix/v1/account/accounts") + Call accounts(@QueryMap Map paramMap); + + @POST("/api/mix/v1/account/setLeverage") + Call setLeverage(@Body Map paramMap); + + @POST("/api/mix/v1/account/setMargin") + Call setMargin(@Body Map paramMap); + + @POST("/api/mix/v1/account/setMarginMode") + Call setMarginMode(@Body Map paramMap); + + @POST("/api/mix/v1/account/setPositionMode") + Call setPositionMode(@Body Map paramMap); + + + // position + @GET("/api/mix/v1/position/singlePosition") + Call singlePosition(@QueryMap Map paramMap); + + @GET("/api/mix/v1/position/allPosition") + Call allPosition(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixMarketApi.java new file mode 100644 index 00000000..fec11a5b --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixMarketApi.java @@ -0,0 +1,31 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface MixMarketApi { + + @GET("/api/mix/v1/market/contracts") + Call contracts(@QueryMap Map paramMap); + + @GET("/api/mix/v1/market/depth") + Call depth(@QueryMap Map paramMap); + + @GET("/api/mix/v1/market/ticker") + Call ticker(@QueryMap Map paramMap); + + @GET("/api/mix/v1/market/tickers") + Call tickers(@QueryMap Map paramMap); + + @GET("/api/mix/v1/market/fills") + Call fills(@QueryMap Map paramMap); + + @GET("/api/mix/v1/market/candles") + Call candles(@QueryMap Map paramMap); + +} + diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java new file mode 100644 index 00000000..70b89948 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java @@ -0,0 +1,66 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.*; + +import java.util.Map; + +public interface MixOrderApi { + + // normal order + @POST("/api/mix/v1/order/placeOrder") + Call placeOrder(@Body Map paramMap); + + @POST("/api/mix/v1/order/batch-orders") + Call batchOrders(@Body Map paramMap); + + @POST("/api/mix/v1/order/cancel-order") + Call cancelOrder(@Body Map paramMap); + + @POST("/api/mix/v1/order/cancel-batch-orders") + Call cancelBatchOrder(@Body Map paramMap); + + @GET("/api/mix/v1/order/history") + Call history(@QueryMap Map paramMap); + + @GET("/api/mix/v1/order/current") + Call current(@QueryMap Map paramMap); + + @GET("/api/mix/v1/order/fills") + Call fills(@QueryMap Map paramMap); + + + // plan + @POST("/api/mix/v1/plan/placePlan") + Call placePlan(@Body Map paramMap); + + @POST("/api/mix/v1/plan/cancelPlan") + Call cancelPlan(@Body Map paramMap); + + @GET("/api/mix/v1/plan/currentPlan") + Call currentPlan(@QueryMap Map paramMap); + + @GET("/api/mix/v1/plan/historyPlan") + Call historyPlan(@QueryMap Map paramMap); + + + // trader + @POST("/api/mix/v1/trace/closeTrackOrder") + Call traderCloseOrder(@QueryMap Map paramMap); + + @GET("/api/mix/v1/trace/currentTrack") + Call traderCurrentOrders(@QueryMap Map paramMap); + + @GET("/api/mix/v1/trace/historyTrack") + Call traderHistoryTrack(@QueryMap Map paramMap); + + @POST("/api/mix/v1/trace/followerCloseByTrackingNo") + Call followerCloseByTrackingNo(@QueryMap Map paramMap); + + @GET("/api/mix/v1/trace/followerOrder") + Call followerOrder(@QueryMap Map paramMap); + + @GET("/api/mix/v1/trace/followerHistoryOrders") + Call followerHistoryOrders(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java new file mode 100644 index 00000000..adb1669a --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java @@ -0,0 +1,24 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotAccountApi { + + @GET("/api/spot/v1/account/getInfo") + Call getInfo(@QueryMap Map paramMap); + + @GET("/api/spot/v1/account/assets-lite") + Call assetsLite(@QueryMap Map paramMap); + + @POST("/api/spot/v1/account/bills") + Call bills(@QueryMap Map paramMap); + + @GET("/api/spot/v1/account/transferRecords") + Call transferRecords(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotMarketApi.java new file mode 100644 index 00000000..840e3919 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotMarketApi.java @@ -0,0 +1,36 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.Query; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotMarketApi { + + @GET("/api/spot/v1/public/currencies") + Call currencies(); + + @GET("/api/spot/v1/public/products") + Call products(); + + @GET("/api/spot/v1/public/product") + Call product(@QueryMap Map paramMap); + + @GET("/api/spot/v1/market/fills") + Call fills(@QueryMap Map paramMap); + + @GET("/api/spot/v1/market/depth") + Call depth(@QueryMap Map paramMap); + + @GET("/api/spot/v1/market/ticker") + Call ticker(@QueryMap Map paramMap); + + @GET("/api/spot/v1/market/tickers") + Call tickers(); + + @GET("/api/spot/v1/market/candles") + Call candles(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotOrderApi.java new file mode 100644 index 00000000..b05ba539 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotOrderApi.java @@ -0,0 +1,58 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.POST; + +import java.util.Map; + +public interface SpotOrderApi { + + // order + @POST("/api/spot/v1/trade/orders") + Call orders(@Body Map body); + + @POST("/api/spot/v1/trade/batch-orders") + Call batchOrders(@Body Map body); + + @POST("/api/spot/v1/trade/cancel-order") + Call cancelOrder(@Body Map body); + + @POST("/api/spot/v1/trade/cancel-batch-orders") + Call cancelBatchOrder(@Body Map body); + + @POST("/api/spot/v1/trade/open-orders") + Call openOrders(@Body Map body); + + @POST("/api/spot/v1/trade/history") + Call history(@Body Map body); + + @POST("/api/spot/v1/trade/fills") + Call fills(@Body Map body); + + + // plan + @POST("/api/spot/v1/plan/placePlan") + Call placePlan(@Body Map body); + + @POST("/api/spot/v1/plan/cancelPlan") + Call cancelPlan(@Body Map body); + + @POST("/api/spot/v1/plan/currentPlan") + Call currentPlan(@Body Map body); + + @POST("/api/spot/v1/plan/historyPlan") + Call historyPlan(@Body Map body); + + + // trace + @POST("/api/spot/v1/trace/order/closeTrackingOrder") + Call traderCloseTrackingOrder(@Body Map body); + + @POST("/api/spot/v1/trace/order/orderCurrentList") + Call traderOrderCurrentList(@Body Map body); + + @POST("/api/spot/v1/trace/order/orderHistoryList") + Call traderOrderHistoryList(@Body Map body); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java new file mode 100644 index 00000000..2f314ee3 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java @@ -0,0 +1,27 @@ +package com.bitget.openapi.api.v1; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotWalletApi { + + @POST("/api/spot/v1/wallet/transfer") + Call transfer(@QueryMap Map paramMap); + + @GET("/api/spot/v1/wallet/deposit-address") + Call depositAddress(@QueryMap Map paramMap); + + @POST("/api/spot/v1/wallet/withdrawal") + Call withdrawal(@QueryMap Map paramMap); + + @GET("/api/spot/v1/wallet/withdrawal-list") + Call withdrawalList(@QueryMap Map paramMap); + + @GET("/api/spot/v1/wallet/deposit-list") + Call depositList(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixAccountApi.java new file mode 100644 index 00000000..ae439c8b --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixAccountApi.java @@ -0,0 +1,39 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface MixAccountApi { + + @GET("/api/v2/mix/account/account") + Call account(@QueryMap Map paramMap); + + @GET("/api/v2/mix/account/accounts") + Call accounts(@QueryMap Map paramMap); + + @POST("/api/v2/mix/account/set-leverage") + Call setLeverage(@Body Map paramMap); + + @POST("/api/v2/mix/account/set-margin") + Call setMargin(@Body Map paramMap); + + @POST("/api/v2/mix/account/set-margin-mode") + Call setMarginMode(@Body Map paramMap); + + @POST("/api/v2/mix/account/set-position-mode") + Call setPositionMode(@Body Map paramMap); + + + // position + @GET("/api/v2/mix/position/single-position") + Call singlePosition(@QueryMap Map paramMap); + + @GET("/api/v2/mix/position/all-position") + Call allPosition(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixMarketApi.java new file mode 100644 index 00000000..478ea7c3 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixMarketApi.java @@ -0,0 +1,31 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface MixMarketApi { + + @GET("/api/v2/mix/market/contracts") + Call contracts(@QueryMap Map paramMap); + + @GET("/api/v2/mix/market/orderbook") + Call orderbook(@QueryMap Map paramMap); + + @GET("/api/v2/mix/market/ticker") + Call ticker(@QueryMap Map paramMap); + + @GET("/api/v2/mix/market/tickers") + Call tickers(@QueryMap Map paramMap); + + @GET("/api/v2/mix/market/fills") + Call fills(@QueryMap Map paramMap); + + @GET("/api/v2/mix/market/candles") + Call candles(@QueryMap Map paramMap); + +} + diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java new file mode 100644 index 00000000..6edbba3f --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java @@ -0,0 +1,69 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface MixOrderApi { + + // normal order + @POST("/api/v2/mix/order/place-order") + Call placeOrder(@Body Map paramMap); + + @POST("/api/v2/mix/order/batch-place-order") + Call batchPlaceOrder(@Body Map paramMap); + + @POST("/api/v2/mix/order/cancel-order") + Call cancelOrder(@Body Map paramMap); + + @POST("/api/v2/mix/order/batch-cancel-orders") + Call batchCancelOrders(@Body Map paramMap); + + @GET("/api/v2/mix/order/orders-history") + Call ordersHistory(@QueryMap Map paramMap); + + @GET("/api/v2/mix/order/orders-pending") + Call ordersPending(@QueryMap Map paramMap); + + @GET("/api/v2/mix/order/fills") + Call fills(@QueryMap Map paramMap); + + + // plan + @POST("/api/v2/mix/order/place-plan-order") + Call placePlanOrder(@Body Map paramMap); + + @POST("/api/v2/mix/order/cancel-plan-order") + Call cancelPlanOrder(@Body Map paramMap); + + @GET("/api/v2/mix/order/orders-plan-pending") + Call ordersPlanPending(@QueryMap Map paramMap); + + @GET("/api/v2/mix/order/orders-plan-history") + Call ordersPlanHistory(@QueryMap Map paramMap); + + + // trader + @POST("/api/v2/copy/mix-trader/order-close-positions") + Call traderOrderClosePositions(@QueryMap Map paramMap); + + @GET("/api/v2/copy/mix-trader/order-current-track") + Call traderOrderCurrentTrack(@QueryMap Map paramMap); + + @GET("/api/v2/copy/mix-trader/order-history-track") + Call traderOrderHistoryTrack(@QueryMap Map paramMap); + + @POST("/api/v2/copy/mix-follower/close-positions") + Call followerClosePositions(@QueryMap Map paramMap); + + @GET("/api/v2/copy/mix-follower/query-current-orders") + Call followerQueryCurrentOrders(@QueryMap Map paramMap); + + @GET("/api/v2/copy/mix-follower/query-history-orders") + Call followerQueryHistoryOrders(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotAccountApi.java new file mode 100644 index 00000000..b89f07a8 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotAccountApi.java @@ -0,0 +1,24 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotAccountApi { + + @GET("/api/v2/spot/account/info") + Call info(); + + @GET("/api/v2/spot/account/assets") + Call assets(@QueryMap Map paramMap); + + @GET("/api/v2/spot/account/bills") + Call bills(@QueryMap Map paramMap); + + @GET("/api/v2/spot/account/transferRecords") + Call transferRecords(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotMarketApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotMarketApi.java new file mode 100644 index 00000000..7c6402ce --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotMarketApi.java @@ -0,0 +1,29 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotMarketApi { + + @GET("/api/v2/spot/public/coins") + Call coins(@QueryMap Map paramMap); + + @GET("/api/v2/spot/public/symbols") + Call symbols(@QueryMap Map paramMap); + + @GET("/api/v2/spot/market/fills") + Call fills(@QueryMap Map paramMap); + + @GET("/api/v2/spot/market/orderbook") + Call orderbook(@QueryMap Map paramMap); + + @GET("/api/v2/spot/market/tickers") + Call tickers(); + + @GET("/api/v2/spot/market/candles") + Call candles(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java new file mode 100644 index 00000000..815d51ff --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java @@ -0,0 +1,59 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.POST; + +import java.util.Map; + +public interface SpotOrderApi { + + // order + @POST("/api/v2/spot/trade/place-order") + Call placeOrder(@Body Map body); + + @POST("/api/v2/spot/trade/batch-orders") + Call batchOrders(@Body Map body); + + @POST("/api/v2/spot/trade/cancel-order") + Call cancelOrder(@Body Map body); + + @POST("/api/v2/spot/trade/batch-cancel-order") + Call batchCancelOrder(@Body Map body); + + @GET("/api/v2/spot/trade/unfilled-orders") + Call unfilledOrders(@Body Map body); + + @GET("/api/v2/spot/trade/history-orders") + Call historyOrders(@Body Map body); + + @GET("/api/v2/spot/trade/fills") + Call fills(@Body Map body); + + + // plan + @POST("/api/v2/spot/trade/place-plan-order") + Call placePlanOrder(@Body Map body); + + @POST("/api/v2/spot/trade/cancel-plan-order") + Call cancelPlanOrder(@Body Map body); + + @GET("/api/v2/spot/trade/current-plan-order") + Call currentPlanOrder(@Body Map body); + + @GET("/api/v2/spot/trade/history-plan-order") + Call historyPlanOrder(@Body Map body); + + + // trace + @POST("/api/v2/copy/spot-trader/order-close-tracking") + Call traderOrderCloseTracking(@Body Map body); + + @GET("/api/v2/copy/spot-trader/order-current-track") + Call traderOrderCurrentTrack(@Body Map body); + + @GET("/api/v2/copy/spot-trader/order-history-track") + Call traderOrderHistoryTrack(@Body Map body); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java new file mode 100644 index 00000000..791f19a5 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java @@ -0,0 +1,27 @@ +package com.bitget.openapi.api.v2; + +import com.bitget.openapi.dto.response.ResponseResult; +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.POST; +import retrofit2.http.QueryMap; + +import java.util.Map; + +public interface SpotWalletApi { + + @POST("/api/v2/spot/wallet/transfer") + Call transfer(@QueryMap Map paramMap); + + @GET("/api/v2/spot/wallet/deposit-address") + Call depositAddress(@QueryMap Map paramMap); + + @POST("/api/v2/spot/wallet/withdrawal") + Call withdrawal(@QueryMap Map paramMap); + + @GET("/api/v2/spot/wallet/withdrawal-records") + Call withdrawalRecords(@QueryMap Map paramMap); + + @GET("/api/v2/spot/wallet/deposit-records") + Call depositRecords(@QueryMap Map paramMap); +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java index acbef2a7..8c26ca5c 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java @@ -1,13 +1,14 @@ package com.bitget.openapi.common.client; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONObject; import com.bitget.openapi.common.constant.HttpHeader; import com.bitget.openapi.common.domain.ClientParameter; +import com.bitget.openapi.common.exception.BitgetApiException; import com.bitget.openapi.common.utils.SignatureUtils; -import okhttp3.Interceptor; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; +import com.bitget.openapi.dto.response.ResponseResult; +import okhttp3.*; import okio.Buffer; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; @@ -20,9 +21,11 @@ * @date 2019-01-15 */ public class ApiClient { + private final Retrofit retrofit; + /** - * parameter + * 超时时间 */ private final ClientParameter parameter; @@ -49,7 +52,7 @@ private OkHttpClient httpClient() { } /** - * Signature Filter + * 签名过滤器 */ private class SignInterceptor implements Interceptor { @@ -81,6 +84,7 @@ public Response intercept(Chain chain) { .addHeader(HttpHeader.COOKIE, String.format(localFormat, clientParameter.getLocale())) .addHeader(HttpHeader.LOCALE, clientParameter.getLocale()) .addHeader(HttpHeader.ACCESS_TIMESTAMP, timestamp); + Request request = requestBuilder.build(); return chain.proceed(request); } catch (Exception e) { @@ -101,7 +105,7 @@ private String bodyToString(Request request) { } /** - * Http request return status filter + * http 请求返回状态过滤器 */ private class HttpStatusInterceptor implements Interceptor { @Override @@ -111,8 +115,28 @@ public Response intercept(Chain chain) throws IOException { return response; } - throw new RuntimeException(" call " + chain.request().url().url().getPath() - + " failed, status : " + response.code() + ", body : " + response.body().string()); + if (response.body() == null) { + throw new RuntimeException("empty response body httpCode:" + response.code()); + } + + try { + ResponseResult bizResponse = JSONObject.parseObject(response.body().string(), ResponseResult.class); + bizResponse.setHttpCode(String.valueOf(response.code())); + MediaType contentType = response.body().contentType(); + ResponseBody body = ResponseBody.create(contentType, JSON.toJSONString(bizResponse)); + return response.newBuilder().code(200).body(body).build(); + } catch (Exception e) { + throw new RuntimeException("parse response error:" + e.getMessage()); + } + } + } + + public static String getJSONStringValue(String json, String key) { + try { + JSONObject obj = JSONObject.parseObject(json); + return obj.getString(key); + } catch (JSONException e) { + throw new JSONException(String.format("[JSONObject] Failed to get \"%s\" from JSON object", key)); } } } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/BitgetRestClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/BitgetRestClient.java index 9f50e90d..399f426c 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/BitgetRestClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/BitgetRestClient.java @@ -1,8 +1,6 @@ package com.bitget.openapi.common.client; -import com.bitget.openapi.BrokerApiFacade; -import com.bitget.openapi.MixApiFacade; -import com.bitget.openapi.SpotApiFacade; +import com.bitget.openapi.BitgetApiFacade; import com.bitget.openapi.common.constant.HttpHeader; import com.bitget.openapi.common.domain.ClientParameter; import com.bitget.openapi.common.enums.SupportedLocaleEnum; @@ -37,24 +35,17 @@ public static Builder builder() { } /** - * spot rest api - * - * @return + * mix api */ - public SpotApiFacade spot() { - return new SpotApiFacade(apiClient); + public BitgetApiFacade bitget() { + return new BitgetApiFacade(apiClient); } /** * mix api - * @return */ - public MixApiFacade mix() { - return new MixApiFacade(apiClient); - } - - public BrokerApiFacade broker() { - return new BrokerApiFacade(apiClient); + public Builder configuration(ClientParameter value) { + return new Builder().configuration(value); } public static class Builder { diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/constant/HttpHeader.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/constant/HttpHeader.java index 309cbffb..82d6ce3c 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/constant/HttpHeader.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/constant/HttpHeader.java @@ -4,13 +4,13 @@ public class HttpHeader { /** * baseUrl must end in / */ - public static final String BASE_URL = "https://capi.bitget.com/api/swap/v3/"; + public static final String BASE_URL = "https://api.bitget.com/"; + /** * http request timeout */ public static final Long TIME_OUT = 30L; - /** * header parameter */ diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java index db29c3ec..fdea53fd 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java @@ -6,7 +6,6 @@ import lombok.NoArgsConstructor; /** - * * @author bitget-sdk-team * @date 2019-01-15 */ @@ -17,28 +16,32 @@ public class ClientParameter { /** - * User apiKey, required + * 用户 api key,必填 */ private String apiKey; + /** - * User secretKey, required + * 用户密钥,必填 */ private String secretKey; + /** - * User passphrase, required + * 用户 passphrase,必填 */ private String passphrase; + /** - * Service url, optional, default https://capi.bitget.com/api/swap/v3/ + * 服务 url,非必填 默认 https://capi.bitget.com/api/swap/v3/ */ private String baseUrl; + /** - * Link timeout, optional, default 30s + * 链接超时时间,非必填 默认 30s */ private Long timeout; + /** - * Linguistic environment + * 语言环境 */ private String locale; - } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/ForceEnum.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/ForceEnum.java deleted file mode 100644 index 50f30009..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/ForceEnum.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.bitget.openapi.common.enums.spot; - - -import lombok.Getter; - -@Getter -public enum ForceEnum { - - NORMAL("normal"), - - POST_ONLY("postOnly"), - - FOK("fok"), - - IOC("ioc"), - - ; - - private final String code; - - ForceEnum(String code) { - this.code = code; - } - - public static ForceEnum toEnum(String code) { - for (ForceEnum item : ForceEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/OrderSideEnum.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/OrderSideEnum.java deleted file mode 100644 index ea8aaba4..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/OrderSideEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.bitget.openapi.common.enums.spot; - -import lombok.Getter; - -@Getter -public enum OrderSideEnum { - - /** - * 买单 - */ - BUY("buy"), - - /** - * 卖单 - */ - SELL("sell"), - ; - - private final String code; - - OrderSideEnum(String code) { - this.code = code; - } - - public static OrderSideEnum toEnum(String code) { - for (OrderSideEnum item : OrderSideEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotOrderTypeEnum.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotOrderTypeEnum.java deleted file mode 100644 index 377c2d29..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotOrderTypeEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.common.enums.spot; - -import lombok.Getter; - -@Getter -public enum SpotOrderTypeEnum { - - /** - * 限价单 - */ - LIMIT("limit"), - - /** - * 市价单 - */ - MARKET("market"), - ; - - private final String code; - - SpotOrderTypeEnum(String code) { - this.code = code; - } - - public static SpotOrderTypeEnum toEnum(String code) { - for (SpotOrderTypeEnum item : SpotOrderTypeEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotWalletTypeEnum.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotWalletTypeEnum.java deleted file mode 100644 index 97a9be2d..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/spot/SpotWalletTypeEnum.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.bitget.openapi.common.enums.spot; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum SpotWalletTypeEnum { - - SPOT("spot"), - MIX_USDT("mix_usdt"), - MIX_USD("mix_usd"), - ; - - private final String code; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/exception/BitgetApiException.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/exception/BitgetApiException.java new file mode 100644 index 00000000..1eddc66e --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/exception/BitgetApiException.java @@ -0,0 +1,33 @@ +package com.bitget.openapi.common.exception; + +public class BitgetApiException extends RuntimeException { + private static final long serialVersionUID = 1L; + private final String httpStatusCode; + private final String errorCode; + private String errMsg; + + public BitgetApiException(String fullErrMsg, String httpStatusCode) { + super(fullErrMsg); + this.httpStatusCode = httpStatusCode; + this.errorCode = "-1"; + } + + public BitgetApiException(String fullErrMsg, String httpStatusCode, String errorCode, String errMsg) { + super(fullErrMsg); + this.httpStatusCode = httpStatusCode; + this.errorCode = errorCode; + this.errMsg = errMsg; + } + + public String getErrorCode() { + return errorCode; + } + + public String getHttpStatusCode() { + return httpStatusCode; + } + + public String getErrMsg() { + return errMsg; + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ResponseUtils.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ResponseUtils.java new file mode 100644 index 00000000..87ea53f6 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ResponseUtils.java @@ -0,0 +1,17 @@ +package com.bitget.openapi.common.utils; + +import com.alibaba.fastjson.JSON; +import com.bitget.openapi.common.exception.BitgetApiException; +import com.bitget.openapi.dto.response.ResponseResult; + +public class ResponseUtils { + public static final String SUCCESS = "200"; + + public static ResponseResult handleResponse(ResponseResult response) { + if (!SUCCESS.equals(response.getHttpCode())) { + throw new BitgetApiException(JSON.toJSONString(response), response.getHttpCode(), response.getCode(), response.getMsg()); + } + + return response; + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java index 1da56dbd..17ea8e55 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java @@ -29,7 +29,7 @@ public class SignatureUtils { } /** - * signature algorithm + * 签名算法 * * @param timestamp * @param method @@ -38,8 +38,8 @@ public class SignatureUtils { * @param body * @param secretKey * @return java.lang.String - * @description ACCESS-SIGN of The request header is correct timestamp + method + requestPath - * + "?" + queryString + body The string (+indicates string connection) is encrypted using the HMAC SHA256 method and output through BASE64 encoding。 + * @description ACCESS-SIGN的请求头是对 timestamp + method + requestPath + * + "?" + queryString + body 字符串(+表示字符串连接)使用 HMAC SHA256 方法加密,通过BASE64 编码输出而得到的。 * @author jian.li * @date 2020-06-02 17:04 */ @@ -61,7 +61,7 @@ public static String generate(String timestamp, String method, String requestPat } /** - * websocket Signature encryption + * websocket 签名加密 * @param timestamp * @param method * @param requestPath @@ -82,7 +82,7 @@ public static String ws_sign(String timestamp, String method, String requestPath return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); } /** - * Ws signature + * ws签名 * @param timestamp * @param secretKey * @return @@ -98,13 +98,10 @@ public static String wsGenerateSign(String timestamp,String secretKey)throws C } public static void main(String[] args) throws Exception { - String msg = generate("1606981450", "GET", "/user/verify", null, null, "9ae40dd0f6074f9e2714e3ef9f9ed0ac33a049d85a38c02cc42873f03308f1fa"); - System.out.println(msg); - + String msg=generate("1606981450","GET","/user/verify" ,null,null,"9ae40dd0f6074f9e2714e3ef9f9ed0ac33a049d85a38c02cc42873f03308f1fa"); + System.out.println(msg); + } - String msg1 = generate("1674363384733", "POST", "/api/mix/v1/plan/placePlan", null, "{“symbol”: “SBTCSUSDT_SUMCBL”,“marginCoin”: “SUSDT”,“size”: “10”, “triggerPrice”: “11000”,“side”: “open_long”,“orderType”: “market”,“triggerType”: “market_price”,“clientOid”: “BITGET#8486913695”,“presetTakeProfitPrice”: “13000”,“presetStopLossPrice”: “10500”,“timeInForceValue”: “normal”}", "8c1e6b243cc08f7450b3ab48956af4797e7887e3a73dfe582edc75917b726bad"); - System.out.println(msg1); - } } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ZipUtil.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ZipUtil.java new file mode 100644 index 00000000..1da655f5 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/ZipUtil.java @@ -0,0 +1,28 @@ +package com.bitget.openapi.common.utils; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.zip.Inflater; + +public class ZipUtil { + + public static String uncompress(byte[] input) throws IOException { + Inflater inflater = new Inflater(true); + inflater.setInput(input); + ByteArrayOutputStream baos = new ByteArrayOutputStream(input.length); + try { + byte[] buff = new byte[1024]; + while (!inflater.finished()) { + int count = inflater.inflate(buff); + baos.write(buff, 0, count); + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + baos.close(); + } + inflater.end(); + byte[] output = baos.toByteArray(); + return new String(output, "UTF-8"); + } +} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubAddressReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubAddressReq.java deleted file mode 100644 index 9d2a21d8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubAddressReq.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubAddressReq implements Serializable { - - - private String subUid; - - private String coin; - - private String chain; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubApiReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubApiReq.java deleted file mode 100644 index 7e077a8f..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubApiReq.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubApiReq implements Serializable { - - private String subUid; - - private String passphrase; - - private String remark; - - private String ip; - - private String perm = "readonly"; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubCreateReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubCreateReq.java deleted file mode 100644 index 21715880..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubCreateReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubCreateReq implements Serializable { - - private String subName; - - private String remark; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyEmailReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyEmailReq.java deleted file mode 100644 index 73821696..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyEmailReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubModifyEmailReq implements Serializable { - - private String subUid; - - private String subEmail; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyReq.java deleted file mode 100644 index d47cd8c9..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubModifyReq.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubModifyReq implements Serializable { - - private String subUid; - - private String perm; - - private String status; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubTransferReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubTransferReq.java deleted file mode 100644 index 6109009b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubTransferReq.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubTransferReq implements Serializable { - - private String subUid; - - private String coin; - - private String toAccountType; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubWithdrawReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubWithdrawReq.java deleted file mode 100644 index 3cb514c3..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/broker/BrokerSubWithdrawReq.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.bitget.openapi.dto.request.broker; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class BrokerSubWithdrawReq implements Serializable { - - private String subUid; - - private String coin; - - private String address; - - private String tag; - - private String chain; - - private String amount; - - private String remark; - - private String clientOid; - - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustHoldModeReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustHoldModeReq.java deleted file mode 100644 index 062aabff..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustHoldModeReq.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Adjust hold mode request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class AdjustHoldModeReq implements Serializable { - - - private static final long serialVersionUID = -3858107194985716036L; - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Position mode - * 1 One way position - * 2 Two way position - */ - private String holdMode; - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustMarginModeReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustMarginModeReq.java deleted file mode 100644 index fbdb8ed3..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/AdjustMarginModeReq.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Adjust margin mode request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class AdjustMarginModeReq implements Serializable { - - private static final long serialVersionUID = 586091911369690370L; - - /** - * Deposit currency - */ - private String marginCoin; - - /** - * Currency pair - */ - private String symbol; - - /** - * Margin mode - */ - private String marginMode; - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixAdjustMarginFixReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixAdjustMarginFixReq.java deleted file mode 100644 index 83296685..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixAdjustMarginFixReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.*; - -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Adjustment margin request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixAdjustMarginFixReq implements Serializable { - - private static final long serialVersionUID = -3858107194985716037L; - - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Position direction (all positions are not transferred) - */ - private String holdSide; - /** - * Amount greater than 0 increases less than 0 decreases - */ - private BigDecimal amount; - - - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelAllPlanReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelAllPlanReq.java deleted file mode 100644 index d3697365..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelAllPlanReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -@Builder -@Data -@NoArgsConstructor -@AllArgsConstructor -public class MixCancelAllPlanReq implements Serializable { - - - - private String planType; - - /** - * 业务线 - */ - protected String productType; - -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelBatchOrdersReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelBatchOrdersReq.java deleted file mode 100644 index f1e75aca..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelBatchOrdersReq.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Batch cancellation request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixCancelBatchOrdersReq implements Serializable { - - private static final long serialVersionUID = -7705106195889290245L; - - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Order Id list - */ - private List orderIds; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelOrderReq.java deleted file mode 100644 index e409ab25..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelOrderReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel the order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixCancelOrderReq implements Serializable { - - private static final long serialVersionUID = -5806007811150714152L; - /** - * Order Id - */ - private String orderId; - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelPlanReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelPlanReq.java deleted file mode 100644 index 1bd36d7b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCancelPlanReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel plan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixCancelPlanReq implements Serializable { - - private static final long serialVersionUID = -5806007811150714154L; - - /** - * Order Id - */ - private String orderId; - - /** - * Currency pair - */ - private String symbol; - - /** - * Plan type - */ - private String planType; - - /** - * Deposit currency - */ - private String marginCoin; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixChangeLeverageReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixChangeLeverageReq.java deleted file mode 100644 index 5a591c84..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixChangeLeverageReq.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: set lever request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixChangeLeverageReq implements Serializable { - - private static final long serialVersionUID = 2185132921513652714L; - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Leverage ratio - */ - private Integer leverage; - /** - * The whole warehouse lever can not transfer this parameter - * Position direction: long multi position short short position, - * MixHoldSideEnum - */ - private String holdSide; - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCloseTrackOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCloseTrackOrderReq.java deleted file mode 100644 index 3fbaf5a4..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixCloseTrackOrderReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Dealer closing request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixCloseTrackOrderReq implements Serializable { - - private static final long serialVersionUID = -5806007811150714154L; - - /** - * Currency pair - */ - private String symbol; - - /** - * The tracking order number comes from the trackingNo of the current interface with the order - */ - private Long trackingNo; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPlanReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPlanReq.java deleted file mode 100644 index 6415fdbb..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPlanReq.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: placePlan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixModifyPlanReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - /** - * Planned entrusted order No - */ - private String orderId; - - /** - * Execution price - */ - private BigDecimal executePrice; - - /** - * Trigger Price - */ - private BigDecimal triggerPrice; - - /** - * Trigger Type - */ - private String triggerType; - - /** - * Order Type - */ - private String orderType; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPresetReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPresetReq.java deleted file mode 100644 index 1b8b4173..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyPresetReq.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixModifyPresetReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - /** - * If the profit stop price is blank, cancel the profit stop - */ - private String presetTakeProfitPrice; - - /** - * If the stop loss price is blank, cancel the stop loss - */ - private String presetStopLossPrice; - - /** - * order id - */ - private String orderId; - - /** - * plan type - */ - private String planType; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyTPSLReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyTPSLReq.java deleted file mode 100644 index 98f3b6e1..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixModifyTPSLReq.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixModifyTPSLReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - /** - * Order id - */ - private String orderId; - - /** - * Trigger price - */ - private String triggerPrice; - - /** - * Plan type - */ - private String planType; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixOpenCountReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixOpenCountReq.java deleted file mode 100644 index e9fb0ad3..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixOpenCountReq.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get the openable request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixOpenCountReq implements Serializable { - - private static final long serialVersionUID = -1L; - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * open price - */ - private BigDecimal openPrice; - /** - * open amount - */ - private BigDecimal openAmount; - /** - * Default leverage 20 - */ - private Integer leverage = 20; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlaceOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlaceOrderReq.java deleted file mode 100644 index 3c41eb24..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlaceOrderReq.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.math.BigDecimal; - - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixPlaceOrderReq implements Serializable { - - private static final long serialVersionUID = -7008876848185925619L; - - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Client ID - */ - private String clientOid; - /** - * Amount of currency placed - */ - private BigDecimal size; - /** - * Open more, open more, empty more, empty more - */ - private String side; - /** - * Order Type Market Price Limit - */ - private String orderType; - /** - * Entrusted price - */ - private BigDecimal price; - /** - * Order validity - */ - private String timeInForceValue; - /** - * Default stop profit price - */ - private BigDecimal presetTakeProfitPrice; - /** - * Preset stop loss price - */ - private BigDecimal presetStopLossPrice; - - /** - * one-way mode - */ - private boolean reduceOnly = false; - - /** - * - */ - private boolean reverse = false; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlanOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlanOrderReq.java deleted file mode 100644 index 45a016d8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixPlanOrderReq.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: placePlan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixPlanOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Amount of currency placed - */ - private BigDecimal size; - /** - * Entrusted price - */ - private BigDecimal executePrice; - /** - * Trigger Price - */ - private BigDecimal triggerPrice; - /** - * Entrusting direction - */ - private String side; - /** - * Transaction Type - */ - private String orderType; - /** - * Trigger Type Transaction Price Trigger Flag Price Trigger - */ - private String triggerType; - /** - * Client ID - */ - private String clientOid; - /** - * Default stop profit price - */ - private String presetTakeProfitPrice; - /** - * Preset stop loss price - */ - private String presetStopLossPrice; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLOrderReq.java deleted file mode 100644 index f3b1f53b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLOrderReq.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixTPSLOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - /** - * Plan type - */ - private String planType; - - /** - * Trigger price - */ - private BigDecimal triggerPrice; - - /** - * Is this position long or short - */ - private String holdSide; - - /** - * http header X-CHANNEL-API-CODE, default null - */ - private String channelApiCode; - - private String rangeRate; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLPositionsReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLPositionsReq.java deleted file mode 100644 index 6ab650aa..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTPSLPositionsReq.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixTPSLPositionsReq implements Serializable { - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - private String planType; - - private BigDecimal triggerPrice; - - private String triggerType; - - private String holdSide; - - /** - * http header X-CHANNEL-API-CODE, default null - */ - private String channelApiCode; - - /** - * 单项持仓 是否只减仓 - */ - private boolean reduceOnly = false; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceModifyTPSLOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceModifyTPSLOrderReq.java deleted file mode 100644 index 84e10262..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceModifyTPSLOrderReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixTraceModifyTPSLOrderReq implements Serializable { - /** - * Symbol Id - */ - private String symbol ; - /** - * Order Id, From the /currentTrack in response the "trackingNo" field - */ - private Long trackingNo ; - /** - * Take Profit Price, set to null means to disable/cancel TP - */ - private BigDecimal stopProfitPrice ; - /** - * Stop Loss price, set to null means to disable/cancel SL - */ - private BigDecimal stopLossPrice ; - - private String clientOid; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceSetCopyTradeSymbolReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceSetCopyTradeSymbolReq.java deleted file mode 100644 index 0839e1ea..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTraceSetCopyTradeSymbolReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixTraceSetCopyTradeSymbolReq implements Serializable { - - private String symbol; - - private String operation; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTrailOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTrailOrderReq.java deleted file mode 100644 index 486f318c..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/MixTrailOrderReq.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; -import java.math.BigDecimal; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MixTrailOrderReq implements Serializable { - - /** - * Currency pair - */ - private String symbol; - - /** - * Deposit currency - */ - private String marginCoin; - - private BigDecimal triggerPrice; - - private String triggerType ; - - private String side; - - private String size; - - private String rangeRate; - - private String presetTakeProfitPrice; - - private String presetStopLossPrice; - - /** - * 单项持仓 是否只减仓 - */ - private boolean reduceOnly = false; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceBatchOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceBatchOrderReq.java deleted file mode 100644 index 26731b67..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceBatchOrderReq.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place batch order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class PlaceBatchOrderReq implements Serializable { - - private static final long serialVersionUID = 7456926698906558545L; - /** - * Currency pair - */ - private String symbol; - /** - * Deposit currency - */ - private String marginCoin; - /** - * Order data list - */ - private List orderDataList; - - - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceOrderBaseReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceOrderBaseReq.java deleted file mode 100644 index 5cbe1999..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/mix/PlaceOrderBaseReq.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.bitget.openapi.dto.request.mix; - -import lombok.Builder; -import lombok.Data; -import java.math.BigDecimal; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place order base request - */ -@Data -@Builder -public class PlaceOrderBaseReq { - - private static final long serialVersionUID = -7008876848185925619L; - /** - * Client ID - */ - private String clientOid; - /** - * Amount of currency placed - */ - private BigDecimal size; - /** - * 1: Kaiduo 2: Kaikong 3: Pingduo 4: Pingkong - */ - private String side; - /** - * Order Type - */ - private String orderType; - /** - * Entrusted price - */ - private BigDecimal price; - - private String timeInForceValue; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/LoginArgs.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/LoginArgs.java new file mode 100644 index 00000000..f09764d2 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/LoginArgs.java @@ -0,0 +1,39 @@ +package com.bitget.openapi.dto.request.other; + +import com.alibaba.fastjson.annotation.JSONField; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + +/** + * @author hpf + */ +@Builder +@AllArgsConstructor +@Data +public class LoginArgs { + + /** + * 用于调用API的用户身份唯一标示,需要用户申请 + */ + @JSONField(ordinal = 1) + private String apiKey; + + /** + * APIKey 的密码 + */ + @JSONField(ordinal = 2) + private String passphrase; + + /** + * 时间戳 ,是Unix Epoch时间,单位是秒 + */ + @JSONField(ordinal = 3) + private String timestamp; + + /** + * 签名字符串 + */ + @JSONField(ordinal = 4) + private String sign; +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/ParamArgs.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/ParamArgs.java new file mode 100644 index 00000000..8e8fa8c3 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/other/ParamArgs.java @@ -0,0 +1,25 @@ +package com.bitget.openapi.dto.request.other; + +import com.alibaba.fastjson.annotation.JSONField; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + + +/** + * @author hpf + */ +@Builder +@AllArgsConstructor +@Data +public class ParamArgs { + + @JSONField(ordinal = 1) + private String channel; + + @JSONField(ordinal = 2) + private String instType; + + @JSONField(ordinal = 3) + private String instId; +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBatchOrdersReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBatchOrdersReq.java deleted file mode 100644 index 38235ecd..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBatchOrdersReq.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot batch order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotBatchOrdersReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * order list - */ - private List orderList; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBillQueryReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBillQueryReq.java deleted file mode 100644 index a22ff620..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotBillQueryReq.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot bill request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotBillQueryReq implements Serializable { - - private static final long serialVersionUID = -5806007811150714154L; - - /** - * Currency ID - */ - private Integer coinId; - /** - * Group Type - */ - private String groupType; - /** - * Business Type - */ - private String bizType; - /** - * Pass in billId to query previous data - */ - private Long after; - /** - * Pass in billId to check the subsequent data - */ - private Long before; - /** - * Default 100, maximum 500 - */ - @Builder.Default - private Integer limit = 100; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelBatchOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelBatchOrderReq.java deleted file mode 100644 index a5866a19..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelBatchOrderReq.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Batch cancellation request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotCancelBatchOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Order ids - */ - private List orderIds; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelOrderReq.java deleted file mode 100644 index 81fad621..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelOrderReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel the order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotCancelOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Order Id - */ - private String orderId; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelPlanOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelPlanOrderReq.java deleted file mode 100644 index dbd9f376..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotCancelPlanOrderReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotCancelPlanOrderReq implements Serializable { - - private Long userId; - - private String orderId; -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotFillsOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotFillsOrderReq.java deleted file mode 100644 index 83c66b1e..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotFillsOrderReq.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Obtain transaction details request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotFillsOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * Order Id - */ - private String orderId; - - /** - * The orderId is passed in. The data before the orderId desc - */ - private Long after; - - /** - * Pass in the data after the orderId asc - */ - private Long before; - - /** - * Number of returned results Default 100, maximum 500 - */ - @Builder.Default - private Integer limit = 100; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotHistoryOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotHistoryOrderReq.java deleted file mode 100644 index bdd7e3a6..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotHistoryOrderReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get historical delegation list request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotHistoryOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - - /** - * The orderId is passed in. The data before the orderId desc - */ - private Long after; - - /** - * Pass in the data after the orderId asc - */ - private Long before; - /** - * Number of returned results Default 100, maximum 500 - */ - @Builder.Default - private Integer limit = 100; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotModifyPlanReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotModifyPlanReq.java deleted file mode 100644 index 0318dd16..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotModifyPlanReq.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotModifyPlanReq implements Serializable { - - private long userId; - - private String orderId; - - private String executePrice; - - private String triggerPrice; - - private String orderType; - - private String size; -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOpenOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOpenOrderReq.java deleted file mode 100644 index 1686d598..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOpenOrderReq.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Obtain orders that have not been closed or partially closed but not cancelled request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotOpenOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderInfoReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderInfoReq.java deleted file mode 100644 index 36ad0293..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderInfoReq.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get order details request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotOrderInfoReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - /** - * Order Id - */ - private String orderId; - /** - * Client Order Id - */ - private String clientOrderId; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderReq.java deleted file mode 100644 index 77de04c6..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrderReq.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotOrderReq implements Serializable { - - private static final long serialVersionUID = -1L; - - /** - * Currency pair - */ - private String symbol; - /** - * Order direction - */ - private String side; - /** - * Order type - */ - private String orderType; - /** - * Order Control Type - */ - private String force; - /** - * Entrusted price, only applicable to price limit order - */ - private String price; - /** - * quantity - */ - private String quantity; - /** - * Client order ID - */ - private String clientOrderId; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrdersReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrdersReq.java deleted file mode 100644 index 5c201186..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotOrdersReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.*; - -import java.io.Serializable; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: SpotOrdersReq - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor(access = AccessLevel.PRIVATE) -public class SpotOrdersReq implements Serializable { - - /** - * Order direction - */ - private String side; - /** - * Order type - */ - private String orderType; - /** - * Order Control Type - */ - private String force; - /** - * Entrusted price, only applicable to price limit order - */ - private String price; - /** - * quantity - */ - private String quantity; - /** - * Client order ID - */ - private String clientOrderId; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOpenOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOpenOrderReq.java deleted file mode 100644 index eddc8b03..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOpenOrderReq.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotPlanOpenOrderReq implements Serializable { - - private Long userId; - - private String symbol; - - private String startTime; - - private String endTime; - - private Integer pageSize; - - private String lastEndId; - - private String isPre; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOrderReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOrderReq.java deleted file mode 100644 index ce63e64d..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotPlanOrderReq.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotPlanOrderReq implements Serializable { - - private Long userId; - - private String symbol; - - private String size; - - private String executePrice; - - private String triggerPrice; - - private String side; - - private String orderType; - - private String triggerType; - - private String timeInForceValue = "normal"; - - private String clientOid; - - private String channelApiCode; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotSubTransferReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotSubTransferReq.java deleted file mode 100644 index 0bdc978d..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotSubTransferReq.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import java.io.Serializable; - -public class SpotSubTransferReq implements Serializable { - - private String fromType; - - private String toType; - - private String amount; - - private String coin; - - private String clientOid; - - private String fromUserId; - - private String toUserId; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotTransferReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotTransferReq.java deleted file mode 100644 index 3719d8ed..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotTransferReq.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotTransferReq implements Serializable { - - private String fromType; - - private String toType; - - private String amount; - - private String coin; - - private String clientOid; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalInnerReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalInnerReq.java deleted file mode 100644 index 654ee778..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalInnerReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotWithdrawalInnerReq implements Serializable { - - private String coin; - - private String toUid; - - private String amount; - - private String clientOid; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalReq.java deleted file mode 100644 index 41774e63..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/spot/SpotWithdrawalReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.bitget.openapi.dto.request.spot; - - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.io.Serializable; - -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SpotWithdrawalReq implements Serializable { - - private String coin; - - private String address; - - private String tag; - - private String chain; - - private String amount; - - private String remark; - - private String clientOid; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java index eb04283e..d09a17df 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java @@ -12,7 +12,6 @@ @NoArgsConstructor @AllArgsConstructor public class SubscribeReq { - private String instType; private String channel; private String instId; diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsBaseReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsBaseReq.java index bec1f805..b71230e3 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsBaseReq.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsBaseReq.java @@ -12,8 +12,6 @@ @NoArgsConstructor @AllArgsConstructor public class WsBaseReq { - private String op; - private List args; } \ No newline at end of file diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsLoginReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsLoginReq.java index 089d16b2..5aa2fbdf 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsLoginReq.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/WsLoginReq.java @@ -10,12 +10,8 @@ @NoArgsConstructor @AllArgsConstructor public class WsLoginReq { - private String apiKey; - private String passphrase; - private String timestamp; - private String sign; } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java old mode 100755 new mode 100644 index b90f7c72..094a108b --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java @@ -1,37 +1,46 @@ package com.bitget.openapi.dto.response; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + import java.io.Serializable; /** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Response results + * ResponseBody注解返回的JSON对象类 + * + * @author upex-team + * @date 2019/12/30 */ -@Data -@Builder +@Getter +@Setter @NoArgsConstructor @AllArgsConstructor public class ResponseResult implements Serializable { - private static final long serialVersionUID = -1L; + /** + * 200成功,其他表示失败 + */ + private String httpCode = "200"; /** - * Response 00000 means success, greater than 0 means failure, less than 0 means system reservation + * 00000表示成功,>0表示失败,<0系统保留 */ private String code; /** - * Prompt information + * 提示信息 */ private String msg; /** - * system time + * 系统时间 */ private Long requestTime; + /** - * Return Data + * 返回数据 */ private T data; } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/BitgetService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/BitgetService.java new file mode 100644 index 00000000..4bd29b38 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/BitgetService.java @@ -0,0 +1,34 @@ +package com.bitget.openapi.service; + +import com.bitget.openapi.api.BitgetApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.dto.response.ResponseResult; +import com.google.common.collect.Maps; + +import java.io.IOException; +import java.util.Map; + +public class BitgetService { + + private final BitgetApi bitgetApi; + + public BitgetService(ApiClient client) { + bitgetApi = client.create(BitgetApi.class); + } + + public ResponseResult get(String url, Map paramMap) throws IOException { + return bitgetApi.sendGetRequest(url, paramMap).execute().body(); + } + + public ResponseResult get(String url) throws IOException { + return get(url, Maps.newHashMap()); + } + + public ResponseResult post(String url, Map paramMap) throws IOException { + return bitgetApi.sendPostRequest(url, paramMap).execute().body(); + } + + public ResponseResult post(String url) throws IOException { + return post(url, Maps.newHashMap()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerAccountService.java deleted file mode 100644 index c2ce236e..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerAccountService.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.bitget.openapi.service.broker; - -import com.bitget.openapi.dto.request.broker.*; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -import java.io.IOException; - -public interface BrokerAccountService { - - /** - * get broker info - * @return ResponseResult - */ - ResponseResult info() throws IOException; - - /** - * sub create - * @return ResponseResult - */ - ResponseResult subCreate(BrokerSubCreateReq req) throws IOException; - - - /** - * get sub info list - * @return ResponseResult - */ - ResponseResult subList(int pageSize, - String lastEndId, - String status) throws IOException; - - - /** - * sub modify - * @return ResponseResult - */ - ResponseResult subModify(BrokerSubModifyReq req) throws IOException; - - - /** - * sub bind email - * @return ResponseResult - */ - ResponseResult subModifyEmail( BrokerSubModifyEmailReq req) throws IOException; - - - /** - * get sub email - * @return ResponseResult - */ - ResponseResult subEmail( String subUid) throws IOException; - - /** - * get sub spot account list - * @return ResponseResult - */ - ResponseResult subSpotAssets( String subUid) throws IOException; - - - /** - * get sub future account list - * @return ResponseResult - */ - ResponseResult subFutureAssets(String subUid, - String productType) throws IOException; - - - /** - * get sub deposit address - * @return ResponseResult - */ - ResponseResult subDepositAddress(BrokerSubAddressReq req) throws IOException; - - /** - * sub withdraw - * @return ResponseResult - */ - ResponseResult subWithdraw(BrokerSubWithdrawReq req) throws IOException; - - /** - * sub config auto transfer - * @return ResponseResult - */ - ResponseResult subAutoTransfer( BrokerSubTransferReq req) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerManageService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerManageService.java deleted file mode 100644 index 7474be2e..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/BrokerManageService.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.bitget.openapi.service.broker; - -import com.bitget.openapi.dto.request.broker.BrokerSubApiReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -import java.io.IOException; - -public interface BrokerManageService { - - /** - * sub create api - * - * @return ResponseResult - */ - ResponseResult subApiCreate( BrokerSubApiReq req) throws IOException; - - /** - * sub api list - * - * @return ResponseResult - */ - ResponseResult subApiList( String subUid) throws IOException; - - - /** - * sub modify api - * - * @return ResponseResult - */ - ResponseResult subApiModify(BrokerSubApiReq req) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerAccountServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerAccountServiceImpl.java deleted file mode 100644 index 4f2248ee..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerAccountServiceImpl.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.bitget.openapi.service.broker.impl; - -import com.bitget.openapi.api.broker.BrokerAccountApi; -import com.bitget.openapi.api.spot.SpotWalletApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.broker.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.broker.BrokerAccountService; -import retrofit2.Call; - -import java.io.IOException; - -public class BrokerAccountServiceImpl implements BrokerAccountService { - - private final BrokerAccountApi brokerAccountApi; - - public BrokerAccountServiceImpl(ApiClient client) { - brokerAccountApi = client.create(BrokerAccountApi.class); - } - - - @Override - public ResponseResult info() throws IOException { - return null; - } - - @Override - public ResponseResult subCreate(BrokerSubCreateReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subList(int pageSize, String lastEndId, String status) throws IOException { - return null; - } - - @Override - public ResponseResult subModify(BrokerSubModifyReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subModifyEmail(BrokerSubModifyEmailReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subEmail(String subUid) throws IOException { - return null; - } - - @Override - public ResponseResult subSpotAssets(String subUid) throws IOException { - return null; - } - - @Override - public ResponseResult subFutureAssets(String subUid, String productType) throws IOException { - return null; - } - - @Override - public ResponseResult subDepositAddress(BrokerSubAddressReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subWithdraw(BrokerSubWithdrawReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subAutoTransfer(BrokerSubTransferReq req) throws IOException { - return null; - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerManageServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerManageServiceImpl.java deleted file mode 100644 index 74ec01a4..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/broker/impl/BrokerManageServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.bitget.openapi.service.broker.impl; - -import com.bitget.openapi.api.broker.BrokerAccountApi; -import com.bitget.openapi.api.broker.BrokerManageApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.broker.BrokerSubApiReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.broker.BrokerManageService; - -import java.io.IOException; - -public class BrokerManageServiceImpl implements BrokerManageService { - - private final BrokerManageApi brokerManageApi; - - public BrokerManageServiceImpl(ApiClient client) { - brokerManageApi = client.create(BrokerManageApi.class); - } - - - @Override - public ResponseResult subApiCreate(BrokerSubApiReq req) throws IOException { - return null; - } - - @Override - public ResponseResult subApiList(String subUid) throws IOException { - return null; - } - - @Override - public ResponseResult subApiModify(BrokerSubApiReq req) throws IOException { - return null; - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixAccountService.java deleted file mode 100644 index f302e3ce..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixAccountService.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract account service - */ -public interface MixAccountService { - - /** - * Get account information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - ResponseResult getAccount(String symbol, String marginCoin) throws IOException; - - /** - * Get account information list - * @param productType - * @return ResponseResult - */ - ResponseResult getAccounts(String productType) throws IOException; - - /** - * set lever - * @param mixChangeLeverageReq - * @return ResponseResult - */ - ResponseResult leverage(MixChangeLeverageReq mixChangeLeverageReq) throws IOException; - - /** - * Adjustment margin - * @param mixAdjustMarginFixReq - * @return ResponseResult - */ - ResponseResult margin(MixAdjustMarginFixReq mixAdjustMarginFixReq) throws IOException; - - /** - * Adjust margin mode - * @param adjustMarginModeReq - * @return ResponseResult - */ - ResponseResult marginMode(AdjustMarginModeReq adjustMarginModeReq) throws IOException; - - /** - * Adjust hold mode - * @param adjustHoldModeReq - * @return ResponseResult - */ - ResponseResult positionMode(AdjustHoldModeReq adjustHoldModeReq) throws IOException; - - /** - * Get the openable quantity - * @param mixOpenCountReq - * @return ResponseResult - */ - ResponseResult openCount(MixOpenCountReq mixOpenCountReq) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixMarketService.java deleted file mode 100644 index 2695ffa6..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixMarketService.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract quotation service - */ -public interface MixMarketService { - - /** - * Contract information - * @param productType - * @return ResponseResult - */ - ResponseResult contracts(String productType) throws IOException; - - /** - * Deep market - * @param symbol - * @param limit - * @return ResponseResult - */ - ResponseResult depth(String symbol,int limit) throws IOException; - - /** - * Deep market - * @param symbol - * @return ResponseResult - */ - ResponseResult ticker(String symbol) throws IOException; - - /** - * Acquisition of single ticker market - * @param productType - * @return ResponseResult - */ - ResponseResult tickers(String productType) throws IOException; - - /** - * Obtain transaction details - * @param symbol - * @param limit - * @return ResponseResult - */ - ResponseResult fills(String symbol,int limit) throws IOException; - - /** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - * @return ResponseResult - */ - List candles(String symbol, String granularity, String startTime, String endTime) throws IOException; - - /** - * Get currency index - * @param symbol - * @return ResponseResult - */ - ResponseResult index(String symbol) throws IOException; - - /** - * Get the next settlement time of the contract - * @param symbol - * @return ResponseResult - */ - ResponseResult fundingTime(String symbol) throws IOException; - - /** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - * @return ResponseResult - */ - ResponseResult historyFundRate(String symbol, int pageSize, int pageNo, boolean nextPage) throws IOException; - - /** - * Get the current fund rate - * @param symbol - * @return ResponseResult - */ - ResponseResult currentFundRate(String symbol) throws IOException; - - /** - * Obtain the total position of the platform - * @param symbol - * @return ResponseResult - */ - ResponseResult openInterest(String symbol) throws IOException; - - /** - * Get contract tag price - * @param symbol - * @return ResponseResult - */ - ResponseResult markPrice(String symbol) throws IOException; - - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixOrderService.java deleted file mode 100644 index 5cb7c883..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixOrderService.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.request.mix.MixCancelBatchOrdersReq; -import com.bitget.openapi.dto.request.mix.MixCancelOrderReq; -import com.bitget.openapi.dto.request.mix.MixPlaceOrderReq; -import com.bitget.openapi.dto.request.mix.PlaceBatchOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract order service - */ -public interface MixOrderService { - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - ResponseResult placeOrder(MixPlaceOrderReq mixPlaceOrderReq) throws IOException; - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - ResponseResult proportionOrder(MixPlaceOrderReq mixPlaceOrderReq) throws IOException; - - /** - * Place orders in batches - * @param placeBatchOrderReq - * @return ResponseResult - */ - ResponseResult batchOrders(PlaceBatchOrderReq placeBatchOrderReq) throws IOException; - - /** - * cancel the order - * @param mixCancelOrderReq - * @return ResponseResult - */ - ResponseResult cancelOrder(MixCancelOrderReq mixCancelOrderReq) throws IOException; - - /** - * Batch cancellation - * @param mixCancelBatchOrdersReq - * @return ResponseResult - */ - ResponseResult cancelBatchOrder(MixCancelBatchOrdersReq mixCancelBatchOrdersReq) throws IOException; - - /** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - * @return ResponseResult - */ - ResponseResult history(String symbol, String startTime, String endTime, int pageSize, String lastEndId, boolean isPre) throws IOException; - - /** - * Get the current delegate - * @param symbol - * @return ResponseResult - */ - ResponseResult current(String symbol) throws IOException; - - /** - * Get order details - * @param symbol - * @param orderId - * @return ResponseResult - */ - ResponseResult detail(String symbol, String orderId) throws IOException; - - /** - * Query transaction details - * @param symbol - * @param orderId - * @return ResponseResult - */ - ResponseResult fills(String symbol, String orderId) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPlanService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPlanService.java deleted file mode 100644 index 1acc5730..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPlanService.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract plan service - */ -public interface MixPlanService { - - /** - * Plan Entrusted Order - * @param mixPlanOrderReq - * @return ResponseResult - */ - ResponseResult placePlan(MixPlanOrderReq mixPlanOrderReq) throws IOException; - - /** - * Modify Plan Delegation - * @param mixModifyPlanReq - * @return ResponseResult - */ - ResponseResult modifyPlan(MixModifyPlanReq mixModifyPlanReq) throws IOException; - - /** - * Modify the preset profit and loss stop of plan entrustment - * @param mixModifyPresetReq - * @return ResponseResult - */ - ResponseResult modifyPlanPreset(MixModifyPresetReq mixModifyPresetReq) throws IOException; - - /** - * Modify profit and loss stop - * @param mixModifyTPSLReq - * @return ResponseResult - */ - ResponseResult modifyTPSLPlan(MixModifyTPSLReq mixModifyTPSLReq) throws IOException; - - /** - * Stop profit and stop loss Order - * @param mixTPSLOrderReq - * @return ResponseResult - */ - ResponseResult placeTPSL(MixTPSLOrderReq mixTPSLOrderReq) throws IOException; - - /** - * Planned entrustment (profit and loss stop) cancellation - * @param mixCancelPlanReq - * @return ResponseResult - */ - ResponseResult cancelPlan(MixCancelPlanReq mixCancelPlanReq) throws IOException; - - /** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - * @return ResponseResult - */ - ResponseResult currentPlan(String symbol, String isPlan) throws IOException; - - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - * @return ResponseResult - */ - ResponseResult historyPlan(String symbol,String startTime,String endTime,int pageSize,boolean isPre,String isPlan) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPositionService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPositionService.java deleted file mode 100644 index b26bf823..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixPositionService.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract position service - */ -public interface MixPositionService { - - /** - * Obtain single contract position information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - ResponseResult singlePosition(String symbol, String marginCoin) throws IOException; - - /** - * Obtain all contract position information - * @param productType - * @param marginCoin - * @return ResponseResult - */ - ResponseResult allPosition(String productType, String marginCoin) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixTraceService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixTraceService.java deleted file mode 100644 index bc05d20b..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/MixTraceService.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.bitget.openapi.service.mix; - -import com.bitget.openapi.dto.request.mix.MixCloseTrackOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceModifyTPSLOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceSetCopyTradeSymbolReq; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: mix trace service - */ -public interface MixTraceService { - - /** - * Dealer closing interface - * @param mixCloseTrackOrderReq - * @return ResponseResult - */ - ResponseResult closeTraceOrder(MixCloseTrackOrderReq mixCloseTrackOrderReq) throws IOException; - - /** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult currentTrack(String symbol,String productType,int pageSize,int pageNo) throws IOException; - - /** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult historyTrack(String startTime,String endTime,int pageSize,int pageNo) throws IOException; - - /** - * Summary of traders' profit sharing - * @return ResponseResult - */ - ResponseResult summary() throws IOException; - - /** - * Historical profit sharing summary of traders (by settlement currency) - * @return ResponseResult - */ - ResponseResult profitSettleTokenIdGroup() throws IOException; - - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult profitDateGroupList(int pageSize,int pageNo) throws IOException; - - /** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult profitDateList(String marginCoin,String date,int pageSize,int pageNo) throws IOException; - - /** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult waitProfitDateList(int pageSize,int pageNo) throws IOException; - - /** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - * @return ResponseResult - */ - ResponseResult followerHistoryOrders(String pageSize,String pageNo,String startTime,String endTime) throws IOException; - - /** - * Get Follower Open Orders - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - ResponseResult followerOrder(String symbol,String productType,int pageSize,int pageNo) throws IOException; - - /** - * trader get copytrade symbol - * @return ResponseResult - */ - ResponseResult traderSymbols() throws IOException; - - /** - * trader set copytrade symbol - * @return ResponseResult - */ - ResponseResult setUpCopySymbols(MixTraceSetCopyTradeSymbolReq mixTraceSetCopyTradeSymbol) throws IOException; - - /** - * trader modify tpsl order - * @return ResponseResult - */ - ResponseResult modifyTPSL(MixTraceModifyTPSLOrderReq mixTraceModifyTPSLOrderReq) throws IOException; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixAccountServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixAccountServiceImpl.java deleted file mode 100644 index e4f5b220..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixAccountServiceImpl.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixAccountApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixAccountService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract account serviceImpl - */ -public class MixAccountServiceImpl implements MixAccountService { - - private final MixAccountApi mixAccountApi; - - public MixAccountServiceImpl(ApiClient client) { - mixAccountApi = client.create(MixAccountApi.class); - } - - /** - * Get account information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - @Override - public ResponseResult getAccount(String symbol, String marginCoin) throws IOException { - return mixAccountApi.account(symbol,marginCoin).execute().body(); - } - - /** - * Get account information list - * @param productType - * @return ResponseResult - */ - @Override - public ResponseResult getAccounts(String productType) throws IOException { - return mixAccountApi.accounts(productType).execute().body(); - } - - /** - * set lever - * @param mixChangeLeverageReq - * @return ResponseResult - */ - @Override - public ResponseResult leverage(MixChangeLeverageReq mixChangeLeverageReq) throws IOException { - return mixAccountApi.leverage(mixChangeLeverageReq).execute().body(); - } - - /** - * Adjustment margin - * @param mixAdjustMarginFixReq - * @return ResponseResult - */ - @Override - public ResponseResult margin(MixAdjustMarginFixReq mixAdjustMarginFixReq) throws IOException { - return mixAccountApi.margin(mixAdjustMarginFixReq).execute().body(); - } - - /** - * Adjust margin mode - * @param adjustMarginModeReq - * @return ResponseResult - */ - @Override - public ResponseResult marginMode(AdjustMarginModeReq adjustMarginModeReq) throws IOException { - return mixAccountApi.marginMode(adjustMarginModeReq).execute().body(); - } - - /** - * Adjust hold mode - * @param adjustHoldModeReq - * @return ResponseResult - */ - @Override - public ResponseResult positionMode(AdjustHoldModeReq adjustHoldModeReq) throws IOException { - return mixAccountApi.positionMode(adjustHoldModeReq).execute().body(); - } - - /** - * Get the openable quantity - * @param mixOpenCountReq - * @return ResponseResult - */ - @Override - public ResponseResult openCount(MixOpenCountReq mixOpenCountReq) throws IOException { - return mixAccountApi.openCount(mixOpenCountReq).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixMarketServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixMarketServiceImpl.java deleted file mode 100644 index 70a5edc8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixMarketServiceImpl.java +++ /dev/null @@ -1,151 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixMarketApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixMarketService; -import java.io.IOException; -import java.util.List; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract quotation serviceImpl - */ -public class MixMarketServiceImpl implements MixMarketService { - - private final MixMarketApi mixMarketApi; - - public MixMarketServiceImpl(ApiClient client) { - mixMarketApi = client.create(MixMarketApi.class); - } - - /** - * Contract information - * @param productType - * @return ResponseResult - */ - @Override - public ResponseResult contracts(String productType) throws IOException { - return mixMarketApi.contracts(productType).execute().body(); - } - - /** - * Deep market - * @param symbol - * @param limit - * @return ResponseResult - */ - @Override - public ResponseResult depth(String symbol, int limit) throws IOException { - return mixMarketApi.depth(symbol,limit).execute().body(); - } - - /** - * Deep market - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult ticker(String symbol) throws IOException { - return mixMarketApi.ticker(symbol).execute().body(); - } - - /** - * Acquisition of single ticker market - * @param productType - * @return ResponseResult - */ - @Override - public ResponseResult tickers(String productType) throws IOException { - return mixMarketApi.tickers(productType).execute().body(); - } - - /** - * Obtain transaction details - * @param symbol - * @param limit - * @return ResponseResult - */ - @Override - public ResponseResult fills(String symbol, int limit) throws IOException { - return mixMarketApi.fills(symbol,limit).execute().body(); - } - - /** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - * @return ResponseResult - */ - @Override - public List candles(String symbol, String granularity, String startTime, String endTime) throws IOException { - return mixMarketApi.candles(symbol,granularity,startTime,endTime).execute().body(); - } - - /** - * Get currency index - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult index(String symbol) throws IOException { - return mixMarketApi.index(symbol).execute().body(); - } - - /** - * Get the next settlement time of the contract - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult fundingTime(String symbol) throws IOException { - return mixMarketApi.fundingTime(symbol).execute().body(); - } - - /** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - * @return ResponseResult - */ - @Override - public ResponseResult historyFundRate(String symbol, int pageSize, int pageNo, boolean nextPage) throws IOException { - return mixMarketApi.historyFundRate(symbol,pageSize , pageNo, nextPage).execute().body(); - } - - /** - * Get the current fund rate - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult currentFundRate(String symbol) throws IOException { - return mixMarketApi.currentFundRate(symbol).execute().body(); - } - - /** - * Obtain the total position of the platform - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult openInterest(String symbol) throws IOException { - return mixMarketApi.openInterest(symbol).execute().body(); - } - - /** - * Get contract tag price - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult markPrice(String symbol) throws IOException { - return mixMarketApi.markPrice(symbol).execute().body(); - } - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixOrderServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixOrderServiceImpl.java deleted file mode 100644 index cf9c4acd..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixOrderServiceImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixOrderApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.mix.MixCancelBatchOrdersReq; -import com.bitget.openapi.dto.request.mix.MixCancelOrderReq; -import com.bitget.openapi.dto.request.mix.MixPlaceOrderReq; -import com.bitget.openapi.dto.request.mix.PlaceBatchOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixOrderService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract order serviceImpl - */ -public class MixOrderServiceImpl implements MixOrderService { - - private final MixOrderApi mixOrderApi; - - public MixOrderServiceImpl(ApiClient client) { - mixOrderApi = client.create(MixOrderApi.class); - } - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult placeOrder(MixPlaceOrderReq mixPlaceOrderReq) throws IOException { - return mixOrderApi.placeOrder(mixPlaceOrderReq).execute().body(); - } - - /** - * place an order - * @param mixPlaceOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult proportionOrder(MixPlaceOrderReq mixPlaceOrderReq) throws IOException { - return mixOrderApi.proportionOrder(mixPlaceOrderReq).execute().body(); - } - - /** - * Place orders in batches - * @param placeBatchOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult batchOrders(PlaceBatchOrderReq placeBatchOrderReq) throws IOException { - return mixOrderApi.batchOrders(placeBatchOrderReq).execute().body(); - } - - /** - * cancel the order - * @param mixCancelOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult cancelOrder(MixCancelOrderReq mixCancelOrderReq) throws IOException { - return mixOrderApi.cancelOrder(mixCancelOrderReq).execute().body(); - } - - /** - * Batch cancellation - * @param mixCancelBatchOrdersReq - * @return ResponseResult - */ - @Override - public ResponseResult cancelBatchOrder(MixCancelBatchOrdersReq mixCancelBatchOrdersReq) throws IOException { - return mixOrderApi.cancelBatchOrder(mixCancelBatchOrdersReq).execute().body(); - } - - /** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - * @return ResponseResult - */ - @Override - public ResponseResult history(String symbol, String startTime, String endTime, int pageSize, String lastEndId, boolean isPre) throws IOException { - return mixOrderApi.history(symbol,startTime,endTime,pageSize,lastEndId, isPre).execute().body(); - } - - /** - * Get the current delegate - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult current(String symbol) throws IOException { - return mixOrderApi.current(symbol).execute().body(); - } - - /** - * Get order details - * @param symbol - * @param orderId - * @return ResponseResult - */ - @Override - public ResponseResult detail(String symbol, String orderId) throws IOException { - return mixOrderApi.detail(symbol,orderId).execute().body(); - } - - /** - * Query transaction details - * @param symbol - * @param orderId - * @return ResponseResult - */ - @Override - public ResponseResult fills(String symbol, String orderId) throws IOException { - return mixOrderApi.fills(symbol,orderId).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPlanServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPlanServiceImpl.java deleted file mode 100644 index b727b622..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPlanServiceImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixPlanApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixPlanService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract plan serviceImpl - */ -public class MixPlanServiceImpl implements MixPlanService { - - private final MixPlanApi mixPlanApi; - - public MixPlanServiceImpl(ApiClient apiClient){ - this.mixPlanApi = apiClient.create(MixPlanApi.class); - } - - /** - * Plan Entrusted Order - * @param mixPlanOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult placePlan(MixPlanOrderReq mixPlanOrderReq) throws IOException { - return mixPlanApi.placePlan(mixPlanOrderReq).execute().body(); - } - - /** - * Modify Plan Delegation - * @param mixModifyPlanReq - * @return ResponseResult - */ - @Override - public ResponseResult modifyPlan(MixModifyPlanReq mixModifyPlanReq) throws IOException { - return mixPlanApi.modifyPlan(mixModifyPlanReq).execute().body(); - } - - /** - * Modify the preset profit and loss stop of plan entrustment - * @param mixModifyPresetReq - * @return ResponseResult - */ - @Override - public ResponseResult modifyPlanPreset(MixModifyPresetReq mixModifyPresetReq) throws IOException { - return mixPlanApi.modifyPlanPreset(mixModifyPresetReq).execute().body(); - } - - /** - * Modify profit and loss stop - * @param mixModifyTPSLReq - * @return ResponseResult - */ - @Override - public ResponseResult modifyTPSLPlan(MixModifyTPSLReq mixModifyTPSLReq) throws IOException { - return mixPlanApi.modifyTPSLPlan(mixModifyTPSLReq).execute().body(); - } - - /** - * Stop profit and stop loss Order - * @param mixTPSLOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult placeTPSL(MixTPSLOrderReq mixTPSLOrderReq) throws IOException { - return mixPlanApi.placeTPSL(mixTPSLOrderReq).execute().body(); - } - - /** - * Planned entrustment (profit and loss stop) cancellation - * @param mixCancelPlanReq - * @return ResponseResult - */ - @Override - public ResponseResult cancelPlan(MixCancelPlanReq mixCancelPlanReq) throws IOException { - return mixPlanApi.cancelPlan(mixCancelPlanReq).execute().body(); - } - - /** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - * @return ResponseResult - */ - @Override - public ResponseResult currentPlan(String symbol,String isPlan) throws IOException { - return mixPlanApi.currentPlan(symbol, isPlan).execute().body(); - } - - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - * @return ResponseResult - */ - @Override - public ResponseResult historyPlan(String symbol, String startTime, String endTime, int pageSize, boolean isPre, String isPlan) throws IOException { - return mixPlanApi.historyPlan(symbol,startTime,endTime,pageSize,isPre,isPlan).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPositionServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPositionServiceImpl.java deleted file mode 100644 index fc9fe24f..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixPositionServiceImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixPositionApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixPositionService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Contract position serviceImpl - */ -public class MixPositionServiceImpl implements MixPositionService { - - private final MixPositionApi mixPositionApi; - - public MixPositionServiceImpl(ApiClient client) { - mixPositionApi = client.create(MixPositionApi.class); - } - - /** - * Obtain single contract position information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ - @Override - public ResponseResult singlePosition(String symbol, String marginCoin) throws IOException { - return mixPositionApi.singlePosition(symbol,marginCoin).execute().body(); - } - - /** - * Obtain all contract position information - * @param productType - * @param marginCoin - * @return ResponseResult - */ - @Override - public ResponseResult allPosition(String productType, String marginCoin) throws IOException { - return mixPositionApi.allPosition(productType, marginCoin).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixTraceServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixTraceServiceImpl.java deleted file mode 100644 index 80c2716a..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/mix/impl/MixTraceServiceImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.bitget.openapi.service.mix.impl; - -import com.bitget.openapi.api.mix.MixTraceApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.mix.MixCloseTrackOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceModifyTPSLOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceSetCopyTradeSymbolReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.mix.MixTraceService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: mix trace serviceImpl - */ -public class MixTraceServiceImpl implements MixTraceService { - - private final MixTraceApi mixTraceApi; - - public MixTraceServiceImpl(ApiClient client) { - mixTraceApi = client.create(MixTraceApi.class); - } - - /** - * Dealer closing interface - * @param mixCloseTrackOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult closeTraceOrder(MixCloseTrackOrderReq mixCloseTrackOrderReq) throws IOException { - return mixTraceApi.closeTraceOrder(mixCloseTrackOrderReq).execute().body(); - } - - /** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult currentTrack(String symbol, String productType, int pageSize, int pageNo) throws IOException { - return mixTraceApi.currentTrack(symbol,productType,pageSize,pageNo).execute().body(); - } - - /** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult historyTrack(String startTime, String endTime, int pageSize, int pageNo) throws IOException { - return mixTraceApi.historyTrack(startTime,endTime,pageSize,pageNo).execute().body(); - } - - /** - * Summary of traders' profit sharing - * @return ResponseResult - */ - @Override - public ResponseResult summary() throws IOException { - return mixTraceApi.summary().execute().body(); - } - - /** - * Historical profit sharing summary of traders (by settlement currency) - * @return ResponseResult - */ - @Override - public ResponseResult profitSettleTokenIdGroup() throws IOException { - return mixTraceApi.profitSettleTokenIdGroup().execute().body(); - } - - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult profitDateGroupList(int pageSize, int pageNo) throws IOException { - return mixTraceApi.profitDateGroupList(pageSize,pageNo).execute().body(); - } - - /** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult profitDateList(String marginCoin, String date, int pageSize, int pageNo) throws IOException { - return mixTraceApi.profitDateList(marginCoin,date,pageSize,pageNo).execute().body(); - } - - /** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult waitProfitDateList(int pageSize, int pageNo) throws IOException { - return mixTraceApi.waitProfitDateList(pageSize,pageNo).execute().body(); - } - - /** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - * @return ResponseResult - */ - @Override - public ResponseResult followerHistoryOrders(String pageSize, String pageNo, String startTime, String endTime) throws IOException { - return mixTraceApi.followerHistoryOrders(pageSize,pageNo,startTime,endTime).execute().body(); - } - - /** - * Get Follower Open Orders - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ - @Override - public ResponseResult followerOrder(String symbol,String productType,int pageSize,int pageNo) throws IOException { - return mixTraceApi.followerOrder(symbol,productType,pageSize,pageNo).execute().body(); - } - - /** - * trader get copytrade symbol - * @return ResponseResult - */ - @Override - public ResponseResult traderSymbols() throws IOException { - return mixTraceApi.traderSymbols().execute().body(); - } - - /** - * trader set copytrade symbol - * @return ResponseResult - */ - @Override - public ResponseResult setUpCopySymbols(MixTraceSetCopyTradeSymbolReq mixTraceSetCopyTradeSymbol) throws IOException { - return mixTraceApi.setUpCopySymbols(mixTraceSetCopyTradeSymbol).execute().body(); - } - - /** - * trader modify tpsl order - * @return ResponseResult - */ - @Override - public ResponseResult modifyTPSL(MixTraceModifyTPSLOrderReq mixTraceModifyTPSLOrderReq) throws IOException { - return mixTraceApi.modifyTPSL(mixTraceModifyTPSLOrderReq).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotAccountService.java deleted file mode 100644 index 17e3d385..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotAccountService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.request.spot.SpotBillQueryReq; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot account service - */ -public interface SpotAccountService { - - /** - * Obtain account assets - * @return ResponseResult - */ - ResponseResult assets(String coin) throws IOException; - - /** - * Get the bill flow - * @param spotBillQueryReq - * @return ResponseResult - */ - ResponseResult bills(SpotBillQueryReq spotBillQueryReq) throws IOException; - - /** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - * @return ResponseResult - */ - ResponseResult transferRecords(String coinId,String fromType,String limit,String after,String before) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotMarketService.java deleted file mode 100644 index 0861fad4..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotMarketService.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot market service - */ -public interface SpotMarketService { - - /** - * Obtain transaction data - * @param symbol - * @param limit - * @return ResponseResult - */ - ResponseResult fills(String symbol,Integer limit) throws IOException; - - /** - * Get depth data - * @param symbol - * @param limit - * @param type - * @return ResponseResult - */ - ResponseResult depth(String symbol,Integer limit,String type) throws IOException; - - /** - * Get a Ticker Information - * @param symbol - * @return ResponseResult - */ - ResponseResult ticker(String symbol) throws IOException; - - /** - * Get all Ticker information - * @return ResponseResult - */ - ResponseResult tickers() throws IOException; - - /** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - * @return ResponseResult - */ - ResponseResult candles(String symbol,String period,String after,String before,Integer limit) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotOrderService.java deleted file mode 100644 index 50b7215a..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotOrderService.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.request.spot.*; -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot order service - */ -public interface SpotOrderService { - - /** - * place an order - * @param spotOrderReq - * @return ResponseResult - */ - ResponseResult orders(SpotOrderReq spotOrderReq) throws IOException; - - /** - * Place orders in batches - * @param spotBatchOrdersReq - * @return ResponseResult - */ - ResponseResult batchOrders(SpotBatchOrdersReq spotBatchOrdersReq) throws IOException; - - /** - * cancel the order - * @param spotCancelOrderReq - * @return ResponseResult - */ - ResponseResult cancelOrder(SpotCancelOrderReq spotCancelOrderReq) throws IOException; - - /** - * Batch cancellation - * @param spotCancelBatchOrderReq - * @return ResponseResult - */ - ResponseResult cancelBatchOrder(SpotCancelBatchOrderReq spotCancelBatchOrderReq) throws IOException; - - /** - * Get order details - * @param spotOrderInfoReq - * @return ResponseResult - */ - ResponseResult orderInfo(SpotOrderInfoReq spotOrderInfoReq) throws IOException; - - /** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param spotOpenOrderReq - * @return ResponseResult - */ - ResponseResult openOrders(SpotOpenOrderReq spotOpenOrderReq) throws IOException; - - /** - * Get historical delegation list - * @param spotHistoryOrderReq - * @return ResponseResult - */ - ResponseResult history(SpotHistoryOrderReq spotHistoryOrderReq) throws IOException; - - /** - * Obtain transaction details - * @param spotFillsOrderReq - * @return ResponseResult - */ - ResponseResult fills(SpotFillsOrderReq spotFillsOrderReq) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPlanService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPlanService.java deleted file mode 100644 index 1cfea7a8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPlanService.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.request.spot.SpotCancelPlanOrderReq; -import com.bitget.openapi.dto.request.spot.SpotModifyPlanReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOpenOrderReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; - -import java.io.IOException; - -public interface SpotPlanService { - - ResponseResult placePlan(SpotPlanOrderReq req) throws IOException; - - ResponseResult modifyPlan(SpotModifyPlanReq req) throws IOException; - - ResponseResult cancelPlan(SpotCancelPlanOrderReq req) throws IOException; - - ResponseResult currentPlan(SpotPlanOpenOrderReq req) throws IOException; - - ResponseResult historyPlan(SpotPlanOpenOrderReq req) throws IOException; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPublicService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPublicService.java deleted file mode 100644 index 24e02142..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotPublicService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.response.ResponseResult; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot public service - */ -public interface SpotPublicService { - - /** - * Get server time - * @return ResponseResult - */ - ResponseResult time() throws IOException; - - /** - * Basic information of currency - * @return ResponseResult - */ - ResponseResult currencies() throws IOException; - - /** - * Get all product information - * @return ResponseResult - */ - ResponseResult products() throws IOException; - - /** - * Get single product information - * @param symbol - * @return ResponseResult - */ - ResponseResult product(String symbol) throws IOException; - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotWalletService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotWalletService.java deleted file mode 100644 index 4afa3961..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/SpotWalletService.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.bitget.openapi.service.spot; - -import com.bitget.openapi.dto.request.spot.SpotSubTransferReq; -import com.bitget.openapi.dto.request.spot.SpotTransferReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalInnerReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalReq; -import com.bitget.openapi.dto.response.ResponseResult; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.POST; -import retrofit2.http.Query; - -import java.io.IOException; - -public interface SpotWalletService { - - /** - * transfer - * @param body - * @return ResponseResult - */ - ResponseResult transfer( SpotTransferReq body) throws IOException;; - - - /** - * subTransfer - * @param body - * @return ResponseResult - */ - ResponseResult subTransfer( SpotSubTransferReq body) throws IOException;; - - /** - * get deposit address - * @return ResponseResult - */ - ResponseResult depositAddress(String coin, - String chain) throws IOException;; - - /** - * withdrawal - * @return ResponseResult - */ - ResponseResult withdrawal(SpotWithdrawalReq body) throws IOException;; - - /** - * withdrawal-inner - * @return ResponseResult - */ - ResponseResult withdrawalInner(SpotWithdrawalInnerReq body) throws IOException;; - - - /** - * get withdrawal record list - * @return ResponseResult - */ - ResponseResult withdrawalList(String coin, - String startTime, - String endTime, - Integer pageNo, - Integer pageSize) throws IOException;; - - /** - * get deposit record list - * @return ResponseResult - */ - ResponseResult depositList(String coin, - String startTime, - String endTime, - Integer pageNo, - Integer pageSize) throws IOException;; -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotAccountServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotAccountServiceImpl.java deleted file mode 100644 index cb34828d..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotAccountServiceImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotAccountApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.spot.SpotBillQueryReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotAccountService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot account serviceImpl - */ -public class SpotAccountServiceImpl implements SpotAccountService { - - private final SpotAccountApi spotAccountApi; - - public SpotAccountServiceImpl(ApiClient client) { - spotAccountApi = client.create(SpotAccountApi.class); - } - - /** - * Obtain account assets - * @return ResponseResult - */ - @Override - public ResponseResult assets(String coin) throws IOException { - return spotAccountApi.assets(coin).execute().body(); - } - - /** - * Get the bill flow - * @param spotBillQueryReq - * @return ResponseResult - */ - @Override - public ResponseResult bills(SpotBillQueryReq spotBillQueryReq) throws IOException { - return spotAccountApi.bills(spotBillQueryReq).execute().body(); - } - - /** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - * @return ResponseResult - */ - @Override - public ResponseResult transferRecords(String coinId, String fromType, String limit, String after, String before) throws IOException { - return spotAccountApi.transferRecords(coinId,fromType,limit,after,before).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotMarketServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotMarketServiceImpl.java deleted file mode 100644 index d2fd31a2..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotMarketServiceImpl.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotMarketApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotMarketService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot market serviceImpl - */ -public class SpotMarketServiceImpl implements SpotMarketService { - - private final SpotMarketApi spotMarketApi; - - public SpotMarketServiceImpl(ApiClient client){ - spotMarketApi = client.create(SpotMarketApi.class); - } - - /** - * Obtain transaction data - * @param symbol - * @param limit - * @return ResponseResult - */ - @Override - public ResponseResult fills(String symbol,Integer limit) throws IOException { - return spotMarketApi.fills(symbol,limit).execute().body(); - } - - /** - * Get depth data - * @param symbol - * @param limit - * @param type - * @return ResponseResult - */ - @Override - public ResponseResult depth(String symbol, Integer limit, String type) throws IOException { - return spotMarketApi.depth(symbol,limit,type).execute().body(); - } - - /** - * Get a Ticker Information - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult ticker(String symbol) throws IOException { - return spotMarketApi.ticker(symbol).execute().body(); - } - - /** - * Get all Ticker information - * @return ResponseResult - */ - @Override - public ResponseResult tickers() throws IOException { - return spotMarketApi.tickers().execute().body(); - } - - /** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - * @return ResponseResult - */ - @Override - public ResponseResult candles(String symbol,String period,String after,String before,Integer limit) throws IOException{ - return spotMarketApi.candles(symbol,period,after,before,limit).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotOrderServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotOrderServiceImpl.java deleted file mode 100644 index 99644104..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotOrderServiceImpl.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotOrderApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.spot.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotOrderService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot order serviceImpl - */ -public class SpotOrderServiceImpl implements SpotOrderService { - - private final SpotOrderApi spotOrderApi; - - public SpotOrderServiceImpl (ApiClient client){ - spotOrderApi = client.create(SpotOrderApi.class); - } - - /** - * place an order - * @param spotOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult orders(SpotOrderReq spotOrderReq) throws IOException { - return spotOrderApi.orders(spotOrderReq).execute().body(); - } - - /** - * Place orders in batches - * @param spotBatchOrdersReq - * @return ResponseResult - */ - @Override - public ResponseResult batchOrders(SpotBatchOrdersReq spotBatchOrdersReq) throws IOException { - return spotOrderApi.batchOrders(spotBatchOrdersReq).execute().body(); - } - - /** - * cancel the order - * @param spotCancelOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult cancelOrder(SpotCancelOrderReq spotCancelOrderReq) throws IOException { - return spotOrderApi.cancelOrder(spotCancelOrderReq).execute().body(); - } - - /** - * Batch cancellation - * @param spotCancelBatchOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult cancelBatchOrder(SpotCancelBatchOrderReq spotCancelBatchOrderReq) throws IOException { - return spotOrderApi.cancelBatchOrder(spotCancelBatchOrderReq).execute().body(); - } - - /** - * Get order details - * @param spotOrderInfoReq - * @return ResponseResult - */ - @Override - public ResponseResult orderInfo(SpotOrderInfoReq spotOrderInfoReq) throws IOException { - return spotOrderApi.orderInfo(spotOrderInfoReq).execute().body(); - } - - /** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param spotOpenOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult openOrders(SpotOpenOrderReq spotOpenOrderReq) throws IOException { - return spotOrderApi.openOrders(spotOpenOrderReq).execute().body(); - } - - /** - * Get historical delegation list - * @param spotHistoryOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult history(SpotHistoryOrderReq spotHistoryOrderReq) throws IOException { - return spotOrderApi.history(spotHistoryOrderReq).execute().body(); - } - - /** - * Obtain transaction details - * @param spotFillsOrderReq - * @return ResponseResult - */ - @Override - public ResponseResult fills(SpotFillsOrderReq spotFillsOrderReq) throws IOException { - return spotOrderApi.fills(spotFillsOrderReq).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPlanServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPlanServiceImpl.java deleted file mode 100644 index c933a050..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPlanServiceImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotPlanApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.spot.SpotCancelPlanOrderReq; -import com.bitget.openapi.dto.request.spot.SpotModifyPlanReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOpenOrderReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotPlanService; - -import java.io.IOException; - -public class SpotPlanServiceImpl implements SpotPlanService { - - private final SpotPlanApi spotPlanApi; - - public SpotPlanServiceImpl(ApiClient client){ - spotPlanApi = client.create(SpotPlanApi.class); - } - - @Override - public ResponseResult placePlan(SpotPlanOrderReq req) throws IOException { - return spotPlanApi.placePlan(req).execute().body(); - } - - @Override - public ResponseResult modifyPlan(SpotModifyPlanReq req) throws IOException { - return spotPlanApi.modifyPlan(req).execute().body(); - } - - @Override - public ResponseResult cancelPlan(SpotCancelPlanOrderReq req) throws IOException { - return spotPlanApi.cancelPlan(req).execute().body(); - } - - @Override - public ResponseResult currentPlan(SpotPlanOpenOrderReq req) throws IOException { - return spotPlanApi.currentPlan(req).execute().body(); - } - - @Override - public ResponseResult historyPlan(SpotPlanOpenOrderReq req) throws IOException { - return spotPlanApi.historyPlan(req).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPublicServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPublicServiceImpl.java deleted file mode 100644 index 6589b9f8..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotPublicServiceImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotPublicApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotPublicService; -import java.io.IOException; - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot public serviceImpl - */ -public class SpotPublicServiceImpl implements SpotPublicService { - - private final SpotPublicApi spotPublicApi; - - public SpotPublicServiceImpl(ApiClient client) { - spotPublicApi = client.create(SpotPublicApi.class); - } - - /** - * Get server time - * @return ResponseResult - */ - @Override - public ResponseResult time() throws IOException { - return spotPublicApi.time().execute().body(); - } - - /** - * Basic information of currency - * @return ResponseResult - */ - @Override - public ResponseResult currencies() throws IOException { - return spotPublicApi.currencies().execute().body(); - } - - /** - * Get all product information - * @return ResponseResult - */ - @Override - public ResponseResult products() throws IOException{ - return spotPublicApi.products().execute().body(); - } - - /** - * Get single product information - * @param symbol - * @return ResponseResult - */ - @Override - public ResponseResult product(String symbol) throws IOException{ - return spotPublicApi.product(symbol).execute().body(); - } - -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotWalletServiceImpl.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotWalletServiceImpl.java deleted file mode 100644 index 7d9254a7..00000000 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/spot/impl/SpotWalletServiceImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.bitget.openapi.service.spot.impl; - -import com.bitget.openapi.api.spot.SpotPublicApi; -import com.bitget.openapi.api.spot.SpotWalletApi; -import com.bitget.openapi.common.client.ApiClient; -import com.bitget.openapi.dto.request.spot.SpotSubTransferReq; -import com.bitget.openapi.dto.request.spot.SpotTransferReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalInnerReq; -import com.bitget.openapi.dto.request.spot.SpotWithdrawalReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.service.spot.SpotWalletService; - -import java.io.IOException; - -public class SpotWalletServiceImpl implements SpotWalletService { - - private final SpotWalletApi spotWalletApi; - - public SpotWalletServiceImpl(ApiClient client) { - spotWalletApi = client.create(SpotWalletApi.class); - } - - @Override - public ResponseResult transfer(SpotTransferReq body) throws IOException { - return spotWalletApi.transfer(body).execute().body(); - } - - @Override - public ResponseResult subTransfer(SpotSubTransferReq body) throws IOException { - return spotWalletApi.subTransfer(body).execute().body(); - } - - @Override - public ResponseResult depositAddress(String coin, String chain) throws IOException { - return spotWalletApi.depositAddress(coin,chain).execute().body(); - } - - @Override - public ResponseResult withdrawal(SpotWithdrawalReq body) throws IOException { - return spotWalletApi.withdrawal(body).execute().body(); - } - - @Override - public ResponseResult withdrawalInner(SpotWithdrawalInnerReq body) throws IOException { - return spotWalletApi.withdrawalInner(body).execute().body(); - } - - @Override - public ResponseResult withdrawalList(String coin, String startTime, String endTime, Integer pageNo, Integer pageSize) throws IOException { - return spotWalletApi.withdrawalList(coin,startTime,endTime,pageNo,pageSize).execute().body(); - } - - @Override - public ResponseResult depositList(String coin, String startTime, String endTime, Integer pageNo, Integer pageSize) throws IOException { - return spotWalletApi.depositList(coin,startTime,endTime,pageNo,pageSize).execute().body(); - } -} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixAccountService.java new file mode 100644 index 00000000..537c3e77 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixAccountService.java @@ -0,0 +1,50 @@ +package com.bitget.openapi.service.v1.mix; + +import com.bitget.openapi.api.v1.MixAccountApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixAccountService { + + private final MixAccountApi mixAccountApi; + + public MixAccountService(ApiClient client) { + mixAccountApi = client.create(MixAccountApi.class); + } + + public ResponseResult getAccount(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.account(paramMap).execute().body()); + } + + public ResponseResult getAccounts(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.accounts(paramMap).execute().body()); + } + + public ResponseResult setLeverage(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setLeverage(paramMap).execute().body()); + } + + public ResponseResult setMargin(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setMargin(paramMap).execute().body()); + } + + public ResponseResult setMarginMode(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setMarginMode(paramMap).execute().body()); + } + + public ResponseResult setPositionMode(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setPositionMode(paramMap).execute().body()); + } + + public ResponseResult singlePosition(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.singlePosition(paramMap).execute().body()); + } + + public ResponseResult allPosition(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.allPosition(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixMarketService.java new file mode 100644 index 00000000..9d9e961e --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixMarketService.java @@ -0,0 +1,43 @@ +package com.bitget.openapi.service.v1.mix; + +import com.bitget.openapi.api.v1.MixMarketApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixMarketService { + + private final MixMarketApi mixMarketApi; + + public MixMarketService(ApiClient client) { + mixMarketApi = client.create(MixMarketApi.class); + } + + public ResponseResult contracts(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.contracts(paramMap).execute().body()); + } + + public ResponseResult depth(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.depth(paramMap).execute().body()); + } + + public ResponseResult ticker(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.ticker(paramMap).execute().body()); + } + + public ResponseResult tickers(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.tickers(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.fills(paramMap).execute().body()); + } + + public ResponseResult candles(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.candles(paramMap).execute().body()); + } + +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixOrderService.java new file mode 100644 index 00000000..2717b010 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/mix/MixOrderService.java @@ -0,0 +1,87 @@ +package com.bitget.openapi.service.v1.mix; + +import com.bitget.openapi.api.v1.MixOrderApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixOrderService { + + private final MixOrderApi mixOrderApi; + + public MixOrderService(ApiClient client) { + mixOrderApi = client.create(MixOrderApi.class); + } + + public ResponseResult placeOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.placeOrder(paramMap).execute().body()); + } + + public ResponseResult batchOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.batchOrders(paramMap).execute().body()); + } + + public ResponseResult cancelOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.cancelOrder(paramMap).execute().body()); + } + + public ResponseResult cancelBatchOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.cancelBatchOrder(paramMap).execute().body()); + } + + public ResponseResult history(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.history(paramMap).execute().body()); + } + + public ResponseResult current(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.current(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.fills(paramMap).execute().body()); + } + + public ResponseResult placePlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.placePlan(paramMap).execute().body()); + } + + public ResponseResult cancelPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.cancelPlan(paramMap).execute().body()); + } + + public ResponseResult currentPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.currentPlan(paramMap).execute().body()); + } + + public ResponseResult historyPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.historyPlan(paramMap).execute().body()); + } + + public ResponseResult traderCloseOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderCloseOrder(paramMap).execute().body()); + } + + public ResponseResult traderCurrentOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderCurrentOrders(paramMap).execute().body()); + } + + public ResponseResult traderHistoryTrack(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderHistoryTrack(paramMap).execute().body()); + } + + public ResponseResult followerCloseByTrackingNo(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerCloseByTrackingNo(paramMap).execute().body()); + } + + public ResponseResult followerOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerOrder(paramMap).execute().body()); + } + + public ResponseResult followerHistoryOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerHistoryOrders(paramMap).execute().body()); + } + +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotAccountService.java new file mode 100644 index 00000000..3dffe9c1 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotAccountService.java @@ -0,0 +1,39 @@ +package com.bitget.openapi.service.v1.spot; + +import com.bitget.openapi.api.v1.SpotAccountApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +/** + * @Author: bitget + * @Date: 2021-05-31 15:08 + * @DES: + */ +public class SpotAccountService { + + private final SpotAccountApi spotAccountApi; + + public SpotAccountService(ApiClient client) { + spotAccountApi = client.create(SpotAccountApi.class); + } + + public ResponseResult getInfo(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.getInfo(paramMap).execute().body()); + } + + public ResponseResult assetsLite(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.assetsLite(paramMap).execute().body()); + } + + public ResponseResult bills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.bills(paramMap).execute().body()); + } + + public ResponseResult transferRecords(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.transferRecords(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotMarketService.java new file mode 100644 index 00000000..a5d86d1e --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotMarketService.java @@ -0,0 +1,50 @@ +package com.bitget.openapi.service.v1.spot; + +import com.bitget.openapi.api.v1.SpotMarketApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotMarketService { + + private final SpotMarketApi spotMarketApi; + + public SpotMarketService(ApiClient client) { + spotMarketApi = client.create(SpotMarketApi.class); + } + + public ResponseResult currencies() throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.currencies().execute().body()); + } + + public ResponseResult products() throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.products().execute().body()); + } + + public ResponseResult product(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.product(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.fills(paramMap).execute().body()); + } + + public ResponseResult depth(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.depth(paramMap).execute().body()); + } + + public ResponseResult ticker(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.ticker(paramMap).execute().body()); + } + + public ResponseResult tickers() throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.tickers().execute().body()); + } + + public ResponseResult candles(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.candles(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotOrderService.java new file mode 100644 index 00000000..677fb104 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotOrderService.java @@ -0,0 +1,76 @@ +package com.bitget.openapi.service.v1.spot; + +import com.bitget.openapi.api.v1.SpotOrderApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotOrderService { + + private final SpotOrderApi spotOrderApi; + + public SpotOrderService(ApiClient client){ + spotOrderApi = client.create(SpotOrderApi.class); + } + + public ResponseResult orders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.orders(paramMap).execute().body()); + } + + public ResponseResult batchOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.batchOrders(paramMap).execute().body()); + } + + public ResponseResult cancelOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.cancelOrder(paramMap).execute().body()); + } + + public ResponseResult cancelBatchOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.cancelBatchOrder(paramMap).execute().body()); + } + + public ResponseResult openOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.openOrders(paramMap).execute().body()); + } + + public ResponseResult history(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.history(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.fills(paramMap).execute().body()); + } + + + public ResponseResult placePlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.placePlan(paramMap).execute().body()); + } + + public ResponseResult cancelPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.cancelPlan(paramMap).execute().body()); + } + + public ResponseResult currentPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.currentPlan(paramMap).execute().body()); + } + + public ResponseResult historyPlan(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.historyPlan(paramMap).execute().body()); + } + + public ResponseResult closeTrackingOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderCloseTrackingOrder(paramMap).execute().body()); + } + + public ResponseResult orderCurrentList(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderOrderCurrentList(paramMap).execute().body()); + } + + public ResponseResult orderHistoryList(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderOrderHistoryList(paramMap).execute().body()); + } + +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotWalletService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotWalletService.java new file mode 100644 index 00000000..3a11f41d --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v1/spot/SpotWalletService.java @@ -0,0 +1,38 @@ +package com.bitget.openapi.service.v1.spot; + +import com.bitget.openapi.api.v1.SpotWalletApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotWalletService { + + private final SpotWalletApi spotWalletApi; + + public SpotWalletService(ApiClient client){ + spotWalletApi = client.create(SpotWalletApi.class); + } + + public ResponseResult transfer(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.transfer(paramMap).execute().body()); + } + + public ResponseResult depositAddress(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.depositAddress(paramMap).execute().body()); + } + + public ResponseResult withdrawal(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.withdrawal(paramMap).execute().body()); + } + + public ResponseResult withdrawalList(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.withdrawalList(paramMap).execute().body()); + } + + public ResponseResult depositList(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.depositList(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixAccountService.java new file mode 100644 index 00000000..26f72012 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixAccountService.java @@ -0,0 +1,50 @@ +package com.bitget.openapi.service.v2.mix; + +import com.bitget.openapi.api.v2.MixAccountApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixAccountService { + + private final MixAccountApi mixAccountApi; + + public MixAccountService(ApiClient client) { + mixAccountApi = client.create(MixAccountApi.class); + } + + public ResponseResult getAccount(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.account(paramMap).execute().body()); + } + + public ResponseResult getAccounts(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.accounts(paramMap).execute().body()); + } + + public ResponseResult setLeverage(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setLeverage(paramMap).execute().body()); + } + + public ResponseResult setMargin(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setMargin(paramMap).execute().body()); + } + + public ResponseResult setMarginMode(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setMarginMode(paramMap).execute().body()); + } + + public ResponseResult setPositionMode(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.setPositionMode(paramMap).execute().body()); + } + + public ResponseResult singlePosition(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.singlePosition(paramMap).execute().body()); + } + + public ResponseResult allPosition(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixAccountApi.allPosition(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixMarketService.java new file mode 100644 index 00000000..01b3d90e --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixMarketService.java @@ -0,0 +1,42 @@ +package com.bitget.openapi.service.v2.mix; + +import com.bitget.openapi.api.v2.MixMarketApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixMarketService { + + private final MixMarketApi mixMarketApi; + + public MixMarketService(ApiClient client) { + mixMarketApi = client.create(MixMarketApi.class); + } + + public ResponseResult contracts(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.contracts(paramMap).execute().body()); + } + + public ResponseResult orderbook(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.orderbook(paramMap).execute().body()); + } + + public ResponseResult ticker(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.ticker(paramMap).execute().body()); + } + + public ResponseResult tickers(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.tickers(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.fills(paramMap).execute().body()); + } + + public ResponseResult candles(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixMarketApi.candles(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixOrderService.java new file mode 100644 index 00000000..e72199d5 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/mix/MixOrderService.java @@ -0,0 +1,91 @@ +package com.bitget.openapi.service.v2.mix; + +import com.bitget.openapi.api.v2.MixOrderApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class MixOrderService { + + private final MixOrderApi mixOrderApi; + + public MixOrderService(ApiClient client) { + mixOrderApi = client.create(MixOrderApi.class); + } + + public ResponseResult placeOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.placeOrder(paramMap).execute().body()); + } + + public ResponseResult batchPlaceOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.batchPlaceOrder(paramMap).execute().body()); + } + + public ResponseResult cancelOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.cancelOrder(paramMap).execute().body()); + } + + public ResponseResult batchCancelOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.batchCancelOrders(paramMap).execute().body()); + } + + public ResponseResult ordersHistory(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.ordersHistory(paramMap).execute().body()); + } + + public ResponseResult ordersPending(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.ordersPending(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.fills(paramMap).execute().body()); + } + + + + public ResponseResult placePlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.placePlanOrder(paramMap).execute().body()); + } + + public ResponseResult cancelPlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.cancelPlanOrder(paramMap).execute().body()); + } + + public ResponseResult ordersPlanPending(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.ordersPlanPending(paramMap).execute().body()); + } + + public ResponseResult ordersPlanHistory(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.ordersPlanHistory(paramMap).execute().body()); + } + + + + public ResponseResult traderOrderClosePositions(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderOrderClosePositions(paramMap).execute().body()); + } + + public ResponseResult traderOrderCurrentTrack(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderOrderCurrentTrack(paramMap).execute().body()); + } + + public ResponseResult traderOrderHistoryTrack(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.traderOrderHistoryTrack(paramMap).execute().body()); + } + + public ResponseResult followerClosePositions(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerClosePositions(paramMap).execute().body()); + } + + public ResponseResult followerQueryCurrentOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerQueryCurrentOrders(paramMap).execute().body()); + } + + public ResponseResult followerQueryHistoryOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(mixOrderApi.followerQueryHistoryOrders(paramMap).execute().body()); + } + +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotAccountService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotAccountService.java new file mode 100644 index 00000000..056a6770 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotAccountService.java @@ -0,0 +1,39 @@ +package com.bitget.openapi.service.v2.spot; + +import com.bitget.openapi.api.v2.SpotAccountApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +/** + * @Author: bitget + * @Date: 2021-05-31 15:08 + * @DES: + */ +public class SpotAccountService { + + private final SpotAccountApi spotAccountApi; + + public SpotAccountService(ApiClient client) { + spotAccountApi = client.create(SpotAccountApi.class); + } + + public ResponseResult info() throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.info().execute().body()); + } + + public ResponseResult assets(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.assets(paramMap).execute().body()); + } + + public ResponseResult bills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.bills(paramMap).execute().body()); + } + + public ResponseResult transferRecords(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotAccountApi.transferRecords(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotMarketService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotMarketService.java new file mode 100644 index 00000000..769771c2 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotMarketService.java @@ -0,0 +1,42 @@ +package com.bitget.openapi.service.v2.spot; + +import com.bitget.openapi.api.v2.SpotMarketApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotMarketService { + + private final SpotMarketApi spotMarketApi; + + public SpotMarketService(ApiClient client) { + spotMarketApi = client.create(SpotMarketApi.class); + } + + public ResponseResult coins(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.coins(paramMap).execute().body()); + } + + public ResponseResult symbols(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.symbols(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.fills(paramMap).execute().body()); + } + + public ResponseResult orderbook(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.orderbook(paramMap).execute().body()); + } + + public ResponseResult tickers() throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.tickers().execute().body()); + } + + public ResponseResult candles(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotMarketApi.candles(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotOrderService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotOrderService.java new file mode 100644 index 00000000..01b4008f --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotOrderService.java @@ -0,0 +1,79 @@ +package com.bitget.openapi.service.v2.spot; + +import com.bitget.openapi.api.v2.SpotOrderApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotOrderService { + + private final SpotOrderApi spotOrderApi; + + public SpotOrderService(ApiClient client){ + spotOrderApi = client.create(SpotOrderApi.class); + } + + public ResponseResult placeOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.placeOrder(paramMap).execute().body()); + } + + public ResponseResult batchOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.batchOrders(paramMap).execute().body()); + } + + public ResponseResult cancelOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.cancelOrder(paramMap).execute().body()); + } + + public ResponseResult batchCancelOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.batchCancelOrder(paramMap).execute().body()); + } + + public ResponseResult unfilledOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.unfilledOrders(paramMap).execute().body()); + } + + public ResponseResult historyOrders(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.historyOrders(paramMap).execute().body()); + } + + public ResponseResult fills(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.fills(paramMap).execute().body()); + } + + + + public ResponseResult placePlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.placePlanOrder(paramMap).execute().body()); + } + + public ResponseResult cancelPlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.cancelPlanOrder(paramMap).execute().body()); + } + + public ResponseResult currentPlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.currentPlanOrder(paramMap).execute().body()); + } + + public ResponseResult historyPlanOrder(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.historyPlanOrder(paramMap).execute().body()); + } + + + + public ResponseResult traderOrderCloseTracking(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderOrderCloseTracking(paramMap).execute().body()); + } + + public ResponseResult traderOrderCurrentTrack(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderOrderCurrentTrack(paramMap).execute().body()); + } + + public ResponseResult traderOrderHistoryTrack(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotOrderApi.traderOrderHistoryTrack(paramMap).execute().body()); + } + +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotWalletService.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotWalletService.java new file mode 100644 index 00000000..a9bf365a --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/service/v2/spot/SpotWalletService.java @@ -0,0 +1,38 @@ +package com.bitget.openapi.service.v2.spot; + +import com.bitget.openapi.api.v2.SpotWalletApi; +import com.bitget.openapi.common.client.ApiClient; +import com.bitget.openapi.common.utils.ResponseUtils; +import com.bitget.openapi.dto.response.ResponseResult; + +import java.io.IOException; +import java.util.Map; + +public class SpotWalletService { + + private final SpotWalletApi spotWalletApi; + + public SpotWalletService(ApiClient client){ + spotWalletApi = client.create(SpotWalletApi.class); + } + + public ResponseResult transfer(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.transfer(paramMap).execute().body()); + } + + public ResponseResult depositAddress(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.depositAddress(paramMap).execute().body()); + } + + public ResponseResult withdrawal(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.withdrawal(paramMap).execute().body()); + } + + public ResponseResult withdrawalRecords(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.withdrawalRecords(paramMap).execute().body()); + } + + public ResponseResult depositRecords(Map paramMap) throws IOException { + return ResponseUtils.handleResponse(spotWalletApi.depositRecords(paramMap).execute().body()); + } +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsClient.java index abf77162..c6713da1 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsClient.java @@ -2,6 +2,7 @@ import com.bitget.openapi.dto.request.ws.SubscribeReq; import com.bitget.openapi.dto.request.ws.WsBaseReq; + import java.util.List; public interface BitgetWsClient { @@ -14,7 +15,7 @@ public interface BitgetWsClient { void subscribe(List list); - void subscribe(List list,SubscriptionListener listener); + void subscribe(List list, SubscriptionListener listener); void login(); } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsListener.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsListener.java index a31c1820..e01eeae3 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsListener.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsListener.java @@ -1,5 +1,6 @@ package com.bitget.openapi.ws; +import lombok.extern.slf4j.Slf4j; import okhttp3.Response; import okhttp3.WebSocket; import okhttp3.WebSocketListener; @@ -14,8 +15,8 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +@Slf4j public class BitgetWsListener extends WebSocketListener { - ScheduledExecutorService service; private BitgetWsClient bitgetWsClient; @@ -25,33 +26,30 @@ public BitgetWsListener(BitgetWsClient bitgetWsClient) { @Override public void onOpen(final WebSocket webSocket, final Response response) { - //连接成功后,设置定时器,每隔25s,自动向服务器发送心跳,保持与服务器连接 Runnable runnable = new Runnable() { public void run() { - // task to run goes here bitgetWsClient.sendMessage("ping"); } }; service = Executors.newSingleThreadScheduledExecutor(); - // 第二个参数为首次执行的延时时间,第三个参数为定时执行的间隔时间 service.scheduleAtFixedRate(runnable, 25, 25, TimeUnit.SECONDS); } @Override public void onClosing(WebSocket webSocket, int code, String reason) { - System.out.println("Connection is about to disconnect!"); + log.info("Connection is about to disconnect!"); webSocket.close(1000, "Long time no message was sent or received!"); webSocket = null; } @Override public void onClosed(final WebSocket webSocket, final int code, final String reason) { - System.out.println("Connection dropped!"); + log.info("Connection dropped!"); } @Override public void onFailure(final WebSocket webSocket, final Throwable t, final Response response) { - System.out.println("Connection failed,Please reconnect!"); + log.info("Connection failed,Please reconnect!"); if (Objects.nonNull(service)) { service.shutdown(); } @@ -65,7 +63,6 @@ public void onMessage(final WebSocket webSocket, final ByteString bytes) { @Override public void onMessage(final WebSocket webSocket, final String message) { - } // 解压函数 diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java index 61b91a58..31b065e3 100644 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java +++ b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java @@ -15,24 +15,20 @@ public class BaseTest { /** * The user apiKey is replaced with his own */ - private final String apiKey = "bg_fcdae1a6714c08a554bf4f62a6da9563"; + private final String apiKey = ""; /** * The user's secretKey is replaced with his own */ - private final String secretKey = "5ccea28f627c4ac772a8044cbe0aa2792df6688414c062b3761cc3d6d692a298"; + private final String secretKey = ""; /** * Replace the password with your own */ - private final String passphrase = "1r1b6uX6PQ9tbKwb"; + private final String passphrase = ""; /** * Bitget open api root path */ - // private final String baseUrl = "https://api.bitget.com"; - /** - * Bitget open api root path - */ - //private final String baseUrl = "https://api.bitget.com"; + private final ClientParameter parameter = ClientParameter.builder().apiKey(apiKey).secretKey(secretKey).passphrase(passphrase).baseUrl(baseUrl) .locale(SupportedLocaleEnum.ZH_CN.getName()).build(); diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java new file mode 100644 index 00000000..fd2c6859 --- /dev/null +++ b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java @@ -0,0 +1,65 @@ +package com.bitget.openapi.api; + +import com.alibaba.fastjson.JSON; +import com.bitget.openapi.BaseTest; +import com.bitget.openapi.dto.response.ResponseResult; +import com.google.common.collect.Maps; +import org.junit.Test; + +import java.io.IOException; +import java.util.Map; + +public class MixOrderTest extends BaseTest { + + @Test + public void placeOrder() throws IOException { + try { + Map paramMap = Maps.newHashMap(); + paramMap.put("symbol", "BTCUSDT_UMCBL"); + paramMap.put("marginCoin", "USDT"); + paramMap.put("side", "open_long"); + paramMap.put("orderType", "limit"); + paramMap.put("price", "27012.1"); + paramMap.put("size", "0.01"); + paramMap.put("timInForceValue", "normal"); + ResponseResult result = bitgetRestClient.bitget().v1().mixOrder().placeOrder(paramMap); + System.out.println(JSON.toJSONString(result)); + } catch (Exception e) { + System.out.println(e); + throw e; + } + } + + @Test + public void post() throws IOException { + Map paramMap = Maps.newHashMap(); + paramMap.put("symbol", "BTCUSDT_UMCBL"); + paramMap.put("marginCoin", "USDT"); + paramMap.put("side", "open_long"); + paramMap.put("orderType", "limit"); + paramMap.put("price", "27012.1"); + paramMap.put("size", "0.01"); + paramMap.put("timInForceValue", "normal"); + ResponseResult result = bitgetRestClient.bitget().v1().request().post("/api/mix/v1/order/placeOrder", paramMap); + System.out.println(JSON.toJSONString(result)); + } + + @Test + public void get() throws IOException { + Map paramMap = Maps.newHashMap(); + paramMap.put("symbol", "BTCUSDT_UMCBL"); + paramMap.put("startTime", "1695632659703"); + paramMap.put("endTime", "1695635659703"); + ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/order/history", paramMap); + System.out.println(JSON.toJSONString(result)); + } + + @Test + public void getWithEmptyParams() throws IOException { + ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/market/contract-vip-level", Maps.newHashMap()); + System.out.println(JSON.toJSONString(result)); + + result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/market/contract-vip-level"); + System.out.println(JSON.toJSONString(result)); + } +} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/broker/BrokerAccountTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/broker/BrokerAccountTest.java deleted file mode 100644 index 3094e93d..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/broker/BrokerAccountTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.bitget.openapi.broker; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.broker.BrokerSubCreateReq; -import com.bitget.openapi.dto.response.ResponseResult; -import org.junit.Test; - -import java.io.IOException; - -public class BrokerAccountTest extends BaseTest { - - - //passed - @Test - public void info() throws IOException { - ResponseResult result = bitgetRestClient.broker().bitget().account().info(); - System.out.println(JSON.toJSONString(result)); - } - - - //passed - @Test - public void subCreate() throws IOException { - BrokerSubCreateReq build = BrokerSubCreateReq.builder() - .build(); - ResponseResult result = bitgetRestClient.broker().bitget().account().subCreate(build); - System.out.println(JSON.toJSONString(result)); - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/MatchTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/MatchTypeEnum.java deleted file mode 100644 index eed0c7d4..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/MatchTypeEnum.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.bitget.openapi.enums; - -/** - * ( Match Type ) - * - * @author jian.li - * @create 2020-06-02 10:51 - */ -public enum MatchTypeEnum { - LIMIT("0", "限价"), - MARKET("1", "市价"), - ; - - - private String code; - - private String value; - - private MatchTypeEnum(String code, String value) { - this.code = code; - this.value = value; - } - - public static OrderTypeEnum toOrderTypeEnum(String match_price) { - MatchTypeEnum matchType = MatchTypeEnum.toEnum(match_price); - return matchType.equals(MatchTypeEnum.LIMIT) ? OrderTypeEnum.LIMIT : OrderTypeEnum.MARKET; - } - - public static MatchTypeEnum toEnum(String code) { - for (MatchTypeEnum ver : MatchTypeEnum.values()) { - if (ver.getCode().equals(code)) { - return ver; - } - } - StringBuilder str = new StringBuilder(); - str.append("the argument of ").append(code).append(" have no correspondence MatchTypeEnum enum!"); - throw new IllegalArgumentException(str.toString()); - } - - public static MatchTypeEnum of(String value) { - for (MatchTypeEnum ver : MatchTypeEnum.values()) { - if (ver.getValue().equals(value)) { - return ver; - } - } - StringBuilder str = new StringBuilder(); - str.append("the argument of ").append(value).append(" have no correspondence MatchTypeEnum enum!"); - throw new IllegalArgumentException(str.toString()); - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/OrderTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/OrderTypeEnum.java deleted file mode 100644 index ff7f38a7..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/OrderTypeEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.enums; - - -public enum OrderTypeEnum { - - LIMIT(0), - MARKET(1); - - private Integer code; - - - OrderTypeEnum(Integer code) { - this.code = code; - } - - public static OrderTypeEnum toEnum(Integer code) { - for (OrderTypeEnum item : OrderTypeEnum.values()) { - if (item.code.equals(code)) { - return item; - } - } - StringBuilder str = new StringBuilder(); - str.append("the argument of ").append(code).append(" have no correspondence OrderTypeEnum enum!"); - throw new IllegalArgumentException(str.toString()); - } - - public Integer getCode() { - return code; - } - - public boolean isThisType(OrderTypeEnum orderTypeEnum) { - return this == orderTypeEnum; - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SideEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SideEnum.java deleted file mode 100644 index 3581d82f..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SideEnum.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.bitget.openapi.enums; - -import lombok.AllArgsConstructor; - -/** - * (Single direction: 1: open much 2: open empty 3: level much 4: level empty ) - * - * @author jian.li - * @create 2020-06-02 10:46 - */ -@AllArgsConstructor -public enum SideEnum { - /** - * open much - */ - OPEN_LONG("1"), - /** - * open empty - */ - OPEN_SHORT("2"), - /** - * level much - */ - CLOSE_LONG("3"), - /** - * level empty - */ - CLOSE_SHORT("4"), - ; - - private final String side; - - /** - * Judge whether it is open position - * - * @param side - * @return - */ - public static boolean isOpen(String side) { - if (side.equals(SideEnum.OPEN_LONG.getSide()) - || side.equals(SideEnum.OPEN_SHORT.getSide())) { - return true; - } - return false; - - } - - /** - * Judge whether the position is closed - * - * @param side - * @return - */ - public static boolean isClose(String side) { - if (side.equals(SideEnum.CLOSE_LONG.getSide()) - || side.equals(SideEnum.CLOSE_SHORT.getSide())) { - return true; - } - return false; - } - - public String getSide() { - return side; - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SpotDepthTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SpotDepthTypeEnum.java deleted file mode 100644 index ae82982b..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SpotDepthTypeEnum.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.bitget.openapi.enums; - -import lombok.Getter; - -@Getter -public enum SpotDepthTypeEnum { - - /** - * step0 - */ - STEP0("step0"), - - /** - * step1 - */ - STEP1("step1"), - - /** - * step2 - */ - STEP2("step2"), - - /** - * step3 - */ - STEP3("step3"), - - /** - * step4 - */ - STEP4("step4"), - - /** - * step5 - */ - STEP5("step5"), - ; - - private final String code; - - SpotDepthTypeEnum(String code) { - this.code = code; - } - - public static SpotDepthTypeEnum toEnum(String code) { - for (SpotDepthTypeEnum item : SpotDepthTypeEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SupportedLocaleEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SupportedLocaleEnum.java deleted file mode 100644 index 71681169..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/SupportedLocaleEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.bitget.openapi.enums; - -import lombok.Getter; - -@Getter -public enum SupportedLocaleEnum { - EN_US("en-US", "English"), - ZH_CN("zh-CN", "Simplified chinese"), - JA_JP("ja-JP", "Japanese"), - KO_KR("ko-KR", "Simplified chinese"), - ; - - private final String name; - private final String comment; - - SupportedLocaleEnum(String name, String comment) { - this.name = name; - this.comment = comment; - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldModeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldModeEnum.java deleted file mode 100644 index cd87ef6e..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldModeEnum.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum MixHoldModeEnum { - - SINGLE_HOLD( "single_hold"), - DOUBLE_HOLD( "double_hold"); - - private final String code; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldSideEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldSideEnum.java deleted file mode 100644 index 04976a4a..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixHoldSideEnum.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum MixHoldSideEnum { - - LONG("long"), //Multi warehouse - - SHORT("short"), //Empty position - ; - - private final String code; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixMarginModeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixMarginModeEnum.java deleted file mode 100644 index e201a534..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixMarginModeEnum.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Margin mode - */ -@AllArgsConstructor -@Getter -public enum MixMarginModeEnum { - - CROSSED( "crossed"),// Full warehouse - - FIXED( "fixed"); // Warehouse by warehouse - - private final String code; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixOrderTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixOrderTypeEnum.java deleted file mode 100644 index d4df47b8..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixOrderTypeEnum.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum MixOrderTypeEnum { - - LIMIT("limit"), - MARKET("market"); - - private String code; -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixPlanTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixPlanTypeEnum.java deleted file mode 100644 index 7a277ffb..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixPlanTypeEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@Getter -@AllArgsConstructor -public enum MixPlanTypeEnum { - NORMAL_PLAN( "normal_plan"), - PROFIT_PLAN( "profit_plan"), - LOSS_PLAN( "loss_plan"), - MOVING_PLAN( "moving_plan"), - TRACK_PLAN( "track_plan"), - POS_PROFIT( "pos_profit"), - POS_LOSS( "pos_loss") - ; - - private final String value; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixProductTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixProductTypeEnum.java deleted file mode 100644 index d2fae02c..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixProductTypeEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@Getter -@AllArgsConstructor -public enum MixProductTypeEnum { - - - UMCBL("umcbl"), - DMCBL("dmcbl"), - SUMCBL("sumcbl"), - SDMCBL("sdmcbl"), - ; - ; - - private final String code; - -} \ No newline at end of file diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixQueryPlanEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixQueryPlanEnum.java deleted file mode 100644 index c2efb6a3..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixQueryPlanEnum.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@Getter -@AllArgsConstructor -public enum MixQueryPlanEnum { - - PLAN( "plan"), - PROFIT_LOSS( "profit_loss"), - ; - - private final String value; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixSideEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixSideEnum.java deleted file mode 100644 index 71ce8d20..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixSideEnum.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - - -@AllArgsConstructor -@Getter -public enum MixSideEnum { - /** - * Kaiduo - */ - OPEN_LONG("open_long"), - /** - * Open empty - */ - OPEN_SHORT("open_short"), - /** - * Pingduo - */ - CLOSE_LONG("close_long"), - /** - * Flat air - */ - CLOSE_SHORT("close_short"), - ; - - private final String side; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixTriggerTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixTriggerTypeEnum.java deleted file mode 100644 index 57e13cef..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/mix/MixTriggerTypeEnum.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.bitget.openapi.enums.mix; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@Getter -@AllArgsConstructor -public enum MixTriggerTypeEnum { - - FILL_PRICE("fill_price"), - MARKET_PRICE( "market_price"); - - private final String value; - - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/ForceEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/ForceEnum.java deleted file mode 100644 index b36be4c6..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/ForceEnum.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.bitget.openapi.enums.spot; - - -import lombok.Getter; - -@Getter -public enum ForceEnum { - - NORMAL("normal"), - - POST_ONLY("postOnly"), - - FOK("fok"), - - IOC("ioc"), - - ; - - private final String code; - - ForceEnum(String code) { - this.code = code; - } - - public static ForceEnum toEnum(String code) { - for (ForceEnum item : ForceEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/OrderSideEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/OrderSideEnum.java deleted file mode 100644 index e3c02f33..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/OrderSideEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.bitget.openapi.enums.spot; - -import lombok.Getter; - -@Getter -public enum OrderSideEnum { - - /** - * check - */ - BUY("buy"), - - /** - * vouchers of sale - */ - SELL("sell"), - ; - - private final String code; - - OrderSideEnum(String code) { - this.code = code; - } - - public static OrderSideEnum toEnum(String code) { - for (OrderSideEnum item : OrderSideEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } - - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/SpotOrderTypeEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/SpotOrderTypeEnum.java deleted file mode 100644 index a166caf3..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/spot/SpotOrderTypeEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.bitget.openapi.enums.spot; - -import lombok.Getter; - -@Getter -public enum SpotOrderTypeEnum { - - /** - * Price limit order - */ - LIMIT("limit"), - - /** - * Market price list - */ - MARKET("market"), - ; - - private final String code; - - SpotOrderTypeEnum(String code) { - this.code = code; - } - - public static SpotOrderTypeEnum toEnum(String code) { - for (SpotOrderTypeEnum item : SpotOrderTypeEnum.values()) { - if (item.code.equalsIgnoreCase(code)) { - return item; - } - } - return null; - } - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/ChannelEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/ChannelEnum.java deleted file mode 100644 index 59f9a9f0..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/ChannelEnum.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.bitget.openapi.enums.ws; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum ChannelEnum { - - SWAP_TICKER("swap/ticker"), - SWAP_CANDLE_1MIN("swap/candle60s"), - SWAP_CANDLE_5MIN("swap/candle300s"), - SWAP_CANDLE_15MIN("swap/candle900s"), - SWAP_CANDLE_30MIN("swap/candle1800s"), - SWAP_CANDLE_1H("swap/candle3600s"), - SWAP_CANDLE_4H("swap/candle14400s"), - SWAP_CANDLE_12H("swap/candle43200s"), - SWAP_CANDLE_1D("swap/candle86400s"), - SWAP_CANDLE_1W("swap/candle604800s"), - SWAP_TRADE("swap/trade"), - SWAP_FUNDING_RATE("swap/funding_rate"), - SWAP_PRICE_RANGE("swap/price_range"), - SWAP_DEPTH("swap/depth"), - SWAP_MARKET_PRICE("swap/mark_price"), - - SWAP_ACCOUNT("swap/account"), - SWAP_POSITION("swap/position"), - SWAP_ORDER("swap/order"), - ; - - private String channel; -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/SubEventEnum.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/SubEventEnum.java deleted file mode 100644 index f0d418bc..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/enums/ws/SubEventEnum.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.bitget.openapi.enums.ws; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -@AllArgsConstructor -@Getter -public enum SubEventEnum { - - SUBSCRIBE("subscribe"), - UNSUBSCRIBE("unsubscribe"), - LOGIN("login"), - ; - - private String event; - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixAccountTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixAccountTest.java deleted file mode 100644 index 00d4e9bd..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixAccountTest.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.MixHoldModeEnum; -import com.bitget.openapi.enums.mix.MixHoldSideEnum; -import com.bitget.openapi.enums.mix.MixMarginModeEnum; -import com.bitget.openapi.enums.mix.MixProductTypeEnum; -import org.junit.Test; -import java.io.IOException; -import java.math.BigDecimal; - -public class MixAccountTest extends BaseTest { - - private static String symbol = "BTCUSDT_UMCBL"; - private static String marginCoin = "USDT"; - // passed - @Test - public void account() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().account().getAccount(symbol, marginCoin); - System.out.println(JSON.toJSONString(result)); - } - - - @Test - public void accounts() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().account().getAccounts(MixProductTypeEnum.UMCBL.getCode()); - System.out.println(JSON.toJSONString(result)); - } - - // passed - @Test - public void leverage() throws IOException { - MixChangeLeverageReq build = MixChangeLeverageReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .leverage(25) - .holdSide(MixHoldSideEnum.LONG.getCode()) - .build(); - ResponseResult res = bitgetRestClient.mix().bitget().account().leverage(build); - System.out.println(JSON.toJSONString(res)); - } - - // passed - @Test - public void margin() throws IOException { - MixAdjustMarginFixReq build = MixAdjustMarginFixReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .holdSide(MixHoldSideEnum.LONG.getCode()) - .amount(new BigDecimal("10")) - .build(); - ResponseResult res = bitgetRestClient.mix().bitget().account().margin(build); - System.out.println(JSON.toJSONString(res)); - } - - - // passed - @Test - public void marginMode() throws IOException { - AdjustMarginModeReq build = AdjustMarginModeReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .marginMode(MixMarginModeEnum.FIXED.getCode()) - .build(); - ResponseResult res = bitgetRestClient.mix().bitget().account().marginMode(build); - System.out.println(JSON.toJSONString(res)); - } - // passed - @Test - public void positionMode() throws IOException { - AdjustHoldModeReq build = AdjustHoldModeReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .holdMode(MixHoldModeEnum.DOUBLE_HOLD.getCode()) - .build(); - ResponseResult res = bitgetRestClient.mix().bitget().account().positionMode(build); - System.out.println(JSON.toJSONString(res)); - } - - //passed - @Test - public void openCount() throws IOException { - MixOpenCountReq build = MixOpenCountReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .openPrice(new BigDecimal("30000")) - .openAmount(new BigDecimal("99999")) - .leverage(20) - .build(); - ResponseResult result = bitgetRestClient.mix().bitget().account().openCount(build); - System.out.println(JSON.toJSONString(result)); - } - - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixMarketServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixMarketServiceTest.java deleted file mode 100644 index 6b980be8..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixMarketServiceTest.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.MixProductTypeEnum; -import org.junit.Test; -import java.io.IOException; -import java.util.List; - -public class MixMarketServiceTest extends BaseTest { - - static String symbol = "BTCUSDT_UMCBL"; - - static Integer limit = 50; - - static String startTime = "1629177891000"; - - static String endTime = "1629181491000"; - - static String granularity = "60"; - - // passed - @Test - public void contracts() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().contracts(MixProductTypeEnum.SDMCBL.getCode()); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void depth() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().depth(symbol,limit); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void ticker() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().ticker(symbol); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void tickers() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().tickers(MixProductTypeEnum.UMCBL.getCode()); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void fills() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().fills(symbol,limit); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void candles() throws IOException { - List result = bitgetRestClient.mix().bitget().market().candles(symbol,granularity,startTime,endTime); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void index() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().index(symbol); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void fundingTime() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().fundingTime(symbol); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void historyFundRate() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().historyFundRate(symbol, 20,1,false); - System.out.println(JSON.toJSONString(result)); - } - - // passed - @Test - public void currentFundRate() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().currentFundRate(symbol); - System.out.println(JSON.toJSONString(result)); - } - - // passed - @Test - public void openInterest() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().openInterest(symbol); - System.out.println(JSON.toJSONString(result)); - } - - // passed - @Test - public void markPrice() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().market().markPrice(symbol); - System.out.println(JSON.toJSONString(result)); - } - - - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixOrderTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixOrderTest.java deleted file mode 100644 index b44bb935..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixOrderTest.java +++ /dev/null @@ -1,144 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.MixOrderTypeEnum; -import com.bitget.openapi.enums.mix.MixSideEnum; -import com.bitget.openapi.enums.spot.ForceEnum; -import org.junit.Test; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -public class MixOrderTest extends BaseTest { - - private static String symbol = "ETHUSD_DMCBL"; - private static String marginCoin = "ETH"; - private static String startTime = "1629113823000"; - private static String endTime = "1629513368000"; - private static String lastEndId = "0"; - private static int pageSize = 20; - - // passed - @Test - public void placeOrder() throws IOException { - MixPlaceOrderReq req = MixPlaceOrderReq.builder() - .clientOid("RFIut#"+System.currentTimeMillis()) - .symbol(symbol) - .price(new BigDecimal("2")) - .size(new BigDecimal("10")) - .marginCoin(marginCoin) - .side(MixSideEnum.OPEN_LONG.getSide()) - .timeInForceValue(ForceEnum.NORMAL.getCode()) - .orderType(MixOrderTypeEnum.LIMIT.getCode()) - .build(); - ResponseResult result = bitgetRestClient.mix().bitget().order().placeOrder(req); - System.out.println(JSON.toJSONString(result)); - } - @Test - public void proportionOrder() throws IOException { - MixPlaceOrderReq req = MixPlaceOrderReq.builder() - .clientOid("RFIut#"+System.currentTimeMillis()) - .symbol(symbol) - .price(new BigDecimal("5999.7")) - .size(new BigDecimal("0.01")) - .marginCoin(marginCoin) - .side(MixSideEnum.OPEN_LONG.getSide()) - .timeInForceValue(ForceEnum.NORMAL.getCode()) - .orderType(MixOrderTypeEnum.MARKET.getCode()) - .build(); - ResponseResult result = bitgetRestClient.mix().bitget().order().proportionOrder(req); - System.out.println(JSON.toJSONString(result,true)); - JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(result)); - JSONObject jsonObject1 = (JSONObject)jsonObject.get("data"); - ResponseResult resulta = bitgetRestClient.mix().bitget().order().detail(symbol, jsonObject1.get("orderId").toString()); - System.out.println(JSONObject.toJSONString(resulta,true)); - } - // passed - @Test - public void batchOrders() throws IOException { - List orderDataList = new ArrayList<>(); - - PlaceOrderBaseReq order_one = PlaceOrderBaseReq.builder() - .clientOid("RFIut#15914567782335") - .price(new BigDecimal("23789.3")) - .size(new BigDecimal("1")) - .side(MixSideEnum.OPEN_LONG.getSide()) - .timeInForceValue(ForceEnum.NORMAL.getCode()) - .orderType(MixOrderTypeEnum.LIMIT.getCode()) - .build(); - - PlaceOrderBaseReq order_two = PlaceOrderBaseReq.builder() - .clientOid("RFIut#1592567335") - .price(new BigDecimal("23888.3")) - .size(new BigDecimal("1")) - .side(MixSideEnum.OPEN_LONG.getSide()) - .timeInForceValue(ForceEnum.NORMAL.getCode()) - .orderType(MixOrderTypeEnum.LIMIT.getCode()) - .build(); - - orderDataList.add(order_one); - orderDataList.add(order_two); - PlaceBatchOrderReq req = PlaceBatchOrderReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .orderDataList(orderDataList) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().order().batchOrders(req); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void cancelOrder() throws IOException { - MixCancelOrderReq req = MixCancelOrderReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .orderId("811489712408248322") - .build(); - ResponseResult result = bitgetRestClient.mix().bitget().order().cancelOrder(req); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void cancelBatchOrder() throws IOException { - List stringList = new ArrayList<>(); - stringList.add("802382049422487552"); - MixCancelBatchOrdersReq req = MixCancelBatchOrdersReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .orderIds(stringList) - .build(); - ResponseResult result = bitgetRestClient.mix().bitget().order().cancelBatchOrder(req); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void history() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().order().history(symbol, startTime, endTime, pageSize, null, false); - System.out.println(JSON.toJSONString(result)); - } - - // passed - @Test - public void current() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().order().current(symbol); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void detail() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().order().detail(symbol, "842945946638233600"); - System.out.println(JSON.toJSONString(result,true)); - } - // passed - @Test - public void fills() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().order().fills(symbol, "842893887893286912"); - System.out.println(JSONObject.toJSONString(result)); - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPlanServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPlanServiceTest.java deleted file mode 100644 index 48d62325..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPlanServiceTest.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.mix.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.*; -import com.bitget.openapi.enums.spot.SpotOrderTypeEnum; -import org.junit.Test; -import java.io.IOException; -import java.math.BigDecimal; - -public class MixPlanServiceTest extends BaseTest { - - private static String symbol = "BTCUSDT_UMCBL"; - private static String marginCoin = "USDT"; - private static String startTime = "1627210955000"; - private static String endTime = "1627383755000"; - private static int pageSize = 100; - private static boolean isPre = false; - private static String isPlan = MixQueryPlanEnum.PLAN.getValue(); - - //passed - @Test - public void planPlace() throws IOException { - MixPlanOrderReq build = MixPlanOrderReq.builder() - .clientOid("RFIut#" + System.currentTimeMillis()) - .symbol(symbol) - .triggerPrice(new BigDecimal("45000.3")) - .executePrice(new BigDecimal("38923.1")) - .size(new BigDecimal("1")) - .marginCoin(marginCoin) - .side(MixSideEnum.OPEN_LONG.getSide()) - .orderType(MixOrderTypeEnum.LIMIT.getCode()) - .triggerType(MixTriggerTypeEnum.FILL_PRICE.getValue()) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().placePlan(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void modifyPlan() throws IOException { - MixModifyPlanReq build = MixModifyPlanReq.builder() - .orderId("803521986049314816") - .symbol(symbol) - .triggerPrice(new BigDecimal("45012.1")) - .executePrice(new BigDecimal("39423.1")) - .marginCoin(marginCoin) - .triggerType(MixTriggerTypeEnum.FILL_PRICE.getValue()) - .orderType(SpotOrderTypeEnum.LIMIT.getCode()) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().modifyPlan(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void modifyPlanPreset() throws IOException { - MixModifyPresetReq build = MixModifyPresetReq.builder() - .orderId("803521986049314816") - .symbol(symbol) - .marginCoin(marginCoin) - .presetTakeProfitPrice("55012.1") - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().modifyPlanPreset(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void placeTPSL() throws IOException { - MixTPSLOrderReq build = MixTPSLOrderReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .planType(MixPlanTypeEnum.PROFIT_PLAN.getValue()) - .triggerPrice(new BigDecimal("36888")) - .holdSide(MixHoldSideEnum.SHORT.getCode()) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().placeTPSL(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void modifyTPSLPlan() throws IOException { - MixModifyTPSLReq build = MixModifyTPSLReq.builder() - .orderId("803521986049314816") - .symbol(symbol) - .marginCoin(marginCoin) - .triggerPrice("55012.1") - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().modifyTPSLPlan(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void cancelPlan() throws IOException { - MixCancelPlanReq build = MixCancelPlanReq.builder() - .symbol(symbol) - .marginCoin(marginCoin) - .orderId("803521986049314816") - .planType(MixPlanTypeEnum.NORMAL_PLAN.getValue()) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().plan().cancelPlan(build); - System.out.println(JSON.toJSONString(result)); - } - - - //passed - @Test - public void currentPlan() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().plan().currentPlan(symbol, isPlan); - System.out.println(JSON.toJSONString(result)); - } - //passed - @Test - public void historyPlan() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().plan().historyPlan(symbol, startTime, endTime, pageSize, isPre, isPlan); - System.out.println(JSON.toJSONString(result)); - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPositionTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPositionTest.java deleted file mode 100644 index 59f97636..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixPositionTest.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.MixProductTypeEnum; -import org.junit.Test; -import java.io.IOException; - -public class MixPositionTest extends BaseTest { - - private static String symbol = "BTCUSDT_UMCBL"; - private static String marginCoin = "USDT"; - - // passed - @Test - public void singlePosition() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().position().singlePosition(symbol, marginCoin); - System.out.println(JSON.toJSONString(result)); - } - // passed - @Test - public void allPosition() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().position().allPosition(MixProductTypeEnum.UMCBL.getCode(), marginCoin); - System.out.println(JSON.toJSONString(result)); - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixTraceServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixTraceServiceTest.java deleted file mode 100644 index ebd4b24c..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/mix/MixTraceServiceTest.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.bitget.openapi.mix; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.mix.MixCloseTrackOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceModifyTPSLOrderReq; -import com.bitget.openapi.dto.request.mix.MixTraceSetCopyTradeSymbolReq; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.mix.MixProductTypeEnum; -import org.junit.Test; -import java.io.IOException; - -public class MixTraceServiceTest extends BaseTest { - - static String symbol = "BTCUSDT_UMCBL"; - static long trackingNo = 0L; - static int pageSize = 10; - static int pageNo = 1; - static String date = ""; - static String startTime = ""; - static String endTime = ""; - - //passed - @Test - public void closeTraceOrder() throws IOException { - MixCloseTrackOrderReq build = MixCloseTrackOrderReq.builder() - .symbol(symbol) - .trackingNo(trackingNo) - .build(); - - ResponseResult result = bitgetRestClient.mix().bitget().trace().closeTraceOrder(build); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void currentTrack() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().currentTrack(symbol, MixProductTypeEnum.UMCBL.getCode(),pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void historyTrack() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().historyTrack(startTime,endTime,pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void summary() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().summary(); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void profitSettleTokenIdGroup() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().profitSettleTokenIdGroup(); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void profitDateGroupList() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().profitDateGroupList(pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void profitDateList() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().profitDateList(symbol,date,pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void waitProfitDateList() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().waitProfitDateList(pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void followerHistoryOrders() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().followerHistoryOrders("10","1","1635782400000","1635852263953"); - System.out.println(JSON.toJSONString(result)); - } - //passed - @Test - public void followerOrder() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().followerOrder(symbol,"umcbl",pageSize,pageNo); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void traderSymbols() throws IOException { - ResponseResult result = bitgetRestClient.mix().bitget().trace().traderSymbols(); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void setUpCopySymbols() throws IOException { - MixTraceSetCopyTradeSymbolReq mixTraceSetCopyTradeSymbolReq = new MixTraceSetCopyTradeSymbolReq(); - mixTraceSetCopyTradeSymbolReq.setSymbol(symbol); - ResponseResult result = bitgetRestClient.mix().bitget().trace().setUpCopySymbols(mixTraceSetCopyTradeSymbolReq); - System.out.println(JSON.toJSONString(result)); - } - - //passed - @Test - public void modifyTPSL() throws IOException { - MixTraceModifyTPSLOrderReq mixTraceModifyTPSLOrderReq = new MixTraceModifyTPSLOrderReq(); - mixTraceModifyTPSLOrderReq.setSymbol(symbol); - mixTraceModifyTPSLOrderReq.setTrackingNo(804641389214179330L); - ResponseResult result = bitgetRestClient.mix().bitget().trace().modifyTPSL(mixTraceModifyTPSLOrderReq); - System.out.println(JSON.toJSONString(result)); - } -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/MarketServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/MarketServiceTest.java deleted file mode 100644 index ecc3b15b..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/MarketServiceTest.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.bitget.openapi.spot; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.SpotDepthTypeEnum; -import org.junit.Test; -import java.io.IOException; - -public class MarketServiceTest extends BaseTest { - - static String symbol = "btcusdt_spbl"; - - static Integer limit = 50; - - static String period = "1min"; - - static String after = "1624929806000"; - - static String before = "1624933406000"; - - //passed - @Test - public void fills() throws IOException { - ResponseResult fills = bitgetRestClient.spot().bitget().market().fills(symbol, limit); - System.out.println(JSON.toJSONString(fills)); - } - - //passed - @Test - public void depth() throws IOException { - ResponseResult depth = bitgetRestClient.spot().bitget().market().depth(symbol, limit, SpotDepthTypeEnum.STEP0.getCode()); - System.out.println(JSON.toJSONString(depth)); - } - - //passed - @Test - public void ticker() throws IOException { - ResponseResult ticker = bitgetRestClient.spot().bitget().market().ticker(symbol); - System.out.println(JSON.toJSONString(ticker)); - } - - //passed - @Test - public void tickers() throws IOException { - ResponseResult tickers = bitgetRestClient.spot().bitget().market().tickers(); - System.out.println(JSON.toJSONString(tickers)); - } - - //passed - @Test - public void candles() throws IOException { - ResponseResult candles = bitgetRestClient.spot().bitget().market().candles(symbol, period, after, before, limit); - System.out.println(JSON.toJSONString(candles)); - } - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/PublicServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/PublicServiceTest.java deleted file mode 100644 index efa120ae..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/PublicServiceTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.bitget.openapi.spot; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.response.ResponseResult; -import org.junit.Test; - -import java.io.IOException; - -public class PublicServiceTest extends BaseTest { - - //passed - @Test - public void time() throws IOException { - ResponseResult time = bitgetRestClient.spot().bitget().common().time(); - System.out.println(JSON.toJSONString(time)); - } - - //passed - @Test - public void currencies() throws IOException { - ResponseResult currencies = bitgetRestClient.spot().bitget().common().currencies(); - System.out.println(JSON.toJSONString(currencies)); - } - - //passed - @Test - public void products() throws IOException { - ResponseResult products = bitgetRestClient.spot().bitget().common().products(); - System.out.println(JSON.toJSONString(products)); - } - - //passed - @Test - public void product() throws IOException { - ResponseResult productSingle = bitgetRestClient.spot().bitget().common().product("ETHUSDT_SPBL"); - System.out.println(JSON.toJSONString(productSingle)); - } - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotAccountServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotAccountServiceTest.java deleted file mode 100644 index bfbb3519..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotAccountServiceTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.bitget.openapi.spot; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.spot.SpotBillQueryReq; -import com.bitget.openapi.dto.response.ResponseResult; -import org.junit.Test; - -import java.io.IOException; - -public class SpotAccountServiceTest extends BaseTest { - - //passed - @Test - public void assets() throws IOException { - ResponseResult assets = bitgetRestClient.spot().bitget().account().assets(null); - System.out.println(JSON.toJSONString(assets)); - } - - //passed - @Test - public void bills() throws IOException { - SpotBillQueryReq build = SpotBillQueryReq.builder() -// .coinId(1) -// .before(777031099461570560L) - .build(); - ResponseResult assets = bitgetRestClient.spot().bitget().account().bills(build); - System.out.println(JSON.toJSONString(assets)); - } - - //passed - @Test - public void transferRecords() throws IOException { - SpotBillQueryReq build = SpotBillQueryReq.builder() -// .coinId(1) -// .before(777031099461570560L) - .build(); - ResponseResult assets = bitgetRestClient.spot().bitget().account().transferRecords("2","USDT_MIX","10","",""); - System.out.println(JSON.toJSONString(assets)); - } - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotOrderServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotOrderServiceTest.java deleted file mode 100644 index 0965ae7a..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotOrderServiceTest.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.bitget.openapi.spot; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.dto.request.spot.*; -import com.bitget.openapi.dto.response.ResponseResult; -import com.bitget.openapi.enums.spot.ForceEnum; -import com.bitget.openapi.enums.spot.OrderSideEnum; -import com.bitget.openapi.enums.spot.SpotOrderTypeEnum; -import org.junit.Test; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class SpotOrderServiceTest extends BaseTest { - - static String symbol = "bgbusdt_spbl"; - - @Test - public void orders() throws IOException { - SpotOrderReq spotOrderReq = SpotOrderReq.builder().symbol(symbol).price("0.31").quantity("100") - .side(OrderSideEnum.BUY.getCode()).orderType(SpotOrderTypeEnum.LIMIT.getCode()) - .force(ForceEnum.NORMAL.getCode()).build(); - - ResponseResult orders = bitgetRestClient.spot().bitget().order().orders(spotOrderReq); - System.out.println(JSON.toJSONString(orders)); - } - - @Test - public void batchOrders() throws IOException { - List list = new ArrayList<>(); - SpotOrdersReq one = SpotOrdersReq.builder() - .price("2.60222") - .quantity("1") - .side(OrderSideEnum.BUY.getCode()) - .orderType(SpotOrderTypeEnum.LIMIT.getCode()) - .force(ForceEnum.NORMAL.getCode()) - .clientOrderId("spot#1625039618000") - .build(); - SpotOrdersReq two = SpotOrdersReq.builder() - .price("2.60111") - .quantity("1") - .side(OrderSideEnum.BUY.getCode()) - .orderType(SpotOrderTypeEnum.LIMIT.getCode()) - .force(ForceEnum.NORMAL.getCode()) - .clientOrderId("spot#1625039618122") - .build(); - - list.add(one); - list.add(two); - SpotBatchOrdersReq build = SpotBatchOrdersReq.builder() - .symbol(symbol) - .orderList(list) - .build(); - - ResponseResult orders = bitgetRestClient.spot().bitget().order().batchOrders(build); - System.out.println(JSON.toJSONString(orders)); - } - - - @Test - public void cancelOrder() throws IOException { - SpotCancelOrderReq cancelOrderReq = SpotCancelOrderReq.builder().orderId("").symbol(symbol).build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().cancelOrder(cancelOrderReq); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void cancelBatchOrder() throws IOException { - SpotCancelBatchOrderReq batchOrderReq = SpotCancelBatchOrderReq.builder().symbol(symbol).orderIds(Arrays.asList("793726305732825088", "793726305804128256")).build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().cancelBatchOrder(batchOrderReq); - System.out.println(JSON.toJSONString(result)); - } - - - @Test - public void orderInfo() throws IOException { - SpotOrderInfoReq orderInfoReq = SpotOrderInfoReq.builder().build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().orderInfo(orderInfoReq); - System.out.println(JSON.toJSONString(result)); - } - - - @Test - public void openOrders() throws IOException { - SpotOpenOrderReq openOrderReq = SpotOpenOrderReq.builder().symbol(symbol).build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().openOrders(openOrderReq); - System.out.println(JSON.toJSONString(result)); - } - - - @Test - public void history() throws IOException { - SpotHistoryOrderReq historyOrderReq = SpotHistoryOrderReq.builder().symbol(symbol).build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().history(historyOrderReq); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void fills() throws IOException { - SpotFillsOrderReq fillsOrderReq = SpotFillsOrderReq.builder().symbol(symbol) - .orderId("791113184589549568") - .build(); - - ResponseResult result = bitgetRestClient.spot().bitget().order().fills(fillsOrderReq); - System.out.println(JSON.toJSONString(result)); - } - - -} diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotPlanServiceTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotPlanServiceTest.java deleted file mode 100644 index f6caa5b6..00000000 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/spot/SpotPlanServiceTest.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.bitget.openapi.spot; - -import com.alibaba.fastjson.JSON; -import com.bitget.openapi.BaseTest; -import com.bitget.openapi.common.enums.spot.OrderSideEnum; -import com.bitget.openapi.dto.request.spot.SpotCancelPlanOrderReq; -import com.bitget.openapi.dto.request.spot.SpotModifyPlanReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOpenOrderReq; -import com.bitget.openapi.dto.request.spot.SpotPlanOrderReq; -import com.bitget.openapi.dto.response.ResponseResult; -import org.junit.Test; - -import java.io.IOException; - -public class SpotPlanServiceTest extends BaseTest { - - static String symbol = "BTCUSDT_SPBL"; - - @Test - public void placePlan() throws IOException { - SpotPlanOrderReq req = SpotPlanOrderReq.builder() - .symbol(symbol) - .side(OrderSideEnum.BUY.getCode()) - .triggerPrice(String.valueOf(22031)) - .executePrice(String.valueOf(22031)) - .size("50") - .triggerType("market_price") - .orderType("market") - .timeInForceValue("normal") - .build(); - ResponseResult result = bitgetRestClient.spot().bitget().plan().placePlan(req); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void modifyPlan() throws IOException { - SpotModifyPlanReq req = SpotModifyPlanReq.builder() - .orderId("987136018723487744") - .triggerPrice(String.valueOf(22031)) - .executePrice(String.valueOf(22031)) - .size("50") - .orderType("market") - .build(); - ResponseResult result = bitgetRestClient.spot().bitget().plan().modifyPlan(req); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void cancelPlan() throws IOException { - SpotCancelPlanOrderReq req = SpotCancelPlanOrderReq.builder() - .orderId("987136018723487744") - .build(); - ResponseResult result = bitgetRestClient.spot().bitget().plan().cancelPlan(req); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void historyPlan() throws IOException { - SpotPlanOpenOrderReq req = SpotPlanOpenOrderReq.builder() - .symbol(symbol) - .pageSize(10) - .startTime("1671005531000") - .endTime("1671085652000") - .build(); - ResponseResult result = bitgetRestClient.spot().bitget().plan().historyPlan(req); - System.out.println(JSON.toJSONString(result)); - } - - @Test - public void currentPlan() throws IOException { - SpotPlanOpenOrderReq req = SpotPlanOpenOrderReq.builder() - .symbol(symbol) - .pageSize(10) - .build(); - ResponseResult result = bitgetRestClient.spot().bitget().plan().currentPlan(req); - System.out.println(JSON.toJSONString(result)); - } -} diff --git a/bitget-python-sdk-open-api/test/__init__.py b/bitget-python-sdk-open-api/test/__init__.py deleted file mode 100644 index e69de29b..00000000 From fd6b63d9c751268e00797bcb51222f735b4acd7c Mon Sep 17 00:00:00 2001 From: jidening Date: Mon, 16 Oct 2023 14:23:51 +0800 Subject: [PATCH 03/25] delete sdk-open-api --- bitget-goland-sdk-open-api/README.md | 374 - bitget-goland-sdk-open-api/api/openapi.yaml | 6267 ---------------- .../api_margin_cross_account.go | 1494 ---- .../api_margin_cross_borrow.go | 285 - .../api_margin_cross_finflow.go | 285 - .../api_margin_cross_interest.go | 265 - .../api_margin_cross_liquidation.go | 265 - .../api_margin_cross_order.go | 1700 ----- .../api_margin_cross_public.go | 308 - .../api_margin_cross_repay.go | 285 - .../api_margin_isolated_account.go | 1315 ---- .../api_margin_isolated_borrow.go | 296 - .../api_margin_isolated_finflow.go | 306 - .../api_margin_isolated_interest.go | 276 - .../api_margin_isolated_liquidation.go | 276 - .../api_margin_isolated_order.go | 1688 ----- .../api_margin_isolated_public.go | 308 - .../api_margin_isolated_repay.go | 296 - .../api_margin_public.go | 154 - .../api_p2p_merchant.go | 1092 --- .../api_spot_trace_order.go | 2780 -------- .../api_spot_trace_profit.go | 1080 --- bitget-goland-sdk-open-api/client.go | 646 -- bitget-goland-sdk-open-api/configuration.go | 239 - ...ListOfMarginCrossAssetsPopulationResult.md | 134 - ...nseResultOfListOfMarginCrossLevelResult.md | 134 - ...ltOfListOfMarginCrossRateAndLimitResult.md | 134 - ...tOfMarginIsolatedAssetsPopulationResult.md | 134 - ...tOfListOfMarginIsolatedAssetsRiskResult.md | 134 - ...ResultOfListOfMarginIsolatedLevelResult.md | 134 - ...fListOfMarginIsolatedRateAndLimitResult.md | 134 - ...esponseResultOfListOfMarginSystemResult.md | 134 - ...ApiResponseResultOfListOfSpotInfoResult.md | 134 - ...sultOfListOfTraderTotalProfitListResult.md | 134 - ...nseResultOfMarginBatchCancelOrderResult.md | 134 - ...onseResultOfMarginBatchPlaceOrderResult.md | 134 - ...ResponseResultOfMarginCrossAssetsResult.md | 134 - ...onseResultOfMarginCrossAssetsRiskResult.md | 134 - ...nseResultOfMarginCrossBorrowLimitResult.md | 134 - ...esponseResultOfMarginCrossFinFlowResult.md | 134 - ...ponseResultOfMarginCrossMaxBorrowResult.md | 134 - ...iResponseResultOfMarginCrossRepayResult.md | 134 - ...esponseResultOfMarginInterestInfoResult.md | 134 - ...ponseResultOfMarginIsolatedAssetsResult.md | 134 - ...ResultOfMarginIsolatedBorrowLimitResult.md | 134 - ...onseResultOfMarginIsolatedFinFlowResult.md | 134 - ...esultOfMarginIsolatedInterestInfoResult.md | 134 - ...ltOfMarginIsolatedLiquidationInfoResult.md | 134 - ...nseResultOfMarginIsolatedLoanInfoResult.md | 134 - ...seResultOfMarginIsolatedMaxBorrowResult.md | 134 - ...seResultOfMarginIsolatedRepayInfoResult.md | 134 - ...sponseResultOfMarginIsolatedRepayResult.md | 134 - ...onseResultOfMarginLiquidationInfoResult.md | 134 - ...ApiResponseResultOfMarginLoanInfoResult.md | 134 - ...sponseResultOfMarginOpenOrderInfoResult.md | 134 - ...iResponseResultOfMarginPlaceOrderResult.md | 134 - ...piResponseResultOfMarginRepayInfoResult.md | 134 - ...onseResultOfMarginTradeDetailInfoResult.md | 134 - .../ApiResponseResultOfMerchantAdvResult.md | 134 - .../ApiResponseResultOfMerchantInfoResult.md | 134 - .../ApiResponseResultOfMerchantOrderResult.md | 134 - .../ApiResponseResultOfMerchantPersonInfo.md | 134 - .../ApiResponseResultOfMyTracersResult.md | 134 - .../ApiResponseResultOfMyTradersResult.md | 134 - ...iResponseResultOfOrderCurrentListResult.md | 134 - ...iResponseResultOfOrderHistoryListResult.md | 134 - .../ApiResponseResultOfTraceSettingResult.md | 134 - ...ResultOfTraderProfitHisDetailListResult.md | 134 - ...sponseResultOfTraderProfitHisListResult.md | 134 - .../ApiResponseResultOfTraderSettingResult.md | 134 - ...ResponseResultOfTraderTotalProfitResult.md | 134 - ...esultOfTraderWaitProfitDetailListResult.md | 134 - .../docs/ApiResponseResultOfVoid.md | 108 - .../docs/ApiResponseResultOfboolean.md | 134 - .../docs/CloseTrackingOrderRequest.md | 72 - .../docs/CurrentOrderListRequest.md | 108 - .../docs/EndOrderRequest.md | 51 - .../docs/FiatPaymentDetailInfo.md | 108 - .../docs/FiatPaymentInfo.md | 108 - .../docs/HistoryOrderListRequest.md | 108 - .../docs/MarginBatchCancelOrderRequest.md | 103 - .../docs/MarginBatchCancelOrderResult.md | 82 - .../docs/MarginBatchOrdersRequest.md | 129 - .../MarginBatchPlaceOrderFailureResult.md | 82 - .../docs/MarginBatchPlaceOrderResult.md | 82 - .../docs/MarginCancelOrderFailureResult.md | 108 - .../docs/MarginCancelOrderRequest.md | 103 - .../docs/MarginCancelOrderResult.md | 82 - .../docs/MarginCrossAccountApi.md | 467 -- .../docs/MarginCrossAssetsPopulationResult.md | 238 - .../docs/MarginCrossAssetsResult.md | 82 - .../docs/MarginCrossAssetsRiskResult.md | 56 - .../docs/MarginCrossBorrowApi.md | 85 - .../docs/MarginCrossBorrowLimitResult.md | 108 - .../docs/MarginCrossFinFlowInfo.md | 212 - .../docs/MarginCrossFinFlowResult.md | 108 - .../docs/MarginCrossFinflowApi.md | 85 - .../docs/MarginCrossInterestApi.md | 81 - .../docs/MarginCrossLevelResult.md | 160 - .../docs/MarginCrossLimitRequest.md | 72 - .../docs/MarginCrossLiquidationApi.md | 81 - .../docs/MarginCrossMaxBorrowRequest.md | 51 - .../docs/MarginCrossMaxBorrowResult.md | 82 - .../docs/MarginCrossOrderApi.md | 513 -- .../docs/MarginCrossPublicApi.md | 142 - .../docs/MarginCrossRateAndLimitResult.md | 238 - .../docs/MarginCrossRepayApi.md | 85 - .../docs/MarginCrossRepayRequest.md | 72 - .../docs/MarginCrossRepayResult.md | 134 - .../docs/MarginCrossVipResult.md | 134 - .../docs/MarginInterestInfo.md | 212 - .../docs/MarginInterestInfoResult.md | 108 - .../docs/MarginIsolatedAccountApi.md | 412 -- .../MarginIsolatedAssetsPopulationResult.md | 264 - .../docs/MarginIsolatedAssetsResult.md | 108 - .../docs/MarginIsolatedAssetsRiskRequest.md | 103 - .../docs/MarginIsolatedAssetsRiskResult.md | 82 - .../docs/MarginIsolatedBorrowApi.md | 87 - .../docs/MarginIsolatedBorrowLimitResult.md | 134 - .../docs/MarginIsolatedFinFlowInfo.md | 238 - .../docs/MarginIsolatedFinFlowResult.md | 108 - .../docs/MarginIsolatedFinflowApi.md | 89 - .../docs/MarginIsolatedInterestApi.md | 83 - .../docs/MarginIsolatedInterestInfo.md | 238 - .../docs/MarginIsolatedInterestInfoResult.md | 108 - .../docs/MarginIsolatedLevelResult.md | 264 - .../docs/MarginIsolatedLimitRequest.md | 93 - .../docs/MarginIsolatedLiquidationApi.md | 83 - .../docs/MarginIsolatedLiquidationInfo.md | 264 - .../MarginIsolatedLiquidationInfoResult.md | 108 - .../docs/MarginIsolatedLoanInfo.md | 186 - .../docs/MarginIsolatedLoanInfoResult.md | 108 - .../docs/MarginIsolatedMaxBorrowRequest.md | 72 - .../docs/MarginIsolatedMaxBorrowResult.md | 108 - .../docs/MarginIsolatedOrderApi.md | 511 -- .../docs/MarginIsolatedPublicApi.md | 142 - .../docs/MarginIsolatedRateAndLimitResult.md | 446 -- .../docs/MarginIsolatedRepayApi.md | 87 - .../docs/MarginIsolatedRepayInfo.md | 238 - .../docs/MarginIsolatedRepayInfoResult.md | 108 - .../docs/MarginIsolatedRepayRequest.md | 93 - .../docs/MarginIsolatedRepayResult.md | 160 - .../docs/MarginIsolatedVipResult.md | 134 - .../docs/MarginLiquidationInfo.md | 238 - .../docs/MarginLiquidationInfoResult.md | 108 - .../docs/MarginLoanInfo.md | 160 - .../docs/MarginLoanInfoResult.md | 108 - .../docs/MarginOpenOrderInfoResult.md | 108 - .../docs/MarginOrderInfo.md | 420 -- .../docs/MarginOrderRequest.md | 296 - .../docs/MarginPlaceOrderResult.md | 82 - .../docs/MarginPublicApi.md | 70 - .../docs/MarginRepayInfo.md | 212 - .../docs/MarginRepayInfoResult.md | 108 - .../docs/MarginSystemResult.md | 472 -- .../docs/MarginTradeDetailInfo.md | 290 - .../docs/MarginTradeDetailInfoResult.md | 108 - .../docs/MerchantAdvInfo.md | 602 -- .../docs/MerchantAdvResult.md | 82 - .../docs/MerchantAdvUserLimitInfo.md | 186 - .../docs/MerchantInfo.md | 394 - .../docs/MerchantInfoResult.md | 82 - .../docs/MerchantOrderInfo.md | 498 -- .../docs/MerchantOrderPaymentInfo.md | 108 - .../docs/MerchantOrderResult.md | 82 - .../docs/MerchantPersonInfo.md | 524 -- .../docs/MyTracerResult.md | 160 - .../docs/MyTracersRequest.md | 82 - .../docs/MyTracersResult.md | 82 - .../docs/MyTraderResult.md | 212 - .../docs/MyTradersRequest.md | 82 - .../docs/MyTradersResult.md | 82 - .../docs/OrderCurrentListResult.md | 82 - .../docs/OrderCurrentResult.md | 368 - .../docs/OrderHistoryListResult.md | 82 - .../docs/OrderHistoryResult.md | 394 - .../docs/OrderPaymentDetailInfo.md | 134 - .../docs/P2pMerchantApi.md | 317 - .../docs/ProductCodeRequest.md | 51 - .../docs/RemoveTraderRequest.md | 51 - .../docs/SpotInfoResult.md | 134 - .../docs/SpotTraceOrderApi.md | 869 --- .../docs/SpotTraceProfitApi.md | 338 - .../docs/TotalProfitHisDetailListRequest.md | 124 - .../docs/TotalProfitHisListRequest.md | 82 - .../docs/TotalProfitListRequest.md | 82 - .../docs/TraceConfigRequest.md | 98 - .../docs/TraceConfigSettingRequest.md | 156 - .../docs/TraceSettingBatchDetailsResult.md | 212 - .../docs/TraceSettingProductConfigsResult.md | 446 -- .../docs/TraceSettingResult.md | 238 - .../docs/TraceSettingsRequest.md | 51 - .../docs/TraderProfitHisDetailListResult.md | 82 - .../docs/TraderProfitHisDetailResult.md | 186 - .../docs/TraderProfitHisListResult.md | 82 - .../docs/TraderProfitHisResult.md | 108 - .../docs/TraderSettingLablesResult.md | 82 - .../docs/TraderSettingResult.md | 160 - .../docs/TraderSettingSupportProductResult.md | 108 - .../docs/TraderTotalProfitListResult.md | 82 - .../docs/TraderTotalProfitResult.md | 134 - .../docs/TraderWaitProfitDetailListResult.md | 82 - .../docs/TraderWaitProfitDetailResult.md | 108 - .../docs/UpdateTpslRequest.md | 93 - .../docs/WaitProfitDetailListRequest.md | 82 - bitget-goland-sdk-open-api/git_push.sh | 57 - bitget-goland-sdk-open-api/go.mod | 9 - bitget-goland-sdk-open-api/go.sum | 387 - ...f_margin_cross_assets_population_result.go | 253 - ...lt_of_list_of_margin_cross_level_result.go | 253 - ...t_of_margin_cross_rate_and_limit_result.go | 253 - ...argin_isolated_assets_population_result.go | 253 - ...t_of_margin_isolated_assets_risk_result.go | 253 - ...of_list_of_margin_isolated_level_result.go | 253 - ...f_margin_isolated_rate_and_limit_result.go | 253 - ..._result_of_list_of_margin_system_result.go | 253 - ...onse_result_of_list_of_spot_info_result.go | 253 - ...list_of_trader_total_profit_list_result.go | 253 - ...ult_of_margin_batch_cancel_order_result.go | 252 - ...sult_of_margin_batch_place_order_result.go | 252 - ...se_result_of_margin_cross_assets_result.go | 252 - ...sult_of_margin_cross_assets_risk_result.go | 252 - ...ult_of_margin_cross_borrow_limit_result.go | 252 - ..._result_of_margin_cross_fin_flow_result.go | 252 - ...esult_of_margin_cross_max_borrow_result.go | 252 - ...nse_result_of_margin_cross_repay_result.go | 252 - ...e_result_of_margin_interest_info_result.go | 252 - ...result_of_margin_isolated_assets_result.go | 252 - ..._of_margin_isolated_borrow_limit_result.go | 252 - ...sult_of_margin_isolated_fin_flow_result.go | 252 - ...of_margin_isolated_interest_info_result.go | 252 - ...margin_isolated_liquidation_info_result.go | 252 - ...ult_of_margin_isolated_loan_info_result.go | 252 - ...lt_of_margin_isolated_max_borrow_result.go | 252 - ...lt_of_margin_isolated_repay_info_result.go | 252 - ..._result_of_margin_isolated_repay_result.go | 252 - ...esult_of_margin_liquidation_info_result.go | 252 - ...ponse_result_of_margin_loan_info_result.go | 252 - ...result_of_margin_open_order_info_result.go | 252 - ...nse_result_of_margin_place_order_result.go | 252 - ...onse_result_of_margin_repay_info_result.go | 252 - ...sult_of_margin_trade_detail_info_result.go | 252 - ..._response_result_of_merchant_adv_result.go | 252 - ...response_result_of_merchant_info_result.go | 252 - ...esponse_result_of_merchant_order_result.go | 252 - ...response_result_of_merchant_person_info.go | 252 - ...pi_response_result_of_my_tracers_result.go | 252 - ...pi_response_result_of_my_traders_result.go | 252 - ...nse_result_of_order_current_list_result.go | 252 - ...nse_result_of_order_history_list_result.go | 252 - ...response_result_of_trace_setting_result.go | 252 - ...of_trader_profit_his_detail_list_result.go | 252 - ...result_of_trader_profit_his_list_result.go | 252 - ...esponse_result_of_trader_setting_result.go | 252 - ...se_result_of_trader_total_profit_result.go | 252 - ...f_trader_wait_profit_detail_list_result.go | 252 - .../model_api_response_result_of_void.go | 215 - .../model_api_response_result_ofboolean.go | 253 - .../model_close_tracking_order_request.go | 163 - .../model_current_order_list_request.go | 215 - .../model_end_order_request.go | 132 - .../model_fiat_payment_detail_info.go | 212 - .../model_fiat_payment_info.go | 212 - .../model_history_order_list_request.go | 215 - ...model_margin_batch_cancel_order_request.go | 208 - .../model_margin_batch_cancel_order_result.go | 175 - .../model_margin_batch_orders_request.go | 243 - ...margin_batch_place_order_failure_result.go | 175 - .../model_margin_batch_place_order_result.go | 175 - ...odel_margin_cancel_order_failure_result.go | 212 - .../model_margin_cancel_order_request.go | 208 - .../model_margin_cancel_order_result.go | 175 - ...l_margin_cross_assets_population_result.go | 397 -- .../model_margin_cross_assets_result.go | 175 - .../model_margin_cross_assets_risk_result.go | 138 - .../model_margin_cross_borrow_limit_result.go | 212 - .../model_margin_cross_fin_flow_info.go | 360 - .../model_margin_cross_fin_flow_result.go | 212 - .../model_margin_cross_level_result.go | 286 - .../model_margin_cross_limit_request.go | 163 - .../model_margin_cross_max_borrow_request.go | 132 - .../model_margin_cross_max_borrow_result.go | 175 - ...odel_margin_cross_rate_and_limit_result.go | 397 -- .../model_margin_cross_repay_request.go | 163 - .../model_margin_cross_repay_result.go | 249 - .../model_margin_cross_vip_result.go | 249 - .../model_margin_interest_info.go | 360 - .../model_margin_interest_info_result.go | 212 - ...argin_isolated_assets_population_result.go | 434 -- .../model_margin_isolated_assets_result.go | 212 - ...del_margin_isolated_assets_risk_request.go | 208 - ...odel_margin_isolated_assets_risk_result.go | 175 - ...del_margin_isolated_borrow_limit_result.go | 249 - .../model_margin_isolated_fin_flow_info.go | 397 -- .../model_margin_isolated_fin_flow_result.go | 212 - .../model_margin_isolated_interest_info.go | 397 -- ...el_margin_isolated_interest_info_result.go | 212 - .../model_margin_isolated_level_result.go | 434 -- .../model_margin_isolated_limit_request.go | 194 - .../model_margin_isolated_liquidation_info.go | 434 -- ...margin_isolated_liquidation_info_result.go | 212 - .../model_margin_isolated_loan_info.go | 323 - .../model_margin_isolated_loan_info_result.go | 212 - ...odel_margin_isolated_max_borrow_request.go | 163 - ...model_margin_isolated_max_borrow_result.go | 212 - ...l_margin_isolated_rate_and_limit_result.go | 693 -- .../model_margin_isolated_repay_info.go | 397 -- ...model_margin_isolated_repay_info_result.go | 212 - .../model_margin_isolated_repay_request.go | 194 - .../model_margin_isolated_repay_result.go | 286 - .../model_margin_isolated_vip_result.go | 249 - .../model_margin_liquidation_info.go | 397 -- .../model_margin_liquidation_info_result.go | 212 - .../model_margin_loan_info.go | 286 - .../model_margin_loan_info_result.go | 212 - .../model_margin_open_order_info_result.go | 212 - .../model_margin_order_info.go | 656 -- .../model_margin_order_request.go | 489 -- .../model_margin_place_order_result.go | 175 - .../model_margin_repay_info.go | 360 - .../model_margin_repay_info_result.go | 212 - .../model_margin_system_result.go | 730 -- .../model_margin_trade_detail_info.go | 471 -- .../model_margin_trade_detail_info_result.go | 212 - .../model_merchant_adv_info.go | 915 --- .../model_merchant_adv_result.go | 175 - .../model_merchant_adv_user_limit_info.go | 323 - .../model_merchant_info.go | 619 -- .../model_merchant_info_result.go | 175 - .../model_merchant_order_info.go | 767 -- .../model_merchant_order_payment_info.go | 212 - .../model_merchant_order_result.go | 175 - .../model_merchant_person_info.go | 804 --- .../model_my_tracer_result.go | 286 - .../model_my_tracers_request.go | 177 - .../model_my_tracers_result.go | 175 - .../model_my_trader_result.go | 360 - .../model_my_traders_request.go | 177 - .../model_my_traders_result.go | 175 - .../model_order_current_list_result.go | 175 - .../model_order_current_result.go | 582 -- .../model_order_history_list_result.go | 175 - .../model_order_history_result.go | 619 -- .../model_order_payment_detail_info.go | 249 - .../model_product_code_request.go | 132 - .../model_remove_trader_request.go | 132 - .../model_spot_info_result.go | 249 - ...el_total_profit_his_detail_list_request.go | 239 - .../model_total_profit_his_list_request.go | 177 - .../model_total_profit_list_request.go | 177 - .../model_trace_config_request.go | 200 - .../model_trace_config_setting_request.go | 287 - ...odel_trace_setting_batch_details_result.go | 360 - ...el_trace_setting_product_configs_result.go | 693 -- .../model_trace_setting_result.go | 397 -- .../model_trace_settings_request.go | 132 - ...el_trader_profit_his_detail_list_result.go | 175 - .../model_trader_profit_his_detail_result.go | 323 - .../model_trader_profit_his_list_result.go | 175 - .../model_trader_profit_his_result.go | 212 - .../model_trader_setting_lables_result.go | 175 - .../model_trader_setting_result.go | 286 - ...l_trader_setting_support_product_result.go | 212 - .../model_trader_total_profit_list_result.go | 175 - .../model_trader_total_profit_result.go | 249 - ...l_trader_wait_profit_detail_list_result.go | 175 - .../model_trader_wait_profit_detail_result.go | 212 - .../model_update_tpsl_request.go | 194 - .../model_wait_profit_detail_list_request.go | 177 - bitget-goland-sdk-open-api/response.go | 47 - bitget-goland-sdk-open-api/sign_utils.go | 35 - .../test/api_margin_cross_account_test.go | 170 - .../test/api_margin_cross_borrow_test.go | 49 - .../test/api_margin_cross_finflow_test.go | 53 - .../test/api_margin_cross_interest_test.go | 53 - .../test/api_margin_cross_liquidation_test.go | 55 - .../test/api_margin_cross_order_test.go | 262 - .../test/api_margin_cross_public_test.go | 94 - .../test/api_margin_cross_repay_test.go | 53 - .../test/api_margin_isolated_account_test.go | 165 - .../test/api_margin_isolated_borrow_test.go | 43 - .../test/api_margin_isolated_finflow_test.go | 54 - .../test/api_margin_isolated_interest_test.go | 54 - .../api_margin_isolated_liquidation_test.go | 56 - .../test/api_margin_isolated_order_test.go | 257 - .../test/api_margin_isolated_public_test.go | 111 - .../test/api_margin_isolated_repay_test.go | 54 - .../test/api_margin_public_test.go | 69 - .../test/api_p2p_merchant_test.go | 122 - .../test/api_spot_trace_order_test.go | 318 - .../test/api_spot_trace_profit_test.go | 139 - bitget-goland-sdk-open-api/utils.go | 343 - bitget-java-sdk-open-api/README.md | 409 -- bitget-java-sdk-open-api/api/openapi.yaml | 6329 ----------------- .../bitget-java-sdk-open-api.iml | 50 - bitget-java-sdk-open-api/build.gradle | 168 - bitget-java-sdk-open-api/build.sbt | 28 - ...ListOfMarginCrossAssetsPopulationResult.md | 16 - ...nseResultOfListOfMarginCrossLevelResult.md | 16 - ...ltOfListOfMarginCrossRateAndLimitResult.md | 16 - ...tOfMarginIsolatedAssetsPopulationResult.md | 16 - ...tOfListOfMarginIsolatedAssetsRiskResult.md | 16 - ...ResultOfListOfMarginIsolatedLevelResult.md | 16 - ...fListOfMarginIsolatedRateAndLimitResult.md | 16 - ...esponseResultOfListOfMarginSystemResult.md | 16 - ...nseResultOfMarginBatchCancelOrderResult.md | 16 - ...onseResultOfMarginBatchPlaceOrderResult.md | 16 - ...ResponseResultOfMarginCrossAssetsResult.md | 16 - ...onseResultOfMarginCrossAssetsRiskResult.md | 16 - ...nseResultOfMarginCrossBorrowLimitResult.md | 16 - ...esponseResultOfMarginCrossFinFlowResult.md | 16 - ...ponseResultOfMarginCrossMaxBorrowResult.md | 16 - ...iResponseResultOfMarginCrossRepayResult.md | 16 - ...esponseResultOfMarginInterestInfoResult.md | 16 - ...ponseResultOfMarginIsolatedAssetsResult.md | 16 - ...ResultOfMarginIsolatedBorrowLimitResult.md | 16 - ...onseResultOfMarginIsolatedFinFlowResult.md | 16 - ...esultOfMarginIsolatedInterestInfoResult.md | 16 - ...ltOfMarginIsolatedLiquidationInfoResult.md | 16 - ...nseResultOfMarginIsolatedLoanInfoResult.md | 16 - ...seResultOfMarginIsolatedMaxBorrowResult.md | 16 - ...seResultOfMarginIsolatedRepayInfoResult.md | 16 - ...sponseResultOfMarginIsolatedRepayResult.md | 16 - ...onseResultOfMarginLiquidationInfoResult.md | 16 - ...ApiResponseResultOfMarginLoanInfoResult.md | 16 - ...sponseResultOfMarginOpenOrderInfoResult.md | 16 - ...iResponseResultOfMarginPlaceOrderResult.md | 16 - ...piResponseResultOfMarginRepayInfoResult.md | 16 - ...onseResultOfMarginTradeDetailInfoResult.md | 16 - .../ApiResponseResultOfMerchantAdvResult.md | 16 - .../ApiResponseResultOfMerchantInfoResult.md | 16 - .../ApiResponseResultOfMerchantOrderResult.md | 16 - .../ApiResponseResultOfMerchantPersonInfo.md | 16 - .../docs/ApiResponseResultOfVoid.md | 15 - .../docs/FiatPaymentDetailInfo.md | 15 - .../docs/FiatPaymentInfo.md | 15 - .../docs/MarginBatchCancelOrderRequest.md | 15 - .../docs/MarginBatchCancelOrderResult.md | 14 - .../docs/MarginBatchOrdersRequest.md | 16 - .../MarginBatchPlaceOrderFailureResult.md | 14 - .../docs/MarginBatchPlaceOrderResult.md | 14 - .../docs/MarginCancelOrderFailureResult.md | 15 - .../docs/MarginCancelOrderRequest.md | 15 - .../docs/MarginCancelOrderResult.md | 14 - .../docs/MarginCrossAccountApi.md | 679 -- .../docs/MarginCrossAssetsPopulationResult.md | 20 - .../docs/MarginCrossAssetsResult.md | 14 - .../docs/MarginCrossAssetsRiskResult.md | 13 - .../docs/MarginCrossBorrowApi.md | 115 - .../docs/MarginCrossBorrowLimitResult.md | 15 - .../docs/MarginCrossFinFlowInfo.md | 19 - .../docs/MarginCrossFinFlowResult.md | 15 - .../docs/MarginCrossFinflowApi.md | 115 - .../docs/MarginCrossInterestApi.md | 111 - .../docs/MarginCrossLevelResult.md | 17 - .../docs/MarginCrossLimitRequest.md | 14 - .../docs/MarginCrossLiquidationApi.md | 111 - .../docs/MarginCrossMaxBorrowRequest.md | 13 - .../docs/MarginCrossMaxBorrowResult.md | 14 - .../docs/MarginCrossOrderApi.md | 723 -- .../docs/MarginCrossPublicApi.md | 140 - .../docs/MarginCrossRateAndLimitResult.md | 20 - .../docs/MarginCrossRepayApi.md | 115 - .../docs/MarginCrossRepayRequest.md | 14 - .../docs/MarginCrossRepayResult.md | 16 - .../docs/MarginCrossVipResult.md | 16 - .../docs/MarginInterestInfo.md | 19 - .../docs/MarginInterestInfoResult.md | 15 - .../docs/MarginIsolatedAccountApi.md | 592 -- .../MarginIsolatedAssetsPopulationResult.md | 21 - .../docs/MarginIsolatedAssetsResult.md | 15 - .../docs/MarginIsolatedAssetsRiskRequest.md | 15 - .../docs/MarginIsolatedAssetsRiskResult.md | 14 - .../docs/MarginIsolatedBorrowApi.md | 117 - .../docs/MarginIsolatedBorrowLimitResult.md | 16 - .../docs/MarginIsolatedFinFlowInfo.md | 20 - .../docs/MarginIsolatedFinFlowResult.md | 15 - .../docs/MarginIsolatedFinflowApi.md | 119 - .../docs/MarginIsolatedInterestApi.md | 113 - .../docs/MarginIsolatedInterestInfo.md | 20 - .../docs/MarginIsolatedInterestInfoResult.md | 15 - .../docs/MarginIsolatedLevelResult.md | 21 - .../docs/MarginIsolatedLimitRequest.md | 15 - .../docs/MarginIsolatedLiquidationApi.md | 113 - .../docs/MarginIsolatedLiquidationInfo.md | 21 - .../MarginIsolatedLiquidationInfoResult.md | 15 - .../docs/MarginIsolatedLoanInfo.md | 18 - .../docs/MarginIsolatedLoanInfoResult.md | 15 - .../docs/MarginIsolatedMaxBorrowRequest.md | 14 - .../docs/MarginIsolatedMaxBorrowResult.md | 15 - .../docs/MarginIsolatedOrderApi.md | 721 -- .../docs/MarginIsolatedPublicApi.md | 140 - .../docs/MarginIsolatedRateAndLimitResult.md | 28 - .../docs/MarginIsolatedRepayApi.md | 117 - .../docs/MarginIsolatedRepayInfo.md | 20 - .../docs/MarginIsolatedRepayInfoResult.md | 15 - .../docs/MarginIsolatedRepayRequest.md | 15 - .../docs/MarginIsolatedRepayResult.md | 17 - .../docs/MarginIsolatedVipResult.md | 16 - .../docs/MarginLiquidationInfo.md | 20 - .../docs/MarginLiquidationInfoResult.md | 15 - .../docs/MarginLoanInfo.md | 17 - .../docs/MarginLoanInfoResult.md | 15 - .../docs/MarginOpenOrderInfoResult.md | 15 - .../docs/MarginOrderInfo.md | 27 - .../docs/MarginOrderRequest.md | 23 - .../docs/MarginPlaceOrderResult.md | 14 - .../docs/MarginPublicApi.md | 70 - .../docs/MarginRepayInfo.md | 19 - .../docs/MarginRepayInfoResult.md | 15 - .../docs/MarginSystemResult.md | 29 - .../docs/MarginTradeDetailInfo.md | 22 - .../docs/MarginTradeDetailInfoResult.md | 15 - .../docs/MerchantAdvInfo.md | 34 - .../docs/MerchantAdvResult.md | 14 - .../docs/MerchantAdvUserLimitInfo.md | 18 - bitget-java-sdk-open-api/docs/MerchantInfo.md | 26 - .../docs/MerchantInfoResult.md | 14 - .../docs/MerchantOrderInfo.md | 30 - .../docs/MerchantOrderPaymentInfo.md | 15 - .../docs/MerchantOrderResult.md | 14 - .../docs/MerchantPersonInfo.md | 31 - .../docs/OrderPaymentDetailInfo.md | 16 - .../docs/P2pMerchantApi.md | 438 -- bitget-java-sdk-open-api/git_push.sh | 57 - bitget-java-sdk-open-api/gradle.properties | 6 - .../gradle/wrapper/gradle-wrapper.jar | Bin 59536 -> 0 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 - bitget-java-sdk-open-api/gradlew | 234 - bitget-java-sdk-open-api/gradlew.bat | 89 - bitget-java-sdk-open-api/pom.xml | 368 - bitget-java-sdk-open-api/settings.gradle | 1 - .../src/main/AndroidManifest.xml | 3 - .../java/com/bitget/openapi/ApiCallback.java | 62 - .../java/com/bitget/openapi/ApiClient.java | 1515 ---- .../java/com/bitget/openapi/ApiConfig.java | 26 - .../java/com/bitget/openapi/ApiException.java | 166 - .../java/com/bitget/openapi/ApiResponse.java | 76 - .../com/bitget/openapi/Configuration.java | 39 - .../openapi/GzipRequestInterceptor.java | 85 - .../main/java/com/bitget/openapi/JSON.java | 509 -- .../main/java/com/bitget/openapi/Pair.java | 57 - .../bitget/openapi/ProgressRequestBody.java | 73 - .../bitget/openapi/ProgressResponseBody.java | 70 - .../bitget/openapi/ServerConfiguration.java | 58 - .../com/bitget/openapi/ServerVariable.java | 23 - .../com/bitget/openapi/SignatureUtils.java | 96 - .../java/com/bitget/openapi/StringUtil.java | 83 - .../openapi/api/MarginCrossAccountApi.java | 1016 --- .../openapi/api/MarginCrossBorrowApi.java | 255 - .../openapi/api/MarginCrossFinflowApi.java | 255 - .../openapi/api/MarginCrossInterestApi.java | 239 - .../api/MarginCrossLiquidationApi.java | 239 - .../openapi/api/MarginCrossOrderApi.java | 1198 ---- .../openapi/api/MarginCrossPublicApi.java | 354 - .../openapi/api/MarginCrossRepayApi.java | 255 - .../openapi/api/MarginIsolatedAccountApi.java | 915 --- .../openapi/api/MarginIsolatedBorrowApi.java | 268 - .../openapi/api/MarginIsolatedFinflowApi.java | 276 - .../api/MarginIsolatedInterestApi.java | 252 - .../api/MarginIsolatedLiquidationApi.java | 252 - .../openapi/api/MarginIsolatedOrderApi.java | 1180 --- .../openapi/api/MarginIsolatedPublicApi.java | 354 - .../openapi/api/MarginIsolatedRepayApi.java | 268 - .../bitget/openapi/api/MarginPublicApi.java | 202 - .../bitget/openapi/api/P2pMerchantApi.java | 798 --- .../com/bitget/openapi/auth/ApiKeyAuth.java | 80 - .../bitget/openapi/auth/Authentication.java | 36 - .../bitget/openapi/auth/HttpBasicAuth.java | 57 - .../bitget/openapi/auth/HttpBearerAuth.java | 63 - .../openapi/model/AbstractOpenApiSchema.java | 149 - ...stOfMarginCrossAssetsPopulationResult.java | 401 -- ...eResultOfListOfMarginCrossLevelResult.java | 401 -- ...OfListOfMarginCrossRateAndLimitResult.java | 401 -- ...fMarginIsolatedAssetsPopulationResult.java | 401 -- ...fListOfMarginIsolatedAssetsRiskResult.java | 401 -- ...sultOfListOfMarginIsolatedLevelResult.java | 401 -- ...istOfMarginIsolatedRateAndLimitResult.java | 401 -- ...ponseResultOfListOfMarginSystemResult.java | 401 -- ...eResultOfMarginBatchCancelOrderResult.java | 381 - ...seResultOfMarginBatchPlaceOrderResult.java | 381 - ...sponseResultOfMarginCrossAssetsResult.java | 381 - ...seResultOfMarginCrossAssetsRiskResult.java | 381 - ...eResultOfMarginCrossBorrowLimitResult.java | 381 - ...ponseResultOfMarginCrossFinFlowResult.java | 381 - ...nseResultOfMarginCrossMaxBorrowResult.java | 381 - ...esponseResultOfMarginCrossRepayResult.java | 381 - ...ponseResultOfMarginInterestInfoResult.java | 381 - ...nseResultOfMarginIsolatedAssetsResult.java | 381 - ...sultOfMarginIsolatedBorrowLimitResult.java | 381 - ...seResultOfMarginIsolatedFinFlowResult.java | 381 - ...ultOfMarginIsolatedInterestInfoResult.java | 381 - ...OfMarginIsolatedLiquidationInfoResult.java | 381 - ...eResultOfMarginIsolatedLoanInfoResult.java | 381 - ...ResultOfMarginIsolatedMaxBorrowResult.java | 381 - ...ResultOfMarginIsolatedRepayInfoResult.java | 381 - ...onseResultOfMarginIsolatedRepayResult.java | 381 - ...seResultOfMarginLiquidationInfoResult.java | 381 - ...iResponseResultOfMarginLoanInfoResult.java | 381 - ...onseResultOfMarginOpenOrderInfoResult.java | 381 - ...esponseResultOfMarginPlaceOrderResult.java | 381 - ...ResponseResultOfMarginRepayInfoResult.java | 381 - ...seResultOfMarginTradeDetailInfoResult.java | 381 - .../ApiResponseResultOfMerchantAdvResult.java | 381 - ...ApiResponseResultOfMerchantInfoResult.java | 381 - ...piResponseResultOfMerchantOrderResult.java | 381 - ...ApiResponseResultOfMerchantPersonInfo.java | 381 - .../model/ApiResponseResultOfVoid.java | 346 - .../openapi/model/FiatPaymentDetailInfo.java | 346 - .../bitget/openapi/model/FiatPaymentInfo.java | 371 - .../model/MarginBatchCancelOrderRequest.java | 377 - .../model/MarginBatchCancelOrderResult.java | 358 - .../model/MarginBatchOrdersRequest.java | 412 -- .../MarginBatchPlaceOrderFailureResult.java | 316 - .../model/MarginBatchPlaceOrderResult.java | 358 - .../model/MarginCancelOrderFailureResult.java | 349 - .../model/MarginCancelOrderRequest.java | 357 - .../model/MarginCancelOrderResult.java | 316 - .../MarginCrossAssetsPopulationResult.java | 514 -- .../model/MarginCrossAssetsResult.java | 316 - .../model/MarginCrossAssetsRiskResult.java | 283 - .../model/MarginCrossBorrowLimitResult.java | 349 - .../openapi/model/MarginCrossFinFlowInfo.java | 481 -- .../model/MarginCrossFinFlowResult.java | 371 - .../openapi/model/MarginCrossLevelResult.java | 415 -- .../model/MarginCrossLimitRequest.java | 325 - .../model/MarginCrossMaxBorrowRequest.java | 291 - .../model/MarginCrossMaxBorrowResult.java | 316 - .../model/MarginCrossRateAndLimitResult.java | 530 -- .../model/MarginCrossRepayRequest.java | 325 - .../openapi/model/MarginCrossRepayResult.java | 382 - .../openapi/model/MarginCrossVipResult.java | 382 - .../openapi/model/MarginInterestInfo.java | 481 -- .../model/MarginInterestInfoResult.java | 371 - .../MarginIsolatedAssetsPopulationResult.java | 547 -- .../model/MarginIsolatedAssetsResult.java | 349 - .../MarginIsolatedAssetsRiskRequest.java | 357 - .../model/MarginIsolatedAssetsRiskResult.java | 316 - .../MarginIsolatedBorrowLimitResult.java | 382 - .../model/MarginIsolatedFinFlowInfo.java | 514 -- .../model/MarginIsolatedFinFlowResult.java | 371 - .../model/MarginIsolatedInterestInfo.java | 514 -- .../MarginIsolatedInterestInfoResult.java | 371 - .../model/MarginIsolatedLevelResult.java | 547 -- .../model/MarginIsolatedLimitRequest.java | 359 - .../model/MarginIsolatedLiquidationInfo.java | 547 -- .../MarginIsolatedLiquidationInfoResult.java | 371 - .../openapi/model/MarginIsolatedLoanInfo.java | 448 -- .../model/MarginIsolatedLoanInfoResult.java | 371 - .../model/MarginIsolatedMaxBorrowRequest.java | 325 - .../model/MarginIsolatedMaxBorrowResult.java | 349 - .../MarginIsolatedRateAndLimitResult.java | 807 --- .../model/MarginIsolatedRepayInfo.java | 514 -- .../model/MarginIsolatedRepayInfoResult.java | 371 - .../model/MarginIsolatedRepayRequest.java | 359 - .../model/MarginIsolatedRepayResult.java | 415 -- .../model/MarginIsolatedVipResult.java | 382 - .../openapi/model/MarginLiquidationInfo.java | 514 -- .../model/MarginLiquidationInfoResult.java | 371 - .../bitget/openapi/model/MarginLoanInfo.java | 415 -- .../openapi/model/MarginLoanInfoResult.java | 371 - .../model/MarginOpenOrderInfoResult.java | 371 - .../bitget/openapi/model/MarginOrderInfo.java | 745 -- .../openapi/model/MarginOrderRequest.java | 624 -- .../openapi/model/MarginPlaceOrderResult.java | 316 - .../bitget/openapi/model/MarginRepayInfo.java | 481 -- .../openapi/model/MarginRepayInfoResult.java | 371 - .../openapi/model/MarginSystemResult.java | 808 --- .../openapi/model/MarginTradeDetailInfo.java | 580 -- .../model/MarginTradeDetailInfoResult.java | 371 - .../bitget/openapi/model/MerchantAdvInfo.java | 1000 --- .../openapi/model/MerchantAdvResult.java | 338 - .../model/MerchantAdvUserLimitInfo.java | 448 -- .../bitget/openapi/model/MerchantInfo.java | 712 -- .../openapi/model/MerchantInfoResult.java | 338 - .../openapi/model/MerchantOrderInfo.java | 846 --- .../model/MerchantOrderPaymentInfo.java | 371 - .../openapi/model/MerchantOrderResult.java | 338 - .../openapi/model/MerchantPersonInfo.java | 868 --- .../openapi/model/OrderPaymentDetailInfo.java | 379 - .../api/MarginCrossAccountApiTest.java | 157 - .../openapi/api/MarginCrossBorrowApiTest.java | 66 - .../api/MarginCrossFinflowApiTest.java | 70 - .../api/MarginCrossInterestApiTest.java | 67 - .../api/MarginCrossLiquidationApiTest.java | 68 - .../openapi/api/MarginCrossOrderApiTest.java | 289 - .../openapi/api/MarginCrossPublicApiTest.java | 94 - .../openapi/api/MarginCrossRepayApiTest.java | 69 - .../api/MarginIsolatedAccountApiTest.java | 172 - .../api/MarginIsolatedBorrowApiTest.java | 68 - .../api/MarginIsolatedFinflowApiTest.java | 72 - .../api/MarginIsolatedInterestApiTest.java | 69 - .../api/MarginIsolatedLiquidationApiTest.java | 70 - .../api/MarginIsolatedOrderApiTest.java | 264 - .../api/MarginIsolatedPublicApiTest.java | 112 - .../api/MarginIsolatedRepayApiTest.java | 69 - .../openapi/api/MarginPublicApiTest.java | 70 - .../openapi/api/P2pMerchantApiTest.java | 175 - ...MarginCrossAssetsPopulationResultTest.java | 77 - ...ultOfListOfMarginCrossLevelResultTest.java | 77 - ...stOfMarginCrossRateAndLimitResultTest.java | 77 - ...ginIsolatedAssetsPopulationResultTest.java | 77 - ...tOfMarginIsolatedAssetsRiskResultTest.java | 77 - ...OfListOfMarginIsolatedLevelResultTest.java | 77 - ...fMarginIsolatedRateAndLimitResultTest.java | 77 - ...eResultOfListOfMarginSystemResultTest.java | 77 - ...ultOfMarginBatchCancelOrderResultTest.java | 75 - ...sultOfMarginBatchPlaceOrderResultTest.java | 75 - ...seResultOfMarginCrossAssetsResultTest.java | 75 - ...sultOfMarginCrossAssetsRiskResultTest.java | 75 - ...ultOfMarginCrossBorrowLimitResultTest.java | 75 - ...eResultOfMarginCrossFinFlowResultTest.java | 75 - ...esultOfMarginCrossMaxBorrowResultTest.java | 75 - ...nseResultOfMarginCrossRepayResultTest.java | 75 - ...eResultOfMarginInterestInfoResultTest.java | 75 - ...esultOfMarginIsolatedAssetsResultTest.java | 75 - ...OfMarginIsolatedBorrowLimitResultTest.java | 75 - ...sultOfMarginIsolatedFinFlowResultTest.java | 75 - ...fMarginIsolatedInterestInfoResultTest.java | 75 - ...rginIsolatedLiquidationInfoResultTest.java | 75 - ...ultOfMarginIsolatedLoanInfoResultTest.java | 75 - ...ltOfMarginIsolatedMaxBorrowResultTest.java | 75 - ...ltOfMarginIsolatedRepayInfoResultTest.java | 75 - ...ResultOfMarginIsolatedRepayResultTest.java | 75 - ...sultOfMarginLiquidationInfoResultTest.java | 75 - ...ponseResultOfMarginLoanInfoResultTest.java | 75 - ...ResultOfMarginOpenOrderInfoResultTest.java | 75 - ...nseResultOfMarginPlaceOrderResultTest.java | 75 - ...onseResultOfMarginRepayInfoResultTest.java | 75 - ...sultOfMarginTradeDetailInfoResultTest.java | 75 - ...ResponseResultOfMerchantAdvResultTest.java | 75 - ...esponseResultOfMerchantInfoResultTest.java | 75 - ...sponseResultOfMerchantOrderResultTest.java | 75 - ...esponseResultOfMerchantPersonInfoTest.java | 75 - .../model/ApiResponseResultOfVoidTest.java | 66 - .../model/FiatPaymentDetailInfoTest.java | 66 - .../openapi/model/FiatPaymentInfoTest.java | 69 - .../MarginBatchCancelOrderRequestTest.java | 68 - .../MarginBatchCancelOrderResultTest.java | 62 - .../model/MarginBatchOrdersRequestTest.java | 77 - ...arginBatchPlaceOrderFailureResultTest.java | 58 - .../MarginBatchPlaceOrderResultTest.java | 62 - .../MarginCancelOrderFailureResultTest.java | 66 - .../model/MarginCancelOrderRequestTest.java | 66 - .../model/MarginCancelOrderResultTest.java | 58 - ...MarginCrossAssetsPopulationResultTest.java | 106 - .../model/MarginCrossAssetsResultTest.java | 58 - .../MarginCrossAssetsRiskResultTest.java | 50 - .../MarginCrossBorrowLimitResultTest.java | 66 - .../model/MarginCrossFinFlowInfoTest.java | 98 - .../model/MarginCrossFinFlowResultTest.java | 69 - .../model/MarginCrossLevelResultTest.java | 82 - .../model/MarginCrossLimitRequestTest.java | 58 - .../MarginCrossMaxBorrowRequestTest.java | 50 - .../model/MarginCrossMaxBorrowResultTest.java | 58 - .../MarginCrossRateAndLimitResultTest.java | 109 - .../model/MarginCrossRepayRequestTest.java | 58 - .../model/MarginCrossRepayResultTest.java | 74 - .../model/MarginCrossVipResultTest.java | 74 - .../model/MarginInterestInfoResultTest.java | 69 - .../openapi/model/MarginInterestInfoTest.java | 98 - ...ginIsolatedAssetsPopulationResultTest.java | 114 - .../model/MarginIsolatedAssetsResultTest.java | 66 - .../MarginIsolatedAssetsRiskRequestTest.java | 66 - .../MarginIsolatedAssetsRiskResultTest.java | 58 - .../MarginIsolatedBorrowLimitResultTest.java | 74 - .../model/MarginIsolatedFinFlowInfoTest.java | 106 - .../MarginIsolatedFinFlowResultTest.java | 69 - .../MarginIsolatedInterestInfoResultTest.java | 69 - .../model/MarginIsolatedInterestInfoTest.java | 106 - .../model/MarginIsolatedLevelResultTest.java | 114 - .../model/MarginIsolatedLimitRequestTest.java | 66 - ...rginIsolatedLiquidationInfoResultTest.java | 69 - .../MarginIsolatedLiquidationInfoTest.java | 114 - .../MarginIsolatedLoanInfoResultTest.java | 69 - .../model/MarginIsolatedLoanInfoTest.java | 90 - .../MarginIsolatedMaxBorrowRequestTest.java | 58 - .../MarginIsolatedMaxBorrowResultTest.java | 66 - .../MarginIsolatedRateAndLimitResultTest.java | 173 - .../MarginIsolatedRepayInfoResultTest.java | 69 - .../model/MarginIsolatedRepayInfoTest.java | 106 - .../model/MarginIsolatedRepayRequestTest.java | 66 - .../model/MarginIsolatedRepayResultTest.java | 82 - .../model/MarginIsolatedVipResultTest.java | 74 - .../MarginLiquidationInfoResultTest.java | 69 - .../model/MarginLiquidationInfoTest.java | 106 - .../model/MarginLoanInfoResultTest.java | 69 - .../openapi/model/MarginLoanInfoTest.java | 82 - .../model/MarginOpenOrderInfoResultTest.java | 69 - .../openapi/model/MarginOrderInfoTest.java | 162 - .../openapi/model/MarginOrderRequestTest.java | 130 - .../model/MarginPlaceOrderResultTest.java | 58 - .../model/MarginRepayInfoResultTest.java | 69 - .../openapi/model/MarginRepayInfoTest.java | 98 - .../openapi/model/MarginSystemResultTest.java | 178 - .../MarginTradeDetailInfoResultTest.java | 69 - .../model/MarginTradeDetailInfoTest.java | 122 - .../openapi/model/MerchantAdvInfoTest.java | 222 - .../openapi/model/MerchantAdvResultTest.java | 61 - .../model/MerchantAdvUserLimitInfoTest.java | 90 - .../openapi/model/MerchantInfoResultTest.java | 61 - .../openapi/model/MerchantInfoTest.java | 154 - .../openapi/model/MerchantOrderInfoTest.java | 187 - .../model/MerchantOrderPaymentInfoTest.java | 69 - .../model/MerchantOrderResultTest.java | 61 - .../openapi/model/MerchantPersonInfoTest.java | 194 - .../model/OrderPaymentDetailInfoTest.java | 74 - bitget-node-sdk-open-api/README.md | 98 - .../__test__/MarginCrossAccountApi.spec.ts | 134 - .../__test__/MarginCrossBorrowApi.spec.ts | 38 - .../__test__/MarginCrossFinFlowApi.spec.ts | 38 - .../__test__/MarginCrossInterestApi.spec.ts | 38 - .../MarginCrossLiquidationApi.spec.ts | 38 - .../__test__/MarginCrossOrderApi.spec.ts | 249 - .../__test__/MarginCrossPublicApi.spec.ts | 63 - .../__test__/MarginCrossRepayApi.spec.ts | 38 - .../MarginIsolatecInterestApi.spec.ts | 38 - .../__test__/MarginIsolatedAccountApi.spec.ts | 143 - .../__test__/MarginIsolatedBorrowApi.spec.ts | 38 - .../__test__/MarginIsolatedFinFlowApi.spec.ts | 38 - .../MarginIsolatedLiquidationApi.spec.ts | 38 - .../__test__/MarginIsolatedOrderApi.spec.ts | 249 - .../__test__/MarginIsolatedPublicApi.spec.ts | 67 - .../__test__/MarginIsolatedRepayApi.spec.ts | 38 - .../__test__/MarginPublicApi.spec.ts | 43 - .../__test__/P2PMerchantApi.spec.ts | 96 - bitget-node-sdk-open-api/api.ts | 3 - bitget-node-sdk-open-api/api/apis.ts | 48 - bitget-node-sdk-open-api/api/config.ts | 20 - .../api/marginCrossAccountApi.ts | 689 -- .../api/marginCrossBorrowApi.ts | 213 - .../api/marginCrossFinflowApi.ts | 213 - .../api/marginCrossInterestApi.ts | 203 - .../api/marginCrossLiquidationApi.ts | 203 - .../api/marginCrossOrderApi.ts | 811 --- .../api/marginCrossPublicApi.ts | 246 - .../api/marginCrossRepayApi.ts | 213 - .../api/marginIsolatedAccountApi.ts | 630 -- .../api/marginIsolatedBorrowApi.ts | 223 - .../api/marginIsolatedFinflowApi.ts | 228 - .../api/marginIsolatedInterestApi.ts | 213 - .../api/marginIsolatedLiquidationApi.ts | 213 - .../api/marginIsolatedOrderApi.ts | 796 --- .../api/marginIsolatedPublicApi.ts | 246 - .../api/marginIsolatedRepayApi.ts | 223 - .../api/marginPublicApi.ts | 163 - .../api/p2pMerchantApi.ts | 552 -- bitget-node-sdk-open-api/git_push.sh | 57 - bitget-node-sdk-open-api/jest.config.js | 5 - ...ListOfMarginCrossAssetsPopulationResult.ts | 62 - ...nseResultOfListOfMarginCrossLevelResult.ts | 62 - ...ltOfListOfMarginCrossRateAndLimitResult.ts | 62 - ...tOfMarginIsolatedAssetsPopulationResult.ts | 62 - ...tOfListOfMarginIsolatedAssetsRiskResult.ts | 62 - ...ResultOfListOfMarginIsolatedLevelResult.ts | 62 - ...fListOfMarginIsolatedRateAndLimitResult.ts | 62 - ...esponseResultOfListOfMarginSystemResult.ts | 62 - ...nseResultOfMarginBatchCancelOrderResult.ts | 59 - ...onseResultOfMarginBatchPlaceOrderResult.ts | 59 - ...ResponseResultOfMarginCrossAssetsResult.ts | 59 - ...onseResultOfMarginCrossAssetsRiskResult.ts | 59 - ...nseResultOfMarginCrossBorrowLimitResult.ts | 59 - ...esponseResultOfMarginCrossFinFlowResult.ts | 59 - ...ponseResultOfMarginCrossMaxBorrowResult.ts | 59 - ...iResponseResultOfMarginCrossRepayResult.ts | 59 - ...esponseResultOfMarginInterestInfoResult.ts | 59 - ...ponseResultOfMarginIsolatedAssetsResult.ts | 59 - ...ResultOfMarginIsolatedBorrowLimitResult.ts | 59 - ...onseResultOfMarginIsolatedFinFlowResult.ts | 59 - ...esultOfMarginIsolatedInterestInfoResult.ts | 59 - ...ltOfMarginIsolatedLiquidationInfoResult.ts | 59 - ...nseResultOfMarginIsolatedLoanInfoResult.ts | 59 - ...seResultOfMarginIsolatedMaxBorrowResult.ts | 59 - ...seResultOfMarginIsolatedRepayInfoResult.ts | 59 - ...sponseResultOfMarginIsolatedRepayResult.ts | 59 - ...onseResultOfMarginLiquidationInfoResult.ts | 59 - ...apiResponseResultOfMarginLoanInfoResult.ts | 59 - ...sponseResultOfMarginOpenOrderInfoResult.ts | 59 - ...iResponseResultOfMarginPlaceOrderResult.ts | 59 - ...piResponseResultOfMarginRepayInfoResult.ts | 59 - ...onseResultOfMarginTradeDetailInfoResult.ts | 59 - .../apiResponseResultOfMerchantAdvResult.ts | 59 - .../apiResponseResultOfMerchantInfoResult.ts | 59 - .../apiResponseResultOfMerchantOrderResult.ts | 59 - .../apiResponseResultOfMerchantPersonInfo.ts | 59 - .../model/apiResponseResultOfVoid.ts | 52 - .../model/fiatPaymentDetailInfo.ts | 43 - .../model/fiatPaymentInfo.ts | 44 - .../model/marginBatchCancelOrderRequest.ts | 52 - .../model/marginBatchCancelOrderResult.ts | 39 - .../model/marginBatchOrdersRequest.ts | 53 - .../marginBatchPlaceOrderFailureResult.ts | 37 - .../model/marginBatchPlaceOrderResult.ts | 39 - .../model/marginCancelOrderFailureResult.ts | 43 - .../model/marginCancelOrderRequest.ts | 52 - .../model/marginCancelOrderResult.ts | 37 - .../marginCrossAssetsPopulationResult.ts | 73 - .../model/marginCrossAssetsResult.ts | 37 - .../model/marginCrossAssetsRiskResult.ts | 31 - .../model/marginCrossBorrowLimitResult.ts | 43 - .../model/marginCrossFinFlowInfo.ts | 67 - .../model/marginCrossFinFlowResult.ts | 44 - .../model/marginCrossLevelResult.ts | 55 - .../model/marginCrossLimitRequest.ts | 43 - .../model/marginCrossMaxBorrowRequest.ts | 34 - .../model/marginCrossMaxBorrowResult.ts | 37 - .../model/marginCrossRateAndLimitResult.ts | 74 - .../model/marginCrossRepayRequest.ts | 43 - .../model/marginCrossRepayResult.ts | 49 - .../model/marginCrossVipResult.ts | 49 - .../model/marginInterestInfo.ts | 67 - .../model/marginInterestInfoResult.ts | 44 - .../marginIsolatedAssetsPopulationResult.ts | 79 - .../model/marginIsolatedAssetsResult.ts | 43 - .../model/marginIsolatedAssetsRiskRequest.ts | 52 - .../model/marginIsolatedAssetsRiskResult.ts | 37 - .../model/marginIsolatedBorrowLimitResult.ts | 49 - .../model/marginIsolatedFinFlowInfo.ts | 73 - .../model/marginIsolatedFinFlowResult.ts | 44 - .../model/marginIsolatedInterestInfo.ts | 73 - .../model/marginIsolatedInterestInfoResult.ts | 44 - .../model/marginIsolatedLevelResult.ts | 79 - .../model/marginIsolatedLimitRequest.ts | 52 - .../model/marginIsolatedLiquidationInfo.ts | 79 - .../marginIsolatedLiquidationInfoResult.ts | 44 - .../model/marginIsolatedLoanInfo.ts | 61 - .../model/marginIsolatedLoanInfoResult.ts | 44 - .../model/marginIsolatedMaxBorrowRequest.ts | 43 - .../model/marginIsolatedMaxBorrowResult.ts | 43 - .../model/marginIsolatedRateAndLimitResult.ts | 122 - .../model/marginIsolatedRepayInfo.ts | 73 - .../model/marginIsolatedRepayInfoResult.ts | 44 - .../model/marginIsolatedRepayRequest.ts | 52 - .../model/marginIsolatedRepayResult.ts | 55 - .../model/marginIsolatedVipResult.ts | 49 - .../model/marginLiquidationInfo.ts | 73 - .../model/marginLiquidationInfoResult.ts | 44 - .../model/marginLoanInfo.ts | 55 - .../model/marginLoanInfoResult.ts | 44 - .../model/marginOpenOrderInfoResult.ts | 44 - .../model/marginOrderInfo.ts | 115 - .../model/marginOrderRequest.ts | 118 - .../model/marginPlaceOrderResult.ts | 37 - .../model/marginRepayInfo.ts | 67 - .../model/marginRepayInfoResult.ts | 44 - .../model/marginSystemResult.ts | 127 - .../model/marginTradeDetailInfo.ts | 85 - .../model/marginTradeDetailInfoResult.ts | 44 - .../model/merchantAdvInfo.ts | 159 - .../model/merchantAdvResult.ts | 38 - .../model/merchantAdvUserLimitInfo.ts | 61 - .../model/merchantInfo.ts | 109 - .../model/merchantInfoResult.ts | 38 - .../model/merchantOrderInfo.ts | 134 - .../model/merchantOrderPaymentInfo.ts | 44 - .../model/merchantOrderResult.ts | 38 - .../model/merchantPersonInfo.ts | 139 - bitget-node-sdk-open-api/model/models.ts | 563 -- .../model/orderPaymentDetailInfo.ts | 49 - bitget-node-sdk-open-api/model/util.ts | 16 - bitget-node-sdk-open-api/package.json | 38 - bitget-node-sdk-open-api/tsconfig.json | 25 - bitget-php-sdk-open-api/README.md | 377 - bitget-php-sdk-open-api/composer.json | 38 - .../docs/Api/MarginCrossAccountApi.md | 582 -- .../docs/Api/MarginCrossBorrowApi.md | 100 - .../docs/Api/MarginCrossFinflowApi.md | 100 - .../docs/Api/MarginCrossInterestApi.md | 96 - .../docs/Api/MarginCrossLiquidationApi.md | 96 - .../docs/Api/MarginCrossOrderApi.md | 624 -- .../docs/Api/MarginCrossPublicApi.md | 121 - .../docs/Api/MarginCrossRepayApi.md | 100 - .../docs/Api/MarginIsolatedAccountApi.md | 507 -- .../docs/Api/MarginIsolatedBorrowApi.md | 102 - .../docs/Api/MarginIsolatedFinflowApi.md | 104 - .../docs/Api/MarginIsolatedInterestApi.md | 98 - .../docs/Api/MarginIsolatedLiquidationApi.md | 98 - .../docs/Api/MarginIsolatedOrderApi.md | 622 -- .../docs/Api/MarginIsolatedPublicApi.md | 121 - .../docs/Api/MarginIsolatedRepayApi.md | 102 - .../docs/Api/MarginPublicApi.md | 61 - .../docs/Api/P2pMerchantApi.md | 382 - ...ListOfMarginCrossAssetsPopulationResult.md | 12 - ...nseResultOfListOfMarginCrossLevelResult.md | 12 - ...ltOfListOfMarginCrossRateAndLimitResult.md | 12 - ...tOfMarginIsolatedAssetsPopulationResult.md | 12 - ...tOfListOfMarginIsolatedAssetsRiskResult.md | 12 - ...ResultOfListOfMarginIsolatedLevelResult.md | 12 - ...fListOfMarginIsolatedRateAndLimitResult.md | 12 - ...esponseResultOfListOfMarginSystemResult.md | 12 - ...nseResultOfMarginBatchCancelOrderResult.md | 12 - ...onseResultOfMarginBatchPlaceOrderResult.md | 12 - ...ResponseResultOfMarginCrossAssetsResult.md | 12 - ...onseResultOfMarginCrossAssetsRiskResult.md | 12 - ...nseResultOfMarginCrossBorrowLimitResult.md | 12 - ...esponseResultOfMarginCrossFinFlowResult.md | 12 - ...ponseResultOfMarginCrossMaxBorrowResult.md | 12 - ...iResponseResultOfMarginCrossRepayResult.md | 12 - ...esponseResultOfMarginInterestInfoResult.md | 12 - ...ponseResultOfMarginIsolatedAssetsResult.md | 12 - ...ResultOfMarginIsolatedBorrowLimitResult.md | 12 - ...onseResultOfMarginIsolatedFinFlowResult.md | 12 - ...esultOfMarginIsolatedInterestInfoResult.md | 12 - ...ltOfMarginIsolatedLiquidationInfoResult.md | 12 - ...nseResultOfMarginIsolatedLoanInfoResult.md | 12 - ...seResultOfMarginIsolatedMaxBorrowResult.md | 12 - ...seResultOfMarginIsolatedRepayInfoResult.md | 12 - ...sponseResultOfMarginIsolatedRepayResult.md | 12 - ...onseResultOfMarginLiquidationInfoResult.md | 12 - ...ApiResponseResultOfMarginLoanInfoResult.md | 12 - ...sponseResultOfMarginOpenOrderInfoResult.md | 12 - ...iResponseResultOfMarginPlaceOrderResult.md | 12 - ...piResponseResultOfMarginRepayInfoResult.md | 12 - ...onseResultOfMarginTradeDetailInfoResult.md | 12 - .../ApiResponseResultOfMerchantAdvResult.md | 12 - .../ApiResponseResultOfMerchantInfoResult.md | 12 - .../ApiResponseResultOfMerchantOrderResult.md | 12 - .../ApiResponseResultOfMerchantPersonInfo.md | 12 - .../docs/Model/ApiResponseResultOfVoid.md | 11 - .../docs/Model/FiatPaymentDetailInfo.md | 11 - .../docs/Model/FiatPaymentInfo.md | 11 - .../Model/MarginBatchCancelOrderRequest.md | 11 - .../Model/MarginBatchCancelOrderResult.md | 10 - .../docs/Model/MarginBatchOrdersRequest.md | 12 - .../MarginBatchPlaceOrderFailureResult.md | 10 - .../docs/Model/MarginBatchPlaceOrderResult.md | 10 - .../Model/MarginCancelOrderFailureResult.md | 11 - .../docs/Model/MarginCancelOrderRequest.md | 11 - .../docs/Model/MarginCancelOrderResult.md | 10 - .../MarginCrossAssetsPopulationResult.md | 16 - .../docs/Model/MarginCrossAssetsResult.md | 10 - .../docs/Model/MarginCrossAssetsRiskResult.md | 9 - .../Model/MarginCrossBorrowLimitResult.md | 11 - .../docs/Model/MarginCrossFinFlowInfo.md | 15 - .../docs/Model/MarginCrossFinFlowResult.md | 11 - .../docs/Model/MarginCrossLevelResult.md | 13 - .../docs/Model/MarginCrossLimitRequest.md | 10 - .../docs/Model/MarginCrossMaxBorrowRequest.md | 9 - .../docs/Model/MarginCrossMaxBorrowResult.md | 10 - .../Model/MarginCrossRateAndLimitResult.md | 16 - .../docs/Model/MarginCrossRepayRequest.md | 10 - .../docs/Model/MarginCrossRepayResult.md | 12 - .../docs/Model/MarginCrossVipResult.md | 12 - .../docs/Model/MarginInterestInfo.md | 15 - .../docs/Model/MarginInterestInfoResult.md | 11 - .../MarginIsolatedAssetsPopulationResult.md | 17 - .../docs/Model/MarginIsolatedAssetsResult.md | 11 - .../Model/MarginIsolatedAssetsRiskRequest.md | 11 - .../Model/MarginIsolatedAssetsRiskResult.md | 10 - .../Model/MarginIsolatedBorrowLimitResult.md | 12 - .../docs/Model/MarginIsolatedFinFlowInfo.md | 16 - .../docs/Model/MarginIsolatedFinFlowResult.md | 11 - .../docs/Model/MarginIsolatedInterestInfo.md | 16 - .../Model/MarginIsolatedInterestInfoResult.md | 11 - .../docs/Model/MarginIsolatedLevelResult.md | 17 - .../docs/Model/MarginIsolatedLimitRequest.md | 11 - .../Model/MarginIsolatedLiquidationInfo.md | 17 - .../MarginIsolatedLiquidationInfoResult.md | 11 - .../docs/Model/MarginIsolatedLoanInfo.md | 14 - .../Model/MarginIsolatedLoanInfoResult.md | 11 - .../Model/MarginIsolatedMaxBorrowRequest.md | 10 - .../Model/MarginIsolatedMaxBorrowResult.md | 11 - .../Model/MarginIsolatedRateAndLimitResult.md | 24 - .../docs/Model/MarginIsolatedRepayInfo.md | 16 - .../Model/MarginIsolatedRepayInfoResult.md | 11 - .../docs/Model/MarginIsolatedRepayRequest.md | 11 - .../docs/Model/MarginIsolatedRepayResult.md | 13 - .../docs/Model/MarginIsolatedVipResult.md | 12 - .../docs/Model/MarginLiquidationInfo.md | 16 - .../docs/Model/MarginLiquidationInfoResult.md | 11 - .../docs/Model/MarginLoanInfo.md | 13 - .../docs/Model/MarginLoanInfoResult.md | 11 - .../docs/Model/MarginOpenOrderInfoResult.md | 11 - .../docs/Model/MarginOrderInfo.md | 23 - .../docs/Model/MarginOrderRequest.md | 19 - .../docs/Model/MarginPlaceOrderResult.md | 10 - .../docs/Model/MarginRepayInfo.md | 15 - .../docs/Model/MarginRepayInfoResult.md | 11 - .../docs/Model/MarginSystemResult.md | 25 - .../docs/Model/MarginTradeDetailInfo.md | 18 - .../docs/Model/MarginTradeDetailInfoResult.md | 11 - .../docs/Model/MerchantAdvInfo.md | 30 - .../docs/Model/MerchantAdvResult.md | 10 - .../docs/Model/MerchantAdvUserLimitInfo.md | 14 - .../docs/Model/MerchantInfo.md | 22 - .../docs/Model/MerchantInfoResult.md | 10 - .../docs/Model/MerchantOrderInfo.md | 26 - .../docs/Model/MerchantOrderPaymentInfo.md | 11 - .../docs/Model/MerchantOrderResult.md | 10 - .../docs/Model/MerchantPersonInfo.md | 27 - .../docs/Model/OrderPaymentDetailInfo.md | 12 - bitget-php-sdk-open-api/git_push.sh | 57 - .../lib/Api/MarginCrossAccountApi.php | 2759 ------- .../lib/Api/MarginCrossBorrowApi.php | 596 -- .../lib/Api/MarginCrossFinflowApi.php | 596 -- .../lib/Api/MarginCrossInterestApi.php | 566 -- .../lib/Api/MarginCrossLiquidationApi.php | 566 -- .../lib/Api/MarginCrossOrderApi.php | 3087 -------- .../lib/Api/MarginCrossPublicApi.php | 852 --- .../lib/Api/MarginCrossRepayApi.php | 596 -- .../lib/Api/MarginIsolatedAccountApi.php | 2439 ------- .../lib/Api/MarginIsolatedBorrowApi.php | 617 -- .../lib/Api/MarginIsolatedFinflowApi.php | 632 -- .../lib/Api/MarginIsolatedInterestApi.php | 587 -- .../lib/Api/MarginIsolatedLiquidationApi.php | 587 -- .../lib/Api/MarginIsolatedOrderApi.php | 3060 -------- .../lib/Api/MarginIsolatedPublicApi.php | 852 --- .../lib/Api/MarginIsolatedRepayApi.php | 617 -- .../lib/Api/MarginPublicApi.php | 475 -- .../lib/Api/P2pMerchantApi.php | 1982 ------ bitget-php-sdk-open-api/lib/ApiException.php | 119 - bitget-php-sdk-open-api/lib/Config.php | 16 - bitget-php-sdk-open-api/lib/Configuration.php | 531 -- .../lib/HeaderSelector.php | 245 - ...istOfMarginCrossAssetsPopulationResult.php | 519 -- ...seResultOfListOfMarginCrossLevelResult.php | 519 -- ...tOfListOfMarginCrossRateAndLimitResult.php | 519 -- ...OfMarginIsolatedAssetsPopulationResult.php | 519 -- ...OfListOfMarginIsolatedAssetsRiskResult.php | 519 -- ...esultOfListOfMarginIsolatedLevelResult.php | 519 -- ...ListOfMarginIsolatedRateAndLimitResult.php | 519 -- ...sponseResultOfListOfMarginSystemResult.php | 519 -- ...seResultOfMarginBatchCancelOrderResult.php | 519 -- ...nseResultOfMarginBatchPlaceOrderResult.php | 519 -- ...esponseResultOfMarginCrossAssetsResult.php | 519 -- ...nseResultOfMarginCrossAssetsRiskResult.php | 519 -- ...seResultOfMarginCrossBorrowLimitResult.php | 519 -- ...sponseResultOfMarginCrossFinFlowResult.php | 519 -- ...onseResultOfMarginCrossMaxBorrowResult.php | 519 -- ...ResponseResultOfMarginCrossRepayResult.php | 519 -- ...sponseResultOfMarginInterestInfoResult.php | 519 -- ...onseResultOfMarginIsolatedAssetsResult.php | 519 -- ...esultOfMarginIsolatedBorrowLimitResult.php | 519 -- ...nseResultOfMarginIsolatedFinFlowResult.php | 519 -- ...sultOfMarginIsolatedInterestInfoResult.php | 519 -- ...tOfMarginIsolatedLiquidationInfoResult.php | 519 -- ...seResultOfMarginIsolatedLoanInfoResult.php | 519 -- ...eResultOfMarginIsolatedMaxBorrowResult.php | 519 -- ...eResultOfMarginIsolatedRepayInfoResult.php | 519 -- ...ponseResultOfMarginIsolatedRepayResult.php | 519 -- ...nseResultOfMarginLiquidationInfoResult.php | 519 -- ...piResponseResultOfMarginLoanInfoResult.php | 519 -- ...ponseResultOfMarginOpenOrderInfoResult.php | 519 -- ...ResponseResultOfMarginPlaceOrderResult.php | 519 -- ...iResponseResultOfMarginRepayInfoResult.php | 519 -- ...nseResultOfMarginTradeDetailInfoResult.php | 519 -- .../ApiResponseResultOfMerchantAdvResult.php | 519 -- .../ApiResponseResultOfMerchantInfoResult.php | 519 -- ...ApiResponseResultOfMerchantOrderResult.php | 519 -- .../ApiResponseResultOfMerchantPersonInfo.php | 519 -- .../lib/Model/ApiResponseResultOfVoid.php | 483 -- .../lib/Model/FiatPaymentDetailInfo.php | 483 -- .../lib/Model/FiatPaymentInfo.php | 483 -- .../Model/MarginBatchCancelOrderRequest.php | 486 -- .../Model/MarginBatchCancelOrderResult.php | 447 -- .../lib/Model/MarginBatchOrdersRequest.php | 522 -- .../MarginBatchPlaceOrderFailureResult.php | 447 -- .../lib/Model/MarginBatchPlaceOrderResult.php | 447 -- .../Model/MarginCancelOrderFailureResult.php | 483 -- .../lib/Model/MarginCancelOrderRequest.php | 486 -- .../lib/Model/MarginCancelOrderResult.php | 447 -- .../MarginCrossAssetsPopulationResult.php | 663 -- .../lib/Model/MarginCrossAssetsResult.php | 447 -- .../lib/Model/MarginCrossAssetsRiskResult.php | 411 -- .../Model/MarginCrossBorrowLimitResult.php | 483 -- .../lib/Model/MarginCrossFinFlowInfo.php | 627 -- .../lib/Model/MarginCrossFinFlowResult.php | 483 -- .../lib/Model/MarginCrossLevelResult.php | 555 -- .../lib/Model/MarginCrossLimitRequest.php | 453 -- .../lib/Model/MarginCrossMaxBorrowRequest.php | 414 -- .../lib/Model/MarginCrossMaxBorrowResult.php | 447 -- .../Model/MarginCrossRateAndLimitResult.php | 663 -- .../lib/Model/MarginCrossRepayRequest.php | 453 -- .../lib/Model/MarginCrossRepayResult.php | 519 -- .../lib/Model/MarginCrossVipResult.php | 519 -- .../lib/Model/MarginInterestInfo.php | 627 -- .../lib/Model/MarginInterestInfoResult.php | 483 -- .../MarginIsolatedAssetsPopulationResult.php | 699 -- .../lib/Model/MarginIsolatedAssetsResult.php | 483 -- .../Model/MarginIsolatedAssetsRiskRequest.php | 486 -- .../Model/MarginIsolatedAssetsRiskResult.php | 447 -- .../Model/MarginIsolatedBorrowLimitResult.php | 519 -- .../lib/Model/MarginIsolatedFinFlowInfo.php | 663 -- .../lib/Model/MarginIsolatedFinFlowResult.php | 483 -- .../lib/Model/MarginIsolatedInterestInfo.php | 663 -- .../MarginIsolatedInterestInfoResult.php | 483 -- .../lib/Model/MarginIsolatedLevelResult.php | 699 -- .../lib/Model/MarginIsolatedLimitRequest.php | 492 -- .../Model/MarginIsolatedLiquidationInfo.php | 699 -- .../MarginIsolatedLiquidationInfoResult.php | 483 -- .../lib/Model/MarginIsolatedLoanInfo.php | 591 -- .../Model/MarginIsolatedLoanInfoResult.php | 483 -- .../Model/MarginIsolatedMaxBorrowRequest.php | 453 -- .../Model/MarginIsolatedMaxBorrowResult.php | 483 -- .../MarginIsolatedRateAndLimitResult.php | 951 --- .../lib/Model/MarginIsolatedRepayInfo.php | 663 -- .../Model/MarginIsolatedRepayInfoResult.php | 483 -- .../lib/Model/MarginIsolatedRepayRequest.php | 492 -- .../lib/Model/MarginIsolatedRepayResult.php | 555 -- .../lib/Model/MarginIsolatedVipResult.php | 519 -- .../lib/Model/MarginLiquidationInfo.php | 663 -- .../lib/Model/MarginLiquidationInfoResult.php | 483 -- .../lib/Model/MarginLoanInfo.php | 555 -- .../lib/Model/MarginLoanInfoResult.php | 483 -- .../lib/Model/MarginOpenOrderInfoResult.php | 483 -- .../lib/Model/MarginOrderInfo.php | 915 --- .../lib/Model/MarginOrderRequest.php | 783 -- .../lib/Model/MarginPlaceOrderResult.php | 447 -- .../lib/Model/MarginRepayInfo.php | 627 -- .../lib/Model/MarginRepayInfoResult.php | 483 -- .../lib/Model/MarginSystemResult.php | 987 --- .../lib/Model/MarginTradeDetailInfo.php | 735 -- .../lib/Model/MarginTradeDetailInfoResult.php | 483 -- .../lib/Model/MerchantAdvInfo.php | 1167 --- .../lib/Model/MerchantAdvResult.php | 447 -- .../lib/Model/MerchantAdvUserLimitInfo.php | 591 -- .../lib/Model/MerchantInfo.php | 879 --- .../lib/Model/MerchantInfoResult.php | 447 -- .../lib/Model/MerchantOrderInfo.php | 1023 --- .../lib/Model/MerchantOrderPaymentInfo.php | 483 -- .../lib/Model/MerchantOrderResult.php | 447 -- .../lib/Model/MerchantPersonInfo.php | 1059 --- .../lib/Model/ModelInterface.php | 111 - .../lib/Model/OrderPaymentDetailInfo.php | 519 -- .../lib/ObjectSerializer.php | 522 -- bitget-php-sdk-open-api/lib/Utils.php | 66 - bitget-php-sdk-open-api/phpunit.xml.dist | 18 - .../test/Api/MarginCrossAccountApiTest.php | 241 - .../test/Api/MarginCrossBorrowApiTest.php | 114 - .../test/Api/MarginCrossFinflowApiTest.php | 115 - .../test/Api/MarginCrossInterestApiTest.php | 114 - .../Api/MarginCrossLiquidationApiTest.php | 114 - .../test/Api/MarginCrossOrderApiTest.php | 345 - .../test/Api/MarginCrossPublicApiTest.php | 142 - .../test/Api/MarginCrossRepayApiTest.php | 114 - .../test/Api/MarginIsolatedAccountApiTest.php | 246 - .../test/Api/MarginIsolatedBorrowApiTest.php | 113 - .../test/Api/MarginIsolatedFinflowApiTest.php | 114 - .../Api/MarginIsolatedInterestApiTest.php | 114 - .../Api/MarginIsolatedLiquidationApiTest.php | 95 - .../test/Api/MarginIsolatedOrderApiTest.php | 345 - .../test/Api/MarginIsolatedPublicApiTest.php | 142 - .../test/Api/MarginIsolatedRepayApiTest.php | 114 - .../test/Api/MarginPublicApiTest.php | 113 - .../test/Api/P2pMerchantApiTest.php | 203 - ...fMarginCrossAssetsPopulationResultTest.php | 117 - ...sultOfListOfMarginCrossLevelResultTest.php | 117 - ...istOfMarginCrossRateAndLimitResultTest.php | 117 - ...rginIsolatedAssetsPopulationResultTest.php | 117 - ...stOfMarginIsolatedAssetsRiskResultTest.php | 117 - ...tOfListOfMarginIsolatedLevelResultTest.php | 117 - ...OfMarginIsolatedRateAndLimitResultTest.php | 117 - ...seResultOfListOfMarginSystemResultTest.php | 117 - ...sultOfMarginBatchCancelOrderResultTest.php | 117 - ...esultOfMarginBatchPlaceOrderResultTest.php | 117 - ...nseResultOfMarginCrossAssetsResultTest.php | 117 - ...esultOfMarginCrossAssetsRiskResultTest.php | 117 - ...sultOfMarginCrossBorrowLimitResultTest.php | 117 - ...seResultOfMarginCrossFinFlowResultTest.php | 117 - ...ResultOfMarginCrossMaxBorrowResultTest.php | 117 - ...onseResultOfMarginCrossRepayResultTest.php | 117 - ...seResultOfMarginInterestInfoResultTest.php | 117 - ...ResultOfMarginIsolatedAssetsResultTest.php | 117 - ...tOfMarginIsolatedBorrowLimitResultTest.php | 117 - ...esultOfMarginIsolatedFinFlowResultTest.php | 117 - ...OfMarginIsolatedInterestInfoResultTest.php | 117 - ...arginIsolatedLiquidationInfoResultTest.php | 117 - ...sultOfMarginIsolatedLoanInfoResultTest.php | 117 - ...ultOfMarginIsolatedMaxBorrowResultTest.php | 117 - ...ultOfMarginIsolatedRepayInfoResultTest.php | 117 - ...eResultOfMarginIsolatedRepayResultTest.php | 117 - ...esultOfMarginLiquidationInfoResultTest.php | 117 - ...sponseResultOfMarginLoanInfoResultTest.php | 117 - ...eResultOfMarginOpenOrderInfoResultTest.php | 117 - ...onseResultOfMarginPlaceOrderResultTest.php | 117 - ...ponseResultOfMarginRepayInfoResultTest.php | 117 - ...esultOfMarginTradeDetailInfoResultTest.php | 117 - ...iResponseResultOfMerchantAdvResultTest.php | 117 - ...ResponseResultOfMerchantInfoResultTest.php | 117 - ...esponseResultOfMerchantOrderResultTest.php | 117 - ...ResponseResultOfMerchantPersonInfoTest.php | 117 - .../Model/ApiResponseResultOfVoidTest.php | 108 - .../test/Model/FiatPaymentDetailInfoTest.php | 108 - .../test/Model/FiatPaymentInfoTest.php | 108 - .../MarginBatchCancelOrderRequestTest.php | 108 - .../MarginBatchCancelOrderResultTest.php | 99 - .../Model/MarginBatchOrdersRequestTest.php | 117 - ...MarginBatchPlaceOrderFailureResultTest.php | 99 - .../Model/MarginBatchPlaceOrderResultTest.php | 99 - .../MarginCancelOrderFailureResultTest.php | 108 - .../Model/MarginCancelOrderRequestTest.php | 108 - .../Model/MarginCancelOrderResultTest.php | 99 - .../MarginCrossAssetsPopulationResultTest.php | 153 - .../Model/MarginCrossAssetsResultTest.php | 99 - .../Model/MarginCrossAssetsRiskResultTest.php | 90 - .../MarginCrossBorrowLimitResultTest.php | 108 - .../test/Model/MarginCrossFinFlowInfoTest.php | 144 - .../Model/MarginCrossFinFlowResultTest.php | 108 - .../test/Model/MarginCrossLevelResultTest.php | 126 - .../Model/MarginCrossLimitRequestTest.php | 99 - .../Model/MarginCrossMaxBorrowRequestTest.php | 90 - .../Model/MarginCrossMaxBorrowResultTest.php | 99 - .../MarginCrossRateAndLimitResultTest.php | 153 - .../Model/MarginCrossRepayRequestTest.php | 99 - .../test/Model/MarginCrossRepayResultTest.php | 117 - .../test/Model/MarginCrossVipResultTest.php | 117 - .../Model/MarginInterestInfoResultTest.php | 108 - .../test/Model/MarginInterestInfoTest.php | 144 - ...rginIsolatedAssetsPopulationResultTest.php | 162 - .../Model/MarginIsolatedAssetsResultTest.php | 108 - .../MarginIsolatedAssetsRiskRequestTest.php | 108 - .../MarginIsolatedAssetsRiskResultTest.php | 99 - .../MarginIsolatedBorrowLimitResultTest.php | 117 - .../Model/MarginIsolatedFinFlowInfoTest.php | 153 - .../Model/MarginIsolatedFinFlowResultTest.php | 108 - .../MarginIsolatedInterestInfoResultTest.php | 108 - .../Model/MarginIsolatedInterestInfoTest.php | 153 - .../Model/MarginIsolatedLevelResultTest.php | 162 - .../Model/MarginIsolatedLimitRequestTest.php | 108 - ...arginIsolatedLiquidationInfoResultTest.php | 108 - .../MarginIsolatedLiquidationInfoTest.php | 162 - .../MarginIsolatedLoanInfoResultTest.php | 108 - .../test/Model/MarginIsolatedLoanInfoTest.php | 135 - .../MarginIsolatedMaxBorrowRequestTest.php | 99 - .../MarginIsolatedMaxBorrowResultTest.php | 108 - .../MarginIsolatedRateAndLimitResultTest.php | 225 - .../MarginIsolatedRepayInfoResultTest.php | 108 - .../Model/MarginIsolatedRepayInfoTest.php | 153 - .../Model/MarginIsolatedRepayRequestTest.php | 108 - .../Model/MarginIsolatedRepayResultTest.php | 126 - .../Model/MarginIsolatedVipResultTest.php | 117 - .../Model/MarginLiquidationInfoResultTest.php | 108 - .../test/Model/MarginLiquidationInfoTest.php | 153 - .../test/Model/MarginLoanInfoResultTest.php | 108 - .../test/Model/MarginLoanInfoTest.php | 126 - .../Model/MarginOpenOrderInfoResultTest.php | 108 - .../test/Model/MarginOrderInfoTest.php | 216 - .../test/Model/MarginOrderRequestTest.php | 180 - .../test/Model/MarginPlaceOrderResultTest.php | 99 - .../test/Model/MarginRepayInfoResultTest.php | 108 - .../test/Model/MarginRepayInfoTest.php | 144 - .../test/Model/MarginSystemResultTest.php | 234 - .../Model/MarginTradeDetailInfoResultTest.php | 108 - .../test/Model/MarginTradeDetailInfoTest.php | 171 - .../test/Model/MerchantAdvInfoTest.php | 279 - .../test/Model/MerchantAdvResultTest.php | 99 - .../Model/MerchantAdvUserLimitInfoTest.php | 135 - .../test/Model/MerchantInfoResultTest.php | 99 - .../test/Model/MerchantInfoTest.php | 207 - .../test/Model/MerchantOrderInfoTest.php | 243 - .../Model/MerchantOrderPaymentInfoTest.php | 108 - .../test/Model/MerchantOrderResultTest.php | 99 - .../test/Model/MerchantPersonInfoTest.php | 252 - .../test/Model/OrderPaymentDetailInfoTest.php | 117 - bitget-python-sdk-open-api/README.md | 499 -- bitget-python-sdk-open-api/bitget/__init__.py | 28 - .../bitget/api_client.py | 1507 ---- .../bitget/apis/__init__.py | 3 - .../bitget/apis/path_to_api.py | 152 - .../bitget/apis/paths/__init__.py | 3 - .../api_margin_v1_cross_account_assets.py | 7 - .../api_margin_v1_cross_account_borrow.py | 7 - ..._v1_cross_account_max_borrowable_amount.py | 7 - ...1_cross_account_max_transfer_out_amount.py | 7 - .../api_margin_v1_cross_account_repay.py | 7 - .../api_margin_v1_cross_account_risk_rate.py | 7 - .../paths/api_margin_v1_cross_account_void.py | 7 - .../paths/api_margin_v1_cross_fin_list.py | 7 - .../api_margin_v1_cross_interest_list.py | 7 - .../api_margin_v1_cross_liquidation_list.py | 7 - .../paths/api_margin_v1_cross_loan_list.py | 7 - ...argin_v1_cross_order_batch_cancel_order.py | 7 - ...margin_v1_cross_order_batch_place_order.py | 7 - .../api_margin_v1_cross_order_cancel_order.py | 7 - .../paths/api_margin_v1_cross_order_fills.py | 7 - .../api_margin_v1_cross_order_history.py | 7 - .../api_margin_v1_cross_order_open_orders.py | 7 - .../api_margin_v1_cross_order_place_order.py | 7 - ...v1_cross_public_interest_rate_and_limit.py | 7 - .../api_margin_v1_cross_public_tier_data.py | 7 - .../paths/api_margin_v1_cross_repay_list.py | 7 - .../api_margin_v1_isolated_account_assets.py | 7 - .../api_margin_v1_isolated_account_borrow.py | 7 - ..._isolated_account_max_borrowable_amount.py | 7 - ...solated_account_max_transfer_out_amount.py | 7 - .../api_margin_v1_isolated_account_repay.py | 7 - ...pi_margin_v1_isolated_account_risk_rate.py | 7 - .../paths/api_margin_v1_isolated_fin_list.py | 7 - .../api_margin_v1_isolated_interest_list.py | 7 - ...api_margin_v1_isolated_liquidation_list.py | 7 - .../paths/api_margin_v1_isolated_loan_list.py | 7 - ...in_v1_isolated_order_batch_cancel_order.py | 7 - ...gin_v1_isolated_order_batch_place_order.py | 7 - ...i_margin_v1_isolated_order_cancel_order.py | 7 - .../api_margin_v1_isolated_order_fills.py | 7 - .../api_margin_v1_isolated_order_history.py | 7 - ...pi_margin_v1_isolated_order_open_orders.py | 7 - ...pi_margin_v1_isolated_order_place_order.py | 7 - ...isolated_public_interest_rate_and_limit.py | 7 - ...api_margin_v1_isolated_public_tier_data.py | 7 - .../api_margin_v1_isolated_repay_list.py | 7 - .../paths/api_margin_v1_public_currencies.py | 7 - .../paths/api_p2p_v1_merchant_adv_list.py | 7 - .../api_p2p_v1_merchant_merchant_info.py | 7 - .../api_p2p_v1_merchant_merchant_list.py | 7 - .../paths/api_p2p_v1_merchant_order_list.py | 7 - .../bitget/apis/tag_to_api.py | 68 - .../bitget/apis/tags/__init__.py | 26 - .../apis/tags/margin_cross_account_api.py | 35 - .../apis/tags/margin_cross_borrow_api.py | 23 - .../apis/tags/margin_cross_finflow_api.py | 23 - .../apis/tags/margin_cross_interest_api.py | 23 - .../apis/tags/margin_cross_liquidation_api.py | 23 - .../apis/tags/margin_cross_order_api.py | 35 - .../apis/tags/margin_cross_public_api.py | 25 - .../apis/tags/margin_cross_repay_api.py | 23 - .../apis/tags/margin_isolated_account_api.py | 33 - .../apis/tags/margin_isolated_borrow_api.py | 23 - .../apis/tags/margin_isolated_finflow_api.py | 23 - .../apis/tags/margin_isolated_interest_api.py | 23 - .../tags/margin_isolated_liquidation_api.py | 23 - .../apis/tags/margin_isolated_order_api.py | 35 - .../apis/tags/margin_isolated_public_api.py | 25 - .../apis/tags/margin_isolated_repay_api.py | 23 - .../bitget/apis/tags/margin_public_api.py | 23 - .../bitget/apis/tags/p2p_merchant_api.py | 29 - .../bitget/configuration.py | 505 -- .../bitget/exceptions.py | 136 - .../bitget/model/__init__.py | 5 - ...f_margin_cross_assets_population_result.py | 135 - ..._margin_cross_assets_population_result.pyi | 135 - ...lt_of_list_of_margin_cross_level_result.py | 135 - ...t_of_list_of_margin_cross_level_result.pyi | 135 - ...t_of_margin_cross_rate_and_limit_result.py | 135 - ..._of_margin_cross_rate_and_limit_result.pyi | 135 - ...argin_isolated_assets_population_result.py | 135 - ...rgin_isolated_assets_population_result.pyi | 135 - ...t_of_margin_isolated_assets_risk_result.py | 135 - ..._of_margin_isolated_assets_risk_result.pyi | 135 - ...of_list_of_margin_isolated_level_result.py | 135 - ...f_list_of_margin_isolated_level_result.pyi | 135 - ...f_margin_isolated_rate_and_limit_result.py | 135 - ..._margin_isolated_rate_and_limit_result.pyi | 135 - ..._result_of_list_of_margin_system_result.py | 135 - ...result_of_list_of_margin_system_result.pyi | 135 - ...ult_of_margin_batch_cancel_order_result.py | 113 - ...lt_of_margin_batch_cancel_order_result.pyi | 113 - ...sult_of_margin_batch_place_order_result.py | 113 - ...ult_of_margin_batch_place_order_result.pyi | 113 - ...se_result_of_margin_cross_assets_result.py | 113 - ...e_result_of_margin_cross_assets_result.pyi | 113 - ...sult_of_margin_cross_assets_risk_result.py | 113 - ...ult_of_margin_cross_assets_risk_result.pyi | 113 - ...ult_of_margin_cross_borrow_limit_result.py | 113 - ...lt_of_margin_cross_borrow_limit_result.pyi | 113 - ..._result_of_margin_cross_fin_flow_result.py | 113 - ...result_of_margin_cross_fin_flow_result.pyi | 113 - ...esult_of_margin_cross_max_borrow_result.py | 113 - ...sult_of_margin_cross_max_borrow_result.pyi | 113 - ...nse_result_of_margin_cross_repay_result.py | 113 - ...se_result_of_margin_cross_repay_result.pyi | 113 - ...e_result_of_margin_interest_info_result.py | 113 - ..._result_of_margin_interest_info_result.pyi | 113 - ...result_of_margin_isolated_assets_result.py | 113 - ...esult_of_margin_isolated_assets_result.pyi | 113 - ..._of_margin_isolated_borrow_limit_result.py | 113 - ...of_margin_isolated_borrow_limit_result.pyi | 113 - ...sult_of_margin_isolated_fin_flow_result.py | 113 - ...ult_of_margin_isolated_fin_flow_result.pyi | 113 - ...of_margin_isolated_interest_info_result.py | 113 - ...f_margin_isolated_interest_info_result.pyi | 113 - ...margin_isolated_liquidation_info_result.py | 113 - ...argin_isolated_liquidation_info_result.pyi | 113 - ...ult_of_margin_isolated_loan_info_result.py | 113 - ...lt_of_margin_isolated_loan_info_result.pyi | 113 - ...lt_of_margin_isolated_max_borrow_result.py | 113 - ...t_of_margin_isolated_max_borrow_result.pyi | 113 - ...lt_of_margin_isolated_repay_info_result.py | 113 - ...t_of_margin_isolated_repay_info_result.pyi | 113 - ..._result_of_margin_isolated_repay_result.py | 113 - ...result_of_margin_isolated_repay_result.pyi | 113 - ...esult_of_margin_liquidation_info_result.py | 113 - ...sult_of_margin_liquidation_info_result.pyi | 113 - ...ponse_result_of_margin_loan_info_result.py | 113 - ...onse_result_of_margin_loan_info_result.pyi | 113 - ...result_of_margin_open_order_info_result.py | 113 - ...esult_of_margin_open_order_info_result.pyi | 113 - ...nse_result_of_margin_place_order_result.py | 113 - ...se_result_of_margin_place_order_result.pyi | 113 - ...onse_result_of_margin_repay_info_result.py | 113 - ...nse_result_of_margin_repay_info_result.pyi | 113 - ...sult_of_margin_trade_detail_info_result.py | 113 - ...ult_of_margin_trade_detail_info_result.pyi | 113 - ..._response_result_of_merchant_adv_result.py | 113 - ...response_result_of_merchant_adv_result.pyi | 113 - ...response_result_of_merchant_info_result.py | 113 - ...esponse_result_of_merchant_info_result.pyi | 113 - ...esponse_result_of_merchant_order_result.py | 113 - ...sponse_result_of_merchant_order_result.pyi | 113 - ...response_result_of_merchant_person_info.py | 113 - ...esponse_result_of_merchant_person_info.pyi | 113 - .../model/api_response_result_of_void.py | 98 - .../model/api_response_result_of_void.pyi | 98 - .../bitget/model/fiat_payment_detail_info.py | 98 - .../bitget/model/fiat_payment_detail_info.pyi | 98 - .../bitget/model/fiat_payment_info.py | 125 - .../bitget/model/fiat_payment_info.pyi | 125 - .../margin_batch_cancel_order_request.py | 147 - .../margin_batch_cancel_order_request.pyi | 147 - .../model/margin_batch_cancel_order_result.py | 141 - .../margin_batch_cancel_order_result.pyi | 141 - .../model/margin_batch_orders_request.py | 140 - .../model/margin_batch_orders_request.pyi | 140 - ...margin_batch_place_order_failure_result.py | 88 - ...argin_batch_place_order_failure_result.pyi | 88 - .../model/margin_batch_place_order_result.py | 141 - .../model/margin_batch_place_order_result.pyi | 141 - .../margin_cancel_order_failure_result.py | 98 - .../margin_cancel_order_failure_result.pyi | 98 - .../model/margin_cancel_order_request.py | 103 - .../model/margin_cancel_order_request.pyi | 103 - .../model/margin_cancel_order_result.py | 88 - .../model/margin_cancel_order_result.pyi | 88 - .../margin_cross_assets_population_result.py | 148 - .../margin_cross_assets_population_result.pyi | 148 - .../model/margin_cross_assets_result.py | 88 - .../model/margin_cross_assets_result.pyi | 88 - .../model/margin_cross_assets_risk_result.py | 78 - .../model/margin_cross_assets_risk_result.pyi | 78 - .../model/margin_cross_borrow_limit_result.py | 98 - .../margin_cross_borrow_limit_result.pyi | 98 - .../model/margin_cross_fin_flow_info.py | 138 - .../model/margin_cross_fin_flow_info.pyi | 138 - .../model/margin_cross_fin_flow_result.py | 125 - .../model/margin_cross_fin_flow_result.pyi | 125 - .../bitget/model/margin_cross_level_result.py | 118 - .../model/margin_cross_level_result.pyi | 118 - .../model/margin_cross_limit_request.py | 95 - .../model/margin_cross_limit_request.pyi | 95 - .../model/margin_cross_max_borrow_request.py | 83 - .../model/margin_cross_max_borrow_request.pyi | 83 - .../model/margin_cross_max_borrow_result.py | 88 - .../model/margin_cross_max_borrow_result.pyi | 88 - .../margin_cross_rate_and_limit_result.py | 175 - .../margin_cross_rate_and_limit_result.pyi | 175 - .../model/margin_cross_repay_request.py | 95 - .../model/margin_cross_repay_request.pyi | 95 - .../bitget/model/margin_cross_repay_result.py | 108 - .../model/margin_cross_repay_result.pyi | 108 - .../bitget/model/margin_cross_vip_result.py | 108 - .../bitget/model/margin_cross_vip_result.pyi | 108 - .../bitget/model/margin_interest_info.py | 138 - .../bitget/model/margin_interest_info.pyi | 138 - .../model/margin_interest_info_result.py | 125 - .../model/margin_interest_info_result.pyi | 125 - ...argin_isolated_assets_population_result.py | 158 - ...rgin_isolated_assets_population_result.pyi | 158 - .../model/margin_isolated_assets_result.py | 98 - .../model/margin_isolated_assets_result.pyi | 98 - .../margin_isolated_assets_risk_request.py | 103 - .../margin_isolated_assets_risk_request.pyi | 103 - .../margin_isolated_assets_risk_result.py | 88 - .../margin_isolated_assets_risk_result.pyi | 88 - .../margin_isolated_borrow_limit_result.py | 108 - .../margin_isolated_borrow_limit_result.pyi | 108 - .../model/margin_isolated_fin_flow_info.py | 148 - .../model/margin_isolated_fin_flow_info.pyi | 148 - .../model/margin_isolated_fin_flow_result.py | 125 - .../model/margin_isolated_fin_flow_result.pyi | 125 - .../model/margin_isolated_interest_info.py | 148 - .../model/margin_isolated_interest_info.pyi | 148 - .../margin_isolated_interest_info_result.py | 125 - .../margin_isolated_interest_info_result.pyi | 125 - .../model/margin_isolated_level_result.py | 158 - .../model/margin_isolated_level_result.pyi | 158 - .../model/margin_isolated_limit_request.py | 107 - .../model/margin_isolated_limit_request.pyi | 107 - .../model/margin_isolated_liquidation_info.py | 158 - .../margin_isolated_liquidation_info.pyi | 158 - ...margin_isolated_liquidation_info_result.py | 125 - ...argin_isolated_liquidation_info_result.pyi | 125 - .../bitget/model/margin_isolated_loan_info.py | 128 - .../model/margin_isolated_loan_info.pyi | 128 - .../model/margin_isolated_loan_info_result.py | 125 - .../margin_isolated_loan_info_result.pyi | 125 - .../margin_isolated_max_borrow_request.py | 95 - .../margin_isolated_max_borrow_request.pyi | 95 - .../margin_isolated_max_borrow_result.py | 98 - .../margin_isolated_max_borrow_result.pyi | 98 - .../margin_isolated_rate_and_limit_result.py | 280 - .../margin_isolated_rate_and_limit_result.pyi | 280 - .../model/margin_isolated_repay_info.py | 148 - .../model/margin_isolated_repay_info.pyi | 148 - .../margin_isolated_repay_info_result.py | 125 - .../margin_isolated_repay_info_result.pyi | 125 - .../model/margin_isolated_repay_request.py | 107 - .../model/margin_isolated_repay_request.pyi | 107 - .../model/margin_isolated_repay_result.py | 118 - .../model/margin_isolated_repay_result.pyi | 118 - .../model/margin_isolated_vip_result.py | 108 - .../model/margin_isolated_vip_result.pyi | 108 - .../bitget/model/margin_liquidation_info.py | 148 - .../bitget/model/margin_liquidation_info.pyi | 148 - .../model/margin_liquidation_info_result.py | 125 - .../model/margin_liquidation_info_result.pyi | 125 - .../bitget/model/margin_loan_info.py | 118 - .../bitget/model/margin_loan_info.pyi | 118 - .../bitget/model/margin_loan_info_result.py | 125 - .../bitget/model/margin_loan_info_result.pyi | 125 - .../model/margin_open_order_info_result.py | 125 - .../model/margin_open_order_info_result.pyi | 125 - .../bitget/model/margin_order_info.py | 218 - .../bitget/model/margin_order_info.pyi | 218 - .../bitget/model/margin_order_request.py | 189 - .../bitget/model/margin_order_request.pyi | 189 - .../bitget/model/margin_place_order_result.py | 88 - .../model/margin_place_order_result.pyi | 88 - .../bitget/model/margin_repay_info.py | 138 - .../bitget/model/margin_repay_info.pyi | 138 - .../bitget/model/margin_repay_info_result.py | 125 - .../bitget/model/margin_repay_info_result.pyi | 125 - .../bitget/model/margin_system_result.py | 238 - .../bitget/model/margin_system_result.pyi | 238 - .../bitget/model/margin_trade_detail_info.py | 168 - .../bitget/model/margin_trade_detail_info.pyi | 168 - .../model/margin_trade_detail_info_result.py | 125 - .../model/margin_trade_detail_info_result.pyi | 125 - .../bitget/model/merchant_adv_info.py | 319 - .../bitget/model/merchant_adv_info.pyi | 319 - .../bitget/model/merchant_adv_result.py | 115 - .../bitget/model/merchant_adv_result.pyi | 115 - .../model/merchant_adv_user_limit_info.py | 128 - .../model/merchant_adv_user_limit_info.pyi | 128 - .../bitget/model/merchant_info.py | 208 - .../bitget/model/merchant_info.pyi | 208 - .../bitget/model/merchant_info_result.py | 115 - .../bitget/model/merchant_info_result.pyi | 115 - .../bitget/model/merchant_order_info.py | 253 - .../bitget/model/merchant_order_info.pyi | 253 - .../model/merchant_order_payment_info.py | 125 - .../model/merchant_order_payment_info.pyi | 125 - .../bitget/model/merchant_order_result.py | 115 - .../bitget/model/merchant_order_result.pyi | 115 - .../bitget/model/merchant_person_info.py | 258 - .../bitget/model/merchant_person_info.pyi | 258 - .../bitget/model/order_payment_detail_info.py | 108 - .../model/order_payment_detail_info.pyi | 108 - .../bitget/models/__init__.py | 122 - .../bitget/paths/__init__.py | 54 - .../__init__.py | 7 - .../api_margin_v1_cross_account_assets/get.py | 357 - .../get.pyi | 342 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../get.py | 357 - .../get.pyi | 342 - .../__init__.py | 7 - .../api_margin_v1_cross_account_repay/post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../get.py | 304 - .../get.pyi | 289 - .../__init__.py | 7 - .../api_margin_v1_cross_account_void/get.py | 303 - .../api_margin_v1_cross_account_void/get.pyi | 288 - .../api_margin_v1_cross_fin_list/__init__.py | 7 - .../paths/api_margin_v1_cross_fin_list/get.py | 392 - .../api_margin_v1_cross_fin_list/get.pyi | 377 - .../__init__.py | 7 - .../api_margin_v1_cross_interest_list/get.py | 378 - .../api_margin_v1_cross_interest_list/get.pyi | 363 - .../__init__.py | 7 - .../get.py | 378 - .../get.pyi | 363 - .../api_margin_v1_cross_loan_list/__init__.py | 7 - .../api_margin_v1_cross_loan_list/get.py | 392 - .../api_margin_v1_cross_loan_list/get.pyi | 377 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../api_margin_v1_cross_order_fills/get.py | 400 -- .../api_margin_v1_cross_order_fills/get.pyi | 385 - .../__init__.py | 7 - .../api_margin_v1_cross_order_history/get.py | 407 -- .../api_margin_v1_cross_order_history/get.pyi | 392 - .../__init__.py | 7 - .../get.py | 393 - .../get.pyi | 378 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../get.py | 349 - .../get.pyi | 341 - .../__init__.py | 7 - .../get.py | 349 - .../get.pyi | 341 - .../__init__.py | 7 - .../api_margin_v1_cross_repay_list/get.py | 392 - .../api_margin_v1_cross_repay_list/get.pyi | 377 - .../__init__.py | 7 - .../get.py | 357 - .../get.pyi | 342 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../get.py | 365 - .../get.pyi | 350 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../api_margin_v1_isolated_fin_list/get.py | 407 -- .../api_margin_v1_isolated_fin_list/get.pyi | 392 - .../__init__.py | 7 - .../get.py | 386 - .../get.pyi | 371 - .../__init__.py | 7 - .../get.py | 386 - .../get.pyi | 371 - .../__init__.py | 7 - .../api_margin_v1_isolated_loan_list/get.py | 400 -- .../api_margin_v1_isolated_loan_list/get.pyi | 385 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../api_margin_v1_isolated_order_fills/get.py | 392 - .../get.pyi | 377 - .../__init__.py | 7 - .../get.py | 406 -- .../get.pyi | 391 - .../__init__.py | 7 - .../get.py | 393 - .../get.pyi | 378 - .../__init__.py | 7 - .../post.py | 399 -- .../post.pyi | 384 - .../__init__.py | 7 - .../get.py | 349 - .../get.pyi | 341 - .../__init__.py | 7 - .../get.py | 349 - .../get.pyi | 341 - .../__init__.py | 7 - .../api_margin_v1_isolated_repay_list/get.py | 400 -- .../api_margin_v1_isolated_repay_list/get.pyi | 385 - .../__init__.py | 7 - .../api_margin_v1_public_currencies/get.py | 296 - .../api_margin_v1_public_currencies/get.pyi | 288 - .../api_p2p_v1_merchant_adv_list/__init__.py | 7 - .../paths/api_p2p_v1_merchant_adv_list/get.py | 427 -- .../api_p2p_v1_merchant_adv_list/get.pyi | 412 -- .../__init__.py | 7 - .../api_p2p_v1_merchant_merchant_info/get.py | 304 - .../api_p2p_v1_merchant_merchant_info/get.pyi | 289 - .../__init__.py | 7 - .../api_p2p_v1_merchant_merchant_list/get.py | 377 - .../api_p2p_v1_merchant_merchant_list/get.pyi | 362 - .../__init__.py | 7 - .../api_p2p_v1_merchant_order_list/get.py | 427 -- .../api_p2p_v1_merchant_order_list/get.pyi | 412 -- bitget-python-sdk-open-api/bitget/rest.py | 254 - bitget-python-sdk-open-api/bitget/schemas.py | 2463 ------- bitget-python-sdk-open-api/bitget/utils.py | 14 - .../docs/apis/tags/MarginCrossAccountApi.md | 1151 --- .../docs/apis/tags/MarginCrossBorrowApi.md | 239 - .../docs/apis/tags/MarginCrossFinflowApi.md | 239 - .../docs/apis/tags/MarginCrossInterestApi.md | 221 - .../apis/tags/MarginCrossLiquidationApi.md | 221 - .../docs/apis/tags/MarginCrossOrderApi.md | 1434 ---- .../docs/apis/tags/MarginCrossPublicApi.md | 276 - .../docs/apis/tags/MarginCrossRepayApi.md | 239 - .../apis/tags/MarginIsolatedAccountApi.md | 1042 --- .../docs/apis/tags/MarginIsolatedBorrowApi.md | 249 - .../apis/tags/MarginIsolatedFinflowApi.md | 258 - .../apis/tags/MarginIsolatedInterestApi.md | 231 - .../apis/tags/MarginIsolatedLiquidationApi.md | 231 - .../docs/apis/tags/MarginIsolatedOrderApi.md | 1423 ---- .../docs/apis/tags/MarginIsolatedPublicApi.md | 276 - .../docs/apis/tags/MarginIsolatedRepayApi.md | 249 - .../docs/apis/tags/MarginPublicApi.md | 115 - .../docs/apis/tags/P2pMerchantApi.md | 906 --- ...ListOfMarginCrossAssetsPopulationResult.md | 32 - ...nseResultOfListOfMarginCrossLevelResult.md | 32 - ...ltOfListOfMarginCrossRateAndLimitResult.md | 32 - ...tOfMarginIsolatedAssetsPopulationResult.md | 32 - ...tOfListOfMarginIsolatedAssetsRiskResult.md | 32 - ...ResultOfListOfMarginIsolatedLevelResult.md | 32 - ...fListOfMarginIsolatedRateAndLimitResult.md | 32 - ...esponseResultOfListOfMarginSystemResult.md | 32 - ...nseResultOfMarginBatchCancelOrderResult.md | 18 - ...onseResultOfMarginBatchPlaceOrderResult.md | 18 - ...ResponseResultOfMarginCrossAssetsResult.md | 18 - ...onseResultOfMarginCrossAssetsRiskResult.md | 18 - ...nseResultOfMarginCrossBorrowLimitResult.md | 18 - ...esponseResultOfMarginCrossFinFlowResult.md | 18 - ...ponseResultOfMarginCrossMaxBorrowResult.md | 18 - ...iResponseResultOfMarginCrossRepayResult.md | 18 - ...esponseResultOfMarginInterestInfoResult.md | 18 - ...ponseResultOfMarginIsolatedAssetsResult.md | 18 - ...ResultOfMarginIsolatedBorrowLimitResult.md | 18 - ...onseResultOfMarginIsolatedFinFlowResult.md | 18 - ...esultOfMarginIsolatedInterestInfoResult.md | 18 - ...ltOfMarginIsolatedLiquidationInfoResult.md | 18 - ...nseResultOfMarginIsolatedLoanInfoResult.md | 18 - ...seResultOfMarginIsolatedMaxBorrowResult.md | 18 - ...seResultOfMarginIsolatedRepayInfoResult.md | 18 - ...sponseResultOfMarginIsolatedRepayResult.md | 18 - ...onseResultOfMarginLiquidationInfoResult.md | 18 - ...ApiResponseResultOfMarginLoanInfoResult.md | 18 - ...sponseResultOfMarginOpenOrderInfoResult.md | 18 - ...iResponseResultOfMarginPlaceOrderResult.md | 18 - ...piResponseResultOfMarginRepayInfoResult.md | 18 - ...onseResultOfMarginTradeDetailInfoResult.md | 18 - .../ApiResponseResultOfMerchantAdvResult.md | 18 - .../ApiResponseResultOfMerchantInfoResult.md | 18 - .../ApiResponseResultOfMerchantOrderResult.md | 18 - .../ApiResponseResultOfMerchantPersonInfo.md | 18 - .../docs/models/ApiResponseResultOfVoid.md | 17 - .../docs/models/FiatPaymentDetailInfo.md | 17 - .../docs/models/FiatPaymentInfo.md | 29 - .../models/MarginBatchCancelOrderRequest.md | 45 - .../models/MarginBatchCancelOrderResult.md | 40 - .../docs/models/MarginBatchOrdersRequest.md | 30 - .../MarginBatchPlaceOrderFailureResult.md | 16 - .../models/MarginBatchPlaceOrderResult.md | 40 - .../models/MarginCancelOrderFailureResult.md | 17 - .../docs/models/MarginCancelOrderRequest.md | 17 - .../docs/models/MarginCancelOrderResult.md | 16 - .../MarginCrossAssetsPopulationResult.md | 22 - .../docs/models/MarginCrossAssetsResult.md | 16 - .../models/MarginCrossAssetsRiskResult.md | 15 - .../models/MarginCrossBorrowLimitResult.md | 17 - .../docs/models/MarginCrossFinFlowInfo.md | 21 - .../docs/models/MarginCrossFinFlowResult.md | 29 - .../docs/models/MarginCrossLevelResult.md | 19 - .../docs/models/MarginCrossLimitRequest.md | 16 - .../models/MarginCrossMaxBorrowRequest.md | 15 - .../docs/models/MarginCrossMaxBorrowResult.md | 16 - .../models/MarginCrossRateAndLimitResult.md | 34 - .../docs/models/MarginCrossRepayRequest.md | 16 - .../docs/models/MarginCrossRepayResult.md | 18 - .../docs/models/MarginCrossVipResult.md | 18 - .../docs/models/MarginInterestInfo.md | 21 - .../docs/models/MarginInterestInfoResult.md | 29 - .../MarginIsolatedAssetsPopulationResult.md | 23 - .../docs/models/MarginIsolatedAssetsResult.md | 17 - .../models/MarginIsolatedAssetsRiskRequest.md | 17 - .../models/MarginIsolatedAssetsRiskResult.md | 16 - .../models/MarginIsolatedBorrowLimitResult.md | 18 - .../docs/models/MarginIsolatedFinFlowInfo.md | 22 - .../models/MarginIsolatedFinFlowResult.md | 29 - .../docs/models/MarginIsolatedInterestInfo.md | 22 - .../MarginIsolatedInterestInfoResult.md | 29 - .../docs/models/MarginIsolatedLevelResult.md | 23 - .../docs/models/MarginIsolatedLimitRequest.md | 17 - .../models/MarginIsolatedLiquidationInfo.md | 23 - .../MarginIsolatedLiquidationInfoResult.md | 29 - .../docs/models/MarginIsolatedLoanInfo.md | 20 - .../models/MarginIsolatedLoanInfoResult.md | 29 - .../models/MarginIsolatedMaxBorrowRequest.md | 16 - .../models/MarginIsolatedMaxBorrowResult.md | 17 - .../MarginIsolatedRateAndLimitResult.md | 54 - .../docs/models/MarginIsolatedRepayInfo.md | 22 - .../models/MarginIsolatedRepayInfoResult.md | 29 - .../docs/models/MarginIsolatedRepayRequest.md | 17 - .../docs/models/MarginIsolatedRepayResult.md | 19 - .../docs/models/MarginIsolatedVipResult.md | 18 - .../docs/models/MarginLiquidationInfo.md | 22 - .../models/MarginLiquidationInfoResult.md | 29 - .../docs/models/MarginLoanInfo.md | 19 - .../docs/models/MarginLoanInfoResult.md | 29 - .../docs/models/MarginOpenOrderInfoResult.md | 29 - .../docs/models/MarginOrderInfo.md | 29 - .../docs/models/MarginOrderRequest.md | 25 - .../docs/models/MarginPlaceOrderResult.md | 16 - .../docs/models/MarginRepayInfo.md | 21 - .../docs/models/MarginRepayInfoResult.md | 29 - .../docs/models/MarginSystemResult.md | 31 - .../docs/models/MarginTradeDetailInfo.md | 24 - .../models/MarginTradeDetailInfoResult.md | 29 - .../docs/models/MerchantAdvInfo.md | 48 - .../docs/models/MerchantAdvResult.md | 28 - .../docs/models/MerchantAdvUserLimitInfo.md | 20 - .../docs/models/MerchantInfo.md | 28 - .../docs/models/MerchantInfoResult.md | 28 - .../docs/models/MerchantOrderInfo.md | 32 - .../docs/models/MerchantOrderPaymentInfo.md | 29 - .../docs/models/MerchantOrderResult.md | 28 - .../docs/models/MerchantPersonInfo.md | 33 - .../docs/models/OrderPaymentDetailInfo.md | 18 - bitget-python-sdk-open-api/git_push.sh | 58 - bitget-python-sdk-open-api/requirements.txt | 6 - bitget-python-sdk-open-api/setup.cfg | 2 - bitget-python-sdk-open-api/setup.py | 47 - .../test-requirements.txt | 3 - .../test/test_models/__init__.py | 0 ...f_margin_cross_assets_population_result.py | 25 - ...lt_of_list_of_margin_cross_level_result.py | 25 - ...t_of_margin_cross_rate_and_limit_result.py | 25 - ...argin_isolated_assets_population_result.py | 25 - ...t_of_margin_isolated_assets_risk_result.py | 25 - ...of_list_of_margin_isolated_level_result.py | 25 - ...f_margin_isolated_rate_and_limit_result.py | 25 - ..._result_of_list_of_margin_system_result.py | 25 - ...ult_of_margin_batch_cancel_order_result.py | 25 - ...sult_of_margin_batch_place_order_result.py | 25 - ...se_result_of_margin_cross_assets_result.py | 25 - ...sult_of_margin_cross_assets_risk_result.py | 25 - ...ult_of_margin_cross_borrow_limit_result.py | 25 - ..._result_of_margin_cross_fin_flow_result.py | 25 - ...esult_of_margin_cross_max_borrow_result.py | 25 - ...nse_result_of_margin_cross_repay_result.py | 25 - ...e_result_of_margin_interest_info_result.py | 25 - ...result_of_margin_isolated_assets_result.py | 25 - ..._of_margin_isolated_borrow_limit_result.py | 25 - ...sult_of_margin_isolated_fin_flow_result.py | 25 - ...of_margin_isolated_interest_info_result.py | 25 - ...margin_isolated_liquidation_info_result.py | 25 - ...ult_of_margin_isolated_loan_info_result.py | 25 - ...lt_of_margin_isolated_max_borrow_result.py | 25 - ...lt_of_margin_isolated_repay_info_result.py | 25 - ..._result_of_margin_isolated_repay_result.py | 25 - ...esult_of_margin_liquidation_info_result.py | 25 - ...ponse_result_of_margin_loan_info_result.py | 25 - ...result_of_margin_open_order_info_result.py | 25 - ...nse_result_of_margin_place_order_result.py | 25 - ...onse_result_of_margin_repay_info_result.py | 25 - ...sult_of_margin_trade_detail_info_result.py | 25 - ..._response_result_of_merchant_adv_result.py | 25 - ...response_result_of_merchant_info_result.py | 25 - ...esponse_result_of_merchant_order_result.py | 25 - ...response_result_of_merchant_person_info.py | 25 - .../test_api_response_result_of_void.py | 25 - .../test_fiat_payment_detail_info.py | 25 - .../test_models/test_fiat_payment_info.py | 25 - .../test_margin_batch_cancel_order_request.py | 25 - .../test_margin_batch_cancel_order_result.py | 25 - .../test_margin_batch_orders_request.py | 25 - ...margin_batch_place_order_failure_result.py | 25 - .../test_margin_batch_place_order_result.py | 25 - ...test_margin_cancel_order_failure_result.py | 25 - .../test_margin_cancel_order_request.py | 25 - .../test_margin_cancel_order_result.py | 25 - ...t_margin_cross_assets_population_result.py | 25 - .../test_margin_cross_assets_result.py | 25 - .../test_margin_cross_assets_risk_result.py | 25 - .../test_margin_cross_borrow_limit_result.py | 25 - .../test_margin_cross_fin_flow_info.py | 25 - .../test_margin_cross_fin_flow_result.py | 25 - .../test_margin_cross_level_result.py | 25 - .../test_margin_cross_limit_request.py | 25 - .../test_margin_cross_max_borrow_request.py | 25 - .../test_margin_cross_max_borrow_result.py | 25 - ...test_margin_cross_rate_and_limit_result.py | 25 - .../test_margin_cross_repay_request.py | 25 - .../test_margin_cross_repay_result.py | 25 - .../test_margin_cross_vip_result.py | 25 - .../test_models/test_margin_interest_info.py | 25 - .../test_margin_interest_info_result.py | 25 - ...argin_isolated_assets_population_result.py | 25 - .../test_margin_isolated_assets_result.py | 25 - ...est_margin_isolated_assets_risk_request.py | 25 - ...test_margin_isolated_assets_risk_result.py | 25 - ...est_margin_isolated_borrow_limit_result.py | 25 - .../test_margin_isolated_fin_flow_info.py | 25 - .../test_margin_isolated_fin_flow_result.py | 25 - .../test_margin_isolated_interest_info.py | 25 - ...st_margin_isolated_interest_info_result.py | 25 - .../test_margin_isolated_level_result.py | 25 - .../test_margin_isolated_limit_request.py | 25 - .../test_margin_isolated_liquidation_info.py | 25 - ...margin_isolated_liquidation_info_result.py | 25 - .../test_margin_isolated_loan_info.py | 25 - .../test_margin_isolated_loan_info_result.py | 25 - ...test_margin_isolated_max_borrow_request.py | 25 - .../test_margin_isolated_max_borrow_result.py | 25 - ...t_margin_isolated_rate_and_limit_result.py | 25 - .../test_margin_isolated_repay_info.py | 25 - .../test_margin_isolated_repay_info_result.py | 25 - .../test_margin_isolated_repay_request.py | 25 - .../test_margin_isolated_repay_result.py | 25 - .../test_margin_isolated_vip_result.py | 25 - .../test_margin_liquidation_info.py | 25 - .../test_margin_liquidation_info_result.py | 25 - .../test/test_models/test_margin_loan_info.py | 25 - .../test_margin_loan_info_result.py | 25 - .../test_margin_open_order_info_result.py | 25 - .../test_models/test_margin_order_info.py | 25 - .../test_models/test_margin_order_request.py | 25 - .../test_margin_place_order_result.py | 25 - .../test_models/test_margin_repay_info.py | 25 - .../test_margin_repay_info_result.py | 25 - .../test_models/test_margin_system_result.py | 25 - .../test_margin_trade_detail_info.py | 25 - .../test_margin_trade_detail_info_result.py | 25 - .../test_models/test_merchant_adv_info.py | 25 - .../test_models/test_merchant_adv_result.py | 25 - .../test_merchant_adv_user_limit_info.py | 25 - .../test/test_models/test_merchant_info.py | 25 - .../test_models/test_merchant_info_result.py | 25 - .../test_models/test_merchant_order_info.py | 25 - .../test_merchant_order_payment_info.py | 25 - .../test_models/test_merchant_order_result.py | 25 - .../test_models/test_merchant_person_info.py | 25 - .../test_order_payment_detail_info.py | 25 - .../test/test_paths/__init__.py | 80 - .../__init__.py | 0 .../test_get.py | 69 - .../__init__.py | 0 .../test_post.py | 65 - .../__init__.py | 0 .../test_post.py | 65 - .../__init__.py | 0 .../test_get.py | 63 - .../__init__.py | 0 .../test_post.py | 67 - .../__init__.py | 0 .../test_get.py | 58 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 67 - .../__init__.py | 0 .../test_get.py | 66 - .../__init__.py | 0 .../test_get.py | 67 - .../__init__.py | 0 .../test_get.py | 67 - .../__init__.py | 0 .../test_post.py | 86 - .../__init__.py | 0 .../test_post.py | 71 - .../__init__.py | 0 .../test_post.py | 87 - .../__init__.py | 0 .../test_get.py | 72 - .../__init__.py | 0 .../test_get.py | 77 - .../__init__.py | 0 .../test_get.py | 76 - .../__init__.py | 0 .../test_post.py | 68 - .../__init__.py | 0 .../test_get.py | 70 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_get.py | 66 - .../__init__.py | 0 .../test_get.py | 70 - .../__init__.py | 0 .../test_post.py | 68 - .../__init__.py | 0 .../test_post.py | 67 - .../__init__.py | 0 .../test_get.py | 59 - .../__init__.py | 0 .../test_post.py | 67 - .../__init__.py | 0 .../test_post.py | 67 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_get.py | 69 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_post.py | 86 - .../__init__.py | 0 .../test_post.py | 77 - .../__init__.py | 0 .../test_post.py | 86 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_get.py | 75 - .../__init__.py | 0 .../test_get.py | 75 - .../__init__.py | 0 .../test_post.py | 68 - .../__init__.py | 0 .../test_get.py | 71 - .../__init__.py | 0 .../test_get.py | 71 - .../__init__.py | 0 .../test_get.py | 68 - .../__init__.py | 0 .../test_get.py | 73 - .../__init__.py | 0 .../test_get.py | 71 - .../__init__.py | 0 .../test_get.py | 63 - .../__init__.py | 0 .../test_get.py | 71 - .../__init__.py | 0 .../test_get.py | 69 - bitget-python-sdk-open-api/tox.ini | 10 - 2126 files changed, 388593 deletions(-) delete mode 100644 bitget-goland-sdk-open-api/README.md delete mode 100644 bitget-goland-sdk-open-api/api/openapi.yaml delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_account.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_borrow.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_finflow.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_interest.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_liquidation.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_order.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_public.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_cross_repay.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_account.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_borrow.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_finflow.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_interest.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_liquidation.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_order.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_public.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_isolated_repay.go delete mode 100644 bitget-goland-sdk-open-api/api_margin_public.go delete mode 100644 bitget-goland-sdk-open-api/api_p2p_merchant.go delete mode 100644 bitget-goland-sdk-open-api/api_spot_trace_order.go delete mode 100644 bitget-goland-sdk-open-api/api_spot_trace_profit.go delete mode 100644 bitget-goland-sdk-open-api/client.go delete mode 100644 bitget-goland-sdk-open-api/configuration.go delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfSpotInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfTraderTotalProfitListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTracersResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTradersResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderCurrentListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderHistoryListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraceSettingResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisDetailListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderSettingResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderTotalProfitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderWaitProfitDetailListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfVoid.md delete mode 100644 bitget-goland-sdk-open-api/docs/ApiResponseResultOfboolean.md delete mode 100644 bitget-goland-sdk-open-api/docs/CloseTrackingOrderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/CurrentOrderListRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/EndOrderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/FiatPaymentDetailInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/FiatPaymentInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/HistoryOrderListRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginBatchOrdersRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCancelOrderFailureResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCancelOrderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCancelOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossAccountApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossAssetsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossAssetsRiskResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossBorrowApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossBorrowLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossFinFlowInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossFinFlowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossFinflowApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossInterestApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossLevelResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossLimitRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossLiquidationApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossOrderApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossPublicApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossRateAndLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossRepayApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossRepayRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossRepayResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginCrossVipResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginInterestInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginInterestInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedAccountApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedFinflowApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedInterestApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLevelResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLimitRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedOrderApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedPublicApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRepayApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRepayRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedRepayResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginIsolatedVipResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginLiquidationInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginLiquidationInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginLoanInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginLoanInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginOpenOrderInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginOrderInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginOrderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginPlaceOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginPublicApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginRepayInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginRepayInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginSystemResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginTradeDetailInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MarginTradeDetailInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantAdvInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantAdvResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantAdvUserLimitInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantOrderInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantOrderPaymentInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantOrderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MerchantPersonInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTracerResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTracersRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTracersResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTraderResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTradersRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/MyTradersResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/OrderCurrentListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/OrderCurrentResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/OrderHistoryListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/OrderHistoryResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/OrderPaymentDetailInfo.md delete mode 100644 bitget-goland-sdk-open-api/docs/P2pMerchantApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/ProductCodeRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/RemoveTraderRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/SpotInfoResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/SpotTraceOrderApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/SpotTraceProfitApi.md delete mode 100644 bitget-goland-sdk-open-api/docs/TotalProfitHisDetailListRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TotalProfitHisListRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TotalProfitListRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceConfigRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceConfigSettingRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceSettingBatchDetailsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceSettingProductConfigsResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceSettingResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraceSettingsRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderProfitHisDetailListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderProfitHisDetailResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderProfitHisListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderProfitHisResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderSettingLablesResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderSettingResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderSettingSupportProductResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderTotalProfitListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderTotalProfitResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailListResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailResult.md delete mode 100644 bitget-goland-sdk-open-api/docs/UpdateTpslRequest.md delete mode 100644 bitget-goland-sdk-open-api/docs/WaitProfitDetailListRequest.md delete mode 100644 bitget-goland-sdk-open-api/git_push.sh delete mode 100644 bitget-goland-sdk-open-api/go.mod delete mode 100644 bitget-goland-sdk-open-api/go.sum delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_assets_population_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_level_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_rate_and_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_population_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_risk_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_level_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_system_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_spot_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_list_of_trader_total_profit_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_cancel_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_place_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_risk_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_borrow_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_fin_flow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_max_borrow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_repay_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_interest_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_assets_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_borrow_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_fin_flow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_interest_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_liquidation_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_loan_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_max_borrow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_liquidation_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_loan_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_open_order_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_place_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_repay_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_margin_trade_detail_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_merchant_adv_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_merchant_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_merchant_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_merchant_person_info.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_my_tracers_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_my_traders_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_order_current_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_order_history_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trace_setting_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_detail_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trader_setting_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trader_total_profit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_trader_wait_profit_detail_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_of_void.go delete mode 100644 bitget-goland-sdk-open-api/model_api_response_result_ofboolean.go delete mode 100644 bitget-goland-sdk-open-api/model_close_tracking_order_request.go delete mode 100644 bitget-goland-sdk-open-api/model_current_order_list_request.go delete mode 100644 bitget-goland-sdk-open-api/model_end_order_request.go delete mode 100644 bitget-goland-sdk-open-api/model_fiat_payment_detail_info.go delete mode 100644 bitget-goland-sdk-open-api/model_fiat_payment_info.go delete mode 100644 bitget-goland-sdk-open-api/model_history_order_list_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_batch_cancel_order_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_batch_cancel_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_batch_orders_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_batch_place_order_failure_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_batch_place_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cancel_order_failure_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cancel_order_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cancel_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_assets_population_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_assets_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_assets_risk_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_borrow_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_fin_flow_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_fin_flow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_level_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_limit_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_max_borrow_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_max_borrow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_rate_and_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_repay_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_repay_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_cross_vip_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_interest_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_interest_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_assets_population_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_assets_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_borrow_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_interest_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_interest_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_level_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_limit_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_loan_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_loan_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_rate_and_limit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_repay_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_repay_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_repay_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_repay_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_isolated_vip_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_liquidation_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_liquidation_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_loan_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_loan_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_open_order_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_order_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_order_request.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_place_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_repay_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_repay_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_system_result.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_trade_detail_info.go delete mode 100644 bitget-goland-sdk-open-api/model_margin_trade_detail_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_adv_info.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_adv_result.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_adv_user_limit_info.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_info.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_order_info.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_order_payment_info.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_order_result.go delete mode 100644 bitget-goland-sdk-open-api/model_merchant_person_info.go delete mode 100644 bitget-goland-sdk-open-api/model_my_tracer_result.go delete mode 100644 bitget-goland-sdk-open-api/model_my_tracers_request.go delete mode 100644 bitget-goland-sdk-open-api/model_my_tracers_result.go delete mode 100644 bitget-goland-sdk-open-api/model_my_trader_result.go delete mode 100644 bitget-goland-sdk-open-api/model_my_traders_request.go delete mode 100644 bitget-goland-sdk-open-api/model_my_traders_result.go delete mode 100644 bitget-goland-sdk-open-api/model_order_current_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_order_current_result.go delete mode 100644 bitget-goland-sdk-open-api/model_order_history_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_order_history_result.go delete mode 100644 bitget-goland-sdk-open-api/model_order_payment_detail_info.go delete mode 100644 bitget-goland-sdk-open-api/model_product_code_request.go delete mode 100644 bitget-goland-sdk-open-api/model_remove_trader_request.go delete mode 100644 bitget-goland-sdk-open-api/model_spot_info_result.go delete mode 100644 bitget-goland-sdk-open-api/model_total_profit_his_detail_list_request.go delete mode 100644 bitget-goland-sdk-open-api/model_total_profit_his_list_request.go delete mode 100644 bitget-goland-sdk-open-api/model_total_profit_list_request.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_config_request.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_config_setting_request.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_setting_batch_details_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_setting_product_configs_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_setting_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trace_settings_request.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_profit_his_detail_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_profit_his_detail_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_profit_his_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_profit_his_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_setting_lables_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_setting_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_setting_support_product_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_total_profit_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_total_profit_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_wait_profit_detail_list_result.go delete mode 100644 bitget-goland-sdk-open-api/model_trader_wait_profit_detail_result.go delete mode 100644 bitget-goland-sdk-open-api/model_update_tpsl_request.go delete mode 100644 bitget-goland-sdk-open-api/model_wait_profit_detail_list_request.go delete mode 100644 bitget-goland-sdk-open-api/response.go delete mode 100644 bitget-goland-sdk-open-api/sign_utils.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_account_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_borrow_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_finflow_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_interest_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_liquidation_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_order_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_public_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_cross_repay_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_account_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_borrow_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_finflow_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_interest_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_liquidation_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_order_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_public_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_isolated_repay_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_margin_public_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_p2p_merchant_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_spot_trace_order_test.go delete mode 100644 bitget-goland-sdk-open-api/test/api_spot_trace_profit_test.go delete mode 100644 bitget-goland-sdk-open-api/utils.go delete mode 100644 bitget-java-sdk-open-api/README.md delete mode 100644 bitget-java-sdk-open-api/api/openapi.yaml delete mode 100644 bitget-java-sdk-open-api/bitget-java-sdk-open-api.iml delete mode 100644 bitget-java-sdk-open-api/build.gradle delete mode 100644 bitget-java-sdk-open-api/build.sbt delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/ApiResponseResultOfVoid.md delete mode 100644 bitget-java-sdk-open-api/docs/FiatPaymentDetailInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/FiatPaymentInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginBatchCancelOrderRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginBatchCancelOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginBatchOrdersRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCancelOrderFailureResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCancelOrderRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCancelOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossAccountApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossAssetsResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossAssetsRiskResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossBorrowApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossBorrowLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossFinFlowInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossFinFlowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossFinflowApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossInterestApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossLevelResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossLimitRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossLiquidationApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossOrderApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossPublicApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossRateAndLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossRepayApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossRepayRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossRepayResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginCrossVipResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginInterestInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginInterestInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedAccountApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedAssetsResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedBorrowApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedFinflowApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedInterestApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLevelResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLimitRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedOrderApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedPublicApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRepayApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRepayRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedRepayResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginIsolatedVipResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginLiquidationInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginLiquidationInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginLoanInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginLoanInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginOpenOrderInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginOrderInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginOrderRequest.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginPlaceOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginPublicApi.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginRepayInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginRepayInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginSystemResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginTradeDetailInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MarginTradeDetailInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantAdvInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantAdvResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantAdvUserLimitInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantInfoResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantOrderInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantOrderPaymentInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantOrderResult.md delete mode 100644 bitget-java-sdk-open-api/docs/MerchantPersonInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/OrderPaymentDetailInfo.md delete mode 100644 bitget-java-sdk-open-api/docs/P2pMerchantApi.md delete mode 100644 bitget-java-sdk-open-api/git_push.sh delete mode 100644 bitget-java-sdk-open-api/gradle.properties delete mode 100644 bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.jar delete mode 100644 bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.properties delete mode 100644 bitget-java-sdk-open-api/gradlew delete mode 100644 bitget-java-sdk-open-api/gradlew.bat delete mode 100644 bitget-java-sdk-open-api/pom.xml delete mode 100644 bitget-java-sdk-open-api/settings.gradle delete mode 100644 bitget-java-sdk-open-api/src/main/AndroidManifest.xml delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiCallback.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiClient.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiConfig.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiException.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiResponse.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Configuration.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/GzipRequestInterceptor.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/JSON.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Pair.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressRequestBody.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressResponseBody.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerConfiguration.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerVariable.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/SignatureUtils.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/StringUtil.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossAccountApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossBorrowApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossFinflowApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossInterestApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossLiquidationApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossOrderApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossPublicApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossRepayApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedAccountApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedBorrowApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedFinflowApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedInterestApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedLiquidationApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedOrderApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedPublicApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedRepayApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginPublicApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/P2pMerchantApi.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/ApiKeyAuth.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/Authentication.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBasicAuth.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBearerAuth.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/AbstractOpenApiSchema.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfVoid.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentDetailInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchOrdersRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderFailureResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsRiskResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossBorrowLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLevelResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLimitRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRateAndLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossVipResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLevelResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLimitRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedVipResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOpenOrderInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderRequest.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginPlaceOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginSystemResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvUserLimitInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfoResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderPaymentInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderResult.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantPersonInfo.java delete mode 100644 bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/OrderPaymentDetailInfo.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossAccountApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossBorrowApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossFinflowApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossInterestApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossLiquidationApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossOrderApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossPublicApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossRepayApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedAccountApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedBorrowApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedFinflowApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedInterestApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedLiquidationApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedOrderApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedPublicApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedRepayApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginPublicApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/P2pMerchantApiTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfVoidTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentDetailInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchOrdersRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderFailureResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsRiskResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossBorrowLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLevelResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLimitRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRateAndLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossVipResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLevelResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLimitRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedVipResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOpenOrderInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderRequestTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginPlaceOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginSystemResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvUserLimitInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderPaymentInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderResultTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantPersonInfoTest.java delete mode 100644 bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/OrderPaymentDetailInfoTest.java delete mode 100644 bitget-node-sdk-open-api/README.md delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossAccountApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossBorrowApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossFinFlowApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossInterestApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossLiquidationApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossOrderApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossPublicApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginCrossRepayApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatecInterestApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedAccountApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedBorrowApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedFinFlowApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedLiquidationApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedOrderApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedPublicApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginIsolatedRepayApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/MarginPublicApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/__test__/P2PMerchantApi.spec.ts delete mode 100644 bitget-node-sdk-open-api/api.ts delete mode 100644 bitget-node-sdk-open-api/api/apis.ts delete mode 100644 bitget-node-sdk-open-api/api/config.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossAccountApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossBorrowApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossFinflowApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossInterestApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossLiquidationApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossOrderApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossPublicApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginCrossRepayApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedAccountApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedBorrowApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedFinflowApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedInterestApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedLiquidationApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedOrderApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedPublicApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginIsolatedRepayApi.ts delete mode 100644 bitget-node-sdk-open-api/api/marginPublicApi.ts delete mode 100644 bitget-node-sdk-open-api/api/p2pMerchantApi.ts delete mode 100644 bitget-node-sdk-open-api/git_push.sh delete mode 100644 bitget-node-sdk-open-api/jest.config.js delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossAssetsPopulationResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossLevelResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossRateAndLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedLevelResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginSystemResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchCancelOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchPlaceOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsRiskResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossBorrowLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossFinFlowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossMaxBorrowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossRepayResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginInterestInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedAssetsResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedBorrowLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedFinFlowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedInterestInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLiquidationInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLoanInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedMaxBorrowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginLiquidationInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginLoanInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginOpenOrderInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginPlaceOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginRepayInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMarginTradeDetailInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMerchantAdvResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMerchantInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMerchantOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfMerchantPersonInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/apiResponseResultOfVoid.ts delete mode 100644 bitget-node-sdk-open-api/model/fiatPaymentDetailInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/fiatPaymentInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginBatchCancelOrderRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginBatchCancelOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginBatchOrdersRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginBatchPlaceOrderFailureResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginBatchPlaceOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCancelOrderFailureResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCancelOrderRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCancelOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossAssetsPopulationResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossAssetsResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossAssetsRiskResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossBorrowLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossFinFlowInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossFinFlowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossLevelResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossLimitRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossMaxBorrowRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossMaxBorrowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossRateAndLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossRepayRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossRepayResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginCrossVipResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginInterestInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginInterestInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedAssetsPopulationResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedAssetsResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedBorrowLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedFinFlowInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedFinFlowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedInterestInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedInterestInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLevelResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLimitRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLoanInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedLoanInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedRateAndLimitResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedRepayInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedRepayInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedRepayRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedRepayResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginIsolatedVipResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginLiquidationInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginLiquidationInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginLoanInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginLoanInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginOpenOrderInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginOrderInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginOrderRequest.ts delete mode 100644 bitget-node-sdk-open-api/model/marginPlaceOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginRepayInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginRepayInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginSystemResult.ts delete mode 100644 bitget-node-sdk-open-api/model/marginTradeDetailInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/marginTradeDetailInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantAdvInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantAdvResult.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantAdvUserLimitInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantInfoResult.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantOrderInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantOrderPaymentInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantOrderResult.ts delete mode 100644 bitget-node-sdk-open-api/model/merchantPersonInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/models.ts delete mode 100644 bitget-node-sdk-open-api/model/orderPaymentDetailInfo.ts delete mode 100644 bitget-node-sdk-open-api/model/util.ts delete mode 100644 bitget-node-sdk-open-api/package.json delete mode 100644 bitget-node-sdk-open-api/tsconfig.json delete mode 100644 bitget-php-sdk-open-api/README.md delete mode 100644 bitget-php-sdk-open-api/composer.json delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossAccountApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossBorrowApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossFinflowApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossInterestApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossLiquidationApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossOrderApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossPublicApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginCrossRepayApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedAccountApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedBorrowApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedFinflowApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedInterestApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedLiquidationApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedOrderApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedPublicApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginIsolatedRepayApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/MarginPublicApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Api/P2pMerchantApi.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossLevelResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginSystemResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchCancelOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossFinFlowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossRepayResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginInterestInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedAssetsResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLiquidationInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLoanInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginOpenOrderInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginPlaceOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginRepayInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginTradeDetailInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantAdvResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantPersonInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfVoid.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/FiatPaymentDetailInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/FiatPaymentInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginBatchOrdersRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderFailureResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCancelOrderFailureResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCancelOrderRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCancelOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsPopulationResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsRiskResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossBorrowLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossLevelResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossLimitRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossRateAndLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossRepayRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossRepayResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginCrossVipResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginInterestInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginInterestInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLevelResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLimitRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginIsolatedVipResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginLoanInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginLoanInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginOpenOrderInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginOrderInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginOrderRequest.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginPlaceOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginRepayInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginRepayInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginSystemResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantAdvInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantAdvResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantAdvUserLimitInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantInfoResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantOrderInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantOrderPaymentInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantOrderResult.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/MerchantPersonInfo.md delete mode 100644 bitget-php-sdk-open-api/docs/Model/OrderPaymentDetailInfo.md delete mode 100644 bitget-php-sdk-open-api/git_push.sh delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossAccountApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossBorrowApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossFinflowApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossInterestApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossLiquidationApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossOrderApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossPublicApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginCrossRepayApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedAccountApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedBorrowApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedFinflowApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedInterestApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedLiquidationApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedOrderApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedPublicApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginIsolatedRepayApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/MarginPublicApi.php delete mode 100644 bitget-php-sdk-open-api/lib/Api/P2pMerchantApi.php delete mode 100644 bitget-php-sdk-open-api/lib/ApiException.php delete mode 100644 bitget-php-sdk-open-api/lib/Config.php delete mode 100644 bitget-php-sdk-open-api/lib/Configuration.php delete mode 100644 bitget-php-sdk-open-api/lib/HeaderSelector.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossLevelResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginSystemResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchCancelOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossFinFlowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossRepayResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginInterestInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedAssetsResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLiquidationInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLoanInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginOpenOrderInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginPlaceOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginRepayInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginTradeDetailInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantAdvResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantPersonInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfVoid.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/FiatPaymentDetailInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/FiatPaymentInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginBatchOrdersRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderFailureResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCancelOrderFailureResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCancelOrderRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCancelOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsPopulationResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsRiskResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossBorrowLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossLevelResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossLimitRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossRateAndLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossRepayRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossRepayResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginCrossVipResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginInterestInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginInterestInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsPopulationResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedBorrowLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLevelResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLimitRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedRateAndLimitResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginIsolatedVipResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginLoanInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginLoanInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginOpenOrderInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginOrderInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginOrderRequest.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginPlaceOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginRepayInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginRepayInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginSystemResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantAdvInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantAdvResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantAdvUserLimitInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantInfoResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantOrderInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantOrderPaymentInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantOrderResult.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/MerchantPersonInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/ModelInterface.php delete mode 100644 bitget-php-sdk-open-api/lib/Model/OrderPaymentDetailInfo.php delete mode 100644 bitget-php-sdk-open-api/lib/ObjectSerializer.php delete mode 100644 bitget-php-sdk-open-api/lib/Utils.php delete mode 100644 bitget-php-sdk-open-api/phpunit.xml.dist delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossAccountApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossBorrowApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossFinflowApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossInterestApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossLiquidationApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossOrderApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossPublicApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginCrossRepayApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedAccountApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedBorrowApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedFinflowApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedInterestApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedLiquidationApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedOrderApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedPublicApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginIsolatedRepayApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/MarginPublicApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Api/P2pMerchantApiTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossLevelResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginSystemResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchCancelOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossFinFlowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossRepayResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginInterestInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedAssetsResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLiquidationInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLoanInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginOpenOrderInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginPlaceOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginRepayInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginTradeDetailInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantAdvResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantPersonInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/ApiResponseResultOfVoidTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/FiatPaymentDetailInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/FiatPaymentInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginBatchOrdersRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderFailureResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCancelOrderFailureResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCancelOrderRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCancelOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossAssetsPopulationResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossAssetsResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossAssetsRiskResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossBorrowLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossLevelResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossLimitRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossRateAndLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossRepayRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossRepayResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginCrossVipResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginInterestInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginInterestInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsPopulationResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedBorrowLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLevelResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLimitRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedRateAndLimitResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginIsolatedVipResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginLoanInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginLoanInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginOpenOrderInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginOrderInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginOrderRequestTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginPlaceOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginRepayInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginRepayInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginSystemResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantAdvInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantAdvResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantAdvUserLimitInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantInfoResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantOrderInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantOrderPaymentInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantOrderResultTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/MerchantPersonInfoTest.php delete mode 100644 bitget-php-sdk-open-api/test/Model/OrderPaymentDetailInfoTest.php delete mode 100644 bitget-python-sdk-open-api/README.md delete mode 100644 bitget-python-sdk-open-api/bitget/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/api_client.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/path_to_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_assets.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_borrow.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_borrowable_amount.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_transfer_out_amount.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_repay.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_risk_rate.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_void.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_fin_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_interest_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_liquidation_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_loan_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_cancel_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_place_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_cancel_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_fills.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_history.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_open_orders.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_place_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_interest_rate_and_limit.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_tier_data.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_repay_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_assets.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_borrow.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_borrowable_amount.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_transfer_out_amount.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_repay.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_risk_rate.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_fin_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_interest_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_liquidation_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_loan_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_cancel_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_place_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_cancel_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_fills.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_history.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_open_orders.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_place_order.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_interest_rate_and_limit.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_tier_data.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_repay_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_public_currencies.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_adv_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_order_list.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tag_to_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_account_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_borrow_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_finflow_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_interest_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_liquidation_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_order_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_public_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_repay_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_account_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_borrow_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_finflow_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_interest_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_liquidation_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_order_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_public_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_repay_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/margin_public_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/apis/tags/p2p_merchant_api.py delete mode 100644 bitget-python-sdk-open-api/bitget/configuration.py delete mode 100644 bitget-python-sdk-open-api/bitget/exceptions.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/fiat_payment_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/fiat_payment_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_interest_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_interest_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_loan_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_loan_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_order_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_order_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_order_request.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_order_request.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_place_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_repay_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_repay_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_system_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_system_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_info_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_info_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_result.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_order_result.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_person_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/merchant_person_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.py delete mode 100644 bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/models/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.py delete mode 100644 bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.pyi delete mode 100644 bitget-python-sdk-open-api/bitget/rest.py delete mode 100644 bitget-python-sdk-open-api/bitget/schemas.py delete mode 100644 bitget-python-sdk-open-api/bitget/utils.py delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossAccountApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossBorrowApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossFinflowApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossInterestApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossLiquidationApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossOrderApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossPublicApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginCrossRepayApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedAccountApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedBorrowApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedFinflowApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedInterestApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedLiquidationApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedOrderApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedPublicApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedRepayApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/MarginPublicApi.md delete mode 100644 bitget-python-sdk-open-api/docs/apis/tags/P2pMerchantApi.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossLevelResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginSystemResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchCancelOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchPlaceOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsRiskResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossBorrowLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossFinFlowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossMaxBorrowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossRepayResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginInterestInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedAssetsResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedFinFlowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLiquidationInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLoanInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginOpenOrderInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginPlaceOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginRepayInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginTradeDetailInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantAdvResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantPersonInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/ApiResponseResultOfVoid.md delete mode 100644 bitget-python-sdk-open-api/docs/models/FiatPaymentDetailInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/FiatPaymentInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginBatchOrdersRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderFailureResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCancelOrderFailureResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCancelOrderRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCancelOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossAssetsPopulationResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossAssetsResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossAssetsRiskResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossBorrowLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossLevelResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossLimitRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossRateAndLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossRepayRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossRepayResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginCrossVipResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginInterestInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginInterestInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsPopulationResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedBorrowLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLevelResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLimitRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedRateAndLimitResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginIsolatedVipResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginLiquidationInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginLiquidationInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginLoanInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginLoanInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginOpenOrderInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginOrderInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginOrderRequest.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginPlaceOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginRepayInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginRepayInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginSystemResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantAdvInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantAdvResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantAdvUserLimitInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantInfoResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantOrderInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantOrderPaymentInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantOrderResult.md delete mode 100644 bitget-python-sdk-open-api/docs/models/MerchantPersonInfo.md delete mode 100644 bitget-python-sdk-open-api/docs/models/OrderPaymentDetailInfo.md delete mode 100644 bitget-python-sdk-open-api/git_push.sh delete mode 100644 bitget-python-sdk-open-api/requirements.txt delete mode 100644 bitget-python-sdk-open-api/setup.cfg delete mode 100644 bitget-python-sdk-open-api/setup.py delete mode 100644 bitget-python-sdk-open-api/test-requirements.txt delete mode 100644 bitget-python-sdk-open-api/test/test_models/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_level_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_level_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_system_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_repay_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_assets_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_open_order_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_trade_detail_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_adv_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_person_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_void.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_fiat_payment_detail_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_fiat_payment_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_batch_orders_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_failure_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_failure_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_level_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_limit_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_cross_vip_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_interest_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_population_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_borrow_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_level_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_limit_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_rate_and_limit_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_isolated_vip_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_loan_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_loan_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_open_order_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_order_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_order_request.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_place_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_repay_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_repay_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_system_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_adv_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_adv_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_adv_user_limit_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_info_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_order_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_order_payment_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_order_result.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_merchant_person_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_models/test_order_payment_detail_info.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/test_post.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/__init__.py delete mode 100644 bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/test_get.py delete mode 100644 bitget-python-sdk-open-api/tox.ini diff --git a/bitget-goland-sdk-open-api/README.md b/bitget-goland-sdk-open-api/README.md deleted file mode 100644 index e25787e6..00000000 --- a/bitget-goland-sdk-open-api/README.md +++ /dev/null @@ -1,374 +0,0 @@ -# Go API client for openapi - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 2.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.GoClientCodegen - -## Installation - -Install the following dependencies: - -```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/oauth2 -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```golang -import openapi "github.com/GIT_USER_ID/GIT_REPO_ID" -``` - -To use a proxy, set the environment variable `HTTP_PROXY`: - -```golang -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") -``` - -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. - -### Select Server Configuration - -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. - -```golang -ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) -``` - -### Templated Server URL - -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. - -```golang -ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. - -```golang -ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) -``` - -### Code Demo -```golang -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "os" - "testing" -) - -func Test_openapi_ApiService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test Api", func(t *testing.T) { - configuration := openapiclient.NewConfiguration() - configuration.AddDefaultHeader("ACCESS-KEY", "xxx") - configuration.AddDefaultHeader("ACCESS-PASSPHRASE", "xxx") - configuration.AddDefaultHeader("SECRET-KEY", "xxx") - configuration.Host = "api.bitget.com" - configuration.Scheme = "https" - - apiClient := openapiclient.NewAPIClient(configuration) - param := *openapiclient.NewMixPlaceOrderRequest("USDT", "market", "open_long", float32(1.0), "BTCUSDT_UMCBL") // MixPlaceOrderRequest | param - resp, r, err := apiClient.MixOrderApi.PlaceOrder(context.Background()).Param(param).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MixOrderApi.PlaceOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("student=%v\n", out.String()) - - resp1, r, err := apiClient.MixOrderApi.MarginCoinCurrent(context.Background()).ProductType("umcbl").MarginCoin("USDT").Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MixOrderApi.GetMarginCoinCurrent``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - bs1, _ := json.Marshal(resp1) - var out1 bytes.Buffer - json.Indent(&out1, bs1, "", "\t") - fmt.Printf("student=%v\n", out1.String()) - - resp2, r, err := apiClient.MixOrderApi.MixOrderFills(context.Background()).Symbol("BTCUSDT_UMCBL").StartTime("1671402175000").EndTime("1673517445000").Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MixOrderApi.GetMarginCoinCurrent``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - bs2, _ := json.Marshal(resp2) - var out2 bytes.Buffer - json.Indent(&out2, bs2, "", "\t") - fmt.Printf("student=%v\n", out2.String()) - }) -} -```` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.bitget.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*MarginCrossAccountApi* | [**MarginCrossAccountAssets**](docs/MarginCrossAccountApi.md#margincrossaccountassets) | **Get** /api/margin/v1/cross/account/assets | assets -*MarginCrossAccountApi* | [**MarginCrossAccountBorrow**](docs/MarginCrossAccountApi.md#margincrossaccountborrow) | **Post** /api/margin/v1/cross/account/borrow | borrow -*MarginCrossAccountApi* | [**MarginCrossAccountMaxBorrowableAmount**](docs/MarginCrossAccountApi.md#margincrossaccountmaxborrowableamount) | **Post** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -*MarginCrossAccountApi* | [**MarginCrossAccountMaxTransferOutAmount**](docs/MarginCrossAccountApi.md#margincrossaccountmaxtransferoutamount) | **Get** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -*MarginCrossAccountApi* | [**MarginCrossAccountRepay**](docs/MarginCrossAccountApi.md#margincrossaccountrepay) | **Post** /api/margin/v1/cross/account/repay | repay -*MarginCrossAccountApi* | [**MarginCrossAccountRiskRate**](docs/MarginCrossAccountApi.md#margincrossaccountriskrate) | **Get** /api/margin/v1/cross/account/riskRate | riskRate -*MarginCrossAccountApi* | [**Void**](docs/MarginCrossAccountApi.md#void) | **Get** /api/margin/v1/cross/account/void | void -*MarginCrossBorrowApi* | [**CrossLoanList**](docs/MarginCrossBorrowApi.md#crossloanlist) | **Get** /api/margin/v1/cross/loan/list | list -*MarginCrossFinflowApi* | [**CrossFinList**](docs/MarginCrossFinflowApi.md#crossfinlist) | **Get** /api/margin/v1/cross/fin/list | list -*MarginCrossInterestApi* | [**CrossInterestList**](docs/MarginCrossInterestApi.md#crossinterestlist) | **Get** /api/margin/v1/cross/interest/list | list -*MarginCrossLiquidationApi* | [**CrossLiquidationList**](docs/MarginCrossLiquidationApi.md#crossliquidationlist) | **Get** /api/margin/v1/cross/liquidation/list | list -*MarginCrossOrderApi* | [**MarginCrossBatchCancelOrder**](docs/MarginCrossOrderApi.md#margincrossbatchcancelorder) | **Post** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -*MarginCrossOrderApi* | [**MarginCrossBatchPlaceOrder**](docs/MarginCrossOrderApi.md#margincrossbatchplaceorder) | **Post** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -*MarginCrossOrderApi* | [**MarginCrossCancelOrder**](docs/MarginCrossOrderApi.md#margincrosscancelorder) | **Post** /api/margin/v1/cross/order/cancelOrder | cancelOrder -*MarginCrossOrderApi* | [**MarginCrossFills**](docs/MarginCrossOrderApi.md#margincrossfills) | **Get** /api/margin/v1/cross/order/fills | fills -*MarginCrossOrderApi* | [**MarginCrossHistoryOrders**](docs/MarginCrossOrderApi.md#margincrosshistoryorders) | **Get** /api/margin/v1/cross/order/history | history -*MarginCrossOrderApi* | [**MarginCrossOpenOrders**](docs/MarginCrossOrderApi.md#margincrossopenorders) | **Get** /api/margin/v1/cross/order/openOrders | openOrders -*MarginCrossOrderApi* | [**MarginCrossPlaceOrder**](docs/MarginCrossOrderApi.md#margincrossplaceorder) | **Post** /api/margin/v1/cross/order/placeOrder | placeOrder -*MarginCrossPublicApi* | [**MarginCrossPublicInterestRateAndLimit**](docs/MarginCrossPublicApi.md#margincrosspublicinterestrateandlimit) | **Get** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -*MarginCrossPublicApi* | [**MarginCrossPublicTierData**](docs/MarginCrossPublicApi.md#margincrosspublictierdata) | **Get** /api/margin/v1/cross/public/tierData | tierData -*MarginCrossRepayApi* | [**CrossRepayList**](docs/MarginCrossRepayApi.md#crossrepaylist) | **Get** /api/margin/v1/cross/repay/list | list -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountAssets**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountassets) | **Get** /api/margin/v1/isolated/account/assets | assets -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountBorrow**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountborrow) | **Post** /api/margin/v1/isolated/account/borrow | borrow -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountMaxBorrowableAmount**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountmaxborrowableamount) | **Post** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountMaxTransferOutAmount**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountmaxtransferoutamount) | **Get** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountRepay**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountrepay) | **Post** /api/margin/v1/isolated/account/repay | repay -*MarginIsolatedAccountApi* | [**MarginIsolatedAccountRiskRate**](docs/MarginIsolatedAccountApi.md#marginisolatedaccountriskrate) | **Post** /api/margin/v1/isolated/account/riskRate | riskRate -*MarginIsolatedBorrowApi* | [**IsolatedLoanList**](docs/MarginIsolatedBorrowApi.md#isolatedloanlist) | **Get** /api/margin/v1/isolated/loan/list | list -*MarginIsolatedFinflowApi* | [**IsolatedFinList**](docs/MarginIsolatedFinflowApi.md#isolatedfinlist) | **Get** /api/margin/v1/isolated/fin/list | list -*MarginIsolatedInterestApi* | [**IsolatedInterestList**](docs/MarginIsolatedInterestApi.md#isolatedinterestlist) | **Get** /api/margin/v1/isolated/interest/list | list -*MarginIsolatedLiquidationApi* | [**IsolatedLiquidationList**](docs/MarginIsolatedLiquidationApi.md#isolatedliquidationlist) | **Get** /api/margin/v1/isolated/liquidation/list | list -*MarginIsolatedOrderApi* | [**MarginIsolatedBatchCancelOrder**](docs/MarginIsolatedOrderApi.md#marginisolatedbatchcancelorder) | **Post** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -*MarginIsolatedOrderApi* | [**MarginIsolatedBatchPlaceOrder**](docs/MarginIsolatedOrderApi.md#marginisolatedbatchplaceorder) | **Post** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -*MarginIsolatedOrderApi* | [**MarginIsolatedCancelOrder**](docs/MarginIsolatedOrderApi.md#marginisolatedcancelorder) | **Post** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -*MarginIsolatedOrderApi* | [**MarginIsolatedFills**](docs/MarginIsolatedOrderApi.md#marginisolatedfills) | **Get** /api/margin/v1/isolated/order/fills | fills -*MarginIsolatedOrderApi* | [**MarginIsolatedHistoryOrders**](docs/MarginIsolatedOrderApi.md#marginisolatedhistoryorders) | **Get** /api/margin/v1/isolated/order/history | history -*MarginIsolatedOrderApi* | [**MarginIsolatedOpenOrders**](docs/MarginIsolatedOrderApi.md#marginisolatedopenorders) | **Get** /api/margin/v1/isolated/order/openOrders | openOrders -*MarginIsolatedOrderApi* | [**MarginIsolatedPlaceOrder**](docs/MarginIsolatedOrderApi.md#marginisolatedplaceorder) | **Post** /api/margin/v1/isolated/order/placeOrder | placeOrder -*MarginIsolatedPublicApi* | [**MarginIsolatedPublicInterestRateAndLimit**](docs/MarginIsolatedPublicApi.md#marginisolatedpublicinterestrateandlimit) | **Get** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -*MarginIsolatedPublicApi* | [**MarginIsolatedPublicTierData**](docs/MarginIsolatedPublicApi.md#marginisolatedpublictierdata) | **Get** /api/margin/v1/isolated/public/tierData | tierData -*MarginIsolatedRepayApi* | [**IsolateRepayList**](docs/MarginIsolatedRepayApi.md#isolaterepaylist) | **Get** /api/margin/v1/isolated/repay/list | list -*MarginPublicApi* | [**MarginPublicCurrencies**](docs/MarginPublicApi.md#marginpubliccurrencies) | **Get** /api/margin/v1/public/currencies | currencies -*P2pMerchantApi* | [**MerchantAdvList**](docs/P2pMerchantApi.md#merchantadvlist) | **Get** /api/p2p/v1/merchant/advList | advList -*P2pMerchantApi* | [**MerchantInfo**](docs/P2pMerchantApi.md#merchantinfo) | **Get** /api/p2p/v1/merchant/merchantInfo | merchantInfo -*P2pMerchantApi* | [**MerchantList**](docs/P2pMerchantApi.md#merchantlist) | **Get** /api/p2p/v1/merchant/merchantList | merchantList -*P2pMerchantApi* | [**MerchantOrderList**](docs/P2pMerchantApi.md#merchantorderlist) | **Get** /api/p2p/v1/merchant/orderList | orderList - - -## Documentation For Models - - - [ApiResponseResultOfListOfMarginCrossAssetsPopulationResult](docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginCrossLevelResult](docs/ApiResponseResultOfListOfMarginCrossLevelResult.md) - - [ApiResponseResultOfListOfMarginCrossRateAndLimitResult](docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult](docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult](docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - - [ApiResponseResultOfListOfMarginIsolatedLevelResult](docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - - [ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult](docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginSystemResult](docs/ApiResponseResultOfListOfMarginSystemResult.md) - - [ApiResponseResultOfMarginBatchCancelOrderResult](docs/ApiResponseResultOfMarginBatchCancelOrderResult.md) - - [ApiResponseResultOfMarginBatchPlaceOrderResult](docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md) - - [ApiResponseResultOfMarginCrossAssetsResult](docs/ApiResponseResultOfMarginCrossAssetsResult.md) - - [ApiResponseResultOfMarginCrossAssetsRiskResult](docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md) - - [ApiResponseResultOfMarginCrossBorrowLimitResult](docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md) - - [ApiResponseResultOfMarginCrossFinFlowResult](docs/ApiResponseResultOfMarginCrossFinFlowResult.md) - - [ApiResponseResultOfMarginCrossMaxBorrowResult](docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md) - - [ApiResponseResultOfMarginCrossRepayResult](docs/ApiResponseResultOfMarginCrossRepayResult.md) - - [ApiResponseResultOfMarginInterestInfoResult](docs/ApiResponseResultOfMarginInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedAssetsResult](docs/ApiResponseResultOfMarginIsolatedAssetsResult.md) - - [ApiResponseResultOfMarginIsolatedBorrowLimitResult](docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - - [ApiResponseResultOfMarginIsolatedFinFlowResult](docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md) - - [ApiResponseResultOfMarginIsolatedInterestInfoResult](docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLiquidationInfoResult](docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLoanInfoResult](docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - - [ApiResponseResultOfMarginIsolatedMaxBorrowResult](docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - - [ApiResponseResultOfMarginIsolatedRepayInfoResult](docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - - [ApiResponseResultOfMarginIsolatedRepayResult](docs/ApiResponseResultOfMarginIsolatedRepayResult.md) - - [ApiResponseResultOfMarginLiquidationInfoResult](docs/ApiResponseResultOfMarginLiquidationInfoResult.md) - - [ApiResponseResultOfMarginLoanInfoResult](docs/ApiResponseResultOfMarginLoanInfoResult.md) - - [ApiResponseResultOfMarginOpenOrderInfoResult](docs/ApiResponseResultOfMarginOpenOrderInfoResult.md) - - [ApiResponseResultOfMarginPlaceOrderResult](docs/ApiResponseResultOfMarginPlaceOrderResult.md) - - [ApiResponseResultOfMarginRepayInfoResult](docs/ApiResponseResultOfMarginRepayInfoResult.md) - - [ApiResponseResultOfMarginTradeDetailInfoResult](docs/ApiResponseResultOfMarginTradeDetailInfoResult.md) - - [ApiResponseResultOfMerchantAdvResult](docs/ApiResponseResultOfMerchantAdvResult.md) - - [ApiResponseResultOfMerchantInfoResult](docs/ApiResponseResultOfMerchantInfoResult.md) - - [ApiResponseResultOfMerchantOrderResult](docs/ApiResponseResultOfMerchantOrderResult.md) - - [ApiResponseResultOfMerchantPersonInfo](docs/ApiResponseResultOfMerchantPersonInfo.md) - - [ApiResponseResultOfVoid](docs/ApiResponseResultOfVoid.md) - - [FiatPaymentDetailInfo](docs/FiatPaymentDetailInfo.md) - - [FiatPaymentInfo](docs/FiatPaymentInfo.md) - - [MarginBatchCancelOrderRequest](docs/MarginBatchCancelOrderRequest.md) - - [MarginBatchCancelOrderResult](docs/MarginBatchCancelOrderResult.md) - - [MarginBatchOrdersRequest](docs/MarginBatchOrdersRequest.md) - - [MarginBatchPlaceOrderFailureResult](docs/MarginBatchPlaceOrderFailureResult.md) - - [MarginBatchPlaceOrderResult](docs/MarginBatchPlaceOrderResult.md) - - [MarginCancelOrderFailureResult](docs/MarginCancelOrderFailureResult.md) - - [MarginCancelOrderRequest](docs/MarginCancelOrderRequest.md) - - [MarginCancelOrderResult](docs/MarginCancelOrderResult.md) - - [MarginCrossAssetsPopulationResult](docs/MarginCrossAssetsPopulationResult.md) - - [MarginCrossAssetsResult](docs/MarginCrossAssetsResult.md) - - [MarginCrossAssetsRiskResult](docs/MarginCrossAssetsRiskResult.md) - - [MarginCrossBorrowLimitResult](docs/MarginCrossBorrowLimitResult.md) - - [MarginCrossFinFlowInfo](docs/MarginCrossFinFlowInfo.md) - - [MarginCrossFinFlowResult](docs/MarginCrossFinFlowResult.md) - - [MarginCrossLevelResult](docs/MarginCrossLevelResult.md) - - [MarginCrossLimitRequest](docs/MarginCrossLimitRequest.md) - - [MarginCrossMaxBorrowRequest](docs/MarginCrossMaxBorrowRequest.md) - - [MarginCrossMaxBorrowResult](docs/MarginCrossMaxBorrowResult.md) - - [MarginCrossRateAndLimitResult](docs/MarginCrossRateAndLimitResult.md) - - [MarginCrossRepayRequest](docs/MarginCrossRepayRequest.md) - - [MarginCrossRepayResult](docs/MarginCrossRepayResult.md) - - [MarginCrossVipResult](docs/MarginCrossVipResult.md) - - [MarginInterestInfo](docs/MarginInterestInfo.md) - - [MarginInterestInfoResult](docs/MarginInterestInfoResult.md) - - [MarginIsolatedAssetsPopulationResult](docs/MarginIsolatedAssetsPopulationResult.md) - - [MarginIsolatedAssetsResult](docs/MarginIsolatedAssetsResult.md) - - [MarginIsolatedAssetsRiskRequest](docs/MarginIsolatedAssetsRiskRequest.md) - - [MarginIsolatedAssetsRiskResult](docs/MarginIsolatedAssetsRiskResult.md) - - [MarginIsolatedBorrowLimitResult](docs/MarginIsolatedBorrowLimitResult.md) - - [MarginIsolatedFinFlowInfo](docs/MarginIsolatedFinFlowInfo.md) - - [MarginIsolatedFinFlowResult](docs/MarginIsolatedFinFlowResult.md) - - [MarginIsolatedInterestInfo](docs/MarginIsolatedInterestInfo.md) - - [MarginIsolatedInterestInfoResult](docs/MarginIsolatedInterestInfoResult.md) - - [MarginIsolatedLevelResult](docs/MarginIsolatedLevelResult.md) - - [MarginIsolatedLimitRequest](docs/MarginIsolatedLimitRequest.md) - - [MarginIsolatedLiquidationInfo](docs/MarginIsolatedLiquidationInfo.md) - - [MarginIsolatedLiquidationInfoResult](docs/MarginIsolatedLiquidationInfoResult.md) - - [MarginIsolatedLoanInfo](docs/MarginIsolatedLoanInfo.md) - - [MarginIsolatedLoanInfoResult](docs/MarginIsolatedLoanInfoResult.md) - - [MarginIsolatedMaxBorrowRequest](docs/MarginIsolatedMaxBorrowRequest.md) - - [MarginIsolatedMaxBorrowResult](docs/MarginIsolatedMaxBorrowResult.md) - - [MarginIsolatedRateAndLimitResult](docs/MarginIsolatedRateAndLimitResult.md) - - [MarginIsolatedRepayInfo](docs/MarginIsolatedRepayInfo.md) - - [MarginIsolatedRepayInfoResult](docs/MarginIsolatedRepayInfoResult.md) - - [MarginIsolatedRepayRequest](docs/MarginIsolatedRepayRequest.md) - - [MarginIsolatedRepayResult](docs/MarginIsolatedRepayResult.md) - - [MarginIsolatedVipResult](docs/MarginIsolatedVipResult.md) - - [MarginLiquidationInfo](docs/MarginLiquidationInfo.md) - - [MarginLiquidationInfoResult](docs/MarginLiquidationInfoResult.md) - - [MarginLoanInfo](docs/MarginLoanInfo.md) - - [MarginLoanInfoResult](docs/MarginLoanInfoResult.md) - - [MarginOpenOrderInfoResult](docs/MarginOpenOrderInfoResult.md) - - [MarginOrderInfo](docs/MarginOrderInfo.md) - - [MarginOrderRequest](docs/MarginOrderRequest.md) - - [MarginPlaceOrderResult](docs/MarginPlaceOrderResult.md) - - [MarginRepayInfo](docs/MarginRepayInfo.md) - - [MarginRepayInfoResult](docs/MarginRepayInfoResult.md) - - [MarginSystemResult](docs/MarginSystemResult.md) - - [MarginTradeDetailInfo](docs/MarginTradeDetailInfo.md) - - [MarginTradeDetailInfoResult](docs/MarginTradeDetailInfoResult.md) - - [MerchantAdvInfo](docs/MerchantAdvInfo.md) - - [MerchantAdvResult](docs/MerchantAdvResult.md) - - [MerchantAdvUserLimitInfo](docs/MerchantAdvUserLimitInfo.md) - - [MerchantInfo](docs/MerchantInfo.md) - - [MerchantInfoResult](docs/MerchantInfoResult.md) - - [MerchantOrderInfo](docs/MerchantOrderInfo.md) - - [MerchantOrderPaymentInfo](docs/MerchantOrderPaymentInfo.md) - - [MerchantOrderResult](docs/MerchantOrderResult.md) - - [MerchantPersonInfo](docs/MerchantPersonInfo.md) - - [OrderPaymentDetailInfo](docs/OrderPaymentDetailInfo.md) - - -## Documentation For Authorization - - - -### ACCESS_KEY - -- **Type**: API key -- **API key parameter name**: ACCESS-KEY -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: ACCESS-KEY and passed in as the auth context for each request. - - -### ACCESS_PASSPHRASE - -- **Type**: API key -- **API key parameter name**: ACCESS-PASSPHRASE -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: ACCESS-PASSPHRASE and passed in as the auth context for each request. - - -### ACCESS_SIGN - -- **Type**: API key -- **API key parameter name**: ACCESS-SIGN -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: ACCESS-SIGN and passed in as the auth context for each request. - - -### ACCESS_TIMESTAMP - -- **Type**: API key -- **API key parameter name**: ACCESS-TIMESTAMP -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: ACCESS-TIMESTAMP and passed in as the auth context for each request. - - -### SECRET_KEY - -- **Type**: API key -- **API key parameter name**: SECRET-KEY -- **Location**: HTTP header - -Note, each API key must be added to a map of `map[string]APIKey` where the key is: SECRET-KEY and passed in as the auth context for each request. - - -## Documentation for Utility Methods - -Due to the fact that model structure members are all pointers, this package contains -a number of utility functions to easily obtain pointers to values of basic types. -Each of these functions takes a value of the given basic type and returns a pointer to it: - -* `PtrBool` -* `PtrInt` -* `PtrInt32` -* `PtrInt64` -* `PtrFloat` -* `PtrFloat32` -* `PtrFloat64` -* `PtrString` -* `PtrTime` - -## Author - - - diff --git a/bitget-goland-sdk-open-api/api/openapi.yaml b/bitget-goland-sdk-open-api/api/openapi.yaml deleted file mode 100644 index 461263f4..00000000 --- a/bitget-goland-sdk-open-api/api/openapi.yaml +++ /dev/null @@ -1,6267 +0,0 @@ -openapi: 3.0.1 -info: - title: Bitget Open API - version: 2.0.0 -servers: -- url: https://api.bitget.com/ -tags: -- description: Margin Cross Account Controller - name: margin_cross_account -- description: Margin Cross Borrow Query Controller - name: margin_cross_borrow -- description: Margin Cross Fin Flow Query Controller - name: margin_cross_finflow -- description: Margin Cross Interest Query Controller - name: margin_cross_interest -- description: Margin Cross Liquidation Query Controller - name: margin_cross_liquidation -- description: Margin Cross Order Controller - name: margin_cross_order -- description: Margin Cross Public Controller - name: margin_cross_public -- description: Margin Cross Repay Query Controller - name: margin_cross_repay -- description: Margin Isolated Account Controller - name: margin_isolated_account -- description: Margin Isolated Borrow Query Controller - name: margin_isolated_borrow -- description: Margin Isolated Fin Flow Query Controller - name: margin_isolated_finflow -- description: Margin Isolated Interest Query Controller - name: margin_isolated_interest -- description: Margin Isolated Liquidation Query Controller - name: margin_isolated_liquidation -- description: Margin Isolated Order Controller - name: margin_isolated_order -- description: Margin Isolated Public Controller - name: margin_isolated_public -- description: Margin Isolated Repay Query Controller - name: margin_isolated_repay -- description: Margin Public Controller - name: margin_public -- description: Merchant Controller - name: p2p_merchant -paths: - /api/margin/v1/cross/account/assets: - get: - deprecated: false - description: Get Assets - operationId: marginCrossAccountAssets - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: assets - tags: - - margin_cross_account - /api/margin/v1/cross/account/borrow: - post: - deprecated: false - description: borrow - operationId: marginCrossAccountBorrow - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossLimitRequest' - description: marginCrossLimitRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossBorrowLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: borrow - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossLimitRequest - /api/margin/v1/cross/account/maxBorrowableAmount: - post: - deprecated: false - description: Get MaxBorrowableAmount - operationId: marginCrossAccountMaxBorrowableAmount - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossMaxBorrowRequest' - description: marginCrossMaxBorrowRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossMaxBorrowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxBorrowableAmount - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossMaxBorrowRequest - /api/margin/v1/cross/account/maxTransferOutAmount: - get: - deprecated: false - description: Get Max TransferOutAmount - operationId: marginCrossAccountMaxTransferOutAmount - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossAssetsResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxTransferOutAmount - tags: - - margin_cross_account - /api/margin/v1/cross/account/repay: - post: - deprecated: false - description: repay - operationId: marginCrossAccountRepay - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossRepayRequest' - description: marginCrossRepayRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossRepayResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: repay - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossRepayRequest - /api/margin/v1/cross/account/riskRate: - get: - deprecated: false - description: riskRate - operationId: marginCrossAccountRiskRate - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossAssetsRiskResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: riskRate - tags: - - margin_cross_account - /api/margin/v1/cross/account/void: - get: - deprecated: false - description: empty - operationId: void - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: void - tags: - - margin_cross_account - /api/margin/v1/cross/fin/list: - get: - deprecated: false - description: Get finance flow List - operationId: crossFinList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: marginType - example: transfer_in - in: query - name: marginType - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossFinFlowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_finflow - /api/margin/v1/cross/interest/list: - get: - deprecated: false - description: Get interest List - operationId: crossInterestList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginInterestInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_interest - /api/margin/v1/cross/liquidation/list: - get: - deprecated: false - description: Get liquidation List - operationId: crossLiquidationList - parameters: - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginLiquidationInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_liquidation - /api/margin/v1/cross/loan/list: - get: - deprecated: false - description: Get Loan List - operationId: crossLoanList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginLoanInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_borrow - /api/margin/v1/cross/order/batchCancelOrder: - post: - deprecated: false - description: Margin Cross BatchCancelOrder - operationId: marginCrossBatchCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchCancelOrderRequest' - description: marginBatchCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchCancelOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginBatchCancelOrderRequest - /api/margin/v1/cross/order/batchPlaceOrder: - post: - deprecated: false - description: Margin Cross PlaceOrder - operationId: marginCrossBatchPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchOrdersRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchPlaceOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginOrderRequest - /api/margin/v1/cross/order/cancelOrder: - post: - deprecated: false - description: Margin Cross CancelOrder - operationId: marginCrossCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCancelOrderRequest' - description: marginCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: cancelOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginCancelOrderRequest - /api/margin/v1/cross/order/fills: - get: - deprecated: false - description: Margin Cross Fills - operationId: marginCrossFills - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: lastFillId - in: query - name: lastFillId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginTradeDetailInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: fills - tags: - - margin_cross_order - /api/margin/v1/cross/order/history: - get: - deprecated: false - description: Margin Cross historyOrders - operationId: marginCrossHistoryOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: minId - in: query - name: minId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: history - tags: - - margin_cross_order - /api/margin/v1/cross/order/openOrders: - get: - deprecated: false - description: Margin Cross openOrders - operationId: marginCrossOpenOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: openOrders - tags: - - margin_cross_order - /api/margin/v1/cross/order/placeOrder: - post: - deprecated: false - description: Margin Cross PlaceOrder - operationId: marginCrossPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginOrderRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: placeOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginOrderRequest - /api/margin/v1/cross/public/interestRateAndLimit: - get: - deprecated: false - description: Get InterestRateAndLimit - operationId: marginCrossPublicInterestRateAndLimit - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossRateAndLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: interestRateAndLimit - tags: - - margin_cross_public - /api/margin/v1/cross/public/tierData: - get: - deprecated: false - description: Get TierData - operationId: marginCrossPublicTierData - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossLevelResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: tierData - tags: - - margin_cross_public - /api/margin/v1/cross/repay/list: - get: - deprecated: false - description: Get liquidation List - operationId: crossRepayList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: repayId - example: "32428347234" - in: query - name: repayId - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginRepayInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_repay - /api/margin/v1/isolated/account/assets: - get: - deprecated: false - description: Get Assets - operationId: marginIsolatedAccountAssets - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: assets - tags: - - margin_isolated_account - /api/margin/v1/isolated/account/borrow: - post: - deprecated: false - description: borrow - operationId: marginIsolatedAccountBorrow - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedLimitRequest' - description: marginIsolatedLimitRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedBorrowLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: borrow - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedLimitRequest - /api/margin/v1/isolated/account/maxBorrowableAmount: - post: - deprecated: false - description: Get MaxBorrowableAmount - operationId: marginIsolatedAccountMaxBorrowableAmount - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedMaxBorrowRequest' - description: marginIsolatedMaxBorrowRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedMaxBorrowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxBorrowableAmount - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedMaxBorrowRequest - /api/margin/v1/isolated/account/maxTransferOutAmount: - get: - deprecated: false - description: Get Max TransferOutAmount - operationId: marginIsolatedAccountMaxTransferOutAmount - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedAssetsResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxTransferOutAmount - tags: - - margin_isolated_account - /api/margin/v1/isolated/account/repay: - post: - deprecated: false - description: repay - operationId: marginIsolatedAccountRepay - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedRepayRequest' - description: marginIsolatedRepayRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedRepayResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: repay - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedRepayRequest - /api/margin/v1/isolated/account/riskRate: - post: - deprecated: false - description: riskRate - operationId: marginIsolatedAccountRiskRate - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedAssetsRiskRequest' - description: marginIsolatedAssetsRiskRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: riskRate - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedAssetsRiskRequest - /api/margin/v1/isolated/fin/list: - get: - deprecated: false - description: Get finance flow List - operationId: isolatedFinList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: marginType - example: transfer_in - in: query - name: marginType - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedFinFlowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_finflow - /api/margin/v1/isolated/interest/list: - get: - deprecated: false - description: Get interest List - operationId: isolatedInterestList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedInterestInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_interest - /api/margin/v1/isolated/liquidation/list: - get: - deprecated: false - description: Get liquidation List - operationId: isolatedLiquidationList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedLiquidationInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_liquidation - /api/margin/v1/isolated/loan/list: - get: - deprecated: false - description: Get Loan List - operationId: isolatedLoanList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedLoanInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_borrow - /api/margin/v1/isolated/order/batchCancelOrder: - post: - deprecated: false - description: Margin Isolated BatchCancelOrder - operationId: marginIsolatedBatchCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchCancelOrderRequest' - description: marginBatchCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchCancelOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginBatchCancelOrderRequest - /api/margin/v1/isolated/order/batchPlaceOrder: - post: - deprecated: false - description: Margin Isolated PlaceOrder - operationId: marginIsolatedBatchPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchOrdersRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchPlaceOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginOrderRequest - /api/margin/v1/isolated/order/cancelOrder: - post: - deprecated: false - description: Margin Isolated CancelOrder - operationId: marginIsolatedCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCancelOrderRequest' - description: marginCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: cancelOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginCancelOrderRequest - /api/margin/v1/isolated/order/fills: - get: - deprecated: false - description: Margin Isolated Fills - operationId: marginIsolatedFills - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: lastFillId - in: query - name: lastFillId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginTradeDetailInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: fills - tags: - - margin_isolated_order - /api/margin/v1/isolated/order/history: - get: - deprecated: false - description: Margin Isolated historyOrders - operationId: marginIsolatedHistoryOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: minId - in: query - name: minId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: history - tags: - - margin_isolated_order - /api/margin/v1/isolated/order/openOrders: - get: - deprecated: false - description: Margin Isolated openOrders - operationId: marginIsolatedOpenOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: openOrders - tags: - - margin_isolated_order - /api/margin/v1/isolated/order/placeOrder: - post: - deprecated: false - description: Margin Isolated PlaceOrder - operationId: marginIsolatedPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginOrderRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: placeOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginOrderRequest - /api/margin/v1/isolated/public/interestRateAndLimit: - get: - deprecated: false - description: Get InterestRateAndLimit - operationId: marginIsolatedPublicInterestRateAndLimit - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: interestRateAndLimit - tags: - - margin_isolated_public - /api/margin/v1/isolated/public/tierData: - get: - deprecated: false - description: Get TierData - operationId: marginIsolatedPublicTierData - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedLevelResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: tierData - tags: - - margin_isolated_public - /api/margin/v1/isolated/repay/list: - get: - deprecated: false - description: Get liquidation List - operationId: isolateRepayList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: repayId - in: query - name: repayId - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedRepayInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_repay - /api/margin/v1/public/currencies: - get: - deprecated: false - description: Get Currencies - operationId: marginPublicCurrencies - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginSystemResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: currencies - tags: - - margin_public - /api/p2p/v1/merchant/advList: - get: - deprecated: false - description: P2P merchant adv info - operationId: merchantAdvList - parameters: - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: status - example: upper - in: query - name: status - schema: - type: string - - description: type - example: sell - in: query - name: type - schema: - type: string - - description: advNo - example: "1678193338000" - in: query - name: advNo - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: languageType - example: en-US - in: query - name: languageType - schema: - type: string - - description: fiat - example: USD - in: query - name: fiat - schema: - type: string - - description: languageType - example: "43534" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: orderBy - example: createTime - in: query - name: orderBy - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantAdvResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: advList - tags: - - p2p_merchant - /api/p2p/v1/merchant/merchantInfo: - get: - deprecated: false - description: P2P merchant info self - operationId: merchantInfo - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantPersonInfo' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: merchantInfo - tags: - - p2p_merchant - /api/p2p/v1/merchant/merchantList: - get: - deprecated: false - description: P2P merchant list - operationId: merchantList - parameters: - - description: online - example: "yes" - in: query - name: online - schema: - type: string - - description: merchantId - example: "4534534534" - in: query - name: merchantId - schema: - type: string - - description: lastMinId - example: "1678193338000" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: merchantList - tags: - - p2p_merchant - /api/p2p/v1/merchant/orderList: - get: - deprecated: false - description: P2P merchant order info - operationId: merchantOrderList - parameters: - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: status - example: wait_pay - in: query - name: status - schema: - type: string - - description: type - example: sell - in: query - name: type - schema: - type: string - - description: advNo - example: "1678193338000" - in: query - name: advNo - schema: - type: string - - description: orderNo - example: "23842478324723423" - in: query - name: orderNo - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: languageType - example: en-US - in: query - name: languageType - schema: - type: string - - description: fiat - example: USD - in: query - name: fiat - schema: - type: string - - description: languageType - example: "43534" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: orderList - tags: - - p2p_merchant -components: - schemas: - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossAssetsPopulationResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - type: object - ApiResponseResultOfListOfMarginCrossLevelResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossLevelResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossLevelResult - type: object - ApiResponseResultOfListOfMarginCrossRateAndLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossRateAndLimitResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossRateAndLimitResult - type: object - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedAssetsPopulationResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - type: object - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedAssetsRiskResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - type: object - ApiResponseResultOfListOfMarginIsolatedLevelResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedLevelResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedLevelResult - type: object - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedRateAndLimitResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - type: object - ApiResponseResultOfListOfMarginSystemResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginSystemResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginSystemResult - type: object - ApiResponseResultOfMarginBatchCancelOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - failure: - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginBatchCancelOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginBatchCancelOrderResult - type: object - ApiResponseResultOfMarginBatchPlaceOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - failure: - - clientOid: clientOid - errorMsg: errorMsg - - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginBatchPlaceOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginBatchPlaceOrderResult - type: object - ApiResponseResultOfMarginCrossAssetsResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxTransferOutAmount: maxTransferOutAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossAssetsResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossAssetsResult - type: object - ApiResponseResultOfMarginCrossAssetsRiskResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - riskRate: riskRate - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossAssetsRiskResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossAssetsRiskResult - type: object - ApiResponseResultOfMarginCrossBorrowLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossBorrowLimitResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossBorrowLimitResult - type: object - ApiResponseResultOfMarginCrossFinFlowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossFinFlowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossFinFlowResult - type: object - ApiResponseResultOfMarginCrossMaxBorrowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossMaxBorrowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossMaxBorrowResult - type: object - ApiResponseResultOfMarginCrossRepayResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossRepayResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossRepayResult - type: object - ApiResponseResultOfMarginInterestInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginInterestInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginInterestInfoResult - type: object - ApiResponseResultOfMarginIsolatedAssetsResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxTransferOutAmount: maxTransferOutAmount - symbol: symbol - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedAssetsResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedAssetsResult - type: object - ApiResponseResultOfMarginIsolatedBorrowLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedBorrowLimitResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedBorrowLimitResult - type: object - ApiResponseResultOfMarginIsolatedFinFlowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedFinFlowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedFinFlowResult - type: object - ApiResponseResultOfMarginIsolatedInterestInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedInterestInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedInterestInfoResult - type: object - ApiResponseResultOfMarginIsolatedLiquidationInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedLiquidationInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedLiquidationInfoResult - type: object - ApiResponseResultOfMarginIsolatedLoanInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedLoanInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedLoanInfoResult - type: object - ApiResponseResultOfMarginIsolatedMaxBorrowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedMaxBorrowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedMaxBorrowResult - type: object - ApiResponseResultOfMarginIsolatedRepayInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedRepayInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedRepayInfoResult - type: object - ApiResponseResultOfMarginIsolatedRepayResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedRepayResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedRepayResult - type: object - ApiResponseResultOfMarginLiquidationInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginLiquidationInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginLiquidationInfoResult - type: object - ApiResponseResultOfMarginLoanInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginLoanInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginLoanInfoResult - type: object - ApiResponseResultOfMarginOpenOrderInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - orderList: - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginOpenOrderInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginOpenOrderInfoResult - type: object - ApiResponseResultOfMarginPlaceOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginPlaceOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginPlaceOrderResult - type: object - ApiResponseResultOfMarginRepayInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginRepayInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginRepayInfoResult - type: object - ApiResponseResultOfMarginTradeDetailInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - fills: - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginTradeDetailInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginTradeDetailInfoResult - type: object - ApiResponseResultOfMerchantAdvResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - advList: - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantAdvResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantAdvResult - type: object - ApiResponseResultOfMerchantInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - minId: minId - resultList: - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantInfoResult - type: object - ApiResponseResultOfMerchantOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - orderList: - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantOrderResult - type: object - ApiResponseResultOfMerchantPersonInfo: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - kycFlag: true - mobile: mobile - thirtyBuy: thirtyBuy - totalTrades: totalTrades - emailBindFlag: true - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - realName: realName - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - mobileBindFlag: true - email: email - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantPersonInfo' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantPersonInfo - type: object - ApiResponseResultOfVoid: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - properties: - code: - description: code - example: "00000" - type: string - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfVoid - type: object - FiatPaymentDetailInfo: - example: - name: name - type: type - required: true - properties: - name: - type: string - required: - type: boolean - type: - type: string - title: FiatPaymentDetailInfo - type: object - FiatPaymentInfo: - example: - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - properties: - paymentId: - type: string - paymentInfo: - items: - $ref: '#/components/schemas/FiatPaymentDetailInfo' - type: array - paymentMethod: - type: string - title: FiatPaymentInfo - type: object - MarginBatchCancelOrderRequest: - example: - symbol: BTCUSDT_SPBL - clientOids: - - myId001 - orderIds: - - "34324234234234324" - properties: - clientOids: - description: clientOids - example: - - myId001 - items: - type: string - type: array - orderIds: - description: orderIds - example: - - "34324234234234324" - items: - type: string - type: array - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginBatchCancelOrderRequest - type: object - MarginBatchCancelOrderResult: - example: - failure: - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - failure: - items: - $ref: '#/components/schemas/MarginCancelOrderFailureResult' - type: array - resultList: - items: - $ref: '#/components/schemas/MarginCancelOrderResult' - type: array - title: MarginBatchCancelOrderResult - type: object - MarginBatchOrdersRequest: - example: - symbol: BTCUSDT_SPBL - ip: ip - channelApiCode: channelApiCode - orderList: - - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - properties: - channelApiCode: - type: string - ip: - type: string - orderList: - items: - $ref: '#/components/schemas/MarginOrderRequest' - type: array - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginBatchOrdersRequest - type: object - MarginBatchPlaceOrderFailureResult: - example: - clientOid: clientOid - errorMsg: errorMsg - properties: - clientOid: - type: string - errorMsg: - type: string - title: MarginBatchPlaceOrderFailureResult - type: object - MarginBatchPlaceOrderResult: - example: - failure: - - clientOid: clientOid - errorMsg: errorMsg - - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - failure: - items: - $ref: '#/components/schemas/MarginBatchPlaceOrderFailureResult' - type: array - resultList: - items: - $ref: '#/components/schemas/MarginCancelOrderResult' - type: array - title: MarginBatchPlaceOrderResult - type: object - MarginCancelOrderFailureResult: - example: - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - properties: - clientOid: - type: string - errorMsg: - type: string - orderId: - type: string - title: MarginCancelOrderFailureResult - type: object - MarginCancelOrderRequest: - example: - symbol: BTCUSDT_SPBL - orderId: "324234234234234723647" - clientOid: myId0001 - properties: - clientOid: - description: clientOid - example: myId0001 - type: string - orderId: - description: orderId - example: "324234234234234723647" - type: string - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginCancelOrderRequest - type: object - MarginCancelOrderResult: - example: - orderId: orderId - clientOid: clientOid - properties: - clientOid: - type: string - orderId: - type: string - title: MarginCancelOrderResult - type: object - MarginCrossAssetsPopulationResult: - properties: - available: - type: string - borrow: - type: string - coin: - type: string - ctime: - type: string - frozen: - type: string - interest: - type: string - net: - type: string - totalAmount: - type: string - title: MarginCrossAssetsPopulationResult - type: object - MarginCrossAssetsResult: - example: - maxTransferOutAmount: maxTransferOutAmount - coin: coin - properties: - coin: - type: string - maxTransferOutAmount: - type: string - title: MarginCrossAssetsResult - type: object - MarginCrossAssetsRiskResult: - example: - riskRate: riskRate - properties: - riskRate: - type: string - title: MarginCrossAssetsRiskResult - type: object - MarginCrossBorrowLimitResult: - example: - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - borrowAmount: - type: string - clientOid: - type: string - coin: - type: string - title: MarginCrossBorrowLimitResult - type: object - MarginCrossFinFlowInfo: - example: - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - amount: - type: string - balance: - type: string - coin: - type: string - ctime: - type: string - fee: - type: string - marginId: - type: string - marginType: - type: string - title: MarginCrossFinFlowInfo - type: object - MarginCrossFinFlowResult: - example: - maxId: maxId - minId: minId - resultList: - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginCrossFinFlowInfo' - type: array - title: MarginCrossFinFlowResult - type: object - MarginCrossLevelResult: - properties: - coin: - type: string - leverage: - type: string - maintainMarginRate: - type: string - maxBorrowableAmount: - type: string - tier: - type: string - title: MarginCrossLevelResult - type: object - MarginCrossLimitRequest: - example: - borrowAmount: "1.0" - coin: USDT - properties: - borrowAmount: - description: borrowAmount - example: "1.0" - type: string - coin: - description: coin - example: USDT - type: string - required: - - borrowAmount - - coin - title: MarginCrossLimitRequest - type: object - MarginCrossMaxBorrowRequest: - example: - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - required: - - coin - title: MarginCrossMaxBorrowRequest - type: object - MarginCrossMaxBorrowResult: - example: - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - coin: - type: string - maxBorrowableAmount: - type: string - title: MarginCrossMaxBorrowResult - type: object - MarginCrossRateAndLimitResult: - properties: - borrowAble: - type: boolean - coin: - type: string - dailyInterestRate: - type: string - leverage: - type: string - maxBorrowableAmount: - type: string - transferInAble: - type: boolean - vips: - items: - $ref: '#/components/schemas/MarginCrossVipResult' - type: array - yearlyInterestRate: - type: string - title: MarginCrossRateAndLimitResult - type: object - MarginCrossRepayRequest: - example: - repayAmount: "1.0" - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - repayAmount: - description: repayAmount - example: "1.0" - type: string - required: - - coin - - repayAmount - title: MarginCrossRepayRequest - type: object - MarginCrossRepayResult: - example: - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - clientOid: - type: string - coin: - type: string - remainDebtAmount: - type: string - repayAmount: - type: string - title: MarginCrossRepayResult - type: object - MarginCrossVipResult: - properties: - dailyInterestRate: - type: string - discountRate: - type: string - level: - type: string - yearlyInterestRate: - type: string - title: MarginCrossVipResult - type: object - MarginInterestInfo: - example: - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - amount: - type: string - ctime: - type: string - interestCoin: - type: string - interestId: - type: string - interestRate: - type: string - loanCoin: - type: string - type: - type: string - title: MarginInterestInfo - type: object - MarginInterestInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginInterestInfo' - type: array - title: MarginInterestInfoResult - type: object - MarginIsolatedAssetsPopulationResult: - properties: - available: - type: string - borrow: - type: string - coin: - type: string - ctime: - type: string - frozen: - type: string - interest: - type: string - net: - type: string - symbol: - type: string - totalAmount: - type: string - title: MarginIsolatedAssetsPopulationResult - type: object - MarginIsolatedAssetsResult: - example: - maxTransferOutAmount: maxTransferOutAmount - symbol: symbol - coin: coin - properties: - coin: - type: string - maxTransferOutAmount: - type: string - symbol: - type: string - title: MarginIsolatedAssetsResult - type: object - MarginIsolatedAssetsRiskRequest: - example: - symbol: BTCUSDT - pageSize: "100" - pageNum: "1" - properties: - pageNum: - description: pageNum - example: "1" - type: string - pageSize: - description: pageSize - example: "100" - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - symbol - title: MarginIsolatedAssetsRiskRequest - type: object - MarginIsolatedAssetsRiskResult: - properties: - riskRate: - type: string - symbol: - type: string - title: MarginIsolatedAssetsRiskResult - type: object - MarginIsolatedBorrowLimitResult: - example: - symbol: symbol - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - borrowAmount: - type: string - clientOid: - type: string - coin: - type: string - symbol: - type: string - title: MarginIsolatedBorrowLimitResult - type: object - MarginIsolatedFinFlowInfo: - example: - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - amount: - type: string - balance: - type: string - coin: - type: string - ctime: - type: string - fee: - type: string - marginId: - type: string - marginType: - type: string - symbol: - type: string - title: MarginIsolatedFinFlowInfo - type: object - MarginIsolatedFinFlowResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedFinFlowInfo' - type: array - title: MarginIsolatedFinFlowResult - type: object - MarginIsolatedInterestInfo: - example: - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - amount: - type: string - ctime: - type: string - interestCoin: - type: string - interestId: - type: string - interestRate: - type: string - loanCoin: - type: string - symbol: - type: string - type: - type: string - title: MarginIsolatedInterestInfo - type: object - MarginIsolatedInterestInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedInterestInfo' - type: array - title: MarginIsolatedInterestInfoResult - type: object - MarginIsolatedLevelResult: - properties: - baseCoin: - type: string - baseMaxBorrowableAmount: - type: string - initRate: - type: string - leverage: - type: string - maintainMarginRate: - type: string - quoteCoin: - type: string - quoteMaxBorrowableAmount: - type: string - symbol: - type: string - tier: - type: string - title: MarginIsolatedLevelResult - type: object - MarginIsolatedLimitRequest: - example: - symbol: USDT - borrowAmount: "1.0" - coin: USDT - properties: - borrowAmount: - description: borrowAmount - example: "1.0" - type: string - coin: - description: coin - example: USDT - type: string - symbol: - description: symbol - example: USDT - type: string - required: - - borrowAmount - - coin - - symbol - title: MarginIsolatedLimitRequest - type: object - MarginIsolatedLiquidationInfo: - example: - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - ctime: - type: string - liqEndTime: - type: string - liqFee: - type: string - liqId: - type: string - liqRisk: - type: string - liqStartTime: - type: string - symbol: - type: string - totalAssets: - type: string - totalDebt: - type: string - title: MarginIsolatedLiquidationInfo - type: object - MarginIsolatedLiquidationInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedLiquidationInfo' - type: array - title: MarginIsolatedLiquidationInfoResult - type: object - MarginIsolatedLoanInfo: - example: - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - loanId: - type: string - symbol: - type: string - type: - type: string - title: MarginIsolatedLoanInfo - type: object - MarginIsolatedLoanInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedLoanInfo' - type: array - title: MarginIsolatedLoanInfoResult - type: object - MarginIsolatedMaxBorrowRequest: - example: - symbol: BTCUSDT - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - coin - - symbol - title: MarginIsolatedMaxBorrowRequest - type: object - MarginIsolatedMaxBorrowResult: - example: - symbol: symbol - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - coin: - type: string - maxBorrowableAmount: - type: string - symbol: - type: string - title: MarginIsolatedMaxBorrowResult - type: object - MarginIsolatedRateAndLimitResult: - properties: - baseBorrowAble: - type: boolean - baseCoin: - type: string - baseDailyInterestRate: - type: string - baseMaxBorrowableAmount: - type: string - baseTransferInAble: - type: boolean - baseVips: - items: - $ref: '#/components/schemas/MarginIsolatedVipResult' - type: array - baseYearlyInterestRate: - type: string - leverage: - type: string - quoteBorrowAble: - type: boolean - quoteCoin: - type: string - quoteDailyInterestRate: - type: string - quoteMaxBorrowableAmount: - type: string - quoteTransferInAble: - type: boolean - quoteVips: - items: - $ref: '#/components/schemas/MarginIsolatedVipResult' - type: array - quoteYearlyInterestRate: - type: string - symbol: - type: string - title: MarginIsolatedRateAndLimitResult - type: object - MarginIsolatedRepayInfo: - example: - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - interest: - type: string - repayId: - type: string - symbol: - type: string - totalAmount: - type: string - type: - type: string - title: MarginIsolatedRepayInfo - type: object - MarginIsolatedRepayInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedRepayInfo' - type: array - title: MarginIsolatedRepayInfoResult - type: object - MarginIsolatedRepayRequest: - example: - symbol: BTCUSDT - repayAmount: "1.0" - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - repayAmount: - description: repayAmount - example: "1.0" - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - coin - - repayAmount - - symbol - title: MarginIsolatedRepayRequest - type: object - MarginIsolatedRepayResult: - example: - symbol: symbol - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - clientOid: - type: string - coin: - type: string - remainDebtAmount: - type: string - repayAmount: - type: string - symbol: - type: string - title: MarginIsolatedRepayResult - type: object - MarginIsolatedVipResult: - properties: - dailyInterestRate: - type: string - discountRate: - type: string - level: - type: string - yearlyInterestRate: - type: string - title: MarginIsolatedVipResult - type: object - MarginLiquidationInfo: - example: - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - ctime: - type: string - liqEndTime: - type: string - liqFee: - type: string - liqId: - type: string - liqRisk: - type: string - liqStartTime: - type: string - totalAssets: - type: string - totalDebt: - type: string - title: MarginLiquidationInfo - type: object - MarginLiquidationInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginLiquidationInfo' - type: array - title: MarginLiquidationInfoResult - type: object - MarginLoanInfo: - example: - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - loanId: - type: string - type: - type: string - title: MarginLoanInfo - type: object - MarginLoanInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginLoanInfo' - type: array - title: MarginLoanInfoResult - type: object - MarginOpenOrderInfoResult: - example: - maxId: maxId - orderList: - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - minId: minId - properties: - maxId: - type: string - minId: - type: string - orderList: - items: - $ref: '#/components/schemas/MarginOrderInfo' - type: array - title: MarginOpenOrderInfoResult - type: object - MarginOrderInfo: - example: - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - properties: - baseQuantity: - type: string - clientOid: - type: string - ctime: - type: string - fillPrice: - type: string - fillQuantity: - type: string - fillTotalAmount: - type: string - loanType: - type: string - orderId: - type: string - orderType: - type: string - price: - type: string - quoteAmount: - type: string - side: - type: string - source: - type: string - status: - type: string - symbol: - type: string - title: MarginOrderInfo - type: object - MarginOrderRequest: - example: - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - properties: - baseQuantity: - description: baseQuantity - example: "0.2" - type: string - channelApiCode: - type: string - clientOid: - description: clientOid - example: myId0001 - type: string - ip: - type: string - loanType: - description: loanType - example: normal/autoLoan/autoRepay - type: string - orderType: - description: orderType - example: limit/market - type: string - price: - description: price - example: "21000" - type: string - quoteAmount: - description: quoteAmount - example: "2000" - type: string - side: - description: side - example: sell/buy - type: string - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - timeInForce: - description: timeInForce - example: gtc - type: string - required: - - loanType - - orderType - - side - - symbol - title: MarginOrderRequest - type: object - MarginPlaceOrderResult: - example: - orderId: orderId - clientOid: clientOid - properties: - clientOid: - type: string - orderId: - type: string - title: MarginPlaceOrderResult - type: object - MarginRepayInfo: - example: - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - interest: - type: string - repayId: - type: string - totalAmount: - type: string - type: - type: string - title: MarginRepayInfo - type: object - MarginRepayInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginRepayInfo' - type: array - title: MarginRepayInfoResult - type: object - MarginSystemResult: - properties: - baseCoin: - type: string - isBorrowable: - type: boolean - liquidationRiskRatio: - type: string - makerFeeRate: - type: string - maxCrossLeverage: - type: string - maxIsolatedLeverage: - type: string - maxTradeAmount: - type: string - minTradeAmount: - type: string - minTradeUSDT: - type: string - priceScale: - type: string - quantityScale: - type: string - quoteCoin: - type: string - status: - type: string - symbol: - type: string - takerFeeRate: - type: string - userMinBorrow: - type: string - warningRiskRatio: - type: string - title: MarginSystemResult - type: object - MarginTradeDetailInfo: - example: - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - ctime: - type: string - feeCcy: - type: string - fees: - type: string - fillId: - type: string - fillPrice: - type: string - fillQuantity: - type: string - fillTotalAmount: - type: string - orderId: - type: string - orderType: - type: string - side: - type: string - title: MarginTradeDetailInfo - type: object - MarginTradeDetailInfoResult: - example: - maxId: maxId - minId: minId - fills: - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - fills: - items: - $ref: '#/components/schemas/MarginTradeDetailInfo' - type: array - maxId: - type: string - minId: - type: string - title: MarginTradeDetailInfoResult - type: object - MerchantAdvInfo: - example: - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - properties: - advId: - type: string - advNo: - type: string - amount: - type: string - coin: - type: string - coinPrecision: - type: string - ctime: - type: string - dealAmount: - type: string - fiatCode: - type: string - fiatPrecision: - type: string - fiatSymbol: - type: string - hide: - type: string - maxAmount: - type: string - minAmount: - type: string - payDuration: - type: string - paymentMethod: - items: - $ref: '#/components/schemas/FiatPaymentInfo' - type: array - price: - type: string - remark: - type: string - status: - type: string - turnoverNum: - type: string - turnoverRate: - type: string - type: - type: string - userLimit: - $ref: '#/components/schemas/MerchantAdvUserLimitInfo' - title: MerchantAdvInfo - type: object - MerchantAdvResult: - example: - advList: - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - minId: minId - properties: - advList: - items: - $ref: '#/components/schemas/MerchantAdvInfo' - type: array - minId: - type: string - title: MerchantAdvResult - type: object - MerchantAdvUserLimitInfo: - example: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - properties: - allowMerchantPlace: - type: string - country: - type: string - maxCompleteNum: - type: string - minCompleteNum: - type: string - placeOrderNum: - type: string - thirtyCompleteRate: - type: string - title: MerchantAdvUserLimitInfo - type: object - MerchantInfo: - example: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - averagePayment: - type: string - averageRealese: - type: string - isOnline: - type: string - merchantId: - type: string - nickName: - type: string - registerTime: - type: string - thirtyBuy: - type: string - thirtyCompletionRate: - type: string - thirtySell: - type: string - thirtyTrades: - type: string - totalBuy: - type: string - totalCompletionRate: - type: string - totalSell: - type: string - totalTrades: - type: string - title: MerchantInfo - type: object - MerchantInfoResult: - example: - minId: minId - resultList: - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MerchantInfo' - type: array - title: MerchantInfoResult - type: object - MerchantOrderInfo: - example: - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - properties: - advNo: - type: string - amount: - type: string - buyerRealName: - type: string - coin: - type: string - count: - type: string - ctime: - type: string - fiat: - type: string - orderId: - type: string - orderNo: - type: string - paymentInfo: - $ref: '#/components/schemas/MerchantOrderPaymentInfo' - paymentTime: - type: string - price: - type: string - releaseCoinTime: - type: string - representTime: - type: string - sellerRealName: - type: string - status: - type: string - type: - type: string - withdrawTime: - type: string - title: MerchantOrderInfo - type: object - MerchantOrderPaymentInfo: - example: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - properties: - paymethodId: - type: string - paymethodInfo: - items: - $ref: '#/components/schemas/OrderPaymentDetailInfo' - type: array - paymethodName: - type: string - title: MerchantOrderPaymentInfo - type: object - MerchantOrderResult: - example: - orderList: - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - minId: minId - properties: - minId: - type: string - orderList: - items: - $ref: '#/components/schemas/MerchantOrderInfo' - type: array - title: MerchantOrderResult - type: object - MerchantPersonInfo: - example: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - kycFlag: true - mobile: mobile - thirtyBuy: thirtyBuy - totalTrades: totalTrades - emailBindFlag: true - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - realName: realName - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - mobileBindFlag: true - email: email - properties: - averagePayment: - type: string - averageRealese: - type: string - email: - type: string - emailBindFlag: - type: boolean - kycFlag: - type: boolean - merchantId: - type: string - mobile: - type: string - mobileBindFlag: - type: boolean - nickName: - type: string - realName: - type: string - registerTime: - type: string - thirtyBuy: - type: string - thirtyCompletionRate: - type: string - thirtySell: - type: string - thirtyTrades: - type: string - totalBuy: - type: string - totalCompletionRate: - type: string - totalSell: - type: string - totalTrades: - type: string - title: MerchantPersonInfo - type: object - OrderPaymentDetailInfo: - example: - name: name - type: type - value: value - required: true - properties: - name: - type: string - required: - type: boolean - type: - type: string - value: - type: string - title: OrderPaymentDetailInfo - type: object - securitySchemes: - ACCESS_KEY: - in: header - name: ACCESS-KEY - type: apiKey - ACCESS_PASSPHRASE: - in: header - name: ACCESS-PASSPHRASE - type: apiKey - ACCESS_SIGN: - in: header - name: ACCESS-SIGN - type: apiKey - ACCESS_TIMESTAMP: - in: header - name: ACCESS-TIMESTAMP - type: apiKey - SECRET_KEY: - in: header - name: SECRET-KEY - type: apiKey -x-original-swagger-version: "2.0" diff --git a/bitget-goland-sdk-open-api/api_margin_cross_account.go b/bitget-goland-sdk-open-api/api_margin_cross_account.go deleted file mode 100644 index ab2fbc22..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_account.go +++ /dev/null @@ -1,1494 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossAccountApiService MarginCrossAccountApi service -type MarginCrossAccountApiService service - -type ApiMarginCrossAccountAssetsRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService - coin *string -} - -// coin -func (r ApiMarginCrossAccountAssetsRequest) Coin(coin string) ApiMarginCrossAccountAssetsRequest { - r.coin = &coin - return r -} - -func (r ApiMarginCrossAccountAssetsRequest) Execute() (*ApiResponseResultOfListOfMarginCrossAssetsPopulationResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountAssetsExecute(r) -} - -/* -MarginCrossAccountAssets assets - -Get Assets - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountAssetsRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountAssets(ctx context.Context) ApiMarginCrossAccountAssetsRequest { - return ApiMarginCrossAccountAssetsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -func (a *MarginCrossAccountApiService) MarginCrossAccountAssetsExecute(r ApiMarginCrossAccountAssetsRequest) (*ApiResponseResultOfListOfMarginCrossAssetsPopulationResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountAssets") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/assets" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.coin == nil { - return localVarReturnValue, nil, reportError("coin is required and must be specified") - } - - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossAccountBorrowRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService - marginCrossLimitRequest *MarginCrossLimitRequest -} - -// marginCrossLimitRequest -func (r ApiMarginCrossAccountBorrowRequest) MarginCrossLimitRequest(marginCrossLimitRequest MarginCrossLimitRequest) ApiMarginCrossAccountBorrowRequest { - r.marginCrossLimitRequest = &marginCrossLimitRequest - return r -} - -func (r ApiMarginCrossAccountBorrowRequest) Execute() (*ApiResponseResultOfMarginCrossBorrowLimitResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountBorrowExecute(r) -} - -/* -MarginCrossAccountBorrow borrow - -borrow - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountBorrowRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountBorrow(ctx context.Context) ApiMarginCrossAccountBorrowRequest { - return ApiMarginCrossAccountBorrowRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossBorrowLimitResult -func (a *MarginCrossAccountApiService) MarginCrossAccountBorrowExecute(r ApiMarginCrossAccountBorrowRequest) (*ApiResponseResultOfMarginCrossBorrowLimitResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossBorrowLimitResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountBorrow") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/borrow" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginCrossLimitRequest == nil { - return localVarReturnValue, nil, reportError("marginCrossLimitRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginCrossLimitRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossAccountMaxBorrowableAmountRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService - marginCrossMaxBorrowRequest *MarginCrossMaxBorrowRequest -} - -// marginCrossMaxBorrowRequest -func (r ApiMarginCrossAccountMaxBorrowableAmountRequest) MarginCrossMaxBorrowRequest(marginCrossMaxBorrowRequest MarginCrossMaxBorrowRequest) ApiMarginCrossAccountMaxBorrowableAmountRequest { - r.marginCrossMaxBorrowRequest = &marginCrossMaxBorrowRequest - return r -} - -func (r ApiMarginCrossAccountMaxBorrowableAmountRequest) Execute() (*ApiResponseResultOfMarginCrossMaxBorrowResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountMaxBorrowableAmountExecute(r) -} - -/* -MarginCrossAccountMaxBorrowableAmount maxBorrowableAmount - -Get MaxBorrowableAmount - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountMaxBorrowableAmountRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountMaxBorrowableAmount(ctx context.Context) ApiMarginCrossAccountMaxBorrowableAmountRequest { - return ApiMarginCrossAccountMaxBorrowableAmountRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossMaxBorrowResult -func (a *MarginCrossAccountApiService) MarginCrossAccountMaxBorrowableAmountExecute(r ApiMarginCrossAccountMaxBorrowableAmountRequest) (*ApiResponseResultOfMarginCrossMaxBorrowResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossMaxBorrowResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountMaxBorrowableAmount") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/maxBorrowableAmount" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginCrossMaxBorrowRequest == nil { - return localVarReturnValue, nil, reportError("marginCrossMaxBorrowRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginCrossMaxBorrowRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossAccountMaxTransferOutAmountRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService - coin *string -} - -// coin -func (r ApiMarginCrossAccountMaxTransferOutAmountRequest) Coin(coin string) ApiMarginCrossAccountMaxTransferOutAmountRequest { - r.coin = &coin - return r -} - -func (r ApiMarginCrossAccountMaxTransferOutAmountRequest) Execute() (*ApiResponseResultOfMarginCrossAssetsResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountMaxTransferOutAmountExecute(r) -} - -/* -MarginCrossAccountMaxTransferOutAmount maxTransferOutAmount - -Get Max TransferOutAmount - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountMaxTransferOutAmountRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountMaxTransferOutAmount(ctx context.Context) ApiMarginCrossAccountMaxTransferOutAmountRequest { - return ApiMarginCrossAccountMaxTransferOutAmountRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossAssetsResult -func (a *MarginCrossAccountApiService) MarginCrossAccountMaxTransferOutAmountExecute(r ApiMarginCrossAccountMaxTransferOutAmountRequest) (*ApiResponseResultOfMarginCrossAssetsResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossAssetsResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountMaxTransferOutAmount") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/maxTransferOutAmount" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.coin == nil { - return localVarReturnValue, nil, reportError("coin is required and must be specified") - } - - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossAccountRepayRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService - marginCrossRepayRequest *MarginCrossRepayRequest -} - -// marginCrossRepayRequest -func (r ApiMarginCrossAccountRepayRequest) MarginCrossRepayRequest(marginCrossRepayRequest MarginCrossRepayRequest) ApiMarginCrossAccountRepayRequest { - r.marginCrossRepayRequest = &marginCrossRepayRequest - return r -} - -func (r ApiMarginCrossAccountRepayRequest) Execute() (*ApiResponseResultOfMarginCrossRepayResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountRepayExecute(r) -} - -/* -MarginCrossAccountRepay repay - -repay - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountRepayRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountRepay(ctx context.Context) ApiMarginCrossAccountRepayRequest { - return ApiMarginCrossAccountRepayRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossRepayResult -func (a *MarginCrossAccountApiService) MarginCrossAccountRepayExecute(r ApiMarginCrossAccountRepayRequest) (*ApiResponseResultOfMarginCrossRepayResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossRepayResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountRepay") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/repay" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginCrossRepayRequest == nil { - return localVarReturnValue, nil, reportError("marginCrossRepayRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginCrossRepayRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossAccountRiskRateRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService -} - -func (r ApiMarginCrossAccountRiskRateRequest) Execute() (*ApiResponseResultOfMarginCrossAssetsRiskResult, *http.Response, error) { - return r.ApiService.MarginCrossAccountRiskRateExecute(r) -} - -/* -MarginCrossAccountRiskRate riskRate - -riskRate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossAccountRiskRateRequest -*/ -func (a *MarginCrossAccountApiService) MarginCrossAccountRiskRate(ctx context.Context) ApiMarginCrossAccountRiskRateRequest { - return ApiMarginCrossAccountRiskRateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossAssetsRiskResult -func (a *MarginCrossAccountApiService) MarginCrossAccountRiskRateExecute(r ApiMarginCrossAccountRiskRateRequest) (*ApiResponseResultOfMarginCrossAssetsRiskResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossAssetsRiskResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.MarginCrossAccountRiskRate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/riskRate" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiVoidRequest struct { - ctx context.Context - ApiService *MarginCrossAccountApiService -} - -func (r ApiVoidRequest) Execute() (*ApiResponseResultOfVoid, *http.Response, error) { - return r.ApiService.VoidExecute(r) -} - -/* -Void void - -empty - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVoidRequest -*/ -func (a *MarginCrossAccountApiService) Void(ctx context.Context) ApiVoidRequest { - return ApiVoidRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfVoid -func (a *MarginCrossAccountApiService) VoidExecute(r ApiVoidRequest) (*ApiResponseResultOfVoid, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfVoid - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossAccountApiService.Void") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/account/void" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_borrow.go b/bitget-goland-sdk-open-api/api_margin_cross_borrow.go deleted file mode 100644 index d31ed59d..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_borrow.go +++ /dev/null @@ -1,285 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossBorrowApiService MarginCrossBorrowApi service -type MarginCrossBorrowApiService service - -type ApiCrossLoanListRequest struct { - ctx context.Context - ApiService *MarginCrossBorrowApiService - startTime *string - coin *string - endTime *string - loanId *string - pageSize *string - pageId *string -} - -// startTime -func (r ApiCrossLoanListRequest) StartTime(startTime string) ApiCrossLoanListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiCrossLoanListRequest) Coin(coin string) ApiCrossLoanListRequest { - r.coin = &coin - return r -} - -// endTime -func (r ApiCrossLoanListRequest) EndTime(endTime string) ApiCrossLoanListRequest { - r.endTime = &endTime - return r -} - -// loanId -func (r ApiCrossLoanListRequest) LoanId(loanId string) ApiCrossLoanListRequest { - r.loanId = &loanId - return r -} - -// pageSize -func (r ApiCrossLoanListRequest) PageSize(pageSize string) ApiCrossLoanListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiCrossLoanListRequest) PageId(pageId string) ApiCrossLoanListRequest { - r.pageId = &pageId - return r -} - -func (r ApiCrossLoanListRequest) Execute() (*ApiResponseResultOfMarginLoanInfoResult, *http.Response, error) { - return r.ApiService.CrossLoanListExecute(r) -} - -/* -CrossLoanList list - -Get Loan List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCrossLoanListRequest -*/ -func (a *MarginCrossBorrowApiService) CrossLoanList(ctx context.Context) ApiCrossLoanListRequest { - return ApiCrossLoanListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginLoanInfoResult -func (a *MarginCrossBorrowApiService) CrossLoanListExecute(r ApiCrossLoanListRequest) (*ApiResponseResultOfMarginLoanInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginLoanInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossBorrowApiService.CrossLoanList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/loan/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.loanId != nil { - localVarQueryParams.Add("loanId", parameterToString(*r.loanId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_finflow.go b/bitget-goland-sdk-open-api/api_margin_cross_finflow.go deleted file mode 100644 index 0d28586c..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_finflow.go +++ /dev/null @@ -1,285 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossFinflowApiService MarginCrossFinflowApi service -type MarginCrossFinflowApiService service - -type ApiCrossFinListRequest struct { - ctx context.Context - ApiService *MarginCrossFinflowApiService - startTime *string - coin *string - endTime *string - marginType *string - pageSize *string - pageId *string -} - -// startTime -func (r ApiCrossFinListRequest) StartTime(startTime string) ApiCrossFinListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiCrossFinListRequest) Coin(coin string) ApiCrossFinListRequest { - r.coin = &coin - return r -} - -// endTime -func (r ApiCrossFinListRequest) EndTime(endTime string) ApiCrossFinListRequest { - r.endTime = &endTime - return r -} - -// marginType -func (r ApiCrossFinListRequest) MarginType(marginType string) ApiCrossFinListRequest { - r.marginType = &marginType - return r -} - -// pageSize -func (r ApiCrossFinListRequest) PageSize(pageSize string) ApiCrossFinListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiCrossFinListRequest) PageId(pageId string) ApiCrossFinListRequest { - r.pageId = &pageId - return r -} - -func (r ApiCrossFinListRequest) Execute() (*ApiResponseResultOfMarginCrossFinFlowResult, *http.Response, error) { - return r.ApiService.CrossFinListExecute(r) -} - -/* -CrossFinList list - -Get finance flow List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCrossFinListRequest -*/ -func (a *MarginCrossFinflowApiService) CrossFinList(ctx context.Context) ApiCrossFinListRequest { - return ApiCrossFinListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginCrossFinFlowResult -func (a *MarginCrossFinflowApiService) CrossFinListExecute(r ApiCrossFinListRequest) (*ApiResponseResultOfMarginCrossFinFlowResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginCrossFinFlowResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossFinflowApiService.CrossFinList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/fin/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.marginType != nil { - localVarQueryParams.Add("marginType", parameterToString(*r.marginType, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_interest.go b/bitget-goland-sdk-open-api/api_margin_cross_interest.go deleted file mode 100644 index 64b21d1c..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_interest.go +++ /dev/null @@ -1,265 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossInterestApiService MarginCrossInterestApi service -type MarginCrossInterestApiService service - -type ApiCrossInterestListRequest struct { - ctx context.Context - ApiService *MarginCrossInterestApiService - startTime *string - coin *string - pageSize *string - pageId *string -} - -// startTime -func (r ApiCrossInterestListRequest) StartTime(startTime string) ApiCrossInterestListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiCrossInterestListRequest) Coin(coin string) ApiCrossInterestListRequest { - r.coin = &coin - return r -} - -// pageSize -func (r ApiCrossInterestListRequest) PageSize(pageSize string) ApiCrossInterestListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiCrossInterestListRequest) PageId(pageId string) ApiCrossInterestListRequest { - r.pageId = &pageId - return r -} - -func (r ApiCrossInterestListRequest) Execute() (*ApiResponseResultOfMarginInterestInfoResult, *http.Response, error) { - return r.ApiService.CrossInterestListExecute(r) -} - -/* -CrossInterestList list - -Get interest List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCrossInterestListRequest -*/ -func (a *MarginCrossInterestApiService) CrossInterestList(ctx context.Context) ApiCrossInterestListRequest { - return ApiCrossInterestListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginInterestInfoResult -func (a *MarginCrossInterestApiService) CrossInterestListExecute(r ApiCrossInterestListRequest) (*ApiResponseResultOfMarginInterestInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginInterestInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossInterestApiService.CrossInterestList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/interest/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_liquidation.go b/bitget-goland-sdk-open-api/api_margin_cross_liquidation.go deleted file mode 100644 index 4ccb143c..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_liquidation.go +++ /dev/null @@ -1,265 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossLiquidationApiService MarginCrossLiquidationApi service -type MarginCrossLiquidationApiService service - -type ApiCrossLiquidationListRequest struct { - ctx context.Context - ApiService *MarginCrossLiquidationApiService - startTime *string - endTime *string - pageSize *string - pageId *string -} - -// startTime -func (r ApiCrossLiquidationListRequest) StartTime(startTime string) ApiCrossLiquidationListRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiCrossLiquidationListRequest) EndTime(endTime string) ApiCrossLiquidationListRequest { - r.endTime = &endTime - return r -} - -// pageSize -func (r ApiCrossLiquidationListRequest) PageSize(pageSize string) ApiCrossLiquidationListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiCrossLiquidationListRequest) PageId(pageId string) ApiCrossLiquidationListRequest { - r.pageId = &pageId - return r -} - -func (r ApiCrossLiquidationListRequest) Execute() (*ApiResponseResultOfMarginLiquidationInfoResult, *http.Response, error) { - return r.ApiService.CrossLiquidationListExecute(r) -} - -/* -CrossLiquidationList list - -Get liquidation List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCrossLiquidationListRequest -*/ -func (a *MarginCrossLiquidationApiService) CrossLiquidationList(ctx context.Context) ApiCrossLiquidationListRequest { - return ApiCrossLiquidationListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginLiquidationInfoResult -func (a *MarginCrossLiquidationApiService) CrossLiquidationListExecute(r ApiCrossLiquidationListRequest) (*ApiResponseResultOfMarginLiquidationInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginLiquidationInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossLiquidationApiService.CrossLiquidationList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/liquidation/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_order.go b/bitget-goland-sdk-open-api/api_margin_cross_order.go deleted file mode 100644 index 5a00075c..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_order.go +++ /dev/null @@ -1,1700 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossOrderApiService MarginCrossOrderApi service -type MarginCrossOrderApiService service - -type ApiMarginCrossBatchCancelOrderRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - marginBatchCancelOrderRequest *MarginBatchCancelOrderRequest -} - -// marginBatchCancelOrderRequest -func (r ApiMarginCrossBatchCancelOrderRequest) MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest MarginBatchCancelOrderRequest) ApiMarginCrossBatchCancelOrderRequest { - r.marginBatchCancelOrderRequest = &marginBatchCancelOrderRequest - return r -} - -func (r ApiMarginCrossBatchCancelOrderRequest) Execute() (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - return r.ApiService.MarginCrossBatchCancelOrderExecute(r) -} - -/* -MarginCrossBatchCancelOrder batchCancelOrder - -Margin Cross BatchCancelOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossBatchCancelOrderRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossBatchCancelOrder(ctx context.Context) ApiMarginCrossBatchCancelOrderRequest { - return ApiMarginCrossBatchCancelOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchCancelOrderResult -func (a *MarginCrossOrderApiService) MarginCrossBatchCancelOrderExecute(r ApiMarginCrossBatchCancelOrderRequest) (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchCancelOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossBatchCancelOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/batchCancelOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginBatchCancelOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginBatchCancelOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginBatchCancelOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossBatchPlaceOrderRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - marginOrderRequest *MarginBatchOrdersRequest -} - -// marginOrderRequest -func (r ApiMarginCrossBatchPlaceOrderRequest) MarginOrderRequest(marginOrderRequest MarginBatchOrdersRequest) ApiMarginCrossBatchPlaceOrderRequest { - r.marginOrderRequest = &marginOrderRequest - return r -} - -func (r ApiMarginCrossBatchPlaceOrderRequest) Execute() (*ApiResponseResultOfMarginBatchPlaceOrderResult, *http.Response, error) { - return r.ApiService.MarginCrossBatchPlaceOrderExecute(r) -} - -/* -MarginCrossBatchPlaceOrder batchPlaceOrder - -Margin Cross PlaceOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossBatchPlaceOrderRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossBatchPlaceOrder(ctx context.Context) ApiMarginCrossBatchPlaceOrderRequest { - return ApiMarginCrossBatchPlaceOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchPlaceOrderResult -func (a *MarginCrossOrderApiService) MarginCrossBatchPlaceOrderExecute(r ApiMarginCrossBatchPlaceOrderRequest) (*ApiResponseResultOfMarginBatchPlaceOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchPlaceOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossBatchPlaceOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/batchPlaceOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossCancelOrderRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - marginCancelOrderRequest *MarginCancelOrderRequest -} - -// marginCancelOrderRequest -func (r ApiMarginCrossCancelOrderRequest) MarginCancelOrderRequest(marginCancelOrderRequest MarginCancelOrderRequest) ApiMarginCrossCancelOrderRequest { - r.marginCancelOrderRequest = &marginCancelOrderRequest - return r -} - -func (r ApiMarginCrossCancelOrderRequest) Execute() (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - return r.ApiService.MarginCrossCancelOrderExecute(r) -} - -/* -MarginCrossCancelOrder cancelOrder - -Margin Cross CancelOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossCancelOrderRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossCancelOrder(ctx context.Context) ApiMarginCrossCancelOrderRequest { - return ApiMarginCrossCancelOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchCancelOrderResult -func (a *MarginCrossOrderApiService) MarginCrossCancelOrderExecute(r ApiMarginCrossCancelOrderRequest) (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchCancelOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossCancelOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/cancelOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginCancelOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginCancelOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginCancelOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossFillsRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - symbol *string - startTime *string - source *string - endTime *string - orderId *string - lastFillId *string - pageSize *string -} - -// symbol -func (r ApiMarginCrossFillsRequest) Symbol(symbol string) ApiMarginCrossFillsRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiMarginCrossFillsRequest) StartTime(startTime string) ApiMarginCrossFillsRequest { - r.startTime = &startTime - return r -} - -// source -func (r ApiMarginCrossFillsRequest) Source(source string) ApiMarginCrossFillsRequest { - r.source = &source - return r -} - -// endTime -func (r ApiMarginCrossFillsRequest) EndTime(endTime string) ApiMarginCrossFillsRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginCrossFillsRequest) OrderId(orderId string) ApiMarginCrossFillsRequest { - r.orderId = &orderId - return r -} - -// lastFillId -func (r ApiMarginCrossFillsRequest) LastFillId(lastFillId string) ApiMarginCrossFillsRequest { - r.lastFillId = &lastFillId - return r -} - -// pageSize -func (r ApiMarginCrossFillsRequest) PageSize(pageSize string) ApiMarginCrossFillsRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMarginCrossFillsRequest) Execute() (*ApiResponseResultOfMarginTradeDetailInfoResult, *http.Response, error) { - return r.ApiService.MarginCrossFillsExecute(r) -} - -/* -MarginCrossFills fills - -Margin Cross Fills - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossFillsRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossFills(ctx context.Context) ApiMarginCrossFillsRequest { - return ApiMarginCrossFillsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginTradeDetailInfoResult -func (a *MarginCrossOrderApiService) MarginCrossFillsExecute(r ApiMarginCrossFillsRequest) (*ApiResponseResultOfMarginTradeDetailInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginTradeDetailInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossFills") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/fills" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.source != nil { - localVarQueryParams.Add("source", parameterToString(*r.source, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.lastFillId != nil { - localVarQueryParams.Add("lastFillId", parameterToString(*r.lastFillId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossHistoryOrdersRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - symbol *string - startTime *string - source *string - endTime *string - orderId *string - clientOid *string - minId *string - pageSize *string -} - -// symbol -func (r ApiMarginCrossHistoryOrdersRequest) Symbol(symbol string) ApiMarginCrossHistoryOrdersRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiMarginCrossHistoryOrdersRequest) StartTime(startTime string) ApiMarginCrossHistoryOrdersRequest { - r.startTime = &startTime - return r -} - -// source -func (r ApiMarginCrossHistoryOrdersRequest) Source(source string) ApiMarginCrossHistoryOrdersRequest { - r.source = &source - return r -} - -// endTime -func (r ApiMarginCrossHistoryOrdersRequest) EndTime(endTime string) ApiMarginCrossHistoryOrdersRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginCrossHistoryOrdersRequest) OrderId(orderId string) ApiMarginCrossHistoryOrdersRequest { - r.orderId = &orderId - return r -} - -// clientOid -func (r ApiMarginCrossHistoryOrdersRequest) ClientOid(clientOid string) ApiMarginCrossHistoryOrdersRequest { - r.clientOid = &clientOid - return r -} - -// minId -func (r ApiMarginCrossHistoryOrdersRequest) MinId(minId string) ApiMarginCrossHistoryOrdersRequest { - r.minId = &minId - return r -} - -// pageSize -func (r ApiMarginCrossHistoryOrdersRequest) PageSize(pageSize string) ApiMarginCrossHistoryOrdersRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMarginCrossHistoryOrdersRequest) Execute() (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - return r.ApiService.MarginCrossHistoryOrdersExecute(r) -} - -/* -MarginCrossHistoryOrders history - -Margin Cross historyOrders - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossHistoryOrdersRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossHistoryOrders(ctx context.Context) ApiMarginCrossHistoryOrdersRequest { - return ApiMarginCrossHistoryOrdersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginOpenOrderInfoResult -func (a *MarginCrossOrderApiService) MarginCrossHistoryOrdersExecute(r ApiMarginCrossHistoryOrdersRequest) (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginOpenOrderInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossHistoryOrders") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/history" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.source != nil { - localVarQueryParams.Add("source", parameterToString(*r.source, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.clientOid != nil { - localVarQueryParams.Add("clientOid", parameterToString(*r.clientOid, "")) - } - if r.minId != nil { - localVarQueryParams.Add("minId", parameterToString(*r.minId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossOpenOrdersRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - symbol *string - startTime *string - endTime *string - orderId *string - clientOid *string - pageSize *string -} - -// symbol -func (r ApiMarginCrossOpenOrdersRequest) Symbol(symbol string) ApiMarginCrossOpenOrdersRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiMarginCrossOpenOrdersRequest) StartTime(startTime string) ApiMarginCrossOpenOrdersRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiMarginCrossOpenOrdersRequest) EndTime(endTime string) ApiMarginCrossOpenOrdersRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginCrossOpenOrdersRequest) OrderId(orderId string) ApiMarginCrossOpenOrdersRequest { - r.orderId = &orderId - return r -} - -// clientOid -func (r ApiMarginCrossOpenOrdersRequest) ClientOid(clientOid string) ApiMarginCrossOpenOrdersRequest { - r.clientOid = &clientOid - return r -} - -// pageSize -func (r ApiMarginCrossOpenOrdersRequest) PageSize(pageSize string) ApiMarginCrossOpenOrdersRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMarginCrossOpenOrdersRequest) Execute() (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - return r.ApiService.MarginCrossOpenOrdersExecute(r) -} - -/* -MarginCrossOpenOrders openOrders - -Margin Cross openOrders - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossOpenOrdersRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossOpenOrders(ctx context.Context) ApiMarginCrossOpenOrdersRequest { - return ApiMarginCrossOpenOrdersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginOpenOrderInfoResult -func (a *MarginCrossOrderApiService) MarginCrossOpenOrdersExecute(r ApiMarginCrossOpenOrdersRequest) (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginOpenOrderInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossOpenOrders") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/openOrders" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.clientOid != nil { - localVarQueryParams.Add("clientOid", parameterToString(*r.clientOid, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossPlaceOrderRequest struct { - ctx context.Context - ApiService *MarginCrossOrderApiService - marginOrderRequest *MarginOrderRequest -} - -// marginOrderRequest -func (r ApiMarginCrossPlaceOrderRequest) MarginOrderRequest(marginOrderRequest MarginOrderRequest) ApiMarginCrossPlaceOrderRequest { - r.marginOrderRequest = &marginOrderRequest - return r -} - -func (r ApiMarginCrossPlaceOrderRequest) Execute() (*ApiResponseResultOfMarginPlaceOrderResult, *http.Response, error) { - return r.ApiService.MarginCrossPlaceOrderExecute(r) -} - -/* -MarginCrossPlaceOrder placeOrder - -Margin Cross PlaceOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossPlaceOrderRequest -*/ -func (a *MarginCrossOrderApiService) MarginCrossPlaceOrder(ctx context.Context) ApiMarginCrossPlaceOrderRequest { - return ApiMarginCrossPlaceOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginPlaceOrderResult -func (a *MarginCrossOrderApiService) MarginCrossPlaceOrderExecute(r ApiMarginCrossPlaceOrderRequest) (*ApiResponseResultOfMarginPlaceOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginPlaceOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossOrderApiService.MarginCrossPlaceOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/order/placeOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_public.go b/bitget-goland-sdk-open-api/api_margin_cross_public.go deleted file mode 100644 index 7e9522c4..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_public.go +++ /dev/null @@ -1,308 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossPublicApiService MarginCrossPublicApi service -type MarginCrossPublicApiService service - -type ApiMarginCrossPublicInterestRateAndLimitRequest struct { - ctx context.Context - ApiService *MarginCrossPublicApiService - coin *string -} - -// coin -func (r ApiMarginCrossPublicInterestRateAndLimitRequest) Coin(coin string) ApiMarginCrossPublicInterestRateAndLimitRequest { - r.coin = &coin - return r -} - -func (r ApiMarginCrossPublicInterestRateAndLimitRequest) Execute() (*ApiResponseResultOfListOfMarginCrossRateAndLimitResult, *http.Response, error) { - return r.ApiService.MarginCrossPublicInterestRateAndLimitExecute(r) -} - -/* -MarginCrossPublicInterestRateAndLimit interestRateAndLimit - -Get InterestRateAndLimit - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossPublicInterestRateAndLimitRequest -*/ -func (a *MarginCrossPublicApiService) MarginCrossPublicInterestRateAndLimit(ctx context.Context) ApiMarginCrossPublicInterestRateAndLimitRequest { - return ApiMarginCrossPublicInterestRateAndLimitRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginCrossRateAndLimitResult -func (a *MarginCrossPublicApiService) MarginCrossPublicInterestRateAndLimitExecute(r ApiMarginCrossPublicInterestRateAndLimitRequest) (*ApiResponseResultOfListOfMarginCrossRateAndLimitResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginCrossRateAndLimitResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossPublicApiService.MarginCrossPublicInterestRateAndLimit") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/public/interestRateAndLimit" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.coin == nil { - return localVarReturnValue, nil, reportError("coin is required and must be specified") - } - - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginCrossPublicTierDataRequest struct { - ctx context.Context - ApiService *MarginCrossPublicApiService - coin *string -} - -// coin -func (r ApiMarginCrossPublicTierDataRequest) Coin(coin string) ApiMarginCrossPublicTierDataRequest { - r.coin = &coin - return r -} - -func (r ApiMarginCrossPublicTierDataRequest) Execute() (*ApiResponseResultOfListOfMarginCrossLevelResult, *http.Response, error) { - return r.ApiService.MarginCrossPublicTierDataExecute(r) -} - -/* -MarginCrossPublicTierData tierData - -Get TierData - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginCrossPublicTierDataRequest -*/ -func (a *MarginCrossPublicApiService) MarginCrossPublicTierData(ctx context.Context) ApiMarginCrossPublicTierDataRequest { - return ApiMarginCrossPublicTierDataRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginCrossLevelResult -func (a *MarginCrossPublicApiService) MarginCrossPublicTierDataExecute(r ApiMarginCrossPublicTierDataRequest) (*ApiResponseResultOfListOfMarginCrossLevelResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginCrossLevelResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossPublicApiService.MarginCrossPublicTierData") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/public/tierData" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.coin == nil { - return localVarReturnValue, nil, reportError("coin is required and must be specified") - } - - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_cross_repay.go b/bitget-goland-sdk-open-api/api_margin_cross_repay.go deleted file mode 100644 index 7256a768..00000000 --- a/bitget-goland-sdk-open-api/api_margin_cross_repay.go +++ /dev/null @@ -1,285 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginCrossRepayApiService MarginCrossRepayApi service -type MarginCrossRepayApiService service - -type ApiCrossRepayListRequest struct { - ctx context.Context - ApiService *MarginCrossRepayApiService - startTime *string - coin *string - repayId *string - endTime *string - pageSize *string - pageId *string -} - -// startTime -func (r ApiCrossRepayListRequest) StartTime(startTime string) ApiCrossRepayListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiCrossRepayListRequest) Coin(coin string) ApiCrossRepayListRequest { - r.coin = &coin - return r -} - -// repayId -func (r ApiCrossRepayListRequest) RepayId(repayId string) ApiCrossRepayListRequest { - r.repayId = &repayId - return r -} - -// endTime -func (r ApiCrossRepayListRequest) EndTime(endTime string) ApiCrossRepayListRequest { - r.endTime = &endTime - return r -} - -// pageSize -func (r ApiCrossRepayListRequest) PageSize(pageSize string) ApiCrossRepayListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiCrossRepayListRequest) PageId(pageId string) ApiCrossRepayListRequest { - r.pageId = &pageId - return r -} - -func (r ApiCrossRepayListRequest) Execute() (*ApiResponseResultOfMarginRepayInfoResult, *http.Response, error) { - return r.ApiService.CrossRepayListExecute(r) -} - -/* -CrossRepayList list - -Get liquidation List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCrossRepayListRequest -*/ -func (a *MarginCrossRepayApiService) CrossRepayList(ctx context.Context) ApiCrossRepayListRequest { - return ApiCrossRepayListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginRepayInfoResult -func (a *MarginCrossRepayApiService) CrossRepayListExecute(r ApiCrossRepayListRequest) (*ApiResponseResultOfMarginRepayInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginRepayInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginCrossRepayApiService.CrossRepayList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/cross/repay/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - if r.repayId != nil { - localVarQueryParams.Add("repayId", parameterToString(*r.repayId, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_account.go b/bitget-goland-sdk-open-api/api_margin_isolated_account.go deleted file mode 100644 index 3f405b29..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_account.go +++ /dev/null @@ -1,1315 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedAccountApiService MarginIsolatedAccountApi service -type MarginIsolatedAccountApiService service - -type ApiMarginIsolatedAccountAssetsRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - symbol *string -} - -// symbol -func (r ApiMarginIsolatedAccountAssetsRequest) Symbol(symbol string) ApiMarginIsolatedAccountAssetsRequest { - r.symbol = &symbol - return r -} - -func (r ApiMarginIsolatedAccountAssetsRequest) Execute() (*ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountAssetsExecute(r) -} - -/* -MarginIsolatedAccountAssets assets - -Get Assets - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountAssetsRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountAssets(ctx context.Context) ApiMarginIsolatedAccountAssetsRequest { - return ApiMarginIsolatedAccountAssetsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountAssetsExecute(r ApiMarginIsolatedAccountAssetsRequest) (*ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountAssets") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/assets" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedAccountBorrowRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - marginIsolatedLimitRequest *MarginIsolatedLimitRequest -} - -// marginIsolatedLimitRequest -func (r ApiMarginIsolatedAccountBorrowRequest) MarginIsolatedLimitRequest(marginIsolatedLimitRequest MarginIsolatedLimitRequest) ApiMarginIsolatedAccountBorrowRequest { - r.marginIsolatedLimitRequest = &marginIsolatedLimitRequest - return r -} - -func (r ApiMarginIsolatedAccountBorrowRequest) Execute() (*ApiResponseResultOfMarginIsolatedBorrowLimitResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountBorrowExecute(r) -} - -/* -MarginIsolatedAccountBorrow borrow - -borrow - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountBorrowRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountBorrow(ctx context.Context) ApiMarginIsolatedAccountBorrowRequest { - return ApiMarginIsolatedAccountBorrowRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedBorrowLimitResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountBorrowExecute(r ApiMarginIsolatedAccountBorrowRequest) (*ApiResponseResultOfMarginIsolatedBorrowLimitResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedBorrowLimitResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountBorrow") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/borrow" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginIsolatedLimitRequest == nil { - return localVarReturnValue, nil, reportError("marginIsolatedLimitRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginIsolatedLimitRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedAccountMaxBorrowableAmountRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - marginIsolatedMaxBorrowRequest *MarginIsolatedMaxBorrowRequest -} - -// marginIsolatedMaxBorrowRequest -func (r ApiMarginIsolatedAccountMaxBorrowableAmountRequest) MarginIsolatedMaxBorrowRequest(marginIsolatedMaxBorrowRequest MarginIsolatedMaxBorrowRequest) ApiMarginIsolatedAccountMaxBorrowableAmountRequest { - r.marginIsolatedMaxBorrowRequest = &marginIsolatedMaxBorrowRequest - return r -} - -func (r ApiMarginIsolatedAccountMaxBorrowableAmountRequest) Execute() (*ApiResponseResultOfMarginIsolatedMaxBorrowResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountMaxBorrowableAmountExecute(r) -} - -/* -MarginIsolatedAccountMaxBorrowableAmount maxBorrowableAmount - -Get MaxBorrowableAmount - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountMaxBorrowableAmountRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountMaxBorrowableAmount(ctx context.Context) ApiMarginIsolatedAccountMaxBorrowableAmountRequest { - return ApiMarginIsolatedAccountMaxBorrowableAmountRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedMaxBorrowResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountMaxBorrowableAmountExecute(r ApiMarginIsolatedAccountMaxBorrowableAmountRequest) (*ApiResponseResultOfMarginIsolatedMaxBorrowResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedMaxBorrowResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountMaxBorrowableAmount") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/maxBorrowableAmount" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginIsolatedMaxBorrowRequest == nil { - return localVarReturnValue, nil, reportError("marginIsolatedMaxBorrowRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginIsolatedMaxBorrowRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedAccountMaxTransferOutAmountRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - coin *string - symbol *string -} - -// coin -func (r ApiMarginIsolatedAccountMaxTransferOutAmountRequest) Coin(coin string) ApiMarginIsolatedAccountMaxTransferOutAmountRequest { - r.coin = &coin - return r -} - -// symbol -func (r ApiMarginIsolatedAccountMaxTransferOutAmountRequest) Symbol(symbol string) ApiMarginIsolatedAccountMaxTransferOutAmountRequest { - r.symbol = &symbol - return r -} - -func (r ApiMarginIsolatedAccountMaxTransferOutAmountRequest) Execute() (*ApiResponseResultOfMarginIsolatedAssetsResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountMaxTransferOutAmountExecute(r) -} - -/* -MarginIsolatedAccountMaxTransferOutAmount maxTransferOutAmount - -Get Max TransferOutAmount - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountMaxTransferOutAmountRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountMaxTransferOutAmount(ctx context.Context) ApiMarginIsolatedAccountMaxTransferOutAmountRequest { - return ApiMarginIsolatedAccountMaxTransferOutAmountRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedAssetsResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountMaxTransferOutAmountExecute(r ApiMarginIsolatedAccountMaxTransferOutAmountRequest) (*ApiResponseResultOfMarginIsolatedAssetsResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedAssetsResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountMaxTransferOutAmount") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/maxTransferOutAmount" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.coin == nil { - return localVarReturnValue, nil, reportError("coin is required and must be specified") - } - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedAccountRepayRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - marginIsolatedRepayRequest *MarginIsolatedRepayRequest -} - -// marginIsolatedRepayRequest -func (r ApiMarginIsolatedAccountRepayRequest) MarginIsolatedRepayRequest(marginIsolatedRepayRequest MarginIsolatedRepayRequest) ApiMarginIsolatedAccountRepayRequest { - r.marginIsolatedRepayRequest = &marginIsolatedRepayRequest - return r -} - -func (r ApiMarginIsolatedAccountRepayRequest) Execute() (*ApiResponseResultOfMarginIsolatedRepayResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountRepayExecute(r) -} - -/* -MarginIsolatedAccountRepay repay - -repay - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountRepayRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountRepay(ctx context.Context) ApiMarginIsolatedAccountRepayRequest { - return ApiMarginIsolatedAccountRepayRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedRepayResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountRepayExecute(r ApiMarginIsolatedAccountRepayRequest) (*ApiResponseResultOfMarginIsolatedRepayResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedRepayResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountRepay") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/repay" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginIsolatedRepayRequest == nil { - return localVarReturnValue, nil, reportError("marginIsolatedRepayRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginIsolatedRepayRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedAccountRiskRateRequest struct { - ctx context.Context - ApiService *MarginIsolatedAccountApiService - marginIsolatedAssetsRiskRequest *MarginIsolatedAssetsRiskRequest -} - -// marginIsolatedAssetsRiskRequest -func (r ApiMarginIsolatedAccountRiskRateRequest) MarginIsolatedAssetsRiskRequest(marginIsolatedAssetsRiskRequest MarginIsolatedAssetsRiskRequest) ApiMarginIsolatedAccountRiskRateRequest { - r.marginIsolatedAssetsRiskRequest = &marginIsolatedAssetsRiskRequest - return r -} - -func (r ApiMarginIsolatedAccountRiskRateRequest) Execute() (*ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult, *http.Response, error) { - return r.ApiService.MarginIsolatedAccountRiskRateExecute(r) -} - -/* -MarginIsolatedAccountRiskRate riskRate - -riskRate - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedAccountRiskRateRequest -*/ -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountRiskRate(ctx context.Context) ApiMarginIsolatedAccountRiskRateRequest { - return ApiMarginIsolatedAccountRiskRateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -func (a *MarginIsolatedAccountApiService) MarginIsolatedAccountRiskRateExecute(r ApiMarginIsolatedAccountRiskRateRequest) (*ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedAccountApiService.MarginIsolatedAccountRiskRate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/account/riskRate" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginIsolatedAssetsRiskRequest == nil { - return localVarReturnValue, nil, reportError("marginIsolatedAssetsRiskRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginIsolatedAssetsRiskRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_borrow.go b/bitget-goland-sdk-open-api/api_margin_isolated_borrow.go deleted file mode 100644 index 2b5fd2ae..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_borrow.go +++ /dev/null @@ -1,296 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedBorrowApiService MarginIsolatedBorrowApi service -type MarginIsolatedBorrowApiService service - -type ApiIsolatedLoanListRequest struct { - ctx context.Context - ApiService *MarginIsolatedBorrowApiService - symbol *string - startTime *string - coin *string - endTime *string - loanId *string - pageSize *string - pageId *string -} - -// symbol -func (r ApiIsolatedLoanListRequest) Symbol(symbol string) ApiIsolatedLoanListRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiIsolatedLoanListRequest) StartTime(startTime string) ApiIsolatedLoanListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiIsolatedLoanListRequest) Coin(coin string) ApiIsolatedLoanListRequest { - r.coin = &coin - return r -} - -// endTime -func (r ApiIsolatedLoanListRequest) EndTime(endTime string) ApiIsolatedLoanListRequest { - r.endTime = &endTime - return r -} - -// loanId -func (r ApiIsolatedLoanListRequest) LoanId(loanId string) ApiIsolatedLoanListRequest { - r.loanId = &loanId - return r -} - -// pageSize -func (r ApiIsolatedLoanListRequest) PageSize(pageSize string) ApiIsolatedLoanListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiIsolatedLoanListRequest) PageId(pageId string) ApiIsolatedLoanListRequest { - r.pageId = &pageId - return r -} - -func (r ApiIsolatedLoanListRequest) Execute() (*ApiResponseResultOfMarginIsolatedLoanInfoResult, *http.Response, error) { - return r.ApiService.IsolatedLoanListExecute(r) -} - -/* -IsolatedLoanList list - -Get Loan List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIsolatedLoanListRequest -*/ -func (a *MarginIsolatedBorrowApiService) IsolatedLoanList(ctx context.Context) ApiIsolatedLoanListRequest { - return ApiIsolatedLoanListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedLoanInfoResult -func (a *MarginIsolatedBorrowApiService) IsolatedLoanListExecute(r ApiIsolatedLoanListRequest) (*ApiResponseResultOfMarginIsolatedLoanInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedLoanInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedBorrowApiService.IsolatedLoanList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/loan/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.loanId != nil { - localVarQueryParams.Add("loanId", parameterToString(*r.loanId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_finflow.go b/bitget-goland-sdk-open-api/api_margin_isolated_finflow.go deleted file mode 100644 index b99f63b4..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_finflow.go +++ /dev/null @@ -1,306 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedFinflowApiService MarginIsolatedFinflowApi service -type MarginIsolatedFinflowApiService service - -type ApiIsolatedFinListRequest struct { - ctx context.Context - ApiService *MarginIsolatedFinflowApiService - symbol *string - startTime *string - coin *string - marginType *string - endTime *string - loanId *string - pageSize *string - pageId *string -} - -// symbol -func (r ApiIsolatedFinListRequest) Symbol(symbol string) ApiIsolatedFinListRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiIsolatedFinListRequest) StartTime(startTime string) ApiIsolatedFinListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiIsolatedFinListRequest) Coin(coin string) ApiIsolatedFinListRequest { - r.coin = &coin - return r -} - -// marginType -func (r ApiIsolatedFinListRequest) MarginType(marginType string) ApiIsolatedFinListRequest { - r.marginType = &marginType - return r -} - -// endTime -func (r ApiIsolatedFinListRequest) EndTime(endTime string) ApiIsolatedFinListRequest { - r.endTime = &endTime - return r -} - -// loanId -func (r ApiIsolatedFinListRequest) LoanId(loanId string) ApiIsolatedFinListRequest { - r.loanId = &loanId - return r -} - -// pageSize -func (r ApiIsolatedFinListRequest) PageSize(pageSize string) ApiIsolatedFinListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiIsolatedFinListRequest) PageId(pageId string) ApiIsolatedFinListRequest { - r.pageId = &pageId - return r -} - -func (r ApiIsolatedFinListRequest) Execute() (*ApiResponseResultOfMarginIsolatedFinFlowResult, *http.Response, error) { - return r.ApiService.IsolatedFinListExecute(r) -} - -/* -IsolatedFinList list - -Get finance flow List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIsolatedFinListRequest -*/ -func (a *MarginIsolatedFinflowApiService) IsolatedFinList(ctx context.Context) ApiIsolatedFinListRequest { - return ApiIsolatedFinListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedFinFlowResult -func (a *MarginIsolatedFinflowApiService) IsolatedFinListExecute(r ApiIsolatedFinListRequest) (*ApiResponseResultOfMarginIsolatedFinFlowResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedFinFlowResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedFinflowApiService.IsolatedFinList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/fin/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - if r.marginType != nil { - localVarQueryParams.Add("marginType", parameterToString(*r.marginType, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.loanId != nil { - localVarQueryParams.Add("loanId", parameterToString(*r.loanId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_interest.go b/bitget-goland-sdk-open-api/api_margin_isolated_interest.go deleted file mode 100644 index f277c464..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_interest.go +++ /dev/null @@ -1,276 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedInterestApiService MarginIsolatedInterestApi service -type MarginIsolatedInterestApiService service - -type ApiIsolatedInterestListRequest struct { - ctx context.Context - ApiService *MarginIsolatedInterestApiService - symbol *string - startTime *string - coin *string - pageSize *string - pageId *string -} - -// symbol -func (r ApiIsolatedInterestListRequest) Symbol(symbol string) ApiIsolatedInterestListRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiIsolatedInterestListRequest) StartTime(startTime string) ApiIsolatedInterestListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiIsolatedInterestListRequest) Coin(coin string) ApiIsolatedInterestListRequest { - r.coin = &coin - return r -} - -// pageSize -func (r ApiIsolatedInterestListRequest) PageSize(pageSize string) ApiIsolatedInterestListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiIsolatedInterestListRequest) PageId(pageId string) ApiIsolatedInterestListRequest { - r.pageId = &pageId - return r -} - -func (r ApiIsolatedInterestListRequest) Execute() (*ApiResponseResultOfMarginIsolatedInterestInfoResult, *http.Response, error) { - return r.ApiService.IsolatedInterestListExecute(r) -} - -/* -IsolatedInterestList list - -Get interest List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIsolatedInterestListRequest -*/ -func (a *MarginIsolatedInterestApiService) IsolatedInterestList(ctx context.Context) ApiIsolatedInterestListRequest { - return ApiIsolatedInterestListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedInterestInfoResult -func (a *MarginIsolatedInterestApiService) IsolatedInterestListExecute(r ApiIsolatedInterestListRequest) (*ApiResponseResultOfMarginIsolatedInterestInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedInterestInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedInterestApiService.IsolatedInterestList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/interest/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_liquidation.go b/bitget-goland-sdk-open-api/api_margin_isolated_liquidation.go deleted file mode 100644 index 34748149..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_liquidation.go +++ /dev/null @@ -1,276 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedLiquidationApiService MarginIsolatedLiquidationApi service -type MarginIsolatedLiquidationApiService service - -type ApiIsolatedLiquidationListRequest struct { - ctx context.Context - ApiService *MarginIsolatedLiquidationApiService - symbol *string - startTime *string - endTime *string - pageSize *string - pageId *string -} - -// symbol -func (r ApiIsolatedLiquidationListRequest) Symbol(symbol string) ApiIsolatedLiquidationListRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiIsolatedLiquidationListRequest) StartTime(startTime string) ApiIsolatedLiquidationListRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiIsolatedLiquidationListRequest) EndTime(endTime string) ApiIsolatedLiquidationListRequest { - r.endTime = &endTime - return r -} - -// pageSize -func (r ApiIsolatedLiquidationListRequest) PageSize(pageSize string) ApiIsolatedLiquidationListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiIsolatedLiquidationListRequest) PageId(pageId string) ApiIsolatedLiquidationListRequest { - r.pageId = &pageId - return r -} - -func (r ApiIsolatedLiquidationListRequest) Execute() (*ApiResponseResultOfMarginIsolatedLiquidationInfoResult, *http.Response, error) { - return r.ApiService.IsolatedLiquidationListExecute(r) -} - -/* -IsolatedLiquidationList list - -Get liquidation List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIsolatedLiquidationListRequest -*/ -func (a *MarginIsolatedLiquidationApiService) IsolatedLiquidationList(ctx context.Context) ApiIsolatedLiquidationListRequest { - return ApiIsolatedLiquidationListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedLiquidationInfoResult -func (a *MarginIsolatedLiquidationApiService) IsolatedLiquidationListExecute(r ApiIsolatedLiquidationListRequest) (*ApiResponseResultOfMarginIsolatedLiquidationInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedLiquidationInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedLiquidationApiService.IsolatedLiquidationList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/liquidation/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_order.go b/bitget-goland-sdk-open-api/api_margin_isolated_order.go deleted file mode 100644 index d786d5cd..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_order.go +++ /dev/null @@ -1,1688 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedOrderApiService MarginIsolatedOrderApi service -type MarginIsolatedOrderApiService service - -type ApiMarginIsolatedBatchCancelOrderRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - marginBatchCancelOrderRequest *MarginBatchCancelOrderRequest -} - -// marginBatchCancelOrderRequest -func (r ApiMarginIsolatedBatchCancelOrderRequest) MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest MarginBatchCancelOrderRequest) ApiMarginIsolatedBatchCancelOrderRequest { - r.marginBatchCancelOrderRequest = &marginBatchCancelOrderRequest - return r -} - -func (r ApiMarginIsolatedBatchCancelOrderRequest) Execute() (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - return r.ApiService.MarginIsolatedBatchCancelOrderExecute(r) -} - -/* -MarginIsolatedBatchCancelOrder batchCancelOrder - -Margin Isolated BatchCancelOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedBatchCancelOrderRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedBatchCancelOrder(ctx context.Context) ApiMarginIsolatedBatchCancelOrderRequest { - return ApiMarginIsolatedBatchCancelOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchCancelOrderResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedBatchCancelOrderExecute(r ApiMarginIsolatedBatchCancelOrderRequest) (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchCancelOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedBatchCancelOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/batchCancelOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginBatchCancelOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginBatchCancelOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginBatchCancelOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedBatchPlaceOrderRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - marginOrderRequest *MarginBatchOrdersRequest -} - -// marginOrderRequest -func (r ApiMarginIsolatedBatchPlaceOrderRequest) MarginOrderRequest(marginOrderRequest MarginBatchOrdersRequest) ApiMarginIsolatedBatchPlaceOrderRequest { - r.marginOrderRequest = &marginOrderRequest - return r -} - -func (r ApiMarginIsolatedBatchPlaceOrderRequest) Execute() (*ApiResponseResultOfMarginBatchPlaceOrderResult, *http.Response, error) { - return r.ApiService.MarginIsolatedBatchPlaceOrderExecute(r) -} - -/* -MarginIsolatedBatchPlaceOrder batchPlaceOrder - -Margin Isolated PlaceOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedBatchPlaceOrderRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedBatchPlaceOrder(ctx context.Context) ApiMarginIsolatedBatchPlaceOrderRequest { - return ApiMarginIsolatedBatchPlaceOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchPlaceOrderResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedBatchPlaceOrderExecute(r ApiMarginIsolatedBatchPlaceOrderRequest) (*ApiResponseResultOfMarginBatchPlaceOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchPlaceOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedBatchPlaceOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/batchPlaceOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedCancelOrderRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - marginCancelOrderRequest *MarginCancelOrderRequest -} - -// marginCancelOrderRequest -func (r ApiMarginIsolatedCancelOrderRequest) MarginCancelOrderRequest(marginCancelOrderRequest MarginCancelOrderRequest) ApiMarginIsolatedCancelOrderRequest { - r.marginCancelOrderRequest = &marginCancelOrderRequest - return r -} - -func (r ApiMarginIsolatedCancelOrderRequest) Execute() (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - return r.ApiService.MarginIsolatedCancelOrderExecute(r) -} - -/* -MarginIsolatedCancelOrder cancelOrder - -Margin Isolated CancelOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedCancelOrderRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedCancelOrder(ctx context.Context) ApiMarginIsolatedCancelOrderRequest { - return ApiMarginIsolatedCancelOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginBatchCancelOrderResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedCancelOrderExecute(r ApiMarginIsolatedCancelOrderRequest) (*ApiResponseResultOfMarginBatchCancelOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginBatchCancelOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedCancelOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/cancelOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginCancelOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginCancelOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginCancelOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedFillsRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - startTime *string - symbol *string - endTime *string - orderId *string - lastFillId *string - pageSize *string -} - -// startTime -func (r ApiMarginIsolatedFillsRequest) StartTime(startTime string) ApiMarginIsolatedFillsRequest { - r.startTime = &startTime - return r -} - -// symbol -func (r ApiMarginIsolatedFillsRequest) Symbol(symbol string) ApiMarginIsolatedFillsRequest { - r.symbol = &symbol - return r -} - -// endTime -func (r ApiMarginIsolatedFillsRequest) EndTime(endTime string) ApiMarginIsolatedFillsRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginIsolatedFillsRequest) OrderId(orderId string) ApiMarginIsolatedFillsRequest { - r.orderId = &orderId - return r -} - -// lastFillId -func (r ApiMarginIsolatedFillsRequest) LastFillId(lastFillId string) ApiMarginIsolatedFillsRequest { - r.lastFillId = &lastFillId - return r -} - -// pageSize -func (r ApiMarginIsolatedFillsRequest) PageSize(pageSize string) ApiMarginIsolatedFillsRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMarginIsolatedFillsRequest) Execute() (*ApiResponseResultOfMarginTradeDetailInfoResult, *http.Response, error) { - return r.ApiService.MarginIsolatedFillsExecute(r) -} - -/* -MarginIsolatedFills fills - -Margin Isolated Fills - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedFillsRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedFills(ctx context.Context) ApiMarginIsolatedFillsRequest { - return ApiMarginIsolatedFillsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginTradeDetailInfoResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedFillsExecute(r ApiMarginIsolatedFillsRequest) (*ApiResponseResultOfMarginTradeDetailInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginTradeDetailInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedFills") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/fills" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.symbol != nil { - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.lastFillId != nil { - localVarQueryParams.Add("lastFillId", parameterToString(*r.lastFillId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedHistoryOrdersRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - startTime *string - symbol *string - source *string - endTime *string - orderId *string - clientOid *string - pageSize *string - minId *string -} - -// startTime -func (r ApiMarginIsolatedHistoryOrdersRequest) StartTime(startTime string) ApiMarginIsolatedHistoryOrdersRequest { - r.startTime = &startTime - return r -} - -// symbol -func (r ApiMarginIsolatedHistoryOrdersRequest) Symbol(symbol string) ApiMarginIsolatedHistoryOrdersRequest { - r.symbol = &symbol - return r -} - -// source -func (r ApiMarginIsolatedHistoryOrdersRequest) Source(source string) ApiMarginIsolatedHistoryOrdersRequest { - r.source = &source - return r -} - -// endTime -func (r ApiMarginIsolatedHistoryOrdersRequest) EndTime(endTime string) ApiMarginIsolatedHistoryOrdersRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginIsolatedHistoryOrdersRequest) OrderId(orderId string) ApiMarginIsolatedHistoryOrdersRequest { - r.orderId = &orderId - return r -} - -// clientOid -func (r ApiMarginIsolatedHistoryOrdersRequest) ClientOid(clientOid string) ApiMarginIsolatedHistoryOrdersRequest { - r.clientOid = &clientOid - return r -} - -// pageSize -func (r ApiMarginIsolatedHistoryOrdersRequest) PageSize(pageSize string) ApiMarginIsolatedHistoryOrdersRequest { - r.pageSize = &pageSize - return r -} - -// minId -func (r ApiMarginIsolatedHistoryOrdersRequest) MinId(minId string) ApiMarginIsolatedHistoryOrdersRequest { - r.minId = &minId - return r -} - -func (r ApiMarginIsolatedHistoryOrdersRequest) Execute() (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - return r.ApiService.MarginIsolatedHistoryOrdersExecute(r) -} - -/* -MarginIsolatedHistoryOrders history - -Margin Isolated historyOrders - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedHistoryOrdersRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedHistoryOrders(ctx context.Context) ApiMarginIsolatedHistoryOrdersRequest { - return ApiMarginIsolatedHistoryOrdersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginOpenOrderInfoResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedHistoryOrdersExecute(r ApiMarginIsolatedHistoryOrdersRequest) (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginOpenOrderInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedHistoryOrders") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/history" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - if r.symbol != nil { - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - } - if r.source != nil { - localVarQueryParams.Add("source", parameterToString(*r.source, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.clientOid != nil { - localVarQueryParams.Add("clientOid", parameterToString(*r.clientOid, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.minId != nil { - localVarQueryParams.Add("minId", parameterToString(*r.minId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedOpenOrdersRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - symbol *string - startTime *string - endTime *string - orderId *string - clientOid *string - pageSize *string -} - -// symbol -func (r ApiMarginIsolatedOpenOrdersRequest) Symbol(symbol string) ApiMarginIsolatedOpenOrdersRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiMarginIsolatedOpenOrdersRequest) StartTime(startTime string) ApiMarginIsolatedOpenOrdersRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiMarginIsolatedOpenOrdersRequest) EndTime(endTime string) ApiMarginIsolatedOpenOrdersRequest { - r.endTime = &endTime - return r -} - -// orderId -func (r ApiMarginIsolatedOpenOrdersRequest) OrderId(orderId string) ApiMarginIsolatedOpenOrdersRequest { - r.orderId = &orderId - return r -} - -// clientOid -func (r ApiMarginIsolatedOpenOrdersRequest) ClientOid(clientOid string) ApiMarginIsolatedOpenOrdersRequest { - r.clientOid = &clientOid - return r -} - -// pageSize -func (r ApiMarginIsolatedOpenOrdersRequest) PageSize(pageSize string) ApiMarginIsolatedOpenOrdersRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMarginIsolatedOpenOrdersRequest) Execute() (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - return r.ApiService.MarginIsolatedOpenOrdersExecute(r) -} - -/* -MarginIsolatedOpenOrders openOrders - -Margin Isolated openOrders - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedOpenOrdersRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedOpenOrders(ctx context.Context) ApiMarginIsolatedOpenOrdersRequest { - return ApiMarginIsolatedOpenOrdersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginOpenOrderInfoResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedOpenOrdersExecute(r ApiMarginIsolatedOpenOrdersRequest) (*ApiResponseResultOfMarginOpenOrderInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginOpenOrderInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedOpenOrders") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/openOrders" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.orderId != nil { - localVarQueryParams.Add("orderId", parameterToString(*r.orderId, "")) - } - if r.clientOid != nil { - localVarQueryParams.Add("clientOid", parameterToString(*r.clientOid, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedPlaceOrderRequest struct { - ctx context.Context - ApiService *MarginIsolatedOrderApiService - marginOrderRequest *MarginOrderRequest -} - -// marginOrderRequest -func (r ApiMarginIsolatedPlaceOrderRequest) MarginOrderRequest(marginOrderRequest MarginOrderRequest) ApiMarginIsolatedPlaceOrderRequest { - r.marginOrderRequest = &marginOrderRequest - return r -} - -func (r ApiMarginIsolatedPlaceOrderRequest) Execute() (*ApiResponseResultOfMarginPlaceOrderResult, *http.Response, error) { - return r.ApiService.MarginIsolatedPlaceOrderExecute(r) -} - -/* -MarginIsolatedPlaceOrder placeOrder - -Margin Isolated PlaceOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedPlaceOrderRequest -*/ -func (a *MarginIsolatedOrderApiService) MarginIsolatedPlaceOrder(ctx context.Context) ApiMarginIsolatedPlaceOrderRequest { - return ApiMarginIsolatedPlaceOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginPlaceOrderResult -func (a *MarginIsolatedOrderApiService) MarginIsolatedPlaceOrderExecute(r ApiMarginIsolatedPlaceOrderRequest) (*ApiResponseResultOfMarginPlaceOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginPlaceOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedOrderApiService.MarginIsolatedPlaceOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/order/placeOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.marginOrderRequest == nil { - return localVarReturnValue, nil, reportError("marginOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.marginOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_public.go b/bitget-goland-sdk-open-api/api_margin_isolated_public.go deleted file mode 100644 index 507d175b..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_public.go +++ /dev/null @@ -1,308 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedPublicApiService MarginIsolatedPublicApi service -type MarginIsolatedPublicApiService service - -type ApiMarginIsolatedPublicInterestRateAndLimitRequest struct { - ctx context.Context - ApiService *MarginIsolatedPublicApiService - symbol *string -} - -// symbol -func (r ApiMarginIsolatedPublicInterestRateAndLimitRequest) Symbol(symbol string) ApiMarginIsolatedPublicInterestRateAndLimitRequest { - r.symbol = &symbol - return r -} - -func (r ApiMarginIsolatedPublicInterestRateAndLimitRequest) Execute() (*ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult, *http.Response, error) { - return r.ApiService.MarginIsolatedPublicInterestRateAndLimitExecute(r) -} - -/* -MarginIsolatedPublicInterestRateAndLimit interestRateAndLimit - -Get InterestRateAndLimit - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedPublicInterestRateAndLimitRequest -*/ -func (a *MarginIsolatedPublicApiService) MarginIsolatedPublicInterestRateAndLimit(ctx context.Context) ApiMarginIsolatedPublicInterestRateAndLimitRequest { - return ApiMarginIsolatedPublicInterestRateAndLimitRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -func (a *MarginIsolatedPublicApiService) MarginIsolatedPublicInterestRateAndLimitExecute(r ApiMarginIsolatedPublicInterestRateAndLimitRequest) (*ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedPublicApiService.MarginIsolatedPublicInterestRateAndLimit") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/public/interestRateAndLimit" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMarginIsolatedPublicTierDataRequest struct { - ctx context.Context - ApiService *MarginIsolatedPublicApiService - symbol *string -} - -// symbol -func (r ApiMarginIsolatedPublicTierDataRequest) Symbol(symbol string) ApiMarginIsolatedPublicTierDataRequest { - r.symbol = &symbol - return r -} - -func (r ApiMarginIsolatedPublicTierDataRequest) Execute() (*ApiResponseResultOfListOfMarginIsolatedLevelResult, *http.Response, error) { - return r.ApiService.MarginIsolatedPublicTierDataExecute(r) -} - -/* -MarginIsolatedPublicTierData tierData - -Get TierData - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginIsolatedPublicTierDataRequest -*/ -func (a *MarginIsolatedPublicApiService) MarginIsolatedPublicTierData(ctx context.Context) ApiMarginIsolatedPublicTierDataRequest { - return ApiMarginIsolatedPublicTierDataRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginIsolatedLevelResult -func (a *MarginIsolatedPublicApiService) MarginIsolatedPublicTierDataExecute(r ApiMarginIsolatedPublicTierDataRequest) (*ApiResponseResultOfListOfMarginIsolatedLevelResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginIsolatedLevelResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedPublicApiService.MarginIsolatedPublicTierData") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/public/tierData" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_isolated_repay.go b/bitget-goland-sdk-open-api/api_margin_isolated_repay.go deleted file mode 100644 index ba8df205..00000000 --- a/bitget-goland-sdk-open-api/api_margin_isolated_repay.go +++ /dev/null @@ -1,296 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginIsolatedRepayApiService MarginIsolatedRepayApi service -type MarginIsolatedRepayApiService service - -type ApiIsolateRepayListRequest struct { - ctx context.Context - ApiService *MarginIsolatedRepayApiService - symbol *string - startTime *string - coin *string - repayId *string - endTime *string - pageSize *string - pageId *string -} - -// symbol -func (r ApiIsolateRepayListRequest) Symbol(symbol string) ApiIsolateRepayListRequest { - r.symbol = &symbol - return r -} - -// startTime -func (r ApiIsolateRepayListRequest) StartTime(startTime string) ApiIsolateRepayListRequest { - r.startTime = &startTime - return r -} - -// coin -func (r ApiIsolateRepayListRequest) Coin(coin string) ApiIsolateRepayListRequest { - r.coin = &coin - return r -} - -// repayId -func (r ApiIsolateRepayListRequest) RepayId(repayId string) ApiIsolateRepayListRequest { - r.repayId = &repayId - return r -} - -// endTime -func (r ApiIsolateRepayListRequest) EndTime(endTime string) ApiIsolateRepayListRequest { - r.endTime = &endTime - return r -} - -// pageSize -func (r ApiIsolateRepayListRequest) PageSize(pageSize string) ApiIsolateRepayListRequest { - r.pageSize = &pageSize - return r -} - -// pageId -func (r ApiIsolateRepayListRequest) PageId(pageId string) ApiIsolateRepayListRequest { - r.pageId = &pageId - return r -} - -func (r ApiIsolateRepayListRequest) Execute() (*ApiResponseResultOfMarginIsolatedRepayInfoResult, *http.Response, error) { - return r.ApiService.IsolateRepayListExecute(r) -} - -/* -IsolateRepayList list - -Get liquidation List - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIsolateRepayListRequest -*/ -func (a *MarginIsolatedRepayApiService) IsolateRepayList(ctx context.Context) ApiIsolateRepayListRequest { - return ApiIsolateRepayListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMarginIsolatedRepayInfoResult -func (a *MarginIsolatedRepayApiService) IsolateRepayListExecute(r ApiIsolateRepayListRequest) (*ApiResponseResultOfMarginIsolatedRepayInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMarginIsolatedRepayInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginIsolatedRepayApiService.IsolateRepayList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/isolated/repay/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.symbol == nil { - return localVarReturnValue, nil, reportError("symbol is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("symbol", parameterToString(*r.symbol, "")) - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - if r.repayId != nil { - localVarQueryParams.Add("repayId", parameterToString(*r.repayId, "")) - } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.pageId != nil { - localVarQueryParams.Add("pageId", parameterToString(*r.pageId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_margin_public.go b/bitget-goland-sdk-open-api/api_margin_public.go deleted file mode 100644 index 94961201..00000000 --- a/bitget-goland-sdk-open-api/api_margin_public.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// MarginPublicApiService MarginPublicApi service -type MarginPublicApiService service - -type ApiMarginPublicCurrenciesRequest struct { - ctx context.Context - ApiService *MarginPublicApiService -} - -func (r ApiMarginPublicCurrenciesRequest) Execute() (*ApiResponseResultOfListOfMarginSystemResult, *http.Response, error) { - return r.ApiService.MarginPublicCurrenciesExecute(r) -} - -/* -MarginPublicCurrencies currencies - -Get Currencies - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMarginPublicCurrenciesRequest -*/ -func (a *MarginPublicApiService) MarginPublicCurrencies(ctx context.Context) ApiMarginPublicCurrenciesRequest { - return ApiMarginPublicCurrenciesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfMarginSystemResult -func (a *MarginPublicApiService) MarginPublicCurrenciesExecute(r ApiMarginPublicCurrenciesRequest) (*ApiResponseResultOfListOfMarginSystemResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfMarginSystemResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarginPublicApiService.MarginPublicCurrencies") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/margin/v1/public/currencies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_p2p_merchant.go b/bitget-goland-sdk-open-api/api_p2p_merchant.go deleted file mode 100644 index 3c1f1bf8..00000000 --- a/bitget-goland-sdk-open-api/api_p2p_merchant.go +++ /dev/null @@ -1,1092 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// P2pMerchantApiService P2pMerchantApi service -type P2pMerchantApiService service - -type ApiMerchantAdvListRequest struct { - ctx context.Context - ApiService *P2pMerchantApiService - startTime *string - endTime *string - status *string - type_ *string - advNo *string - coin *string - languageType *string - fiat *string - lastMinId *string - pageSize *string - orderBy *string -} - -// startTime -func (r ApiMerchantAdvListRequest) StartTime(startTime string) ApiMerchantAdvListRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiMerchantAdvListRequest) EndTime(endTime string) ApiMerchantAdvListRequest { - r.endTime = &endTime - return r -} - -// status -func (r ApiMerchantAdvListRequest) Status(status string) ApiMerchantAdvListRequest { - r.status = &status - return r -} - -// type -func (r ApiMerchantAdvListRequest) Type_(type_ string) ApiMerchantAdvListRequest { - r.type_ = &type_ - return r -} - -// advNo -func (r ApiMerchantAdvListRequest) AdvNo(advNo string) ApiMerchantAdvListRequest { - r.advNo = &advNo - return r -} - -// coin -func (r ApiMerchantAdvListRequest) Coin(coin string) ApiMerchantAdvListRequest { - r.coin = &coin - return r -} - -// languageType -func (r ApiMerchantAdvListRequest) LanguageType(languageType string) ApiMerchantAdvListRequest { - r.languageType = &languageType - return r -} - -// fiat -func (r ApiMerchantAdvListRequest) Fiat(fiat string) ApiMerchantAdvListRequest { - r.fiat = &fiat - return r -} - -// languageType -func (r ApiMerchantAdvListRequest) LastMinId(lastMinId string) ApiMerchantAdvListRequest { - r.lastMinId = &lastMinId - return r -} - -// pageSize -func (r ApiMerchantAdvListRequest) PageSize(pageSize string) ApiMerchantAdvListRequest { - r.pageSize = &pageSize - return r -} - -// orderBy -func (r ApiMerchantAdvListRequest) OrderBy(orderBy string) ApiMerchantAdvListRequest { - r.orderBy = &orderBy - return r -} - -func (r ApiMerchantAdvListRequest) Execute() (*ApiResponseResultOfMerchantAdvResult, *http.Response, error) { - return r.ApiService.MerchantAdvListExecute(r) -} - -/* -MerchantAdvList advList - -P2P merchant adv info - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMerchantAdvListRequest -*/ -func (a *P2pMerchantApiService) MerchantAdvList(ctx context.Context) ApiMerchantAdvListRequest { - return ApiMerchantAdvListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMerchantAdvResult -func (a *P2pMerchantApiService) MerchantAdvListExecute(r ApiMerchantAdvListRequest) (*ApiResponseResultOfMerchantAdvResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMerchantAdvResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "P2pMerchantApiService.MerchantAdvList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/p2p/v1/merchant/advList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.status != nil { - localVarQueryParams.Add("status", parameterToString(*r.status, "")) - } - if r.type_ != nil { - localVarQueryParams.Add("type", parameterToString(*r.type_, "")) - } - if r.advNo != nil { - localVarQueryParams.Add("advNo", parameterToString(*r.advNo, "")) - } - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - if r.languageType != nil { - localVarQueryParams.Add("languageType", parameterToString(*r.languageType, "")) - } - if r.fiat != nil { - localVarQueryParams.Add("fiat", parameterToString(*r.fiat, "")) - } - if r.lastMinId != nil { - localVarQueryParams.Add("lastMinId", parameterToString(*r.lastMinId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - if r.orderBy != nil { - localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMerchantInfoRequest struct { - ctx context.Context - ApiService *P2pMerchantApiService -} - -func (r ApiMerchantInfoRequest) Execute() (*ApiResponseResultOfMerchantPersonInfo, *http.Response, error) { - return r.ApiService.MerchantInfoExecute(r) -} - -/* -MerchantInfo merchantInfo - -P2P merchant info self - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMerchantInfoRequest -*/ -func (a *P2pMerchantApiService) MerchantInfo(ctx context.Context) ApiMerchantInfoRequest { - return ApiMerchantInfoRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMerchantPersonInfo -func (a *P2pMerchantApiService) MerchantInfoExecute(r ApiMerchantInfoRequest) (*ApiResponseResultOfMerchantPersonInfo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMerchantPersonInfo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "P2pMerchantApiService.MerchantInfo") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/p2p/v1/merchant/merchantInfo" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMerchantListRequest struct { - ctx context.Context - ApiService *P2pMerchantApiService - online *string - merchantId *string - lastMinId *string - pageSize *string -} - -// online -func (r ApiMerchantListRequest) Online(online string) ApiMerchantListRequest { - r.online = &online - return r -} - -// merchantId -func (r ApiMerchantListRequest) MerchantId(merchantId string) ApiMerchantListRequest { - r.merchantId = &merchantId - return r -} - -// lastMinId -func (r ApiMerchantListRequest) LastMinId(lastMinId string) ApiMerchantListRequest { - r.lastMinId = &lastMinId - return r -} - -// pageSize -func (r ApiMerchantListRequest) PageSize(pageSize string) ApiMerchantListRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMerchantListRequest) Execute() (*ApiResponseResultOfMerchantInfoResult, *http.Response, error) { - return r.ApiService.MerchantListExecute(r) -} - -/* -MerchantList merchantList - -P2P merchant list - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMerchantListRequest -*/ -func (a *P2pMerchantApiService) MerchantList(ctx context.Context) ApiMerchantListRequest { - return ApiMerchantListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMerchantInfoResult -func (a *P2pMerchantApiService) MerchantListExecute(r ApiMerchantListRequest) (*ApiResponseResultOfMerchantInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMerchantInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "P2pMerchantApiService.MerchantList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/p2p/v1/merchant/merchantList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.online != nil { - localVarQueryParams.Add("online", parameterToString(*r.online, "")) - } - if r.merchantId != nil { - localVarQueryParams.Add("merchantId", parameterToString(*r.merchantId, "")) - } - if r.lastMinId != nil { - localVarQueryParams.Add("lastMinId", parameterToString(*r.lastMinId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiMerchantOrderListRequest struct { - ctx context.Context - ApiService *P2pMerchantApiService - startTime *string - endTime *string - status *string - type_ *string - advNo *string - orderNo *string - coin *string - languageType *string - fiat *string - lastMinId *string - pageSize *string -} - -// startTime -func (r ApiMerchantOrderListRequest) StartTime(startTime string) ApiMerchantOrderListRequest { - r.startTime = &startTime - return r -} - -// endTime -func (r ApiMerchantOrderListRequest) EndTime(endTime string) ApiMerchantOrderListRequest { - r.endTime = &endTime - return r -} - -// status -func (r ApiMerchantOrderListRequest) Status(status string) ApiMerchantOrderListRequest { - r.status = &status - return r -} - -// type -func (r ApiMerchantOrderListRequest) Type_(type_ string) ApiMerchantOrderListRequest { - r.type_ = &type_ - return r -} - -// advNo -func (r ApiMerchantOrderListRequest) AdvNo(advNo string) ApiMerchantOrderListRequest { - r.advNo = &advNo - return r -} - -// orderNo -func (r ApiMerchantOrderListRequest) OrderNo(orderNo string) ApiMerchantOrderListRequest { - r.orderNo = &orderNo - return r -} - -// coin -func (r ApiMerchantOrderListRequest) Coin(coin string) ApiMerchantOrderListRequest { - r.coin = &coin - return r -} - -// languageType -func (r ApiMerchantOrderListRequest) LanguageType(languageType string) ApiMerchantOrderListRequest { - r.languageType = &languageType - return r -} - -// fiat -func (r ApiMerchantOrderListRequest) Fiat(fiat string) ApiMerchantOrderListRequest { - r.fiat = &fiat - return r -} - -// languageType -func (r ApiMerchantOrderListRequest) LastMinId(lastMinId string) ApiMerchantOrderListRequest { - r.lastMinId = &lastMinId - return r -} - -// pageSize -func (r ApiMerchantOrderListRequest) PageSize(pageSize string) ApiMerchantOrderListRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiMerchantOrderListRequest) Execute() (*ApiResponseResultOfMerchantOrderResult, *http.Response, error) { - return r.ApiService.MerchantOrderListExecute(r) -} - -/* -MerchantOrderList orderList - -P2P merchant order info - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMerchantOrderListRequest -*/ -func (a *P2pMerchantApiService) MerchantOrderList(ctx context.Context) ApiMerchantOrderListRequest { - return ApiMerchantOrderListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMerchantOrderResult -func (a *P2pMerchantApiService) MerchantOrderListExecute(r ApiMerchantOrderListRequest) (*ApiResponseResultOfMerchantOrderResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMerchantOrderResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "P2pMerchantApiService.MerchantOrderList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/p2p/v1/merchant/orderList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) - } - if r.status != nil { - localVarQueryParams.Add("status", parameterToString(*r.status, "")) - } - if r.type_ != nil { - localVarQueryParams.Add("type", parameterToString(*r.type_, "")) - } - if r.advNo != nil { - localVarQueryParams.Add("advNo", parameterToString(*r.advNo, "")) - } - if r.orderNo != nil { - localVarQueryParams.Add("orderNo", parameterToString(*r.orderNo, "")) - } - if r.coin != nil { - localVarQueryParams.Add("coin", parameterToString(*r.coin, "")) - } - if r.languageType != nil { - localVarQueryParams.Add("languageType", parameterToString(*r.languageType, "")) - } - if r.fiat != nil { - localVarQueryParams.Add("fiat", parameterToString(*r.fiat, "")) - } - if r.lastMinId != nil { - localVarQueryParams.Add("lastMinId", parameterToString(*r.lastMinId, "")) - } - if r.pageSize != nil { - localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_spot_trace_order.go b/bitget-goland-sdk-open-api/api_spot_trace_order.go deleted file mode 100644 index bdf4153b..00000000 --- a/bitget-goland-sdk-open-api/api_spot_trace_order.go +++ /dev/null @@ -1,2780 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// SpotTraceOrderApiService SpotTraceOrderApi service -type SpotTraceOrderApiService service - -type ApiSpotTraceCloseTrackingOrderRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - closeTrackingOrderRequest *CloseTrackingOrderRequest -} - -// closeTrackingOrderRequest -func (r ApiSpotTraceCloseTrackingOrderRequest) CloseTrackingOrderRequest(closeTrackingOrderRequest CloseTrackingOrderRequest) ApiSpotTraceCloseTrackingOrderRequest { - r.closeTrackingOrderRequest = &closeTrackingOrderRequest - return r -} - -func (r ApiSpotTraceCloseTrackingOrderRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceCloseTrackingOrderExecute(r) -} - -/* -SpotTraceCloseTrackingOrder closeTrackingOrder - -closeTrackingOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceCloseTrackingOrderRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceCloseTrackingOrder(ctx context.Context) ApiSpotTraceCloseTrackingOrderRequest { - return ApiSpotTraceCloseTrackingOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceCloseTrackingOrderExecute(r ApiSpotTraceCloseTrackingOrderRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceCloseTrackingOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/closeTrackingOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.closeTrackingOrderRequest == nil { - return localVarReturnValue, nil, reportError("closeTrackingOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.closeTrackingOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceEndOrderRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - endOrderRequest *EndOrderRequest -} - -// endOrderRequest -func (r ApiSpotTraceEndOrderRequest) EndOrderRequest(endOrderRequest EndOrderRequest) ApiSpotTraceEndOrderRequest { - r.endOrderRequest = &endOrderRequest - return r -} - -func (r ApiSpotTraceEndOrderRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceEndOrderExecute(r) -} - -/* -SpotTraceEndOrder endOrder - -endOrder - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceEndOrderRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceEndOrder(ctx context.Context) ApiSpotTraceEndOrderRequest { - return ApiSpotTraceEndOrderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceEndOrderExecute(r ApiSpotTraceEndOrderRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceEndOrder") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/endOrder" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.endOrderRequest == nil { - return localVarReturnValue, nil, reportError("endOrderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.endOrderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceGetTraceSettingsRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - traceSettingsRequest *TraceSettingsRequest -} - -// traceSettingsRequest -func (r ApiSpotTraceGetTraceSettingsRequest) TraceSettingsRequest(traceSettingsRequest TraceSettingsRequest) ApiSpotTraceGetTraceSettingsRequest { - r.traceSettingsRequest = &traceSettingsRequest - return r -} - -func (r ApiSpotTraceGetTraceSettingsRequest) Execute() (*ApiResponseResultOfTraceSettingResult, *http.Response, error) { - return r.ApiService.SpotTraceGetTraceSettingsExecute(r) -} - -/* -SpotTraceGetTraceSettings getTraceSettings - -Get TraceSettings - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceGetTraceSettingsRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceGetTraceSettings(ctx context.Context) ApiSpotTraceGetTraceSettingsRequest { - return ApiSpotTraceGetTraceSettingsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraceSettingResult -func (a *SpotTraceOrderApiService) SpotTraceGetTraceSettingsExecute(r ApiSpotTraceGetTraceSettingsRequest) (*ApiResponseResultOfTraceSettingResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraceSettingResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceGetTraceSettings") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/getTraceSettings" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.traceSettingsRequest == nil { - return localVarReturnValue, nil, reportError("traceSettingsRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.traceSettingsRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceGetTraderSettingsRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService -} - -func (r ApiSpotTraceGetTraderSettingsRequest) Execute() (*ApiResponseResultOfTraderSettingResult, *http.Response, error) { - return r.ApiService.SpotTraceGetTraderSettingsExecute(r) -} - -/* -SpotTraceGetTraderSettings getTraderSettings - -Get TraderSettings - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceGetTraderSettingsRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceGetTraderSettings(ctx context.Context) ApiSpotTraceGetTraderSettingsRequest { - return ApiSpotTraceGetTraderSettingsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraderSettingResult -func (a *SpotTraceOrderApiService) SpotTraceGetTraderSettingsExecute(r ApiSpotTraceGetTraderSettingsRequest) (*ApiResponseResultOfTraderSettingResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraderSettingResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceGetTraderSettings") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/getTraderSettings" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceMyTracersRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - myTracersRequest *MyTracersRequest -} - -// myTracersRequest -func (r ApiSpotTraceMyTracersRequest) MyTracersRequest(myTracersRequest MyTracersRequest) ApiSpotTraceMyTracersRequest { - r.myTracersRequest = &myTracersRequest - return r -} - -func (r ApiSpotTraceMyTracersRequest) Execute() (*ApiResponseResultOfMyTracersResult, *http.Response, error) { - return r.ApiService.SpotTraceMyTracersExecute(r) -} - -/* -SpotTraceMyTracers myTracers - -Get MyTracers - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceMyTracersRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceMyTracers(ctx context.Context) ApiSpotTraceMyTracersRequest { - return ApiSpotTraceMyTracersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMyTracersResult -func (a *SpotTraceOrderApiService) SpotTraceMyTracersExecute(r ApiSpotTraceMyTracersRequest) (*ApiResponseResultOfMyTracersResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMyTracersResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceMyTracers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/myTracers" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.myTracersRequest == nil { - return localVarReturnValue, nil, reportError("myTracersRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.myTracersRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceMyTradersRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - myTradersRequest *MyTradersRequest -} - -// myTradersRequest -func (r ApiSpotTraceMyTradersRequest) MyTradersRequest(myTradersRequest MyTradersRequest) ApiSpotTraceMyTradersRequest { - r.myTradersRequest = &myTradersRequest - return r -} - -func (r ApiSpotTraceMyTradersRequest) Execute() (*ApiResponseResultOfMyTradersResult, *http.Response, error) { - return r.ApiService.SpotTraceMyTradersExecute(r) -} - -/* -SpotTraceMyTraders myTraders - -Get MyTraders - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceMyTradersRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceMyTraders(ctx context.Context) ApiSpotTraceMyTradersRequest { - return ApiSpotTraceMyTradersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfMyTradersResult -func (a *SpotTraceOrderApiService) SpotTraceMyTradersExecute(r ApiSpotTraceMyTradersRequest) (*ApiResponseResultOfMyTradersResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfMyTradersResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceMyTraders") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/myTraders" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.myTradersRequest == nil { - return localVarReturnValue, nil, reportError("myTradersRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.myTradersRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceOrderCurrentListRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - currentOrderListRequest *CurrentOrderListRequest -} - -// currentOrderListRequest -func (r ApiSpotTraceOrderCurrentListRequest) CurrentOrderListRequest(currentOrderListRequest CurrentOrderListRequest) ApiSpotTraceOrderCurrentListRequest { - r.currentOrderListRequest = ¤tOrderListRequest - return r -} - -func (r ApiSpotTraceOrderCurrentListRequest) Execute() (*ApiResponseResultOfOrderCurrentListResult, *http.Response, error) { - return r.ApiService.SpotTraceOrderCurrentListExecute(r) -} - -/* -SpotTraceOrderCurrentList orderCurrentList - -Get OrderCurrentList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceOrderCurrentListRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceOrderCurrentList(ctx context.Context) ApiSpotTraceOrderCurrentListRequest { - return ApiSpotTraceOrderCurrentListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfOrderCurrentListResult -func (a *SpotTraceOrderApiService) SpotTraceOrderCurrentListExecute(r ApiSpotTraceOrderCurrentListRequest) (*ApiResponseResultOfOrderCurrentListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfOrderCurrentListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceOrderCurrentList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/orderCurrentList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.currentOrderListRequest == nil { - return localVarReturnValue, nil, reportError("currentOrderListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.currentOrderListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceOrderHistoryListRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - historyOrderListRequest *HistoryOrderListRequest -} - -// historyOrderListRequest -func (r ApiSpotTraceOrderHistoryListRequest) HistoryOrderListRequest(historyOrderListRequest HistoryOrderListRequest) ApiSpotTraceOrderHistoryListRequest { - r.historyOrderListRequest = &historyOrderListRequest - return r -} - -func (r ApiSpotTraceOrderHistoryListRequest) Execute() (*ApiResponseResultOfOrderHistoryListResult, *http.Response, error) { - return r.ApiService.SpotTraceOrderHistoryListExecute(r) -} - -/* -SpotTraceOrderHistoryList orderHistoryList - -Get OrderHistoryList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceOrderHistoryListRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceOrderHistoryList(ctx context.Context) ApiSpotTraceOrderHistoryListRequest { - return ApiSpotTraceOrderHistoryListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfOrderHistoryListResult -func (a *SpotTraceOrderApiService) SpotTraceOrderHistoryListExecute(r ApiSpotTraceOrderHistoryListRequest) (*ApiResponseResultOfOrderHistoryListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfOrderHistoryListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceOrderHistoryList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/orderHistoryList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.historyOrderListRequest == nil { - return localVarReturnValue, nil, reportError("historyOrderListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.historyOrderListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceRemoveTraderRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - removeTraderRequest *RemoveTraderRequest -} - -// removeTraderRequest -func (r ApiSpotTraceRemoveTraderRequest) RemoveTraderRequest(removeTraderRequest RemoveTraderRequest) ApiSpotTraceRemoveTraderRequest { - r.removeTraderRequest = &removeTraderRequest - return r -} - -func (r ApiSpotTraceRemoveTraderRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceRemoveTraderExecute(r) -} - -/* -SpotTraceRemoveTrader removeTrader - -RemoveTrader - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceRemoveTraderRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceRemoveTrader(ctx context.Context) ApiSpotTraceRemoveTraderRequest { - return ApiSpotTraceRemoveTraderRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceRemoveTraderExecute(r ApiSpotTraceRemoveTraderRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceRemoveTrader") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/removeTrader" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.removeTraderRequest == nil { - return localVarReturnValue, nil, reportError("removeTraderRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.removeTraderRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceSetProductCodeRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - productCodeRequest *ProductCodeRequest -} - -// productCodeRequest -func (r ApiSpotTraceSetProductCodeRequest) ProductCodeRequest(productCodeRequest ProductCodeRequest) ApiSpotTraceSetProductCodeRequest { - r.productCodeRequest = &productCodeRequest - return r -} - -func (r ApiSpotTraceSetProductCodeRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceSetProductCodeExecute(r) -} - -/* -SpotTraceSetProductCode setProductCode - -SetProductCode - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceSetProductCodeRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceSetProductCode(ctx context.Context) ApiSpotTraceSetProductCodeRequest { - return ApiSpotTraceSetProductCodeRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceSetProductCodeExecute(r ApiSpotTraceSetProductCodeRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceSetProductCode") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/setProductCode" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.productCodeRequest == nil { - return localVarReturnValue, nil, reportError("productCodeRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.productCodeRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceSetTraceConfigRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - traceConfigRequest *TraceConfigRequest -} - -// traceConfigRequest -func (r ApiSpotTraceSetTraceConfigRequest) TraceConfigRequest(traceConfigRequest TraceConfigRequest) ApiSpotTraceSetTraceConfigRequest { - r.traceConfigRequest = &traceConfigRequest - return r -} - -func (r ApiSpotTraceSetTraceConfigRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceSetTraceConfigExecute(r) -} - -/* -SpotTraceSetTraceConfig setTraceConfig - -SetTraceConfig - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceSetTraceConfigRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceSetTraceConfig(ctx context.Context) ApiSpotTraceSetTraceConfigRequest { - return ApiSpotTraceSetTraceConfigRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceSetTraceConfigExecute(r ApiSpotTraceSetTraceConfigRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceSetTraceConfig") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/setTraceConfig" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.traceConfigRequest == nil { - return localVarReturnValue, nil, reportError("traceConfigRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.traceConfigRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceSpotInfoListRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService -} - -func (r ApiSpotTraceSpotInfoListRequest) Execute() (*ApiResponseResultOfListOfSpotInfoResult, *http.Response, error) { - return r.ApiService.SpotTraceSpotInfoListExecute(r) -} - -/* -SpotTraceSpotInfoList spotInfoList - -Get SpotInfoList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceSpotInfoListRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceSpotInfoList(ctx context.Context) ApiSpotTraceSpotInfoListRequest { - return ApiSpotTraceSpotInfoListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfSpotInfoResult -func (a *SpotTraceOrderApiService) SpotTraceSpotInfoListExecute(r ApiSpotTraceSpotInfoListRequest) (*ApiResponseResultOfListOfSpotInfoResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfSpotInfoResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceSpotInfoList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/spotInfoList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceUpdateTpslRequest struct { - ctx context.Context - ApiService *SpotTraceOrderApiService - updateTpslRequest *UpdateTpslRequest -} - -// updateTpslRequest -func (r ApiSpotTraceUpdateTpslRequest) UpdateTpslRequest(updateTpslRequest UpdateTpslRequest) ApiSpotTraceUpdateTpslRequest { - r.updateTpslRequest = &updateTpslRequest - return r -} - -func (r ApiSpotTraceUpdateTpslRequest) Execute() (*ApiResponseResultOfboolean, *http.Response, error) { - return r.ApiService.SpotTraceUpdateTpslExecute(r) -} - -/* -SpotTraceUpdateTpsl updateTpsl - -updateTpsl - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceUpdateTpslRequest -*/ -func (a *SpotTraceOrderApiService) SpotTraceUpdateTpsl(ctx context.Context) ApiSpotTraceUpdateTpslRequest { - return ApiSpotTraceUpdateTpslRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfboolean -func (a *SpotTraceOrderApiService) SpotTraceUpdateTpslExecute(r ApiSpotTraceUpdateTpslRequest) (*ApiResponseResultOfboolean, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfboolean - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceOrderApiService.SpotTraceUpdateTpsl") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/order/updateTpsl" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateTpslRequest == nil { - return localVarReturnValue, nil, reportError("updateTpslRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateTpslRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/api_spot_trace_profit.go b/bitget-goland-sdk-open-api/api_spot_trace_profit.go deleted file mode 100644 index eca1f306..00000000 --- a/bitget-goland-sdk-open-api/api_spot_trace_profit.go +++ /dev/null @@ -1,1080 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io/ioutil" - "net/http" - "net/url" -) - -// SpotTraceProfitApiService SpotTraceProfitApi service -type SpotTraceProfitApiService service - -type ApiSpotTraceProfitHisDetailListRequest struct { - ctx context.Context - ApiService *SpotTraceProfitApiService - totalProfitHisDetailListRequest *TotalProfitHisDetailListRequest -} - -// totalProfitHisDetailListRequest -func (r ApiSpotTraceProfitHisDetailListRequest) TotalProfitHisDetailListRequest(totalProfitHisDetailListRequest TotalProfitHisDetailListRequest) ApiSpotTraceProfitHisDetailListRequest { - r.totalProfitHisDetailListRequest = &totalProfitHisDetailListRequest - return r -} - -func (r ApiSpotTraceProfitHisDetailListRequest) Execute() (*ApiResponseResultOfTraderProfitHisDetailListResult, *http.Response, error) { - return r.ApiService.SpotTraceProfitHisDetailListExecute(r) -} - -/* -SpotTraceProfitHisDetailList profitHisDetailList - -Get ProfitHisDetailList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceProfitHisDetailListRequest -*/ -func (a *SpotTraceProfitApiService) SpotTraceProfitHisDetailList(ctx context.Context) ApiSpotTraceProfitHisDetailListRequest { - return ApiSpotTraceProfitHisDetailListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraderProfitHisDetailListResult -func (a *SpotTraceProfitApiService) SpotTraceProfitHisDetailListExecute(r ApiSpotTraceProfitHisDetailListRequest) (*ApiResponseResultOfTraderProfitHisDetailListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraderProfitHisDetailListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceProfitApiService.SpotTraceProfitHisDetailList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/profit/profitHisDetailList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.totalProfitHisDetailListRequest == nil { - return localVarReturnValue, nil, reportError("totalProfitHisDetailListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.totalProfitHisDetailListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceProfitHisListRequest struct { - ctx context.Context - ApiService *SpotTraceProfitApiService - totalProfitHisListRequest *TotalProfitHisListRequest -} - -// totalProfitHisListRequest -func (r ApiSpotTraceProfitHisListRequest) TotalProfitHisListRequest(totalProfitHisListRequest TotalProfitHisListRequest) ApiSpotTraceProfitHisListRequest { - r.totalProfitHisListRequest = &totalProfitHisListRequest - return r -} - -func (r ApiSpotTraceProfitHisListRequest) Execute() (*ApiResponseResultOfTraderProfitHisListResult, *http.Response, error) { - return r.ApiService.SpotTraceProfitHisListExecute(r) -} - -/* -SpotTraceProfitHisList profitHisList - -Get ProfitHisList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceProfitHisListRequest -*/ -func (a *SpotTraceProfitApiService) SpotTraceProfitHisList(ctx context.Context) ApiSpotTraceProfitHisListRequest { - return ApiSpotTraceProfitHisListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraderProfitHisListResult -func (a *SpotTraceProfitApiService) SpotTraceProfitHisListExecute(r ApiSpotTraceProfitHisListRequest) (*ApiResponseResultOfTraderProfitHisListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraderProfitHisListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceProfitApiService.SpotTraceProfitHisList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/profit/profitHisList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.totalProfitHisListRequest == nil { - return localVarReturnValue, nil, reportError("totalProfitHisListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.totalProfitHisListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceTotalProfitInfoRequest struct { - ctx context.Context - ApiService *SpotTraceProfitApiService -} - -func (r ApiSpotTraceTotalProfitInfoRequest) Execute() (*ApiResponseResultOfTraderTotalProfitResult, *http.Response, error) { - return r.ApiService.SpotTraceTotalProfitInfoExecute(r) -} - -/* -SpotTraceTotalProfitInfo totalProfitInfo - -Get TotalProfitInfo - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceTotalProfitInfoRequest -*/ -func (a *SpotTraceProfitApiService) SpotTraceTotalProfitInfo(ctx context.Context) ApiSpotTraceTotalProfitInfoRequest { - return ApiSpotTraceTotalProfitInfoRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraderTotalProfitResult -func (a *SpotTraceProfitApiService) SpotTraceTotalProfitInfoExecute(r ApiSpotTraceTotalProfitInfoRequest) (*ApiResponseResultOfTraderTotalProfitResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraderTotalProfitResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceProfitApiService.SpotTraceTotalProfitInfo") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/profit/totalProfitInfo" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceTotalProfitListRequest struct { - ctx context.Context - ApiService *SpotTraceProfitApiService - totalProfitListRequest *TotalProfitListRequest -} - -// totalProfitListRequest -func (r ApiSpotTraceTotalProfitListRequest) TotalProfitListRequest(totalProfitListRequest TotalProfitListRequest) ApiSpotTraceTotalProfitListRequest { - r.totalProfitListRequest = &totalProfitListRequest - return r -} - -func (r ApiSpotTraceTotalProfitListRequest) Execute() (*ApiResponseResultOfListOfTraderTotalProfitListResult, *http.Response, error) { - return r.ApiService.SpotTraceTotalProfitListExecute(r) -} - -/* -SpotTraceTotalProfitList totalProfitList - -Get TotalProfitList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceTotalProfitListRequest -*/ -func (a *SpotTraceProfitApiService) SpotTraceTotalProfitList(ctx context.Context) ApiSpotTraceTotalProfitListRequest { - return ApiSpotTraceTotalProfitListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfListOfTraderTotalProfitListResult -func (a *SpotTraceProfitApiService) SpotTraceTotalProfitListExecute(r ApiSpotTraceTotalProfitListRequest) (*ApiResponseResultOfListOfTraderTotalProfitListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfListOfTraderTotalProfitListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceProfitApiService.SpotTraceTotalProfitList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/profit/totalProfitList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.totalProfitListRequest == nil { - return localVarReturnValue, nil, reportError("totalProfitListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.totalProfitListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiSpotTraceWaitProfitDetailListRequest struct { - ctx context.Context - ApiService *SpotTraceProfitApiService - waitProfitDetailListRequest *WaitProfitDetailListRequest -} - -// waitProfitDetailListRequest -func (r ApiSpotTraceWaitProfitDetailListRequest) WaitProfitDetailListRequest(waitProfitDetailListRequest WaitProfitDetailListRequest) ApiSpotTraceWaitProfitDetailListRequest { - r.waitProfitDetailListRequest = &waitProfitDetailListRequest - return r -} - -func (r ApiSpotTraceWaitProfitDetailListRequest) Execute() (*ApiResponseResultOfTraderWaitProfitDetailListResult, *http.Response, error) { - return r.ApiService.SpotTraceWaitProfitDetailListExecute(r) -} - -/* -SpotTraceWaitProfitDetailList waitProfitDetailList - -Get WaitProfitDetailList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSpotTraceWaitProfitDetailListRequest -*/ -func (a *SpotTraceProfitApiService) SpotTraceWaitProfitDetailList(ctx context.Context) ApiSpotTraceWaitProfitDetailListRequest { - return ApiSpotTraceWaitProfitDetailListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ApiResponseResultOfTraderWaitProfitDetailListResult -func (a *SpotTraceProfitApiService) SpotTraceWaitProfitDetailListExecute(r ApiSpotTraceWaitProfitDetailListRequest) (*ApiResponseResultOfTraderWaitProfitDetailListResult, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ApiResponseResultOfTraderWaitProfitDetailListResult - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SpotTraceProfitApiService.SpotTraceWaitProfitDetailList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/spot/v1/trace/profit/waitProfitDetailList" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.waitProfitDetailListRequest == nil { - return localVarReturnValue, nil, reportError("waitProfitDetailListRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.waitProfitDetailListRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-KEY"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_PASSPHRASE"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-PASSPHRASE"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_SIGN"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-SIGN"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["ACCESS_TIMESTAMP"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["ACCESS-TIMESTAMP"] = key - } - } - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["SECRET_KEY"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["SECRET-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 429 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v ApiResponseResultOfVoid - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/bitget-goland-sdk-open-api/client.go b/bitget-goland-sdk-open-api/client.go deleted file mode 100644 index 29669975..00000000 --- a/bitget-goland-sdk-open-api/client.go +++ /dev/null @@ -1,646 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "io/ioutil" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "golang.org/x/oauth2" -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) -) - -// APIClient manages communication with the Bitget Open API API v2.0.0 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - MarginCrossAccountApi *MarginCrossAccountApiService - - MarginCrossBorrowApi *MarginCrossBorrowApiService - - MarginCrossFinflowApi *MarginCrossFinflowApiService - - MarginCrossInterestApi *MarginCrossInterestApiService - - MarginCrossLiquidationApi *MarginCrossLiquidationApiService - - MarginCrossOrderApi *MarginCrossOrderApiService - - MarginCrossPublicApi *MarginCrossPublicApiService - - MarginCrossRepayApi *MarginCrossRepayApiService - - MarginIsolatedAccountApi *MarginIsolatedAccountApiService - - MarginIsolatedBorrowApi *MarginIsolatedBorrowApiService - - MarginIsolatedFinflowApi *MarginIsolatedFinflowApiService - - MarginIsolatedInterestApi *MarginIsolatedInterestApiService - - MarginIsolatedLiquidationApi *MarginIsolatedLiquidationApiService - - MarginIsolatedOrderApi *MarginIsolatedOrderApiService - - MarginIsolatedPublicApi *MarginIsolatedPublicApiService - - MarginIsolatedRepayApi *MarginIsolatedRepayApiService - - MarginPublicApi *MarginPublicApiService - - P2pMerchantApi *P2pMerchantApiService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.MarginCrossAccountApi = (*MarginCrossAccountApiService)(&c.common) - c.MarginCrossBorrowApi = (*MarginCrossBorrowApiService)(&c.common) - c.MarginCrossFinflowApi = (*MarginCrossFinflowApiService)(&c.common) - c.MarginCrossInterestApi = (*MarginCrossInterestApiService)(&c.common) - c.MarginCrossLiquidationApi = (*MarginCrossLiquidationApiService)(&c.common) - c.MarginCrossOrderApi = (*MarginCrossOrderApiService)(&c.common) - c.MarginCrossPublicApi = (*MarginCrossPublicApiService)(&c.common) - c.MarginCrossRepayApi = (*MarginCrossRepayApiService)(&c.common) - c.MarginIsolatedAccountApi = (*MarginIsolatedAccountApiService)(&c.common) - c.MarginIsolatedBorrowApi = (*MarginIsolatedBorrowApiService)(&c.common) - c.MarginIsolatedFinflowApi = (*MarginIsolatedFinflowApiService)(&c.common) - c.MarginIsolatedInterestApi = (*MarginIsolatedInterestApiService)(&c.common) - c.MarginIsolatedLiquidationApi = (*MarginIsolatedLiquidationApiService)(&c.common) - c.MarginIsolatedOrderApi = (*MarginIsolatedOrderApiService)(&c.common) - c.MarginIsolatedPublicApi = (*MarginIsolatedPublicApiService)(&c.common) - c.MarginIsolatedRepayApi = (*MarginIsolatedRepayApiService)(&c.common) - c.MarginPublicApi = (*MarginPublicApiService)(&c.common) - c.P2pMerchantApi = (*P2pMerchantApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. -func parameterToString(obj interface{}, collectionFormat string) string { - var delimiter string - - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," - } - - if reflect.TypeOf(obj).Kind() == reflect.Slice { - return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") - } else if t, ok := obj.(time.Time); ok { - return t.Format(time.RFC3339) - } - - return fmt.Sprintf("%v", obj) -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -func (c *APIClient) GetConfig() *Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = query.Encode() - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // OAuth2 authentication - if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { - // We were able to grab an oauth2 token from the context - var latestToken *oauth2.Token - if latestToken, err = tok.Token(); err != nil { - return nil, err - } - - latestToken.SetAuthHeader(localVarRequest) - } - - // Basic HTTP Authentication - if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { - localVarRequest.SetBasicAuth(auth.UserName, auth.Password) - } - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - - // auto sign - timesStamp := GetTimesStamp() - bodyStr := "" - if body != nil { - bodyStr = body.String() - } - sign := Sign(method, url.Path, url.Query().Encode(), bodyStr, timesStamp, localVarRequest.Header.Get("SECRET-KEY")) - localVarRequest.Header.Set("ACCESS-SIGN", sign) - localVarRequest.Header.Set("ACCESS-TIMESTAMP", timesStamp) - localVarRequest.Header.Set("SECRET-KEY", "") - - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(**os.File); ok { - *f, err = ioutil.TempFile("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(**os.File); ok { - _, err = bodyBuf.ReadFrom(*fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - - str := "" - metaValue := reflect.ValueOf(v).Elem() - - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - - // status title (detail) - return fmt.Sprintf("%s %s", status, str) -} diff --git a/bitget-goland-sdk-open-api/configuration.go b/bitget-goland-sdk-open-api/configuration.go deleted file mode 100644 index 68e43791..00000000 --- a/bitget-goland-sdk-open-api/configuration.go +++ /dev/null @@ -1,239 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. - ContextOAuth2 = contextKey("token") - - // ContextBasicAuth takes BasicAuth as authentication for the request. - ContextBasicAuth = contextKey("basic") - - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") - - // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. - ContextHttpSignatureAuth = contextKey("httpsignature") - - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "https://api.bitget.com", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} - -func NewDefaultConfiguration() *Configuration { - cfg := NewConfiguration() - cfg.AddDefaultHeader("ACCESS-KEY", "your value") - cfg.AddDefaultHeader("ACCESS-PASSPHRASE", "your value") - cfg.AddDefaultHeader("SECRET-KEY", "your value") - cfg.Host = "api.bitget.com" - cfg.Scheme = "https" - return cfg -} diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md deleted file mode 100644 index 6439ead5..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginCrossAssetsPopulationResult**](MarginCrossAssetsPopulationResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -`func NewApiResponseResultOfListOfMarginCrossAssetsPopulationResult() *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult` - -NewApiResponseResultOfListOfMarginCrossAssetsPopulationResult instantiates a new ApiResponseResultOfListOfMarginCrossAssetsPopulationResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginCrossAssetsPopulationResultWithDefaults - -`func NewApiResponseResultOfListOfMarginCrossAssetsPopulationResultWithDefaults() *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult` - -NewApiResponseResultOfListOfMarginCrossAssetsPopulationResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossAssetsPopulationResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetData() []MarginCrossAssetsPopulationResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetDataOk() (*[]MarginCrossAssetsPopulationResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetData(v []MarginCrossAssetsPopulationResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md deleted file mode 100644 index 3c16d8d9..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginCrossLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginCrossLevelResult**](MarginCrossLevelResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginCrossLevelResult - -`func NewApiResponseResultOfListOfMarginCrossLevelResult() *ApiResponseResultOfListOfMarginCrossLevelResult` - -NewApiResponseResultOfListOfMarginCrossLevelResult instantiates a new ApiResponseResultOfListOfMarginCrossLevelResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginCrossLevelResultWithDefaults - -`func NewApiResponseResultOfListOfMarginCrossLevelResultWithDefaults() *ApiResponseResultOfListOfMarginCrossLevelResult` - -NewApiResponseResultOfListOfMarginCrossLevelResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossLevelResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetData() []MarginCrossLevelResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetDataOk() (*[]MarginCrossLevelResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetData(v []MarginCrossLevelResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md deleted file mode 100644 index 84912ee5..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginCrossRateAndLimitResult**](MarginCrossRateAndLimitResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginCrossRateAndLimitResult - -`func NewApiResponseResultOfListOfMarginCrossRateAndLimitResult() *ApiResponseResultOfListOfMarginCrossRateAndLimitResult` - -NewApiResponseResultOfListOfMarginCrossRateAndLimitResult instantiates a new ApiResponseResultOfListOfMarginCrossRateAndLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginCrossRateAndLimitResultWithDefaults - -`func NewApiResponseResultOfListOfMarginCrossRateAndLimitResultWithDefaults() *ApiResponseResultOfListOfMarginCrossRateAndLimitResult` - -NewApiResponseResultOfListOfMarginCrossRateAndLimitResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossRateAndLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetData() []MarginCrossRateAndLimitResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetDataOk() (*[]MarginCrossRateAndLimitResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetData(v []MarginCrossRateAndLimitResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index fb130e98..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginIsolatedAssetsPopulationResult**](MarginIsolatedAssetsPopulationResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - -`func NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult() *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult` - -NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultWithDefaults - -`func NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult` - -NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetData() []MarginIsolatedAssetsPopulationResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetDataOk() (*[]MarginIsolatedAssetsPopulationResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetData(v []MarginIsolatedAssetsPopulationResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md deleted file mode 100644 index fb13b63d..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginIsolatedAssetsRiskResult**](MarginIsolatedAssetsRiskResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - -`func NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResult() *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult` - -NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResult instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResultWithDefaults - -`func NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult` - -NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetData() []MarginIsolatedAssetsRiskResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetDataOk() (*[]MarginIsolatedAssetsRiskResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetData(v []MarginIsolatedAssetsRiskResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md deleted file mode 100644 index a017dd77..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginIsolatedLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginIsolatedLevelResult**](MarginIsolatedLevelResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginIsolatedLevelResult - -`func NewApiResponseResultOfListOfMarginIsolatedLevelResult() *ApiResponseResultOfListOfMarginIsolatedLevelResult` - -NewApiResponseResultOfListOfMarginIsolatedLevelResult instantiates a new ApiResponseResultOfListOfMarginIsolatedLevelResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginIsolatedLevelResultWithDefaults - -`func NewApiResponseResultOfListOfMarginIsolatedLevelResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedLevelResult` - -NewApiResponseResultOfListOfMarginIsolatedLevelResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedLevelResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetData() []MarginIsolatedLevelResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetDataOk() (*[]MarginIsolatedLevelResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetData(v []MarginIsolatedLevelResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md deleted file mode 100644 index b8140db2..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginIsolatedRateAndLimitResult**](MarginIsolatedRateAndLimitResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -`func NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResult() *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult` - -NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResult instantiates a new ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResultWithDefaults - -`func NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult` - -NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetData() []MarginIsolatedRateAndLimitResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetDataOk() (*[]MarginIsolatedRateAndLimitResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetData(v []MarginIsolatedRateAndLimitResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md deleted file mode 100644 index 2996b0df..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfMarginSystemResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]MarginSystemResult**](MarginSystemResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfMarginSystemResult - -`func NewApiResponseResultOfListOfMarginSystemResult() *ApiResponseResultOfListOfMarginSystemResult` - -NewApiResponseResultOfListOfMarginSystemResult instantiates a new ApiResponseResultOfListOfMarginSystemResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfMarginSystemResultWithDefaults - -`func NewApiResponseResultOfListOfMarginSystemResultWithDefaults() *ApiResponseResultOfListOfMarginSystemResult` - -NewApiResponseResultOfListOfMarginSystemResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginSystemResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfMarginSystemResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfMarginSystemResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetData() []MarginSystemResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetDataOk() (*[]MarginSystemResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfMarginSystemResult) SetData(v []MarginSystemResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfMarginSystemResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfMarginSystemResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfMarginSystemResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfMarginSystemResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfMarginSystemResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfMarginSystemResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfSpotInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfSpotInfoResult.md deleted file mode 100644 index 466238f1..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfSpotInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfSpotInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]SpotInfoResult**](SpotInfoResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfSpotInfoResult - -`func NewApiResponseResultOfListOfSpotInfoResult() *ApiResponseResultOfListOfSpotInfoResult` - -NewApiResponseResultOfListOfSpotInfoResult instantiates a new ApiResponseResultOfListOfSpotInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfSpotInfoResultWithDefaults - -`func NewApiResponseResultOfListOfSpotInfoResultWithDefaults() *ApiResponseResultOfListOfSpotInfoResult` - -NewApiResponseResultOfListOfSpotInfoResultWithDefaults instantiates a new ApiResponseResultOfListOfSpotInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfSpotInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfSpotInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetData() []SpotInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetDataOk() (*[]SpotInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfSpotInfoResult) SetData(v []SpotInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfSpotInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfSpotInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfSpotInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfSpotInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfSpotInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfSpotInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfTraderTotalProfitListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfTraderTotalProfitListResult.md deleted file mode 100644 index 84102bd2..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfListOfTraderTotalProfitListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfListOfTraderTotalProfitListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**[]TraderTotalProfitListResult**](TraderTotalProfitListResult.md) | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfListOfTraderTotalProfitListResult - -`func NewApiResponseResultOfListOfTraderTotalProfitListResult() *ApiResponseResultOfListOfTraderTotalProfitListResult` - -NewApiResponseResultOfListOfTraderTotalProfitListResult instantiates a new ApiResponseResultOfListOfTraderTotalProfitListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfListOfTraderTotalProfitListResultWithDefaults - -`func NewApiResponseResultOfListOfTraderTotalProfitListResultWithDefaults() *ApiResponseResultOfListOfTraderTotalProfitListResult` - -NewApiResponseResultOfListOfTraderTotalProfitListResultWithDefaults instantiates a new ApiResponseResultOfListOfTraderTotalProfitListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetData() []TraderTotalProfitListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetDataOk() (*[]TraderTotalProfitListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetData(v []TraderTotalProfitListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md deleted file mode 100644 index 3d68d652..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginBatchCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginBatchCancelOrderResult**](MarginBatchCancelOrderResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginBatchCancelOrderResult - -`func NewApiResponseResultOfMarginBatchCancelOrderResult() *ApiResponseResultOfMarginBatchCancelOrderResult` - -NewApiResponseResultOfMarginBatchCancelOrderResult instantiates a new ApiResponseResultOfMarginBatchCancelOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginBatchCancelOrderResultWithDefaults - -`func NewApiResponseResultOfMarginBatchCancelOrderResultWithDefaults() *ApiResponseResultOfMarginBatchCancelOrderResult` - -NewApiResponseResultOfMarginBatchCancelOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginBatchCancelOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetData() MarginBatchCancelOrderResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetDataOk() (*MarginBatchCancelOrderResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetData(v MarginBatchCancelOrderResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md deleted file mode 100644 index 5272be21..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginBatchPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginBatchPlaceOrderResult**](MarginBatchPlaceOrderResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginBatchPlaceOrderResult - -`func NewApiResponseResultOfMarginBatchPlaceOrderResult() *ApiResponseResultOfMarginBatchPlaceOrderResult` - -NewApiResponseResultOfMarginBatchPlaceOrderResult instantiates a new ApiResponseResultOfMarginBatchPlaceOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginBatchPlaceOrderResultWithDefaults - -`func NewApiResponseResultOfMarginBatchPlaceOrderResultWithDefaults() *ApiResponseResultOfMarginBatchPlaceOrderResult` - -NewApiResponseResultOfMarginBatchPlaceOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginBatchPlaceOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetData() MarginBatchPlaceOrderResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetDataOk() (*MarginBatchPlaceOrderResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetData(v MarginBatchPlaceOrderResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md deleted file mode 100644 index ed894313..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossAssetsResult**](MarginCrossAssetsResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossAssetsResult - -`func NewApiResponseResultOfMarginCrossAssetsResult() *ApiResponseResultOfMarginCrossAssetsResult` - -NewApiResponseResultOfMarginCrossAssetsResult instantiates a new ApiResponseResultOfMarginCrossAssetsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossAssetsResultWithDefaults - -`func NewApiResponseResultOfMarginCrossAssetsResultWithDefaults() *ApiResponseResultOfMarginCrossAssetsResult` - -NewApiResponseResultOfMarginCrossAssetsResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossAssetsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetData() MarginCrossAssetsResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetDataOk() (*MarginCrossAssetsResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) SetData(v MarginCrossAssetsResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md deleted file mode 100644 index 5ea028d4..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossAssetsRiskResult**](MarginCrossAssetsRiskResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossAssetsRiskResult - -`func NewApiResponseResultOfMarginCrossAssetsRiskResult() *ApiResponseResultOfMarginCrossAssetsRiskResult` - -NewApiResponseResultOfMarginCrossAssetsRiskResult instantiates a new ApiResponseResultOfMarginCrossAssetsRiskResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossAssetsRiskResultWithDefaults - -`func NewApiResponseResultOfMarginCrossAssetsRiskResultWithDefaults() *ApiResponseResultOfMarginCrossAssetsRiskResult` - -NewApiResponseResultOfMarginCrossAssetsRiskResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossAssetsRiskResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetData() MarginCrossAssetsRiskResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetDataOk() (*MarginCrossAssetsRiskResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetData(v MarginCrossAssetsRiskResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md deleted file mode 100644 index 7992d84a..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossBorrowLimitResult**](MarginCrossBorrowLimitResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossBorrowLimitResult - -`func NewApiResponseResultOfMarginCrossBorrowLimitResult() *ApiResponseResultOfMarginCrossBorrowLimitResult` - -NewApiResponseResultOfMarginCrossBorrowLimitResult instantiates a new ApiResponseResultOfMarginCrossBorrowLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossBorrowLimitResultWithDefaults - -`func NewApiResponseResultOfMarginCrossBorrowLimitResultWithDefaults() *ApiResponseResultOfMarginCrossBorrowLimitResult` - -NewApiResponseResultOfMarginCrossBorrowLimitResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossBorrowLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetData() MarginCrossBorrowLimitResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetDataOk() (*MarginCrossBorrowLimitResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetData(v MarginCrossBorrowLimitResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md deleted file mode 100644 index b9e9f08e..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossFinFlowResult**](MarginCrossFinFlowResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossFinFlowResult - -`func NewApiResponseResultOfMarginCrossFinFlowResult() *ApiResponseResultOfMarginCrossFinFlowResult` - -NewApiResponseResultOfMarginCrossFinFlowResult instantiates a new ApiResponseResultOfMarginCrossFinFlowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossFinFlowResultWithDefaults - -`func NewApiResponseResultOfMarginCrossFinFlowResultWithDefaults() *ApiResponseResultOfMarginCrossFinFlowResult` - -NewApiResponseResultOfMarginCrossFinFlowResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossFinFlowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetData() MarginCrossFinFlowResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetDataOk() (*MarginCrossFinFlowResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetData(v MarginCrossFinFlowResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md deleted file mode 100644 index 6f22c74a..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossMaxBorrowResult**](MarginCrossMaxBorrowResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossMaxBorrowResult - -`func NewApiResponseResultOfMarginCrossMaxBorrowResult() *ApiResponseResultOfMarginCrossMaxBorrowResult` - -NewApiResponseResultOfMarginCrossMaxBorrowResult instantiates a new ApiResponseResultOfMarginCrossMaxBorrowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossMaxBorrowResultWithDefaults - -`func NewApiResponseResultOfMarginCrossMaxBorrowResultWithDefaults() *ApiResponseResultOfMarginCrossMaxBorrowResult` - -NewApiResponseResultOfMarginCrossMaxBorrowResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossMaxBorrowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetData() MarginCrossMaxBorrowResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetDataOk() (*MarginCrossMaxBorrowResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetData(v MarginCrossMaxBorrowResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md deleted file mode 100644 index e097757c..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginCrossRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginCrossRepayResult**](MarginCrossRepayResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginCrossRepayResult - -`func NewApiResponseResultOfMarginCrossRepayResult() *ApiResponseResultOfMarginCrossRepayResult` - -NewApiResponseResultOfMarginCrossRepayResult instantiates a new ApiResponseResultOfMarginCrossRepayResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginCrossRepayResultWithDefaults - -`func NewApiResponseResultOfMarginCrossRepayResultWithDefaults() *ApiResponseResultOfMarginCrossRepayResult` - -NewApiResponseResultOfMarginCrossRepayResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossRepayResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginCrossRepayResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginCrossRepayResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetData() MarginCrossRepayResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetDataOk() (*MarginCrossRepayResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginCrossRepayResult) SetData(v MarginCrossRepayResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginCrossRepayResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginCrossRepayResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginCrossRepayResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginCrossRepayResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginCrossRepayResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginCrossRepayResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md deleted file mode 100644 index 24463192..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginInterestInfoResult**](MarginInterestInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginInterestInfoResult - -`func NewApiResponseResultOfMarginInterestInfoResult() *ApiResponseResultOfMarginInterestInfoResult` - -NewApiResponseResultOfMarginInterestInfoResult instantiates a new ApiResponseResultOfMarginInterestInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginInterestInfoResultWithDefaults - -`func NewApiResponseResultOfMarginInterestInfoResultWithDefaults() *ApiResponseResultOfMarginInterestInfoResult` - -NewApiResponseResultOfMarginInterestInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginInterestInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginInterestInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginInterestInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetData() MarginInterestInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetDataOk() (*MarginInterestInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginInterestInfoResult) SetData(v MarginInterestInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginInterestInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginInterestInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginInterestInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginInterestInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginInterestInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginInterestInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md deleted file mode 100644 index 177b0872..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedAssetsResult**](MarginIsolatedAssetsResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedAssetsResult - -`func NewApiResponseResultOfMarginIsolatedAssetsResult() *ApiResponseResultOfMarginIsolatedAssetsResult` - -NewApiResponseResultOfMarginIsolatedAssetsResult instantiates a new ApiResponseResultOfMarginIsolatedAssetsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedAssetsResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedAssetsResultWithDefaults() *ApiResponseResultOfMarginIsolatedAssetsResult` - -NewApiResponseResultOfMarginIsolatedAssetsResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedAssetsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetData() MarginIsolatedAssetsResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetDataOk() (*MarginIsolatedAssetsResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetData(v MarginIsolatedAssetsResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md deleted file mode 100644 index f5dfaa4a..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedBorrowLimitResult**](MarginIsolatedBorrowLimitResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedBorrowLimitResult - -`func NewApiResponseResultOfMarginIsolatedBorrowLimitResult() *ApiResponseResultOfMarginIsolatedBorrowLimitResult` - -NewApiResponseResultOfMarginIsolatedBorrowLimitResult instantiates a new ApiResponseResultOfMarginIsolatedBorrowLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedBorrowLimitResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedBorrowLimitResultWithDefaults() *ApiResponseResultOfMarginIsolatedBorrowLimitResult` - -NewApiResponseResultOfMarginIsolatedBorrowLimitResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedBorrowLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetData() MarginIsolatedBorrowLimitResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetDataOk() (*MarginIsolatedBorrowLimitResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetData(v MarginIsolatedBorrowLimitResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md deleted file mode 100644 index caa9f1a6..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedFinFlowResult**](MarginIsolatedFinFlowResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedFinFlowResult - -`func NewApiResponseResultOfMarginIsolatedFinFlowResult() *ApiResponseResultOfMarginIsolatedFinFlowResult` - -NewApiResponseResultOfMarginIsolatedFinFlowResult instantiates a new ApiResponseResultOfMarginIsolatedFinFlowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedFinFlowResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedFinFlowResultWithDefaults() *ApiResponseResultOfMarginIsolatedFinFlowResult` - -NewApiResponseResultOfMarginIsolatedFinFlowResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedFinFlowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetData() MarginIsolatedFinFlowResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetDataOk() (*MarginIsolatedFinFlowResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetData(v MarginIsolatedFinFlowResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md deleted file mode 100644 index 061ae66b..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedInterestInfoResult**](MarginIsolatedInterestInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedInterestInfoResult - -`func NewApiResponseResultOfMarginIsolatedInterestInfoResult() *ApiResponseResultOfMarginIsolatedInterestInfoResult` - -NewApiResponseResultOfMarginIsolatedInterestInfoResult instantiates a new ApiResponseResultOfMarginIsolatedInterestInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedInterestInfoResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedInterestInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedInterestInfoResult` - -NewApiResponseResultOfMarginIsolatedInterestInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedInterestInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetData() MarginIsolatedInterestInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetDataOk() (*MarginIsolatedInterestInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetData(v MarginIsolatedInterestInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index 8421e6e9..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedLiquidationInfoResult**](MarginIsolatedLiquidationInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedLiquidationInfoResult - -`func NewApiResponseResultOfMarginIsolatedLiquidationInfoResult() *ApiResponseResultOfMarginIsolatedLiquidationInfoResult` - -NewApiResponseResultOfMarginIsolatedLiquidationInfoResult instantiates a new ApiResponseResultOfMarginIsolatedLiquidationInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedLiquidationInfoResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedLiquidationInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedLiquidationInfoResult` - -NewApiResponseResultOfMarginIsolatedLiquidationInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedLiquidationInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetData() MarginIsolatedLiquidationInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetDataOk() (*MarginIsolatedLiquidationInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetData(v MarginIsolatedLiquidationInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md deleted file mode 100644 index f369d542..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedLoanInfoResult**](MarginIsolatedLoanInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedLoanInfoResult - -`func NewApiResponseResultOfMarginIsolatedLoanInfoResult() *ApiResponseResultOfMarginIsolatedLoanInfoResult` - -NewApiResponseResultOfMarginIsolatedLoanInfoResult instantiates a new ApiResponseResultOfMarginIsolatedLoanInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedLoanInfoResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedLoanInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedLoanInfoResult` - -NewApiResponseResultOfMarginIsolatedLoanInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedLoanInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetData() MarginIsolatedLoanInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetDataOk() (*MarginIsolatedLoanInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetData(v MarginIsolatedLoanInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 60d4fc73..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedMaxBorrowResult**](MarginIsolatedMaxBorrowResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedMaxBorrowResult - -`func NewApiResponseResultOfMarginIsolatedMaxBorrowResult() *ApiResponseResultOfMarginIsolatedMaxBorrowResult` - -NewApiResponseResultOfMarginIsolatedMaxBorrowResult instantiates a new ApiResponseResultOfMarginIsolatedMaxBorrowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedMaxBorrowResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedMaxBorrowResultWithDefaults() *ApiResponseResultOfMarginIsolatedMaxBorrowResult` - -NewApiResponseResultOfMarginIsolatedMaxBorrowResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedMaxBorrowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetData() MarginIsolatedMaxBorrowResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetDataOk() (*MarginIsolatedMaxBorrowResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetData(v MarginIsolatedMaxBorrowResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md deleted file mode 100644 index c84e963c..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedRepayInfoResult**](MarginIsolatedRepayInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedRepayInfoResult - -`func NewApiResponseResultOfMarginIsolatedRepayInfoResult() *ApiResponseResultOfMarginIsolatedRepayInfoResult` - -NewApiResponseResultOfMarginIsolatedRepayInfoResult instantiates a new ApiResponseResultOfMarginIsolatedRepayInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedRepayInfoResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedRepayInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedRepayInfoResult` - -NewApiResponseResultOfMarginIsolatedRepayInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedRepayInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetData() MarginIsolatedRepayInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetDataOk() (*MarginIsolatedRepayInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetData(v MarginIsolatedRepayInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md deleted file mode 100644 index 45506fdd..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginIsolatedRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginIsolatedRepayResult**](MarginIsolatedRepayResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginIsolatedRepayResult - -`func NewApiResponseResultOfMarginIsolatedRepayResult() *ApiResponseResultOfMarginIsolatedRepayResult` - -NewApiResponseResultOfMarginIsolatedRepayResult instantiates a new ApiResponseResultOfMarginIsolatedRepayResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginIsolatedRepayResultWithDefaults - -`func NewApiResponseResultOfMarginIsolatedRepayResultWithDefaults() *ApiResponseResultOfMarginIsolatedRepayResult` - -NewApiResponseResultOfMarginIsolatedRepayResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedRepayResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetData() MarginIsolatedRepayResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetDataOk() (*MarginIsolatedRepayResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetData(v MarginIsolatedRepayResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md deleted file mode 100644 index 2cab760b..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginLiquidationInfoResult**](MarginLiquidationInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginLiquidationInfoResult - -`func NewApiResponseResultOfMarginLiquidationInfoResult() *ApiResponseResultOfMarginLiquidationInfoResult` - -NewApiResponseResultOfMarginLiquidationInfoResult instantiates a new ApiResponseResultOfMarginLiquidationInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginLiquidationInfoResultWithDefaults - -`func NewApiResponseResultOfMarginLiquidationInfoResultWithDefaults() *ApiResponseResultOfMarginLiquidationInfoResult` - -NewApiResponseResultOfMarginLiquidationInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginLiquidationInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetData() MarginLiquidationInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetDataOk() (*MarginLiquidationInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetData(v MarginLiquidationInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md deleted file mode 100644 index ab4a0870..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginLoanInfoResult**](MarginLoanInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginLoanInfoResult - -`func NewApiResponseResultOfMarginLoanInfoResult() *ApiResponseResultOfMarginLoanInfoResult` - -NewApiResponseResultOfMarginLoanInfoResult instantiates a new ApiResponseResultOfMarginLoanInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginLoanInfoResultWithDefaults - -`func NewApiResponseResultOfMarginLoanInfoResultWithDefaults() *ApiResponseResultOfMarginLoanInfoResult` - -NewApiResponseResultOfMarginLoanInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginLoanInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginLoanInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginLoanInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetData() MarginLoanInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetDataOk() (*MarginLoanInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginLoanInfoResult) SetData(v MarginLoanInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginLoanInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginLoanInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginLoanInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginLoanInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginLoanInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginLoanInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md deleted file mode 100644 index 487f565c..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginOpenOrderInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginOpenOrderInfoResult**](MarginOpenOrderInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginOpenOrderInfoResult - -`func NewApiResponseResultOfMarginOpenOrderInfoResult() *ApiResponseResultOfMarginOpenOrderInfoResult` - -NewApiResponseResultOfMarginOpenOrderInfoResult instantiates a new ApiResponseResultOfMarginOpenOrderInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginOpenOrderInfoResultWithDefaults - -`func NewApiResponseResultOfMarginOpenOrderInfoResultWithDefaults() *ApiResponseResultOfMarginOpenOrderInfoResult` - -NewApiResponseResultOfMarginOpenOrderInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginOpenOrderInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetData() MarginOpenOrderInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetDataOk() (*MarginOpenOrderInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetData(v MarginOpenOrderInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md deleted file mode 100644 index 958274c4..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginPlaceOrderResult**](MarginPlaceOrderResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginPlaceOrderResult - -`func NewApiResponseResultOfMarginPlaceOrderResult() *ApiResponseResultOfMarginPlaceOrderResult` - -NewApiResponseResultOfMarginPlaceOrderResult instantiates a new ApiResponseResultOfMarginPlaceOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginPlaceOrderResultWithDefaults - -`func NewApiResponseResultOfMarginPlaceOrderResultWithDefaults() *ApiResponseResultOfMarginPlaceOrderResult` - -NewApiResponseResultOfMarginPlaceOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginPlaceOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetData() MarginPlaceOrderResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetDataOk() (*MarginPlaceOrderResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) SetData(v MarginPlaceOrderResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginPlaceOrderResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md deleted file mode 100644 index 94e242ad..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginRepayInfoResult**](MarginRepayInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginRepayInfoResult - -`func NewApiResponseResultOfMarginRepayInfoResult() *ApiResponseResultOfMarginRepayInfoResult` - -NewApiResponseResultOfMarginRepayInfoResult instantiates a new ApiResponseResultOfMarginRepayInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginRepayInfoResultWithDefaults - -`func NewApiResponseResultOfMarginRepayInfoResultWithDefaults() *ApiResponseResultOfMarginRepayInfoResult` - -NewApiResponseResultOfMarginRepayInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginRepayInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginRepayInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginRepayInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetData() MarginRepayInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetDataOk() (*MarginRepayInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginRepayInfoResult) SetData(v MarginRepayInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginRepayInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginRepayInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginRepayInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginRepayInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginRepayInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginRepayInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md deleted file mode 100644 index 3bfe6223..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMarginTradeDetailInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MarginTradeDetailInfoResult**](MarginTradeDetailInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMarginTradeDetailInfoResult - -`func NewApiResponseResultOfMarginTradeDetailInfoResult() *ApiResponseResultOfMarginTradeDetailInfoResult` - -NewApiResponseResultOfMarginTradeDetailInfoResult instantiates a new ApiResponseResultOfMarginTradeDetailInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMarginTradeDetailInfoResultWithDefaults - -`func NewApiResponseResultOfMarginTradeDetailInfoResultWithDefaults() *ApiResponseResultOfMarginTradeDetailInfoResult` - -NewApiResponseResultOfMarginTradeDetailInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginTradeDetailInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetData() MarginTradeDetailInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetDataOk() (*MarginTradeDetailInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetData(v MarginTradeDetailInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md deleted file mode 100644 index 77bfe58d..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMerchantAdvResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MerchantAdvResult**](MerchantAdvResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMerchantAdvResult - -`func NewApiResponseResultOfMerchantAdvResult() *ApiResponseResultOfMerchantAdvResult` - -NewApiResponseResultOfMerchantAdvResult instantiates a new ApiResponseResultOfMerchantAdvResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMerchantAdvResultWithDefaults - -`func NewApiResponseResultOfMerchantAdvResultWithDefaults() *ApiResponseResultOfMerchantAdvResult` - -NewApiResponseResultOfMerchantAdvResultWithDefaults instantiates a new ApiResponseResultOfMerchantAdvResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMerchantAdvResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMerchantAdvResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMerchantAdvResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMerchantAdvResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMerchantAdvResult) GetData() MerchantAdvResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMerchantAdvResult) GetDataOk() (*MerchantAdvResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMerchantAdvResult) SetData(v MerchantAdvResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMerchantAdvResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMerchantAdvResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMerchantAdvResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMerchantAdvResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMerchantAdvResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMerchantAdvResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMerchantAdvResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMerchantAdvResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMerchantAdvResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md deleted file mode 100644 index a668b691..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMerchantInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MerchantInfoResult**](MerchantInfoResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMerchantInfoResult - -`func NewApiResponseResultOfMerchantInfoResult() *ApiResponseResultOfMerchantInfoResult` - -NewApiResponseResultOfMerchantInfoResult instantiates a new ApiResponseResultOfMerchantInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMerchantInfoResultWithDefaults - -`func NewApiResponseResultOfMerchantInfoResultWithDefaults() *ApiResponseResultOfMerchantInfoResult` - -NewApiResponseResultOfMerchantInfoResultWithDefaults instantiates a new ApiResponseResultOfMerchantInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMerchantInfoResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMerchantInfoResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMerchantInfoResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMerchantInfoResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMerchantInfoResult) GetData() MerchantInfoResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMerchantInfoResult) GetDataOk() (*MerchantInfoResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMerchantInfoResult) SetData(v MerchantInfoResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMerchantInfoResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMerchantInfoResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMerchantInfoResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMerchantInfoResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMerchantInfoResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMerchantInfoResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMerchantInfoResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMerchantInfoResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMerchantInfoResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md deleted file mode 100644 index 0a499f3a..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMerchantOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MerchantOrderResult**](MerchantOrderResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMerchantOrderResult - -`func NewApiResponseResultOfMerchantOrderResult() *ApiResponseResultOfMerchantOrderResult` - -NewApiResponseResultOfMerchantOrderResult instantiates a new ApiResponseResultOfMerchantOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMerchantOrderResultWithDefaults - -`func NewApiResponseResultOfMerchantOrderResultWithDefaults() *ApiResponseResultOfMerchantOrderResult` - -NewApiResponseResultOfMerchantOrderResultWithDefaults instantiates a new ApiResponseResultOfMerchantOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMerchantOrderResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMerchantOrderResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMerchantOrderResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMerchantOrderResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMerchantOrderResult) GetData() MerchantOrderResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMerchantOrderResult) GetDataOk() (*MerchantOrderResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMerchantOrderResult) SetData(v MerchantOrderResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMerchantOrderResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMerchantOrderResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMerchantOrderResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMerchantOrderResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMerchantOrderResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMerchantOrderResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMerchantOrderResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMerchantOrderResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMerchantOrderResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md deleted file mode 100644 index cf9b6a6c..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMerchantPersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MerchantPersonInfo**](MerchantPersonInfo.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMerchantPersonInfo - -`func NewApiResponseResultOfMerchantPersonInfo() *ApiResponseResultOfMerchantPersonInfo` - -NewApiResponseResultOfMerchantPersonInfo instantiates a new ApiResponseResultOfMerchantPersonInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMerchantPersonInfoWithDefaults - -`func NewApiResponseResultOfMerchantPersonInfoWithDefaults() *ApiResponseResultOfMerchantPersonInfo` - -NewApiResponseResultOfMerchantPersonInfoWithDefaults instantiates a new ApiResponseResultOfMerchantPersonInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMerchantPersonInfo) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMerchantPersonInfo) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetData() MerchantPersonInfo` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetDataOk() (*MerchantPersonInfo, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMerchantPersonInfo) SetData(v MerchantPersonInfo)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMerchantPersonInfo) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMerchantPersonInfo) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMerchantPersonInfo) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMerchantPersonInfo) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMerchantPersonInfo) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMerchantPersonInfo) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTracersResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTracersResult.md deleted file mode 100644 index 551a26d5..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTracersResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMyTracersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MyTracersResult**](MyTracersResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMyTracersResult - -`func NewApiResponseResultOfMyTracersResult() *ApiResponseResultOfMyTracersResult` - -NewApiResponseResultOfMyTracersResult instantiates a new ApiResponseResultOfMyTracersResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMyTracersResultWithDefaults - -`func NewApiResponseResultOfMyTracersResultWithDefaults() *ApiResponseResultOfMyTracersResult` - -NewApiResponseResultOfMyTracersResultWithDefaults instantiates a new ApiResponseResultOfMyTracersResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMyTracersResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMyTracersResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMyTracersResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMyTracersResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMyTracersResult) GetData() MyTracersResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMyTracersResult) GetDataOk() (*MyTracersResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMyTracersResult) SetData(v MyTracersResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMyTracersResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMyTracersResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMyTracersResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMyTracersResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMyTracersResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMyTracersResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMyTracersResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMyTracersResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMyTracersResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTradersResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTradersResult.md deleted file mode 100644 index 4dc57f9d..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfMyTradersResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfMyTradersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**MyTradersResult**](MyTradersResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfMyTradersResult - -`func NewApiResponseResultOfMyTradersResult() *ApiResponseResultOfMyTradersResult` - -NewApiResponseResultOfMyTradersResult instantiates a new ApiResponseResultOfMyTradersResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfMyTradersResultWithDefaults - -`func NewApiResponseResultOfMyTradersResultWithDefaults() *ApiResponseResultOfMyTradersResult` - -NewApiResponseResultOfMyTradersResultWithDefaults instantiates a new ApiResponseResultOfMyTradersResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfMyTradersResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfMyTradersResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfMyTradersResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfMyTradersResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfMyTradersResult) GetData() MyTradersResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfMyTradersResult) GetDataOk() (*MyTradersResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfMyTradersResult) SetData(v MyTradersResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfMyTradersResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfMyTradersResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfMyTradersResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfMyTradersResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfMyTradersResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfMyTradersResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfMyTradersResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfMyTradersResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfMyTradersResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderCurrentListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderCurrentListResult.md deleted file mode 100644 index 854fa84b..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderCurrentListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfOrderCurrentListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**OrderCurrentListResult**](OrderCurrentListResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfOrderCurrentListResult - -`func NewApiResponseResultOfOrderCurrentListResult() *ApiResponseResultOfOrderCurrentListResult` - -NewApiResponseResultOfOrderCurrentListResult instantiates a new ApiResponseResultOfOrderCurrentListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfOrderCurrentListResultWithDefaults - -`func NewApiResponseResultOfOrderCurrentListResultWithDefaults() *ApiResponseResultOfOrderCurrentListResult` - -NewApiResponseResultOfOrderCurrentListResultWithDefaults instantiates a new ApiResponseResultOfOrderCurrentListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfOrderCurrentListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfOrderCurrentListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetData() OrderCurrentListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetDataOk() (*OrderCurrentListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfOrderCurrentListResult) SetData(v OrderCurrentListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfOrderCurrentListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfOrderCurrentListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfOrderCurrentListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfOrderCurrentListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfOrderCurrentListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfOrderCurrentListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderHistoryListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderHistoryListResult.md deleted file mode 100644 index 8d42563c..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfOrderHistoryListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfOrderHistoryListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**OrderHistoryListResult**](OrderHistoryListResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfOrderHistoryListResult - -`func NewApiResponseResultOfOrderHistoryListResult() *ApiResponseResultOfOrderHistoryListResult` - -NewApiResponseResultOfOrderHistoryListResult instantiates a new ApiResponseResultOfOrderHistoryListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfOrderHistoryListResultWithDefaults - -`func NewApiResponseResultOfOrderHistoryListResultWithDefaults() *ApiResponseResultOfOrderHistoryListResult` - -NewApiResponseResultOfOrderHistoryListResultWithDefaults instantiates a new ApiResponseResultOfOrderHistoryListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfOrderHistoryListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfOrderHistoryListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetData() OrderHistoryListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetDataOk() (*OrderHistoryListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfOrderHistoryListResult) SetData(v OrderHistoryListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfOrderHistoryListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfOrderHistoryListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfOrderHistoryListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfOrderHistoryListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfOrderHistoryListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfOrderHistoryListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraceSettingResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraceSettingResult.md deleted file mode 100644 index 47060441..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraceSettingResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraceSettingResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraceSettingResult**](TraceSettingResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraceSettingResult - -`func NewApiResponseResultOfTraceSettingResult() *ApiResponseResultOfTraceSettingResult` - -NewApiResponseResultOfTraceSettingResult instantiates a new ApiResponseResultOfTraceSettingResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraceSettingResultWithDefaults - -`func NewApiResponseResultOfTraceSettingResultWithDefaults() *ApiResponseResultOfTraceSettingResult` - -NewApiResponseResultOfTraceSettingResultWithDefaults instantiates a new ApiResponseResultOfTraceSettingResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraceSettingResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraceSettingResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraceSettingResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraceSettingResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraceSettingResult) GetData() TraceSettingResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraceSettingResult) GetDataOk() (*TraceSettingResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraceSettingResult) SetData(v TraceSettingResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraceSettingResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraceSettingResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraceSettingResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraceSettingResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraceSettingResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraceSettingResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraceSettingResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraceSettingResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraceSettingResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisDetailListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisDetailListResult.md deleted file mode 100644 index d8fa5f66..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisDetailListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraderProfitHisDetailListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraderProfitHisDetailListResult**](TraderProfitHisDetailListResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraderProfitHisDetailListResult - -`func NewApiResponseResultOfTraderProfitHisDetailListResult() *ApiResponseResultOfTraderProfitHisDetailListResult` - -NewApiResponseResultOfTraderProfitHisDetailListResult instantiates a new ApiResponseResultOfTraderProfitHisDetailListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraderProfitHisDetailListResultWithDefaults - -`func NewApiResponseResultOfTraderProfitHisDetailListResultWithDefaults() *ApiResponseResultOfTraderProfitHisDetailListResult` - -NewApiResponseResultOfTraderProfitHisDetailListResultWithDefaults instantiates a new ApiResponseResultOfTraderProfitHisDetailListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetData() TraderProfitHisDetailListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetDataOk() (*TraderProfitHisDetailListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetData(v TraderProfitHisDetailListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisListResult.md deleted file mode 100644 index 22936ba9..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderProfitHisListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraderProfitHisListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraderProfitHisListResult**](TraderProfitHisListResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraderProfitHisListResult - -`func NewApiResponseResultOfTraderProfitHisListResult() *ApiResponseResultOfTraderProfitHisListResult` - -NewApiResponseResultOfTraderProfitHisListResult instantiates a new ApiResponseResultOfTraderProfitHisListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraderProfitHisListResultWithDefaults - -`func NewApiResponseResultOfTraderProfitHisListResultWithDefaults() *ApiResponseResultOfTraderProfitHisListResult` - -NewApiResponseResultOfTraderProfitHisListResultWithDefaults instantiates a new ApiResponseResultOfTraderProfitHisListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraderProfitHisListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraderProfitHisListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetData() TraderProfitHisListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetDataOk() (*TraderProfitHisListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraderProfitHisListResult) SetData(v TraderProfitHisListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraderProfitHisListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraderProfitHisListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraderProfitHisListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraderProfitHisListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraderProfitHisListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderSettingResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderSettingResult.md deleted file mode 100644 index 559997fb..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderSettingResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraderSettingResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraderSettingResult**](TraderSettingResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraderSettingResult - -`func NewApiResponseResultOfTraderSettingResult() *ApiResponseResultOfTraderSettingResult` - -NewApiResponseResultOfTraderSettingResult instantiates a new ApiResponseResultOfTraderSettingResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraderSettingResultWithDefaults - -`func NewApiResponseResultOfTraderSettingResultWithDefaults() *ApiResponseResultOfTraderSettingResult` - -NewApiResponseResultOfTraderSettingResultWithDefaults instantiates a new ApiResponseResultOfTraderSettingResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraderSettingResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraderSettingResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraderSettingResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraderSettingResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraderSettingResult) GetData() TraderSettingResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraderSettingResult) GetDataOk() (*TraderSettingResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraderSettingResult) SetData(v TraderSettingResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraderSettingResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraderSettingResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraderSettingResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraderSettingResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraderSettingResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraderSettingResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraderSettingResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraderSettingResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraderSettingResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderTotalProfitResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderTotalProfitResult.md deleted file mode 100644 index 75e3eb21..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderTotalProfitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraderTotalProfitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraderTotalProfitResult**](TraderTotalProfitResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraderTotalProfitResult - -`func NewApiResponseResultOfTraderTotalProfitResult() *ApiResponseResultOfTraderTotalProfitResult` - -NewApiResponseResultOfTraderTotalProfitResult instantiates a new ApiResponseResultOfTraderTotalProfitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraderTotalProfitResultWithDefaults - -`func NewApiResponseResultOfTraderTotalProfitResultWithDefaults() *ApiResponseResultOfTraderTotalProfitResult` - -NewApiResponseResultOfTraderTotalProfitResultWithDefaults instantiates a new ApiResponseResultOfTraderTotalProfitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraderTotalProfitResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraderTotalProfitResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetData() TraderTotalProfitResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetDataOk() (*TraderTotalProfitResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraderTotalProfitResult) SetData(v TraderTotalProfitResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraderTotalProfitResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraderTotalProfitResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraderTotalProfitResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraderTotalProfitResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraderTotalProfitResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraderTotalProfitResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderWaitProfitDetailListResult.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderWaitProfitDetailListResult.md deleted file mode 100644 index 3beda7ea..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfTraderWaitProfitDetailListResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfTraderWaitProfitDetailListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to [**TraderWaitProfitDetailListResult**](TraderWaitProfitDetailListResult.md) | | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfTraderWaitProfitDetailListResult - -`func NewApiResponseResultOfTraderWaitProfitDetailListResult() *ApiResponseResultOfTraderWaitProfitDetailListResult` - -NewApiResponseResultOfTraderWaitProfitDetailListResult instantiates a new ApiResponseResultOfTraderWaitProfitDetailListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfTraderWaitProfitDetailListResultWithDefaults - -`func NewApiResponseResultOfTraderWaitProfitDetailListResultWithDefaults() *ApiResponseResultOfTraderWaitProfitDetailListResult` - -NewApiResponseResultOfTraderWaitProfitDetailListResultWithDefaults instantiates a new ApiResponseResultOfTraderWaitProfitDetailListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetData() TraderWaitProfitDetailListResult` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetDataOk() (*TraderWaitProfitDetailListResult, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetData(v TraderWaitProfitDetailListResult)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfVoid.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfVoid.md deleted file mode 100644 index 8fc07ff2..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfVoid.md +++ /dev/null @@ -1,108 +0,0 @@ -# ApiResponseResultOfVoid - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfVoid - -`func NewApiResponseResultOfVoid() *ApiResponseResultOfVoid` - -NewApiResponseResultOfVoid instantiates a new ApiResponseResultOfVoid object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfVoidWithDefaults - -`func NewApiResponseResultOfVoidWithDefaults() *ApiResponseResultOfVoid` - -NewApiResponseResultOfVoidWithDefaults instantiates a new ApiResponseResultOfVoid object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfVoid) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfVoid) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfVoid) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfVoid) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfVoid) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfVoid) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfVoid) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfVoid) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfVoid) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfVoid) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfVoid) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfVoid) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfboolean.md b/bitget-goland-sdk-open-api/docs/ApiResponseResultOfboolean.md deleted file mode 100644 index d8b95644..00000000 --- a/bitget-goland-sdk-open-api/docs/ApiResponseResultOfboolean.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiResponseResultOfboolean - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | Pointer to **string** | code | [optional] -**Data** | Pointer to **bool** | data | [optional] -**Msg** | Pointer to **string** | msg | [optional] -**RequestTime** | Pointer to **int64** | requestTime | [optional] - -## Methods - -### NewApiResponseResultOfboolean - -`func NewApiResponseResultOfboolean() *ApiResponseResultOfboolean` - -NewApiResponseResultOfboolean instantiates a new ApiResponseResultOfboolean object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewApiResponseResultOfbooleanWithDefaults - -`func NewApiResponseResultOfbooleanWithDefaults() *ApiResponseResultOfboolean` - -NewApiResponseResultOfbooleanWithDefaults instantiates a new ApiResponseResultOfboolean object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCode - -`func (o *ApiResponseResultOfboolean) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ApiResponseResultOfboolean) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ApiResponseResultOfboolean) SetCode(v string)` - -SetCode sets Code field to given value. - -### HasCode - -`func (o *ApiResponseResultOfboolean) HasCode() bool` - -HasCode returns a boolean if a field has been set. - -### GetData - -`func (o *ApiResponseResultOfboolean) GetData() bool` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ApiResponseResultOfboolean) GetDataOk() (*bool, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ApiResponseResultOfboolean) SetData(v bool)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ApiResponseResultOfboolean) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetMsg - -`func (o *ApiResponseResultOfboolean) GetMsg() string` - -GetMsg returns the Msg field if non-nil, zero value otherwise. - -### GetMsgOk - -`func (o *ApiResponseResultOfboolean) GetMsgOk() (*string, bool)` - -GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMsg - -`func (o *ApiResponseResultOfboolean) SetMsg(v string)` - -SetMsg sets Msg field to given value. - -### HasMsg - -`func (o *ApiResponseResultOfboolean) HasMsg() bool` - -HasMsg returns a boolean if a field has been set. - -### GetRequestTime - -`func (o *ApiResponseResultOfboolean) GetRequestTime() int64` - -GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. - -### GetRequestTimeOk - -`func (o *ApiResponseResultOfboolean) GetRequestTimeOk() (*int64, bool)` - -GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequestTime - -`func (o *ApiResponseResultOfboolean) SetRequestTime(v int64)` - -SetRequestTime sets RequestTime field to given value. - -### HasRequestTime - -`func (o *ApiResponseResultOfboolean) HasRequestTime() bool` - -HasRequestTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/CloseTrackingOrderRequest.md b/bitget-goland-sdk-open-api/docs/CloseTrackingOrderRequest.md deleted file mode 100644 index ca4d2cad..00000000 --- a/bitget-goland-sdk-open-api/docs/CloseTrackingOrderRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# CloseTrackingOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SymbolId** | **string** | symbolId | -**TrackingOrderNos** | **[]string** | trackingOrderNos | - -## Methods - -### NewCloseTrackingOrderRequest - -`func NewCloseTrackingOrderRequest(symbolId string, trackingOrderNos []string, ) *CloseTrackingOrderRequest` - -NewCloseTrackingOrderRequest instantiates a new CloseTrackingOrderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCloseTrackingOrderRequestWithDefaults - -`func NewCloseTrackingOrderRequestWithDefaults() *CloseTrackingOrderRequest` - -NewCloseTrackingOrderRequestWithDefaults instantiates a new CloseTrackingOrderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSymbolId - -`func (o *CloseTrackingOrderRequest) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *CloseTrackingOrderRequest) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *CloseTrackingOrderRequest) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - - -### GetTrackingOrderNos - -`func (o *CloseTrackingOrderRequest) GetTrackingOrderNos() []string` - -GetTrackingOrderNos returns the TrackingOrderNos field if non-nil, zero value otherwise. - -### GetTrackingOrderNosOk - -`func (o *CloseTrackingOrderRequest) GetTrackingOrderNosOk() (*[]string, bool)` - -GetTrackingOrderNosOk returns a tuple with the TrackingOrderNos field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingOrderNos - -`func (o *CloseTrackingOrderRequest) SetTrackingOrderNos(v []string)` - -SetTrackingOrderNos sets TrackingOrderNos field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/CurrentOrderListRequest.md b/bitget-goland-sdk-open-api/docs/CurrentOrderListRequest.md deleted file mode 100644 index 03702f3b..00000000 --- a/bitget-goland-sdk-open-api/docs/CurrentOrderListRequest.md +++ /dev/null @@ -1,108 +0,0 @@ -# CurrentOrderListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MixId** | Pointer to **string** | mixId | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] -**TrackingNo** | Pointer to **string** | trackingNo | [optional] - -## Methods - -### NewCurrentOrderListRequest - -`func NewCurrentOrderListRequest() *CurrentOrderListRequest` - -NewCurrentOrderListRequest instantiates a new CurrentOrderListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCurrentOrderListRequestWithDefaults - -`func NewCurrentOrderListRequestWithDefaults() *CurrentOrderListRequest` - -NewCurrentOrderListRequestWithDefaults instantiates a new CurrentOrderListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMixId - -`func (o *CurrentOrderListRequest) GetMixId() string` - -GetMixId returns the MixId field if non-nil, zero value otherwise. - -### GetMixIdOk - -`func (o *CurrentOrderListRequest) GetMixIdOk() (*string, bool)` - -GetMixIdOk returns a tuple with the MixId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMixId - -`func (o *CurrentOrderListRequest) SetMixId(v string)` - -SetMixId sets MixId field to given value. - -### HasMixId - -`func (o *CurrentOrderListRequest) HasMixId() bool` - -HasMixId returns a boolean if a field has been set. - -### GetPageSize - -`func (o *CurrentOrderListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *CurrentOrderListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *CurrentOrderListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *CurrentOrderListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetTrackingNo - -`func (o *CurrentOrderListRequest) GetTrackingNo() string` - -GetTrackingNo returns the TrackingNo field if non-nil, zero value otherwise. - -### GetTrackingNoOk - -`func (o *CurrentOrderListRequest) GetTrackingNoOk() (*string, bool)` - -GetTrackingNoOk returns a tuple with the TrackingNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingNo - -`func (o *CurrentOrderListRequest) SetTrackingNo(v string)` - -SetTrackingNo sets TrackingNo field to given value. - -### HasTrackingNo - -`func (o *CurrentOrderListRequest) HasTrackingNo() bool` - -HasTrackingNo returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/EndOrderRequest.md b/bitget-goland-sdk-open-api/docs/EndOrderRequest.md deleted file mode 100644 index 4840a70e..00000000 --- a/bitget-goland-sdk-open-api/docs/EndOrderRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# EndOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TrackingOrderNos** | **[]string** | trackingOrderNos | - -## Methods - -### NewEndOrderRequest - -`func NewEndOrderRequest(trackingOrderNos []string, ) *EndOrderRequest` - -NewEndOrderRequest instantiates a new EndOrderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewEndOrderRequestWithDefaults - -`func NewEndOrderRequestWithDefaults() *EndOrderRequest` - -NewEndOrderRequestWithDefaults instantiates a new EndOrderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTrackingOrderNos - -`func (o *EndOrderRequest) GetTrackingOrderNos() []string` - -GetTrackingOrderNos returns the TrackingOrderNos field if non-nil, zero value otherwise. - -### GetTrackingOrderNosOk - -`func (o *EndOrderRequest) GetTrackingOrderNosOk() (*[]string, bool)` - -GetTrackingOrderNosOk returns a tuple with the TrackingOrderNos field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingOrderNos - -`func (o *EndOrderRequest) SetTrackingOrderNos(v []string)` - -SetTrackingOrderNos sets TrackingOrderNos field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/FiatPaymentDetailInfo.md b/bitget-goland-sdk-open-api/docs/FiatPaymentDetailInfo.md deleted file mode 100644 index 95e96187..00000000 --- a/bitget-goland-sdk-open-api/docs/FiatPaymentDetailInfo.md +++ /dev/null @@ -1,108 +0,0 @@ -# FiatPaymentDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewFiatPaymentDetailInfo - -`func NewFiatPaymentDetailInfo() *FiatPaymentDetailInfo` - -NewFiatPaymentDetailInfo instantiates a new FiatPaymentDetailInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFiatPaymentDetailInfoWithDefaults - -`func NewFiatPaymentDetailInfoWithDefaults() *FiatPaymentDetailInfo` - -NewFiatPaymentDetailInfoWithDefaults instantiates a new FiatPaymentDetailInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *FiatPaymentDetailInfo) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *FiatPaymentDetailInfo) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *FiatPaymentDetailInfo) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *FiatPaymentDetailInfo) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetRequired - -`func (o *FiatPaymentDetailInfo) GetRequired() bool` - -GetRequired returns the Required field if non-nil, zero value otherwise. - -### GetRequiredOk - -`func (o *FiatPaymentDetailInfo) GetRequiredOk() (*bool, bool)` - -GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequired - -`func (o *FiatPaymentDetailInfo) SetRequired(v bool)` - -SetRequired sets Required field to given value. - -### HasRequired - -`func (o *FiatPaymentDetailInfo) HasRequired() bool` - -HasRequired returns a boolean if a field has been set. - -### GetType - -`func (o *FiatPaymentDetailInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *FiatPaymentDetailInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *FiatPaymentDetailInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *FiatPaymentDetailInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/FiatPaymentInfo.md b/bitget-goland-sdk-open-api/docs/FiatPaymentInfo.md deleted file mode 100644 index 435b9943..00000000 --- a/bitget-goland-sdk-open-api/docs/FiatPaymentInfo.md +++ /dev/null @@ -1,108 +0,0 @@ -# FiatPaymentInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PaymentId** | Pointer to **string** | | [optional] -**PaymentInfo** | Pointer to [**[]FiatPaymentDetailInfo**](FiatPaymentDetailInfo.md) | | [optional] -**PaymentMethod** | Pointer to **string** | | [optional] - -## Methods - -### NewFiatPaymentInfo - -`func NewFiatPaymentInfo() *FiatPaymentInfo` - -NewFiatPaymentInfo instantiates a new FiatPaymentInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFiatPaymentInfoWithDefaults - -`func NewFiatPaymentInfoWithDefaults() *FiatPaymentInfo` - -NewFiatPaymentInfoWithDefaults instantiates a new FiatPaymentInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPaymentId - -`func (o *FiatPaymentInfo) GetPaymentId() string` - -GetPaymentId returns the PaymentId field if non-nil, zero value otherwise. - -### GetPaymentIdOk - -`func (o *FiatPaymentInfo) GetPaymentIdOk() (*string, bool)` - -GetPaymentIdOk returns a tuple with the PaymentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentId - -`func (o *FiatPaymentInfo) SetPaymentId(v string)` - -SetPaymentId sets PaymentId field to given value. - -### HasPaymentId - -`func (o *FiatPaymentInfo) HasPaymentId() bool` - -HasPaymentId returns a boolean if a field has been set. - -### GetPaymentInfo - -`func (o *FiatPaymentInfo) GetPaymentInfo() []FiatPaymentDetailInfo` - -GetPaymentInfo returns the PaymentInfo field if non-nil, zero value otherwise. - -### GetPaymentInfoOk - -`func (o *FiatPaymentInfo) GetPaymentInfoOk() (*[]FiatPaymentDetailInfo, bool)` - -GetPaymentInfoOk returns a tuple with the PaymentInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentInfo - -`func (o *FiatPaymentInfo) SetPaymentInfo(v []FiatPaymentDetailInfo)` - -SetPaymentInfo sets PaymentInfo field to given value. - -### HasPaymentInfo - -`func (o *FiatPaymentInfo) HasPaymentInfo() bool` - -HasPaymentInfo returns a boolean if a field has been set. - -### GetPaymentMethod - -`func (o *FiatPaymentInfo) GetPaymentMethod() string` - -GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. - -### GetPaymentMethodOk - -`func (o *FiatPaymentInfo) GetPaymentMethodOk() (*string, bool)` - -GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentMethod - -`func (o *FiatPaymentInfo) SetPaymentMethod(v string)` - -SetPaymentMethod sets PaymentMethod field to given value. - -### HasPaymentMethod - -`func (o *FiatPaymentInfo) HasPaymentMethod() bool` - -HasPaymentMethod returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/HistoryOrderListRequest.md b/bitget-goland-sdk-open-api/docs/HistoryOrderListRequest.md deleted file mode 100644 index ab1cf391..00000000 --- a/bitget-goland-sdk-open-api/docs/HistoryOrderListRequest.md +++ /dev/null @@ -1,108 +0,0 @@ -# HistoryOrderListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MixId** | Pointer to **string** | mixId | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] -**TrackingNo** | Pointer to **string** | trackingNo | [optional] - -## Methods - -### NewHistoryOrderListRequest - -`func NewHistoryOrderListRequest() *HistoryOrderListRequest` - -NewHistoryOrderListRequest instantiates a new HistoryOrderListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHistoryOrderListRequestWithDefaults - -`func NewHistoryOrderListRequestWithDefaults() *HistoryOrderListRequest` - -NewHistoryOrderListRequestWithDefaults instantiates a new HistoryOrderListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMixId - -`func (o *HistoryOrderListRequest) GetMixId() string` - -GetMixId returns the MixId field if non-nil, zero value otherwise. - -### GetMixIdOk - -`func (o *HistoryOrderListRequest) GetMixIdOk() (*string, bool)` - -GetMixIdOk returns a tuple with the MixId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMixId - -`func (o *HistoryOrderListRequest) SetMixId(v string)` - -SetMixId sets MixId field to given value. - -### HasMixId - -`func (o *HistoryOrderListRequest) HasMixId() bool` - -HasMixId returns a boolean if a field has been set. - -### GetPageSize - -`func (o *HistoryOrderListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *HistoryOrderListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *HistoryOrderListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *HistoryOrderListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetTrackingNo - -`func (o *HistoryOrderListRequest) GetTrackingNo() string` - -GetTrackingNo returns the TrackingNo field if non-nil, zero value otherwise. - -### GetTrackingNoOk - -`func (o *HistoryOrderListRequest) GetTrackingNoOk() (*string, bool)` - -GetTrackingNoOk returns a tuple with the TrackingNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingNo - -`func (o *HistoryOrderListRequest) SetTrackingNo(v string)` - -SetTrackingNo sets TrackingNo field to given value. - -### HasTrackingNo - -`func (o *HistoryOrderListRequest) HasTrackingNo() bool` - -HasTrackingNo returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderRequest.md b/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderRequest.md deleted file mode 100644 index ac9d20ce..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderRequest.md +++ /dev/null @@ -1,103 +0,0 @@ -# MarginBatchCancelOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOids** | Pointer to **[]string** | clientOids | [optional] -**OrderIds** | Pointer to **[]string** | orderIds | [optional] -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginBatchCancelOrderRequest - -`func NewMarginBatchCancelOrderRequest(symbol string, ) *MarginBatchCancelOrderRequest` - -NewMarginBatchCancelOrderRequest instantiates a new MarginBatchCancelOrderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginBatchCancelOrderRequestWithDefaults - -`func NewMarginBatchCancelOrderRequestWithDefaults() *MarginBatchCancelOrderRequest` - -NewMarginBatchCancelOrderRequestWithDefaults instantiates a new MarginBatchCancelOrderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOids - -`func (o *MarginBatchCancelOrderRequest) GetClientOids() []string` - -GetClientOids returns the ClientOids field if non-nil, zero value otherwise. - -### GetClientOidsOk - -`func (o *MarginBatchCancelOrderRequest) GetClientOidsOk() (*[]string, bool)` - -GetClientOidsOk returns a tuple with the ClientOids field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOids - -`func (o *MarginBatchCancelOrderRequest) SetClientOids(v []string)` - -SetClientOids sets ClientOids field to given value. - -### HasClientOids - -`func (o *MarginBatchCancelOrderRequest) HasClientOids() bool` - -HasClientOids returns a boolean if a field has been set. - -### GetOrderIds - -`func (o *MarginBatchCancelOrderRequest) GetOrderIds() []string` - -GetOrderIds returns the OrderIds field if non-nil, zero value otherwise. - -### GetOrderIdsOk - -`func (o *MarginBatchCancelOrderRequest) GetOrderIdsOk() (*[]string, bool)` - -GetOrderIdsOk returns a tuple with the OrderIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderIds - -`func (o *MarginBatchCancelOrderRequest) SetOrderIds(v []string)` - -SetOrderIds sets OrderIds field to given value. - -### HasOrderIds - -`func (o *MarginBatchCancelOrderRequest) HasOrderIds() bool` - -HasOrderIds returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginBatchCancelOrderRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginBatchCancelOrderRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginBatchCancelOrderRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderResult.md b/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderResult.md deleted file mode 100644 index 1c3357f4..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginBatchCancelOrderResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginBatchCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Failure** | Pointer to [**[]MarginCancelOrderFailureResult**](MarginCancelOrderFailureResult.md) | | [optional] -**ResultList** | Pointer to [**[]MarginCancelOrderResult**](MarginCancelOrderResult.md) | | [optional] - -## Methods - -### NewMarginBatchCancelOrderResult - -`func NewMarginBatchCancelOrderResult() *MarginBatchCancelOrderResult` - -NewMarginBatchCancelOrderResult instantiates a new MarginBatchCancelOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginBatchCancelOrderResultWithDefaults - -`func NewMarginBatchCancelOrderResultWithDefaults() *MarginBatchCancelOrderResult` - -NewMarginBatchCancelOrderResultWithDefaults instantiates a new MarginBatchCancelOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFailure - -`func (o *MarginBatchCancelOrderResult) GetFailure() []MarginCancelOrderFailureResult` - -GetFailure returns the Failure field if non-nil, zero value otherwise. - -### GetFailureOk - -`func (o *MarginBatchCancelOrderResult) GetFailureOk() (*[]MarginCancelOrderFailureResult, bool)` - -GetFailureOk returns a tuple with the Failure field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailure - -`func (o *MarginBatchCancelOrderResult) SetFailure(v []MarginCancelOrderFailureResult)` - -SetFailure sets Failure field to given value. - -### HasFailure - -`func (o *MarginBatchCancelOrderResult) HasFailure() bool` - -HasFailure returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginBatchCancelOrderResult) GetResultList() []MarginCancelOrderResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginBatchCancelOrderResult) GetResultListOk() (*[]MarginCancelOrderResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginBatchCancelOrderResult) SetResultList(v []MarginCancelOrderResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginBatchCancelOrderResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginBatchOrdersRequest.md b/bitget-goland-sdk-open-api/docs/MarginBatchOrdersRequest.md deleted file mode 100644 index ab1811a3..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginBatchOrdersRequest.md +++ /dev/null @@ -1,129 +0,0 @@ -# MarginBatchOrdersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChannelApiCode** | Pointer to **string** | | [optional] -**Ip** | Pointer to **string** | | [optional] -**OrderList** | Pointer to [**[]MarginOrderRequest**](MarginOrderRequest.md) | | [optional] -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginBatchOrdersRequest - -`func NewMarginBatchOrdersRequest(symbol string, ) *MarginBatchOrdersRequest` - -NewMarginBatchOrdersRequest instantiates a new MarginBatchOrdersRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginBatchOrdersRequestWithDefaults - -`func NewMarginBatchOrdersRequestWithDefaults() *MarginBatchOrdersRequest` - -NewMarginBatchOrdersRequestWithDefaults instantiates a new MarginBatchOrdersRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetChannelApiCode - -`func (o *MarginBatchOrdersRequest) GetChannelApiCode() string` - -GetChannelApiCode returns the ChannelApiCode field if non-nil, zero value otherwise. - -### GetChannelApiCodeOk - -`func (o *MarginBatchOrdersRequest) GetChannelApiCodeOk() (*string, bool)` - -GetChannelApiCodeOk returns a tuple with the ChannelApiCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChannelApiCode - -`func (o *MarginBatchOrdersRequest) SetChannelApiCode(v string)` - -SetChannelApiCode sets ChannelApiCode field to given value. - -### HasChannelApiCode - -`func (o *MarginBatchOrdersRequest) HasChannelApiCode() bool` - -HasChannelApiCode returns a boolean if a field has been set. - -### GetIp - -`func (o *MarginBatchOrdersRequest) GetIp() string` - -GetIp returns the Ip field if non-nil, zero value otherwise. - -### GetIpOk - -`func (o *MarginBatchOrdersRequest) GetIpOk() (*string, bool)` - -GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIp - -`func (o *MarginBatchOrdersRequest) SetIp(v string)` - -SetIp sets Ip field to given value. - -### HasIp - -`func (o *MarginBatchOrdersRequest) HasIp() bool` - -HasIp returns a boolean if a field has been set. - -### GetOrderList - -`func (o *MarginBatchOrdersRequest) GetOrderList() []MarginOrderRequest` - -GetOrderList returns the OrderList field if non-nil, zero value otherwise. - -### GetOrderListOk - -`func (o *MarginBatchOrdersRequest) GetOrderListOk() (*[]MarginOrderRequest, bool)` - -GetOrderListOk returns a tuple with the OrderList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderList - -`func (o *MarginBatchOrdersRequest) SetOrderList(v []MarginOrderRequest)` - -SetOrderList sets OrderList field to given value. - -### HasOrderList - -`func (o *MarginBatchOrdersRequest) HasOrderList() bool` - -HasOrderList returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginBatchOrdersRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginBatchOrdersRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginBatchOrdersRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md b/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md deleted file mode 100644 index 46520abf..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginBatchPlaceOrderFailureResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**ErrorMsg** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginBatchPlaceOrderFailureResult - -`func NewMarginBatchPlaceOrderFailureResult() *MarginBatchPlaceOrderFailureResult` - -NewMarginBatchPlaceOrderFailureResult instantiates a new MarginBatchPlaceOrderFailureResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginBatchPlaceOrderFailureResultWithDefaults - -`func NewMarginBatchPlaceOrderFailureResultWithDefaults() *MarginBatchPlaceOrderFailureResult` - -NewMarginBatchPlaceOrderFailureResultWithDefaults instantiates a new MarginBatchPlaceOrderFailureResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginBatchPlaceOrderFailureResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginBatchPlaceOrderFailureResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginBatchPlaceOrderFailureResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginBatchPlaceOrderFailureResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetErrorMsg - -`func (o *MarginBatchPlaceOrderFailureResult) GetErrorMsg() string` - -GetErrorMsg returns the ErrorMsg field if non-nil, zero value otherwise. - -### GetErrorMsgOk - -`func (o *MarginBatchPlaceOrderFailureResult) GetErrorMsgOk() (*string, bool)` - -GetErrorMsgOk returns a tuple with the ErrorMsg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrorMsg - -`func (o *MarginBatchPlaceOrderFailureResult) SetErrorMsg(v string)` - -SetErrorMsg sets ErrorMsg field to given value. - -### HasErrorMsg - -`func (o *MarginBatchPlaceOrderFailureResult) HasErrorMsg() bool` - -HasErrorMsg returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderResult.md b/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderResult.md deleted file mode 100644 index d7169e68..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginBatchPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Failure** | Pointer to [**[]MarginBatchPlaceOrderFailureResult**](MarginBatchPlaceOrderFailureResult.md) | | [optional] -**ResultList** | Pointer to [**[]MarginCancelOrderResult**](MarginCancelOrderResult.md) | | [optional] - -## Methods - -### NewMarginBatchPlaceOrderResult - -`func NewMarginBatchPlaceOrderResult() *MarginBatchPlaceOrderResult` - -NewMarginBatchPlaceOrderResult instantiates a new MarginBatchPlaceOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginBatchPlaceOrderResultWithDefaults - -`func NewMarginBatchPlaceOrderResultWithDefaults() *MarginBatchPlaceOrderResult` - -NewMarginBatchPlaceOrderResultWithDefaults instantiates a new MarginBatchPlaceOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFailure - -`func (o *MarginBatchPlaceOrderResult) GetFailure() []MarginBatchPlaceOrderFailureResult` - -GetFailure returns the Failure field if non-nil, zero value otherwise. - -### GetFailureOk - -`func (o *MarginBatchPlaceOrderResult) GetFailureOk() (*[]MarginBatchPlaceOrderFailureResult, bool)` - -GetFailureOk returns a tuple with the Failure field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailure - -`func (o *MarginBatchPlaceOrderResult) SetFailure(v []MarginBatchPlaceOrderFailureResult)` - -SetFailure sets Failure field to given value. - -### HasFailure - -`func (o *MarginBatchPlaceOrderResult) HasFailure() bool` - -HasFailure returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginBatchPlaceOrderResult) GetResultList() []MarginCancelOrderResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginBatchPlaceOrderResult) GetResultListOk() (*[]MarginCancelOrderResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginBatchPlaceOrderResult) SetResultList(v []MarginCancelOrderResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginBatchPlaceOrderResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCancelOrderFailureResult.md b/bitget-goland-sdk-open-api/docs/MarginCancelOrderFailureResult.md deleted file mode 100644 index 22d2dbef..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCancelOrderFailureResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginCancelOrderFailureResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**ErrorMsg** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCancelOrderFailureResult - -`func NewMarginCancelOrderFailureResult() *MarginCancelOrderFailureResult` - -NewMarginCancelOrderFailureResult instantiates a new MarginCancelOrderFailureResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCancelOrderFailureResultWithDefaults - -`func NewMarginCancelOrderFailureResultWithDefaults() *MarginCancelOrderFailureResult` - -NewMarginCancelOrderFailureResultWithDefaults instantiates a new MarginCancelOrderFailureResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginCancelOrderFailureResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginCancelOrderFailureResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginCancelOrderFailureResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginCancelOrderFailureResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetErrorMsg - -`func (o *MarginCancelOrderFailureResult) GetErrorMsg() string` - -GetErrorMsg returns the ErrorMsg field if non-nil, zero value otherwise. - -### GetErrorMsgOk - -`func (o *MarginCancelOrderFailureResult) GetErrorMsgOk() (*string, bool)` - -GetErrorMsgOk returns a tuple with the ErrorMsg field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrorMsg - -`func (o *MarginCancelOrderFailureResult) SetErrorMsg(v string)` - -SetErrorMsg sets ErrorMsg field to given value. - -### HasErrorMsg - -`func (o *MarginCancelOrderFailureResult) HasErrorMsg() bool` - -HasErrorMsg returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginCancelOrderFailureResult) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginCancelOrderFailureResult) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginCancelOrderFailureResult) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginCancelOrderFailureResult) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCancelOrderRequest.md b/bitget-goland-sdk-open-api/docs/MarginCancelOrderRequest.md deleted file mode 100644 index 3b1f9a82..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCancelOrderRequest.md +++ /dev/null @@ -1,103 +0,0 @@ -# MarginCancelOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | clientOid | [optional] -**OrderId** | Pointer to **string** | orderId | [optional] -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginCancelOrderRequest - -`func NewMarginCancelOrderRequest(symbol string, ) *MarginCancelOrderRequest` - -NewMarginCancelOrderRequest instantiates a new MarginCancelOrderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCancelOrderRequestWithDefaults - -`func NewMarginCancelOrderRequestWithDefaults() *MarginCancelOrderRequest` - -NewMarginCancelOrderRequestWithDefaults instantiates a new MarginCancelOrderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginCancelOrderRequest) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginCancelOrderRequest) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginCancelOrderRequest) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginCancelOrderRequest) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginCancelOrderRequest) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginCancelOrderRequest) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginCancelOrderRequest) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginCancelOrderRequest) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginCancelOrderRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginCancelOrderRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginCancelOrderRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCancelOrderResult.md b/bitget-goland-sdk-open-api/docs/MarginCancelOrderResult.md deleted file mode 100644 index b3d0bd1a..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCancelOrderResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCancelOrderResult - -`func NewMarginCancelOrderResult() *MarginCancelOrderResult` - -NewMarginCancelOrderResult instantiates a new MarginCancelOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCancelOrderResultWithDefaults - -`func NewMarginCancelOrderResultWithDefaults() *MarginCancelOrderResult` - -NewMarginCancelOrderResultWithDefaults instantiates a new MarginCancelOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginCancelOrderResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginCancelOrderResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginCancelOrderResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginCancelOrderResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginCancelOrderResult) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginCancelOrderResult) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginCancelOrderResult) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginCancelOrderResult) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossAccountApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossAccountApi.md deleted file mode 100644 index 8990062d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossAccountApi.md +++ /dev/null @@ -1,467 +0,0 @@ -# \MarginCrossAccountApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginCrossAccountAssets**](MarginCrossAccountApi.md#MarginCrossAccountAssets) | **Get** /api/margin/v1/cross/account/assets | assets -[**MarginCrossAccountBorrow**](MarginCrossAccountApi.md#MarginCrossAccountBorrow) | **Post** /api/margin/v1/cross/account/borrow | borrow -[**MarginCrossAccountMaxBorrowableAmount**](MarginCrossAccountApi.md#MarginCrossAccountMaxBorrowableAmount) | **Post** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -[**MarginCrossAccountMaxTransferOutAmount**](MarginCrossAccountApi.md#MarginCrossAccountMaxTransferOutAmount) | **Get** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -[**MarginCrossAccountRepay**](MarginCrossAccountApi.md#MarginCrossAccountRepay) | **Post** /api/margin/v1/cross/account/repay | repay -[**MarginCrossAccountRiskRate**](MarginCrossAccountApi.md#MarginCrossAccountRiskRate) | **Get** /api/margin/v1/cross/account/riskRate | riskRate -[**Void**](MarginCrossAccountApi.md#Void) | **Get** /api/margin/v1/cross/account/void | void - - - -## MarginCrossAccountAssets - -> ApiResponseResultOfListOfMarginCrossAssetsPopulationResult MarginCrossAccountAssets(ctx).Coin(coin).Execute() - -assets - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - coin := "USDT" // string | coin - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountAssets(context.Background()).Coin(coin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountAssets``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountAssets`: ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountAssets`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountAssetsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **coin** | **string** | coin | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossAssetsPopulationResult**](ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossAccountBorrow - -> ApiResponseResultOfMarginCrossBorrowLimitResult MarginCrossAccountBorrow(ctx).MarginCrossLimitRequest(marginCrossLimitRequest).Execute() - -borrow - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginCrossLimitRequest := *openapiclient.NewMarginCrossLimitRequest("1.0", "USDT") // MarginCrossLimitRequest | marginCrossLimitRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountBorrow(context.Background()).MarginCrossLimitRequest(marginCrossLimitRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountBorrow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountBorrow`: ApiResponseResultOfMarginCrossBorrowLimitResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountBorrow`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountBorrowRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginCrossLimitRequest** | [**MarginCrossLimitRequest**](MarginCrossLimitRequest.md) | marginCrossLimitRequest | - -### Return type - -[**ApiResponseResultOfMarginCrossBorrowLimitResult**](ApiResponseResultOfMarginCrossBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossAccountMaxBorrowableAmount - -> ApiResponseResultOfMarginCrossMaxBorrowResult MarginCrossAccountMaxBorrowableAmount(ctx).MarginCrossMaxBorrowRequest(marginCrossMaxBorrowRequest).Execute() - -maxBorrowableAmount - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginCrossMaxBorrowRequest := *openapiclient.NewMarginCrossMaxBorrowRequest("USDT") // MarginCrossMaxBorrowRequest | marginCrossMaxBorrowRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountMaxBorrowableAmount(context.Background()).MarginCrossMaxBorrowRequest(marginCrossMaxBorrowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountMaxBorrowableAmount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountMaxBorrowableAmount`: ApiResponseResultOfMarginCrossMaxBorrowResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountMaxBorrowableAmount`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountMaxBorrowableAmountRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginCrossMaxBorrowRequest** | [**MarginCrossMaxBorrowRequest**](MarginCrossMaxBorrowRequest.md) | marginCrossMaxBorrowRequest | - -### Return type - -[**ApiResponseResultOfMarginCrossMaxBorrowResult**](ApiResponseResultOfMarginCrossMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossAccountMaxTransferOutAmount - -> ApiResponseResultOfMarginCrossAssetsResult MarginCrossAccountMaxTransferOutAmount(ctx).Coin(coin).Execute() - -maxTransferOutAmount - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - coin := "USDT" // string | coin - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountMaxTransferOutAmount(context.Background()).Coin(coin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountMaxTransferOutAmount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountMaxTransferOutAmount`: ApiResponseResultOfMarginCrossAssetsResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountMaxTransferOutAmount`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountMaxTransferOutAmountRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **coin** | **string** | coin | - -### Return type - -[**ApiResponseResultOfMarginCrossAssetsResult**](ApiResponseResultOfMarginCrossAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossAccountRepay - -> ApiResponseResultOfMarginCrossRepayResult MarginCrossAccountRepay(ctx).MarginCrossRepayRequest(marginCrossRepayRequest).Execute() - -repay - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginCrossRepayRequest := *openapiclient.NewMarginCrossRepayRequest("USDT", "1.0") // MarginCrossRepayRequest | marginCrossRepayRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountRepay(context.Background()).MarginCrossRepayRequest(marginCrossRepayRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountRepay``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountRepay`: ApiResponseResultOfMarginCrossRepayResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountRepay`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountRepayRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginCrossRepayRequest** | [**MarginCrossRepayRequest**](MarginCrossRepayRequest.md) | marginCrossRepayRequest | - -### Return type - -[**ApiResponseResultOfMarginCrossRepayResult**](ApiResponseResultOfMarginCrossRepayResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossAccountRiskRate - -> ApiResponseResultOfMarginCrossAssetsRiskResult MarginCrossAccountRiskRate(ctx).Execute() - -riskRate - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.MarginCrossAccountRiskRate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.MarginCrossAccountRiskRate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossAccountRiskRate`: ApiResponseResultOfMarginCrossAssetsRiskResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.MarginCrossAccountRiskRate`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossAccountRiskRateRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfMarginCrossAssetsRiskResult**](ApiResponseResultOfMarginCrossAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## Void - -> ApiResponseResultOfVoid Void(ctx).Execute() - -void - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossAccountApi.Void(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossAccountApi.Void``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Void`: ApiResponseResultOfVoid - fmt.Fprintf(os.Stdout, "Response from `MarginCrossAccountApi.Void`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiVoidRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfVoid**](ApiResponseResultOfVoid.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md deleted file mode 100644 index 6dd55618..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginCrossAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Available** | Pointer to **string** | | [optional] -**Borrow** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Frozen** | Pointer to **string** | | [optional] -**Interest** | Pointer to **string** | | [optional] -**Net** | Pointer to **string** | | [optional] -**TotalAmount** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossAssetsPopulationResult - -`func NewMarginCrossAssetsPopulationResult() *MarginCrossAssetsPopulationResult` - -NewMarginCrossAssetsPopulationResult instantiates a new MarginCrossAssetsPopulationResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossAssetsPopulationResultWithDefaults - -`func NewMarginCrossAssetsPopulationResultWithDefaults() *MarginCrossAssetsPopulationResult` - -NewMarginCrossAssetsPopulationResultWithDefaults instantiates a new MarginCrossAssetsPopulationResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAvailable - -`func (o *MarginCrossAssetsPopulationResult) GetAvailable() string` - -GetAvailable returns the Available field if non-nil, zero value otherwise. - -### GetAvailableOk - -`func (o *MarginCrossAssetsPopulationResult) GetAvailableOk() (*string, bool)` - -GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvailable - -`func (o *MarginCrossAssetsPopulationResult) SetAvailable(v string)` - -SetAvailable sets Available field to given value. - -### HasAvailable - -`func (o *MarginCrossAssetsPopulationResult) HasAvailable() bool` - -HasAvailable returns a boolean if a field has been set. - -### GetBorrow - -`func (o *MarginCrossAssetsPopulationResult) GetBorrow() string` - -GetBorrow returns the Borrow field if non-nil, zero value otherwise. - -### GetBorrowOk - -`func (o *MarginCrossAssetsPopulationResult) GetBorrowOk() (*string, bool)` - -GetBorrowOk returns a tuple with the Borrow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrow - -`func (o *MarginCrossAssetsPopulationResult) SetBorrow(v string)` - -SetBorrow sets Borrow field to given value. - -### HasBorrow - -`func (o *MarginCrossAssetsPopulationResult) HasBorrow() bool` - -HasBorrow returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginCrossAssetsPopulationResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossAssetsPopulationResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossAssetsPopulationResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossAssetsPopulationResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginCrossAssetsPopulationResult) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginCrossAssetsPopulationResult) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginCrossAssetsPopulationResult) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginCrossAssetsPopulationResult) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFrozen - -`func (o *MarginCrossAssetsPopulationResult) GetFrozen() string` - -GetFrozen returns the Frozen field if non-nil, zero value otherwise. - -### GetFrozenOk - -`func (o *MarginCrossAssetsPopulationResult) GetFrozenOk() (*string, bool)` - -GetFrozenOk returns a tuple with the Frozen field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrozen - -`func (o *MarginCrossAssetsPopulationResult) SetFrozen(v string)` - -SetFrozen sets Frozen field to given value. - -### HasFrozen - -`func (o *MarginCrossAssetsPopulationResult) HasFrozen() bool` - -HasFrozen returns a boolean if a field has been set. - -### GetInterest - -`func (o *MarginCrossAssetsPopulationResult) GetInterest() string` - -GetInterest returns the Interest field if non-nil, zero value otherwise. - -### GetInterestOk - -`func (o *MarginCrossAssetsPopulationResult) GetInterestOk() (*string, bool)` - -GetInterestOk returns a tuple with the Interest field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterest - -`func (o *MarginCrossAssetsPopulationResult) SetInterest(v string)` - -SetInterest sets Interest field to given value. - -### HasInterest - -`func (o *MarginCrossAssetsPopulationResult) HasInterest() bool` - -HasInterest returns a boolean if a field has been set. - -### GetNet - -`func (o *MarginCrossAssetsPopulationResult) GetNet() string` - -GetNet returns the Net field if non-nil, zero value otherwise. - -### GetNetOk - -`func (o *MarginCrossAssetsPopulationResult) GetNetOk() (*string, bool)` - -GetNetOk returns a tuple with the Net field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNet - -`func (o *MarginCrossAssetsPopulationResult) SetNet(v string)` - -SetNet sets Net field to given value. - -### HasNet - -`func (o *MarginCrossAssetsPopulationResult) HasNet() bool` - -HasNet returns a boolean if a field has been set. - -### GetTotalAmount - -`func (o *MarginCrossAssetsPopulationResult) GetTotalAmount() string` - -GetTotalAmount returns the TotalAmount field if non-nil, zero value otherwise. - -### GetTotalAmountOk - -`func (o *MarginCrossAssetsPopulationResult) GetTotalAmountOk() (*string, bool)` - -GetTotalAmountOk returns a tuple with the TotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAmount - -`func (o *MarginCrossAssetsPopulationResult) SetTotalAmount(v string)` - -SetTotalAmount sets TotalAmount field to given value. - -### HasTotalAmount - -`func (o *MarginCrossAssetsPopulationResult) HasTotalAmount() bool` - -HasTotalAmount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossAssetsResult.md deleted file mode 100644 index 849026f5..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginCrossAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | Pointer to **string** | | [optional] -**MaxTransferOutAmount** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossAssetsResult - -`func NewMarginCrossAssetsResult() *MarginCrossAssetsResult` - -NewMarginCrossAssetsResult instantiates a new MarginCrossAssetsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossAssetsResultWithDefaults - -`func NewMarginCrossAssetsResultWithDefaults() *MarginCrossAssetsResult` - -NewMarginCrossAssetsResultWithDefaults instantiates a new MarginCrossAssetsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginCrossAssetsResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossAssetsResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossAssetsResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossAssetsResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetMaxTransferOutAmount - -`func (o *MarginCrossAssetsResult) GetMaxTransferOutAmount() string` - -GetMaxTransferOutAmount returns the MaxTransferOutAmount field if non-nil, zero value otherwise. - -### GetMaxTransferOutAmountOk - -`func (o *MarginCrossAssetsResult) GetMaxTransferOutAmountOk() (*string, bool)` - -GetMaxTransferOutAmountOk returns a tuple with the MaxTransferOutAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTransferOutAmount - -`func (o *MarginCrossAssetsResult) SetMaxTransferOutAmount(v string)` - -SetMaxTransferOutAmount sets MaxTransferOutAmount field to given value. - -### HasMaxTransferOutAmount - -`func (o *MarginCrossAssetsResult) HasMaxTransferOutAmount() bool` - -HasMaxTransferOutAmount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsRiskResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossAssetsRiskResult.md deleted file mode 100644 index 7c0ba4f9..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,56 +0,0 @@ -# MarginCrossAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RiskRate** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossAssetsRiskResult - -`func NewMarginCrossAssetsRiskResult() *MarginCrossAssetsRiskResult` - -NewMarginCrossAssetsRiskResult instantiates a new MarginCrossAssetsRiskResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossAssetsRiskResultWithDefaults - -`func NewMarginCrossAssetsRiskResultWithDefaults() *MarginCrossAssetsRiskResult` - -NewMarginCrossAssetsRiskResultWithDefaults instantiates a new MarginCrossAssetsRiskResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRiskRate - -`func (o *MarginCrossAssetsRiskResult) GetRiskRate() string` - -GetRiskRate returns the RiskRate field if non-nil, zero value otherwise. - -### GetRiskRateOk - -`func (o *MarginCrossAssetsRiskResult) GetRiskRateOk() (*string, bool)` - -GetRiskRateOk returns a tuple with the RiskRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRiskRate - -`func (o *MarginCrossAssetsRiskResult) SetRiskRate(v string)` - -SetRiskRate sets RiskRate field to given value. - -### HasRiskRate - -`func (o *MarginCrossAssetsRiskResult) HasRiskRate() bool` - -HasRiskRate returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossBorrowApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossBorrowApi.md deleted file mode 100644 index e982bec4..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossBorrowApi.md +++ /dev/null @@ -1,85 +0,0 @@ -# \MarginCrossBorrowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CrossLoanList**](MarginCrossBorrowApi.md#CrossLoanList) | **Get** /api/margin/v1/cross/loan/list | list - - - -## CrossLoanList - -> ApiResponseResultOfMarginLoanInfoResult CrossLoanList(ctx).StartTime(startTime).Coin(coin).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - endTime := "1678193338000" // string | endTime (optional) - loanId := "loanId_example" // string | loanId (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "minId" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossBorrowApi.CrossLoanList(context.Background()).StartTime(startTime).Coin(coin).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossBorrowApi.CrossLoanList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CrossLoanList`: ApiResponseResultOfMarginLoanInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossBorrowApi.CrossLoanList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCrossLoanListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **endTime** | **string** | endTime | - **loanId** | **string** | loanId | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginLoanInfoResult**](ApiResponseResultOfMarginLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossBorrowLimitResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossBorrowLimitResult.md deleted file mode 100644 index 641fe687..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginCrossBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BorrowAmount** | Pointer to **string** | | [optional] -**ClientOid** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossBorrowLimitResult - -`func NewMarginCrossBorrowLimitResult() *MarginCrossBorrowLimitResult` - -NewMarginCrossBorrowLimitResult instantiates a new MarginCrossBorrowLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossBorrowLimitResultWithDefaults - -`func NewMarginCrossBorrowLimitResultWithDefaults() *MarginCrossBorrowLimitResult` - -NewMarginCrossBorrowLimitResultWithDefaults instantiates a new MarginCrossBorrowLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBorrowAmount - -`func (o *MarginCrossBorrowLimitResult) GetBorrowAmount() string` - -GetBorrowAmount returns the BorrowAmount field if non-nil, zero value otherwise. - -### GetBorrowAmountOk - -`func (o *MarginCrossBorrowLimitResult) GetBorrowAmountOk() (*string, bool)` - -GetBorrowAmountOk returns a tuple with the BorrowAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrowAmount - -`func (o *MarginCrossBorrowLimitResult) SetBorrowAmount(v string)` - -SetBorrowAmount sets BorrowAmount field to given value. - -### HasBorrowAmount - -`func (o *MarginCrossBorrowLimitResult) HasBorrowAmount() bool` - -HasBorrowAmount returns a boolean if a field has been set. - -### GetClientOid - -`func (o *MarginCrossBorrowLimitResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginCrossBorrowLimitResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginCrossBorrowLimitResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginCrossBorrowLimitResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginCrossBorrowLimitResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossBorrowLimitResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossBorrowLimitResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossBorrowLimitResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowInfo.md b/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowInfo.md deleted file mode 100644 index 2f4495f5..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowInfo.md +++ /dev/null @@ -1,212 +0,0 @@ -# MarginCrossFinFlowInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Balance** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Fee** | Pointer to **string** | | [optional] -**MarginId** | Pointer to **string** | | [optional] -**MarginType** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossFinFlowInfo - -`func NewMarginCrossFinFlowInfo() *MarginCrossFinFlowInfo` - -NewMarginCrossFinFlowInfo instantiates a new MarginCrossFinFlowInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossFinFlowInfoWithDefaults - -`func NewMarginCrossFinFlowInfoWithDefaults() *MarginCrossFinFlowInfo` - -NewMarginCrossFinFlowInfoWithDefaults instantiates a new MarginCrossFinFlowInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginCrossFinFlowInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginCrossFinFlowInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginCrossFinFlowInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginCrossFinFlowInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetBalance - -`func (o *MarginCrossFinFlowInfo) GetBalance() string` - -GetBalance returns the Balance field if non-nil, zero value otherwise. - -### GetBalanceOk - -`func (o *MarginCrossFinFlowInfo) GetBalanceOk() (*string, bool)` - -GetBalanceOk returns a tuple with the Balance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBalance - -`func (o *MarginCrossFinFlowInfo) SetBalance(v string)` - -SetBalance sets Balance field to given value. - -### HasBalance - -`func (o *MarginCrossFinFlowInfo) HasBalance() bool` - -HasBalance returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginCrossFinFlowInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossFinFlowInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossFinFlowInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossFinFlowInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginCrossFinFlowInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginCrossFinFlowInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginCrossFinFlowInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginCrossFinFlowInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFee - -`func (o *MarginCrossFinFlowInfo) GetFee() string` - -GetFee returns the Fee field if non-nil, zero value otherwise. - -### GetFeeOk - -`func (o *MarginCrossFinFlowInfo) GetFeeOk() (*string, bool)` - -GetFeeOk returns a tuple with the Fee field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFee - -`func (o *MarginCrossFinFlowInfo) SetFee(v string)` - -SetFee sets Fee field to given value. - -### HasFee - -`func (o *MarginCrossFinFlowInfo) HasFee() bool` - -HasFee returns a boolean if a field has been set. - -### GetMarginId - -`func (o *MarginCrossFinFlowInfo) GetMarginId() string` - -GetMarginId returns the MarginId field if non-nil, zero value otherwise. - -### GetMarginIdOk - -`func (o *MarginCrossFinFlowInfo) GetMarginIdOk() (*string, bool)` - -GetMarginIdOk returns a tuple with the MarginId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarginId - -`func (o *MarginCrossFinFlowInfo) SetMarginId(v string)` - -SetMarginId sets MarginId field to given value. - -### HasMarginId - -`func (o *MarginCrossFinFlowInfo) HasMarginId() bool` - -HasMarginId returns a boolean if a field has been set. - -### GetMarginType - -`func (o *MarginCrossFinFlowInfo) GetMarginType() string` - -GetMarginType returns the MarginType field if non-nil, zero value otherwise. - -### GetMarginTypeOk - -`func (o *MarginCrossFinFlowInfo) GetMarginTypeOk() (*string, bool)` - -GetMarginTypeOk returns a tuple with the MarginType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarginType - -`func (o *MarginCrossFinFlowInfo) SetMarginType(v string)` - -SetMarginType sets MarginType field to given value. - -### HasMarginType - -`func (o *MarginCrossFinFlowInfo) HasMarginType() bool` - -HasMarginType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowResult.md deleted file mode 100644 index 4efffe03..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossFinFlowResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginCrossFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginCrossFinFlowInfo**](MarginCrossFinFlowInfo.md) | | [optional] - -## Methods - -### NewMarginCrossFinFlowResult - -`func NewMarginCrossFinFlowResult() *MarginCrossFinFlowResult` - -NewMarginCrossFinFlowResult instantiates a new MarginCrossFinFlowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossFinFlowResultWithDefaults - -`func NewMarginCrossFinFlowResultWithDefaults() *MarginCrossFinFlowResult` - -NewMarginCrossFinFlowResultWithDefaults instantiates a new MarginCrossFinFlowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginCrossFinFlowResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginCrossFinFlowResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginCrossFinFlowResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginCrossFinFlowResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginCrossFinFlowResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginCrossFinFlowResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginCrossFinFlowResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginCrossFinFlowResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginCrossFinFlowResult) GetResultList() []MarginCrossFinFlowInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginCrossFinFlowResult) GetResultListOk() (*[]MarginCrossFinFlowInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginCrossFinFlowResult) SetResultList(v []MarginCrossFinFlowInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginCrossFinFlowResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossFinflowApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossFinflowApi.md deleted file mode 100644 index 30841c60..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossFinflowApi.md +++ /dev/null @@ -1,85 +0,0 @@ -# \MarginCrossFinflowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CrossFinList**](MarginCrossFinflowApi.md#CrossFinList) | **Get** /api/margin/v1/cross/fin/list | list - - - -## CrossFinList - -> ApiResponseResultOfMarginCrossFinFlowResult CrossFinList(ctx).StartTime(startTime).Coin(coin).EndTime(endTime).MarginType(marginType).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - endTime := "1678193338000" // string | endTime (optional) - marginType := "transfer_in" // string | marginType (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "minId" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossFinflowApi.CrossFinList(context.Background()).StartTime(startTime).Coin(coin).EndTime(endTime).MarginType(marginType).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossFinflowApi.CrossFinList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CrossFinList`: ApiResponseResultOfMarginCrossFinFlowResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossFinflowApi.CrossFinList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCrossFinListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **endTime** | **string** | endTime | - **marginType** | **string** | marginType | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginCrossFinFlowResult**](ApiResponseResultOfMarginCrossFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossInterestApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossInterestApi.md deleted file mode 100644 index 49d4bbe8..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossInterestApi.md +++ /dev/null @@ -1,81 +0,0 @@ -# \MarginCrossInterestApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CrossInterestList**](MarginCrossInterestApi.md#CrossInterestList) | **Get** /api/margin/v1/cross/interest/list | list - - - -## CrossInterestList - -> ApiResponseResultOfMarginInterestInfoResult CrossInterestList(ctx).StartTime(startTime).Coin(coin).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193138000" // string | startTime - coin := "USDT" // string | coin (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossInterestApi.CrossInterestList(context.Background()).StartTime(startTime).Coin(coin).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossInterestApi.CrossInterestList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CrossInterestList`: ApiResponseResultOfMarginInterestInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossInterestApi.CrossInterestList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCrossInterestListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginInterestInfoResult**](ApiResponseResultOfMarginInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossLevelResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossLevelResult.md deleted file mode 100644 index d80672fb..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossLevelResult.md +++ /dev/null @@ -1,160 +0,0 @@ -# MarginCrossLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | Pointer to **string** | | [optional] -**Leverage** | Pointer to **string** | | [optional] -**MaintainMarginRate** | Pointer to **string** | | [optional] -**MaxBorrowableAmount** | Pointer to **string** | | [optional] -**Tier** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossLevelResult - -`func NewMarginCrossLevelResult() *MarginCrossLevelResult` - -NewMarginCrossLevelResult instantiates a new MarginCrossLevelResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossLevelResultWithDefaults - -`func NewMarginCrossLevelResultWithDefaults() *MarginCrossLevelResult` - -NewMarginCrossLevelResultWithDefaults instantiates a new MarginCrossLevelResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginCrossLevelResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossLevelResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossLevelResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossLevelResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetLeverage - -`func (o *MarginCrossLevelResult) GetLeverage() string` - -GetLeverage returns the Leverage field if non-nil, zero value otherwise. - -### GetLeverageOk - -`func (o *MarginCrossLevelResult) GetLeverageOk() (*string, bool)` - -GetLeverageOk returns a tuple with the Leverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLeverage - -`func (o *MarginCrossLevelResult) SetLeverage(v string)` - -SetLeverage sets Leverage field to given value. - -### HasLeverage - -`func (o *MarginCrossLevelResult) HasLeverage() bool` - -HasLeverage returns a boolean if a field has been set. - -### GetMaintainMarginRate - -`func (o *MarginCrossLevelResult) GetMaintainMarginRate() string` - -GetMaintainMarginRate returns the MaintainMarginRate field if non-nil, zero value otherwise. - -### GetMaintainMarginRateOk - -`func (o *MarginCrossLevelResult) GetMaintainMarginRateOk() (*string, bool)` - -GetMaintainMarginRateOk returns a tuple with the MaintainMarginRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaintainMarginRate - -`func (o *MarginCrossLevelResult) SetMaintainMarginRate(v string)` - -SetMaintainMarginRate sets MaintainMarginRate field to given value. - -### HasMaintainMarginRate - -`func (o *MarginCrossLevelResult) HasMaintainMarginRate() bool` - -HasMaintainMarginRate returns a boolean if a field has been set. - -### GetMaxBorrowableAmount - -`func (o *MarginCrossLevelResult) GetMaxBorrowableAmount() string` - -GetMaxBorrowableAmount returns the MaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetMaxBorrowableAmountOk - -`func (o *MarginCrossLevelResult) GetMaxBorrowableAmountOk() (*string, bool)` - -GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxBorrowableAmount - -`func (o *MarginCrossLevelResult) SetMaxBorrowableAmount(v string)` - -SetMaxBorrowableAmount sets MaxBorrowableAmount field to given value. - -### HasMaxBorrowableAmount - -`func (o *MarginCrossLevelResult) HasMaxBorrowableAmount() bool` - -HasMaxBorrowableAmount returns a boolean if a field has been set. - -### GetTier - -`func (o *MarginCrossLevelResult) GetTier() string` - -GetTier returns the Tier field if non-nil, zero value otherwise. - -### GetTierOk - -`func (o *MarginCrossLevelResult) GetTierOk() (*string, bool)` - -GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTier - -`func (o *MarginCrossLevelResult) SetTier(v string)` - -SetTier sets Tier field to given value. - -### HasTier - -`func (o *MarginCrossLevelResult) HasTier() bool` - -HasTier returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossLimitRequest.md b/bitget-goland-sdk-open-api/docs/MarginCrossLimitRequest.md deleted file mode 100644 index 814551ba..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossLimitRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# MarginCrossLimitRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BorrowAmount** | **string** | borrowAmount | -**Coin** | **string** | coin | - -## Methods - -### NewMarginCrossLimitRequest - -`func NewMarginCrossLimitRequest(borrowAmount string, coin string, ) *MarginCrossLimitRequest` - -NewMarginCrossLimitRequest instantiates a new MarginCrossLimitRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossLimitRequestWithDefaults - -`func NewMarginCrossLimitRequestWithDefaults() *MarginCrossLimitRequest` - -NewMarginCrossLimitRequestWithDefaults instantiates a new MarginCrossLimitRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBorrowAmount - -`func (o *MarginCrossLimitRequest) GetBorrowAmount() string` - -GetBorrowAmount returns the BorrowAmount field if non-nil, zero value otherwise. - -### GetBorrowAmountOk - -`func (o *MarginCrossLimitRequest) GetBorrowAmountOk() (*string, bool)` - -GetBorrowAmountOk returns a tuple with the BorrowAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrowAmount - -`func (o *MarginCrossLimitRequest) SetBorrowAmount(v string)` - -SetBorrowAmount sets BorrowAmount field to given value. - - -### GetCoin - -`func (o *MarginCrossLimitRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossLimitRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossLimitRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossLiquidationApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossLiquidationApi.md deleted file mode 100644 index bba4089f..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossLiquidationApi.md +++ /dev/null @@ -1,81 +0,0 @@ -# \MarginCrossLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CrossLiquidationList**](MarginCrossLiquidationApi.md#CrossLiquidationList) | **Get** /api/margin/v1/cross/liquidation/list | list - - - -## CrossLiquidationList - -> ApiResponseResultOfMarginLiquidationInfoResult CrossLiquidationList(ctx).StartTime(startTime).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193138000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossLiquidationApi.CrossLiquidationList(context.Background()).StartTime(startTime).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossLiquidationApi.CrossLiquidationList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CrossLiquidationList`: ApiResponseResultOfMarginLiquidationInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossLiquidationApi.CrossLiquidationList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCrossLiquidationListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginLiquidationInfoResult**](ApiResponseResultOfMarginLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md b/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md deleted file mode 100644 index 619c40d2..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# MarginCrossMaxBorrowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | **string** | coin | - -## Methods - -### NewMarginCrossMaxBorrowRequest - -`func NewMarginCrossMaxBorrowRequest(coin string, ) *MarginCrossMaxBorrowRequest` - -NewMarginCrossMaxBorrowRequest instantiates a new MarginCrossMaxBorrowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossMaxBorrowRequestWithDefaults - -`func NewMarginCrossMaxBorrowRequestWithDefaults() *MarginCrossMaxBorrowRequest` - -NewMarginCrossMaxBorrowRequestWithDefaults instantiates a new MarginCrossMaxBorrowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginCrossMaxBorrowRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossMaxBorrowRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossMaxBorrowRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowResult.md deleted file mode 100644 index e05d7877..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginCrossMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | Pointer to **string** | | [optional] -**MaxBorrowableAmount** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossMaxBorrowResult - -`func NewMarginCrossMaxBorrowResult() *MarginCrossMaxBorrowResult` - -NewMarginCrossMaxBorrowResult instantiates a new MarginCrossMaxBorrowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossMaxBorrowResultWithDefaults - -`func NewMarginCrossMaxBorrowResultWithDefaults() *MarginCrossMaxBorrowResult` - -NewMarginCrossMaxBorrowResultWithDefaults instantiates a new MarginCrossMaxBorrowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginCrossMaxBorrowResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossMaxBorrowResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossMaxBorrowResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossMaxBorrowResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetMaxBorrowableAmount - -`func (o *MarginCrossMaxBorrowResult) GetMaxBorrowableAmount() string` - -GetMaxBorrowableAmount returns the MaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetMaxBorrowableAmountOk - -`func (o *MarginCrossMaxBorrowResult) GetMaxBorrowableAmountOk() (*string, bool)` - -GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxBorrowableAmount - -`func (o *MarginCrossMaxBorrowResult) SetMaxBorrowableAmount(v string)` - -SetMaxBorrowableAmount sets MaxBorrowableAmount field to given value. - -### HasMaxBorrowableAmount - -`func (o *MarginCrossMaxBorrowResult) HasMaxBorrowableAmount() bool` - -HasMaxBorrowableAmount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossOrderApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossOrderApi.md deleted file mode 100644 index c559a741..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossOrderApi.md +++ /dev/null @@ -1,513 +0,0 @@ -# \MarginCrossOrderApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginCrossBatchCancelOrder**](MarginCrossOrderApi.md#MarginCrossBatchCancelOrder) | **Post** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -[**MarginCrossBatchPlaceOrder**](MarginCrossOrderApi.md#MarginCrossBatchPlaceOrder) | **Post** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -[**MarginCrossCancelOrder**](MarginCrossOrderApi.md#MarginCrossCancelOrder) | **Post** /api/margin/v1/cross/order/cancelOrder | cancelOrder -[**MarginCrossFills**](MarginCrossOrderApi.md#MarginCrossFills) | **Get** /api/margin/v1/cross/order/fills | fills -[**MarginCrossHistoryOrders**](MarginCrossOrderApi.md#MarginCrossHistoryOrders) | **Get** /api/margin/v1/cross/order/history | history -[**MarginCrossOpenOrders**](MarginCrossOrderApi.md#MarginCrossOpenOrders) | **Get** /api/margin/v1/cross/order/openOrders | openOrders -[**MarginCrossPlaceOrder**](MarginCrossOrderApi.md#MarginCrossPlaceOrder) | **Post** /api/margin/v1/cross/order/placeOrder | placeOrder - - - -## MarginCrossBatchCancelOrder - -> ApiResponseResultOfMarginBatchCancelOrderResult MarginCrossBatchCancelOrder(ctx).MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest).Execute() - -batchCancelOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginBatchCancelOrderRequest := *openapiclient.NewMarginBatchCancelOrderRequest("BTCUSDT_SPBL") // MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossBatchCancelOrder(context.Background()).MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossBatchCancelOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossBatchCancelOrder`: ApiResponseResultOfMarginBatchCancelOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossBatchCancelOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossBatchCancelOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginBatchCancelOrderRequest** | [**MarginBatchCancelOrderRequest**](MarginBatchCancelOrderRequest.md) | marginBatchCancelOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossBatchPlaceOrder - -> ApiResponseResultOfMarginBatchPlaceOrderResult MarginCrossBatchPlaceOrder(ctx).MarginOrderRequest(marginOrderRequest).Execute() - -batchPlaceOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginOrderRequest := *openapiclient.NewMarginBatchOrdersRequest("BTCUSDT_SPBL") // MarginBatchOrdersRequest | marginOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossBatchPlaceOrder(context.Background()).MarginOrderRequest(marginOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossBatchPlaceOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossBatchPlaceOrder`: ApiResponseResultOfMarginBatchPlaceOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossBatchPlaceOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossBatchPlaceOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginOrderRequest** | [**MarginBatchOrdersRequest**](MarginBatchOrdersRequest.md) | marginOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossCancelOrder - -> ApiResponseResultOfMarginBatchCancelOrderResult MarginCrossCancelOrder(ctx).MarginCancelOrderRequest(marginCancelOrderRequest).Execute() - -cancelOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginCancelOrderRequest := *openapiclient.NewMarginCancelOrderRequest("BTCUSDT_SPBL") // MarginCancelOrderRequest | marginCancelOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossCancelOrder(context.Background()).MarginCancelOrderRequest(marginCancelOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossCancelOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossCancelOrder`: ApiResponseResultOfMarginBatchCancelOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossCancelOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossCancelOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginCancelOrderRequest** | [**MarginCancelOrderRequest**](MarginCancelOrderRequest.md) | marginCancelOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossFills - -> ApiResponseResultOfMarginTradeDetailInfoResult MarginCrossFills(ctx).Symbol(symbol).StartTime(startTime).Source(source).EndTime(endTime).OrderId(orderId).LastFillId(lastFillId).PageSize(pageSize).Execute() - -fills - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - source := "API" // string | source (optional) - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - lastFillId := "lastFillId_example" // string | lastFillId (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossFills(context.Background()).Symbol(symbol).StartTime(startTime).Source(source).EndTime(endTime).OrderId(orderId).LastFillId(lastFillId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossFills``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossFills`: ApiResponseResultOfMarginTradeDetailInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossFills`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossFillsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **source** | **string** | source | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **lastFillId** | **string** | lastFillId | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMarginTradeDetailInfoResult**](ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossHistoryOrders - -> ApiResponseResultOfMarginOpenOrderInfoResult MarginCrossHistoryOrders(ctx).Symbol(symbol).StartTime(startTime).Source(source).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).MinId(minId).PageSize(pageSize).Execute() - -history - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - source := "API" // string | source (optional) - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - clientOid := "123456" // string | clientOid (optional) - minId := "minId_example" // string | minId (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossHistoryOrders(context.Background()).Symbol(symbol).StartTime(startTime).Source(source).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).MinId(minId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossHistoryOrders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossHistoryOrders`: ApiResponseResultOfMarginOpenOrderInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossHistoryOrders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossHistoryOrdersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **source** | **string** | source | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **clientOid** | **string** | clientOid | - **minId** | **string** | minId | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossOpenOrders - -> ApiResponseResultOfMarginOpenOrderInfoResult MarginCrossOpenOrders(ctx).Symbol(symbol).StartTime(startTime).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).Execute() - -openOrders - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - clientOid := "123456" // string | clientOid (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossOpenOrders(context.Background()).Symbol(symbol).StartTime(startTime).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossOpenOrders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossOpenOrders`: ApiResponseResultOfMarginOpenOrderInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossOpenOrders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossOpenOrdersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **clientOid** | **string** | clientOid | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossPlaceOrder - -> ApiResponseResultOfMarginPlaceOrderResult MarginCrossPlaceOrder(ctx).MarginOrderRequest(marginOrderRequest).Execute() - -placeOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginOrderRequest := *openapiclient.NewMarginOrderRequest("normal/autoLoan/autoRepay", "limit/market", "sell/buy", "BTCUSDT_SPBL") // MarginOrderRequest | marginOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossOrderApi.MarginCrossPlaceOrder(context.Background()).MarginOrderRequest(marginOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossOrderApi.MarginCrossPlaceOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossPlaceOrder`: ApiResponseResultOfMarginPlaceOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossOrderApi.MarginCrossPlaceOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossPlaceOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginOrderRequest** | [**MarginOrderRequest**](MarginOrderRequest.md) | marginOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginPlaceOrderResult**](ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossPublicApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossPublicApi.md deleted file mode 100644 index fd44f913..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossPublicApi.md +++ /dev/null @@ -1,142 +0,0 @@ -# \MarginCrossPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginCrossPublicInterestRateAndLimit**](MarginCrossPublicApi.md#MarginCrossPublicInterestRateAndLimit) | **Get** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -[**MarginCrossPublicTierData**](MarginCrossPublicApi.md#MarginCrossPublicTierData) | **Get** /api/margin/v1/cross/public/tierData | tierData - - - -## MarginCrossPublicInterestRateAndLimit - -> ApiResponseResultOfListOfMarginCrossRateAndLimitResult MarginCrossPublicInterestRateAndLimit(ctx).Coin(coin).Execute() - -interestRateAndLimit - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - coin := "USDT" // string | coin - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossPublicApi.MarginCrossPublicInterestRateAndLimit(context.Background()).Coin(coin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossPublicApi.MarginCrossPublicInterestRateAndLimit``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossPublicInterestRateAndLimit`: ApiResponseResultOfListOfMarginCrossRateAndLimitResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossPublicApi.MarginCrossPublicInterestRateAndLimit`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossPublicInterestRateAndLimitRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **coin** | **string** | coin | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossRateAndLimitResult**](ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginCrossPublicTierData - -> ApiResponseResultOfListOfMarginCrossLevelResult MarginCrossPublicTierData(ctx).Coin(coin).Execute() - -tierData - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - coin := "USDT" // string | coin - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossPublicApi.MarginCrossPublicTierData(context.Background()).Coin(coin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossPublicApi.MarginCrossPublicTierData``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginCrossPublicTierData`: ApiResponseResultOfListOfMarginCrossLevelResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossPublicApi.MarginCrossPublicTierData`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginCrossPublicTierDataRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **coin** | **string** | coin | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossLevelResult**](ApiResponseResultOfListOfMarginCrossLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossRateAndLimitResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossRateAndLimitResult.md deleted file mode 100644 index 27c6d57e..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginCrossRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BorrowAble** | Pointer to **bool** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**DailyInterestRate** | Pointer to **string** | | [optional] -**Leverage** | Pointer to **string** | | [optional] -**MaxBorrowableAmount** | Pointer to **string** | | [optional] -**TransferInAble** | Pointer to **bool** | | [optional] -**Vips** | Pointer to [**[]MarginCrossVipResult**](MarginCrossVipResult.md) | | [optional] -**YearlyInterestRate** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossRateAndLimitResult - -`func NewMarginCrossRateAndLimitResult() *MarginCrossRateAndLimitResult` - -NewMarginCrossRateAndLimitResult instantiates a new MarginCrossRateAndLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossRateAndLimitResultWithDefaults - -`func NewMarginCrossRateAndLimitResultWithDefaults() *MarginCrossRateAndLimitResult` - -NewMarginCrossRateAndLimitResultWithDefaults instantiates a new MarginCrossRateAndLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBorrowAble - -`func (o *MarginCrossRateAndLimitResult) GetBorrowAble() bool` - -GetBorrowAble returns the BorrowAble field if non-nil, zero value otherwise. - -### GetBorrowAbleOk - -`func (o *MarginCrossRateAndLimitResult) GetBorrowAbleOk() (*bool, bool)` - -GetBorrowAbleOk returns a tuple with the BorrowAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrowAble - -`func (o *MarginCrossRateAndLimitResult) SetBorrowAble(v bool)` - -SetBorrowAble sets BorrowAble field to given value. - -### HasBorrowAble - -`func (o *MarginCrossRateAndLimitResult) HasBorrowAble() bool` - -HasBorrowAble returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginCrossRateAndLimitResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossRateAndLimitResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossRateAndLimitResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossRateAndLimitResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetDailyInterestRate - -`func (o *MarginCrossRateAndLimitResult) GetDailyInterestRate() string` - -GetDailyInterestRate returns the DailyInterestRate field if non-nil, zero value otherwise. - -### GetDailyInterestRateOk - -`func (o *MarginCrossRateAndLimitResult) GetDailyInterestRateOk() (*string, bool)` - -GetDailyInterestRateOk returns a tuple with the DailyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDailyInterestRate - -`func (o *MarginCrossRateAndLimitResult) SetDailyInterestRate(v string)` - -SetDailyInterestRate sets DailyInterestRate field to given value. - -### HasDailyInterestRate - -`func (o *MarginCrossRateAndLimitResult) HasDailyInterestRate() bool` - -HasDailyInterestRate returns a boolean if a field has been set. - -### GetLeverage - -`func (o *MarginCrossRateAndLimitResult) GetLeverage() string` - -GetLeverage returns the Leverage field if non-nil, zero value otherwise. - -### GetLeverageOk - -`func (o *MarginCrossRateAndLimitResult) GetLeverageOk() (*string, bool)` - -GetLeverageOk returns a tuple with the Leverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLeverage - -`func (o *MarginCrossRateAndLimitResult) SetLeverage(v string)` - -SetLeverage sets Leverage field to given value. - -### HasLeverage - -`func (o *MarginCrossRateAndLimitResult) HasLeverage() bool` - -HasLeverage returns a boolean if a field has been set. - -### GetMaxBorrowableAmount - -`func (o *MarginCrossRateAndLimitResult) GetMaxBorrowableAmount() string` - -GetMaxBorrowableAmount returns the MaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetMaxBorrowableAmountOk - -`func (o *MarginCrossRateAndLimitResult) GetMaxBorrowableAmountOk() (*string, bool)` - -GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxBorrowableAmount - -`func (o *MarginCrossRateAndLimitResult) SetMaxBorrowableAmount(v string)` - -SetMaxBorrowableAmount sets MaxBorrowableAmount field to given value. - -### HasMaxBorrowableAmount - -`func (o *MarginCrossRateAndLimitResult) HasMaxBorrowableAmount() bool` - -HasMaxBorrowableAmount returns a boolean if a field has been set. - -### GetTransferInAble - -`func (o *MarginCrossRateAndLimitResult) GetTransferInAble() bool` - -GetTransferInAble returns the TransferInAble field if non-nil, zero value otherwise. - -### GetTransferInAbleOk - -`func (o *MarginCrossRateAndLimitResult) GetTransferInAbleOk() (*bool, bool)` - -GetTransferInAbleOk returns a tuple with the TransferInAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTransferInAble - -`func (o *MarginCrossRateAndLimitResult) SetTransferInAble(v bool)` - -SetTransferInAble sets TransferInAble field to given value. - -### HasTransferInAble - -`func (o *MarginCrossRateAndLimitResult) HasTransferInAble() bool` - -HasTransferInAble returns a boolean if a field has been set. - -### GetVips - -`func (o *MarginCrossRateAndLimitResult) GetVips() []MarginCrossVipResult` - -GetVips returns the Vips field if non-nil, zero value otherwise. - -### GetVipsOk - -`func (o *MarginCrossRateAndLimitResult) GetVipsOk() (*[]MarginCrossVipResult, bool)` - -GetVipsOk returns a tuple with the Vips field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVips - -`func (o *MarginCrossRateAndLimitResult) SetVips(v []MarginCrossVipResult)` - -SetVips sets Vips field to given value. - -### HasVips - -`func (o *MarginCrossRateAndLimitResult) HasVips() bool` - -HasVips returns a boolean if a field has been set. - -### GetYearlyInterestRate - -`func (o *MarginCrossRateAndLimitResult) GetYearlyInterestRate() string` - -GetYearlyInterestRate returns the YearlyInterestRate field if non-nil, zero value otherwise. - -### GetYearlyInterestRateOk - -`func (o *MarginCrossRateAndLimitResult) GetYearlyInterestRateOk() (*string, bool)` - -GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyInterestRate - -`func (o *MarginCrossRateAndLimitResult) SetYearlyInterestRate(v string)` - -SetYearlyInterestRate sets YearlyInterestRate field to given value. - -### HasYearlyInterestRate - -`func (o *MarginCrossRateAndLimitResult) HasYearlyInterestRate() bool` - -HasYearlyInterestRate returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossRepayApi.md b/bitget-goland-sdk-open-api/docs/MarginCrossRepayApi.md deleted file mode 100644 index 5ee22662..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossRepayApi.md +++ /dev/null @@ -1,85 +0,0 @@ -# \MarginCrossRepayApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CrossRepayList**](MarginCrossRepayApi.md#CrossRepayList) | **Get** /api/margin/v1/cross/repay/list | list - - - -## CrossRepayList - -> ApiResponseResultOfMarginRepayInfoResult CrossRepayList(ctx).StartTime(startTime).Coin(coin).RepayId(repayId).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - repayId := "32428347234" // string | repayId (optional) - endTime := "1678193338000" // string | endTime (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "minId" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginCrossRepayApi.CrossRepayList(context.Background()).StartTime(startTime).Coin(coin).RepayId(repayId).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginCrossRepayApi.CrossRepayList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CrossRepayList`: ApiResponseResultOfMarginRepayInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginCrossRepayApi.CrossRepayList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCrossRepayListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **repayId** | **string** | repayId | - **endTime** | **string** | endTime | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginRepayInfoResult**](ApiResponseResultOfMarginRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossRepayRequest.md b/bitget-goland-sdk-open-api/docs/MarginCrossRepayRequest.md deleted file mode 100644 index 9a71505d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossRepayRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# MarginCrossRepayRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | **string** | coin | -**RepayAmount** | **string** | repayAmount | - -## Methods - -### NewMarginCrossRepayRequest - -`func NewMarginCrossRepayRequest(coin string, repayAmount string, ) *MarginCrossRepayRequest` - -NewMarginCrossRepayRequest instantiates a new MarginCrossRepayRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossRepayRequestWithDefaults - -`func NewMarginCrossRepayRequestWithDefaults() *MarginCrossRepayRequest` - -NewMarginCrossRepayRequestWithDefaults instantiates a new MarginCrossRepayRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginCrossRepayRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossRepayRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossRepayRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - -### GetRepayAmount - -`func (o *MarginCrossRepayRequest) GetRepayAmount() string` - -GetRepayAmount returns the RepayAmount field if non-nil, zero value otherwise. - -### GetRepayAmountOk - -`func (o *MarginCrossRepayRequest) GetRepayAmountOk() (*string, bool)` - -GetRepayAmountOk returns a tuple with the RepayAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayAmount - -`func (o *MarginCrossRepayRequest) SetRepayAmount(v string)` - -SetRepayAmount sets RepayAmount field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossRepayResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossRepayResult.md deleted file mode 100644 index 3856a70d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossRepayResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# MarginCrossRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**RemainDebtAmount** | Pointer to **string** | | [optional] -**RepayAmount** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossRepayResult - -`func NewMarginCrossRepayResult() *MarginCrossRepayResult` - -NewMarginCrossRepayResult instantiates a new MarginCrossRepayResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossRepayResultWithDefaults - -`func NewMarginCrossRepayResultWithDefaults() *MarginCrossRepayResult` - -NewMarginCrossRepayResultWithDefaults instantiates a new MarginCrossRepayResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginCrossRepayResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginCrossRepayResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginCrossRepayResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginCrossRepayResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginCrossRepayResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginCrossRepayResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginCrossRepayResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginCrossRepayResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetRemainDebtAmount - -`func (o *MarginCrossRepayResult) GetRemainDebtAmount() string` - -GetRemainDebtAmount returns the RemainDebtAmount field if non-nil, zero value otherwise. - -### GetRemainDebtAmountOk - -`func (o *MarginCrossRepayResult) GetRemainDebtAmountOk() (*string, bool)` - -GetRemainDebtAmountOk returns a tuple with the RemainDebtAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRemainDebtAmount - -`func (o *MarginCrossRepayResult) SetRemainDebtAmount(v string)` - -SetRemainDebtAmount sets RemainDebtAmount field to given value. - -### HasRemainDebtAmount - -`func (o *MarginCrossRepayResult) HasRemainDebtAmount() bool` - -HasRemainDebtAmount returns a boolean if a field has been set. - -### GetRepayAmount - -`func (o *MarginCrossRepayResult) GetRepayAmount() string` - -GetRepayAmount returns the RepayAmount field if non-nil, zero value otherwise. - -### GetRepayAmountOk - -`func (o *MarginCrossRepayResult) GetRepayAmountOk() (*string, bool)` - -GetRepayAmountOk returns a tuple with the RepayAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayAmount - -`func (o *MarginCrossRepayResult) SetRepayAmount(v string)` - -SetRepayAmount sets RepayAmount field to given value. - -### HasRepayAmount - -`func (o *MarginCrossRepayResult) HasRepayAmount() bool` - -HasRepayAmount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginCrossVipResult.md b/bitget-goland-sdk-open-api/docs/MarginCrossVipResult.md deleted file mode 100644 index 9c93c0c9..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginCrossVipResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# MarginCrossVipResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DailyInterestRate** | Pointer to **string** | | [optional] -**DiscountRate** | Pointer to **string** | | [optional] -**Level** | Pointer to **string** | | [optional] -**YearlyInterestRate** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginCrossVipResult - -`func NewMarginCrossVipResult() *MarginCrossVipResult` - -NewMarginCrossVipResult instantiates a new MarginCrossVipResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginCrossVipResultWithDefaults - -`func NewMarginCrossVipResultWithDefaults() *MarginCrossVipResult` - -NewMarginCrossVipResultWithDefaults instantiates a new MarginCrossVipResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDailyInterestRate - -`func (o *MarginCrossVipResult) GetDailyInterestRate() string` - -GetDailyInterestRate returns the DailyInterestRate field if non-nil, zero value otherwise. - -### GetDailyInterestRateOk - -`func (o *MarginCrossVipResult) GetDailyInterestRateOk() (*string, bool)` - -GetDailyInterestRateOk returns a tuple with the DailyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDailyInterestRate - -`func (o *MarginCrossVipResult) SetDailyInterestRate(v string)` - -SetDailyInterestRate sets DailyInterestRate field to given value. - -### HasDailyInterestRate - -`func (o *MarginCrossVipResult) HasDailyInterestRate() bool` - -HasDailyInterestRate returns a boolean if a field has been set. - -### GetDiscountRate - -`func (o *MarginCrossVipResult) GetDiscountRate() string` - -GetDiscountRate returns the DiscountRate field if non-nil, zero value otherwise. - -### GetDiscountRateOk - -`func (o *MarginCrossVipResult) GetDiscountRateOk() (*string, bool)` - -GetDiscountRateOk returns a tuple with the DiscountRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDiscountRate - -`func (o *MarginCrossVipResult) SetDiscountRate(v string)` - -SetDiscountRate sets DiscountRate field to given value. - -### HasDiscountRate - -`func (o *MarginCrossVipResult) HasDiscountRate() bool` - -HasDiscountRate returns a boolean if a field has been set. - -### GetLevel - -`func (o *MarginCrossVipResult) GetLevel() string` - -GetLevel returns the Level field if non-nil, zero value otherwise. - -### GetLevelOk - -`func (o *MarginCrossVipResult) GetLevelOk() (*string, bool)` - -GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLevel - -`func (o *MarginCrossVipResult) SetLevel(v string)` - -SetLevel sets Level field to given value. - -### HasLevel - -`func (o *MarginCrossVipResult) HasLevel() bool` - -HasLevel returns a boolean if a field has been set. - -### GetYearlyInterestRate - -`func (o *MarginCrossVipResult) GetYearlyInterestRate() string` - -GetYearlyInterestRate returns the YearlyInterestRate field if non-nil, zero value otherwise. - -### GetYearlyInterestRateOk - -`func (o *MarginCrossVipResult) GetYearlyInterestRateOk() (*string, bool)` - -GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyInterestRate - -`func (o *MarginCrossVipResult) SetYearlyInterestRate(v string)` - -SetYearlyInterestRate sets YearlyInterestRate field to given value. - -### HasYearlyInterestRate - -`func (o *MarginCrossVipResult) HasYearlyInterestRate() bool` - -HasYearlyInterestRate returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginInterestInfo.md b/bitget-goland-sdk-open-api/docs/MarginInterestInfo.md deleted file mode 100644 index 79ec3384..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginInterestInfo.md +++ /dev/null @@ -1,212 +0,0 @@ -# MarginInterestInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**InterestCoin** | Pointer to **string** | | [optional] -**InterestId** | Pointer to **string** | | [optional] -**InterestRate** | Pointer to **string** | | [optional] -**LoanCoin** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginInterestInfo - -`func NewMarginInterestInfo() *MarginInterestInfo` - -NewMarginInterestInfo instantiates a new MarginInterestInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginInterestInfoWithDefaults - -`func NewMarginInterestInfoWithDefaults() *MarginInterestInfo` - -NewMarginInterestInfoWithDefaults instantiates a new MarginInterestInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginInterestInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginInterestInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginInterestInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginInterestInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginInterestInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginInterestInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginInterestInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginInterestInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetInterestCoin - -`func (o *MarginInterestInfo) GetInterestCoin() string` - -GetInterestCoin returns the InterestCoin field if non-nil, zero value otherwise. - -### GetInterestCoinOk - -`func (o *MarginInterestInfo) GetInterestCoinOk() (*string, bool)` - -GetInterestCoinOk returns a tuple with the InterestCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestCoin - -`func (o *MarginInterestInfo) SetInterestCoin(v string)` - -SetInterestCoin sets InterestCoin field to given value. - -### HasInterestCoin - -`func (o *MarginInterestInfo) HasInterestCoin() bool` - -HasInterestCoin returns a boolean if a field has been set. - -### GetInterestId - -`func (o *MarginInterestInfo) GetInterestId() string` - -GetInterestId returns the InterestId field if non-nil, zero value otherwise. - -### GetInterestIdOk - -`func (o *MarginInterestInfo) GetInterestIdOk() (*string, bool)` - -GetInterestIdOk returns a tuple with the InterestId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestId - -`func (o *MarginInterestInfo) SetInterestId(v string)` - -SetInterestId sets InterestId field to given value. - -### HasInterestId - -`func (o *MarginInterestInfo) HasInterestId() bool` - -HasInterestId returns a boolean if a field has been set. - -### GetInterestRate - -`func (o *MarginInterestInfo) GetInterestRate() string` - -GetInterestRate returns the InterestRate field if non-nil, zero value otherwise. - -### GetInterestRateOk - -`func (o *MarginInterestInfo) GetInterestRateOk() (*string, bool)` - -GetInterestRateOk returns a tuple with the InterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestRate - -`func (o *MarginInterestInfo) SetInterestRate(v string)` - -SetInterestRate sets InterestRate field to given value. - -### HasInterestRate - -`func (o *MarginInterestInfo) HasInterestRate() bool` - -HasInterestRate returns a boolean if a field has been set. - -### GetLoanCoin - -`func (o *MarginInterestInfo) GetLoanCoin() string` - -GetLoanCoin returns the LoanCoin field if non-nil, zero value otherwise. - -### GetLoanCoinOk - -`func (o *MarginInterestInfo) GetLoanCoinOk() (*string, bool)` - -GetLoanCoinOk returns a tuple with the LoanCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanCoin - -`func (o *MarginInterestInfo) SetLoanCoin(v string)` - -SetLoanCoin sets LoanCoin field to given value. - -### HasLoanCoin - -`func (o *MarginInterestInfo) HasLoanCoin() bool` - -HasLoanCoin returns a boolean if a field has been set. - -### GetType - -`func (o *MarginInterestInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginInterestInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginInterestInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginInterestInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginInterestInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginInterestInfoResult.md deleted file mode 100644 index dd26781d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginInterestInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginInterestInfo**](MarginInterestInfo.md) | | [optional] - -## Methods - -### NewMarginInterestInfoResult - -`func NewMarginInterestInfoResult() *MarginInterestInfoResult` - -NewMarginInterestInfoResult instantiates a new MarginInterestInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginInterestInfoResultWithDefaults - -`func NewMarginInterestInfoResultWithDefaults() *MarginInterestInfoResult` - -NewMarginInterestInfoResultWithDefaults instantiates a new MarginInterestInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginInterestInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginInterestInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginInterestInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginInterestInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginInterestInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginInterestInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginInterestInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginInterestInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginInterestInfoResult) GetResultList() []MarginInterestInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginInterestInfoResult) GetResultListOk() (*[]MarginInterestInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginInterestInfoResult) SetResultList(v []MarginInterestInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginInterestInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedAccountApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedAccountApi.md deleted file mode 100644 index cf8aa030..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedAccountApi.md +++ /dev/null @@ -1,412 +0,0 @@ -# \MarginIsolatedAccountApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginIsolatedAccountAssets**](MarginIsolatedAccountApi.md#MarginIsolatedAccountAssets) | **Get** /api/margin/v1/isolated/account/assets | assets -[**MarginIsolatedAccountBorrow**](MarginIsolatedAccountApi.md#MarginIsolatedAccountBorrow) | **Post** /api/margin/v1/isolated/account/borrow | borrow -[**MarginIsolatedAccountMaxBorrowableAmount**](MarginIsolatedAccountApi.md#MarginIsolatedAccountMaxBorrowableAmount) | **Post** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -[**MarginIsolatedAccountMaxTransferOutAmount**](MarginIsolatedAccountApi.md#MarginIsolatedAccountMaxTransferOutAmount) | **Get** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -[**MarginIsolatedAccountRepay**](MarginIsolatedAccountApi.md#MarginIsolatedAccountRepay) | **Post** /api/margin/v1/isolated/account/repay | repay -[**MarginIsolatedAccountRiskRate**](MarginIsolatedAccountApi.md#MarginIsolatedAccountRiskRate) | **Post** /api/margin/v1/isolated/account/riskRate | riskRate - - - -## MarginIsolatedAccountAssets - -> ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult MarginIsolatedAccountAssets(ctx).Symbol(symbol).Execute() - -assets - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountAssets(context.Background()).Symbol(symbol).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountAssets``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountAssets`: ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountAssets`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountAssetsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult**](ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedAccountBorrow - -> ApiResponseResultOfMarginIsolatedBorrowLimitResult MarginIsolatedAccountBorrow(ctx).MarginIsolatedLimitRequest(marginIsolatedLimitRequest).Execute() - -borrow - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginIsolatedLimitRequest := *openapiclient.NewMarginIsolatedLimitRequest("1.0", "USDT", "USDT") // MarginIsolatedLimitRequest | marginIsolatedLimitRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountBorrow(context.Background()).MarginIsolatedLimitRequest(marginIsolatedLimitRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountBorrow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountBorrow`: ApiResponseResultOfMarginIsolatedBorrowLimitResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountBorrow`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountBorrowRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginIsolatedLimitRequest** | [**MarginIsolatedLimitRequest**](MarginIsolatedLimitRequest.md) | marginIsolatedLimitRequest | - -### Return type - -[**ApiResponseResultOfMarginIsolatedBorrowLimitResult**](ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedAccountMaxBorrowableAmount - -> ApiResponseResultOfMarginIsolatedMaxBorrowResult MarginIsolatedAccountMaxBorrowableAmount(ctx).MarginIsolatedMaxBorrowRequest(marginIsolatedMaxBorrowRequest).Execute() - -maxBorrowableAmount - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginIsolatedMaxBorrowRequest := *openapiclient.NewMarginIsolatedMaxBorrowRequest("USDT", "BTCUSDT") // MarginIsolatedMaxBorrowRequest | marginIsolatedMaxBorrowRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountMaxBorrowableAmount(context.Background()).MarginIsolatedMaxBorrowRequest(marginIsolatedMaxBorrowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountMaxBorrowableAmount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountMaxBorrowableAmount`: ApiResponseResultOfMarginIsolatedMaxBorrowResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountMaxBorrowableAmount`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountMaxBorrowableAmountRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginIsolatedMaxBorrowRequest** | [**MarginIsolatedMaxBorrowRequest**](MarginIsolatedMaxBorrowRequest.md) | marginIsolatedMaxBorrowRequest | - -### Return type - -[**ApiResponseResultOfMarginIsolatedMaxBorrowResult**](ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedAccountMaxTransferOutAmount - -> ApiResponseResultOfMarginIsolatedAssetsResult MarginIsolatedAccountMaxTransferOutAmount(ctx).Coin(coin).Symbol(symbol).Execute() - -maxTransferOutAmount - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - coin := "USDT" // string | coin - symbol := "BTCUSDT" // string | symbol - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountMaxTransferOutAmount(context.Background()).Coin(coin).Symbol(symbol).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountMaxTransferOutAmount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountMaxTransferOutAmount`: ApiResponseResultOfMarginIsolatedAssetsResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountMaxTransferOutAmount`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountMaxTransferOutAmountRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **coin** | **string** | coin | - **symbol** | **string** | symbol | - -### Return type - -[**ApiResponseResultOfMarginIsolatedAssetsResult**](ApiResponseResultOfMarginIsolatedAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedAccountRepay - -> ApiResponseResultOfMarginIsolatedRepayResult MarginIsolatedAccountRepay(ctx).MarginIsolatedRepayRequest(marginIsolatedRepayRequest).Execute() - -repay - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginIsolatedRepayRequest := *openapiclient.NewMarginIsolatedRepayRequest("USDT", "1.0", "BTCUSDT") // MarginIsolatedRepayRequest | marginIsolatedRepayRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountRepay(context.Background()).MarginIsolatedRepayRequest(marginIsolatedRepayRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountRepay``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountRepay`: ApiResponseResultOfMarginIsolatedRepayResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountRepay`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountRepayRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginIsolatedRepayRequest** | [**MarginIsolatedRepayRequest**](MarginIsolatedRepayRequest.md) | marginIsolatedRepayRequest | - -### Return type - -[**ApiResponseResultOfMarginIsolatedRepayResult**](ApiResponseResultOfMarginIsolatedRepayResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedAccountRiskRate - -> ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult MarginIsolatedAccountRiskRate(ctx).MarginIsolatedAssetsRiskRequest(marginIsolatedAssetsRiskRequest).Execute() - -riskRate - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginIsolatedAssetsRiskRequest := *openapiclient.NewMarginIsolatedAssetsRiskRequest("BTCUSDT") // MarginIsolatedAssetsRiskRequest | marginIsolatedAssetsRiskRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountRiskRate(context.Background()).MarginIsolatedAssetsRiskRequest(marginIsolatedAssetsRiskRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedAccountApi.MarginIsolatedAccountRiskRate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedAccountRiskRate`: ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedAccountApi.MarginIsolatedAccountRiskRate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedAccountRiskRateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginIsolatedAssetsRiskRequest** | [**MarginIsolatedAssetsRiskRequest**](MarginIsolatedAssetsRiskRequest.md) | marginIsolatedAssetsRiskRequest | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult**](ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index 81634b5d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,264 +0,0 @@ -# MarginIsolatedAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Available** | Pointer to **string** | | [optional] -**Borrow** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Frozen** | Pointer to **string** | | [optional] -**Interest** | Pointer to **string** | | [optional] -**Net** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**TotalAmount** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedAssetsPopulationResult - -`func NewMarginIsolatedAssetsPopulationResult() *MarginIsolatedAssetsPopulationResult` - -NewMarginIsolatedAssetsPopulationResult instantiates a new MarginIsolatedAssetsPopulationResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedAssetsPopulationResultWithDefaults - -`func NewMarginIsolatedAssetsPopulationResultWithDefaults() *MarginIsolatedAssetsPopulationResult` - -NewMarginIsolatedAssetsPopulationResultWithDefaults instantiates a new MarginIsolatedAssetsPopulationResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAvailable - -`func (o *MarginIsolatedAssetsPopulationResult) GetAvailable() string` - -GetAvailable returns the Available field if non-nil, zero value otherwise. - -### GetAvailableOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetAvailableOk() (*string, bool)` - -GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvailable - -`func (o *MarginIsolatedAssetsPopulationResult) SetAvailable(v string)` - -SetAvailable sets Available field to given value. - -### HasAvailable - -`func (o *MarginIsolatedAssetsPopulationResult) HasAvailable() bool` - -HasAvailable returns a boolean if a field has been set. - -### GetBorrow - -`func (o *MarginIsolatedAssetsPopulationResult) GetBorrow() string` - -GetBorrow returns the Borrow field if non-nil, zero value otherwise. - -### GetBorrowOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetBorrowOk() (*string, bool)` - -GetBorrowOk returns a tuple with the Borrow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrow - -`func (o *MarginIsolatedAssetsPopulationResult) SetBorrow(v string)` - -SetBorrow sets Borrow field to given value. - -### HasBorrow - -`func (o *MarginIsolatedAssetsPopulationResult) HasBorrow() bool` - -HasBorrow returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedAssetsPopulationResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedAssetsPopulationResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedAssetsPopulationResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginIsolatedAssetsPopulationResult) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedAssetsPopulationResult) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedAssetsPopulationResult) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFrozen - -`func (o *MarginIsolatedAssetsPopulationResult) GetFrozen() string` - -GetFrozen returns the Frozen field if non-nil, zero value otherwise. - -### GetFrozenOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetFrozenOk() (*string, bool)` - -GetFrozenOk returns a tuple with the Frozen field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrozen - -`func (o *MarginIsolatedAssetsPopulationResult) SetFrozen(v string)` - -SetFrozen sets Frozen field to given value. - -### HasFrozen - -`func (o *MarginIsolatedAssetsPopulationResult) HasFrozen() bool` - -HasFrozen returns a boolean if a field has been set. - -### GetInterest - -`func (o *MarginIsolatedAssetsPopulationResult) GetInterest() string` - -GetInterest returns the Interest field if non-nil, zero value otherwise. - -### GetInterestOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetInterestOk() (*string, bool)` - -GetInterestOk returns a tuple with the Interest field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterest - -`func (o *MarginIsolatedAssetsPopulationResult) SetInterest(v string)` - -SetInterest sets Interest field to given value. - -### HasInterest - -`func (o *MarginIsolatedAssetsPopulationResult) HasInterest() bool` - -HasInterest returns a boolean if a field has been set. - -### GetNet - -`func (o *MarginIsolatedAssetsPopulationResult) GetNet() string` - -GetNet returns the Net field if non-nil, zero value otherwise. - -### GetNetOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetNetOk() (*string, bool)` - -GetNetOk returns a tuple with the Net field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNet - -`func (o *MarginIsolatedAssetsPopulationResult) SetNet(v string)` - -SetNet sets Net field to given value. - -### HasNet - -`func (o *MarginIsolatedAssetsPopulationResult) HasNet() bool` - -HasNet returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedAssetsPopulationResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedAssetsPopulationResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedAssetsPopulationResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetTotalAmount - -`func (o *MarginIsolatedAssetsPopulationResult) GetTotalAmount() string` - -GetTotalAmount returns the TotalAmount field if non-nil, zero value otherwise. - -### GetTotalAmountOk - -`func (o *MarginIsolatedAssetsPopulationResult) GetTotalAmountOk() (*string, bool)` - -GetTotalAmountOk returns a tuple with the TotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAmount - -`func (o *MarginIsolatedAssetsPopulationResult) SetTotalAmount(v string)` - -SetTotalAmount sets TotalAmount field to given value. - -### HasTotalAmount - -`func (o *MarginIsolatedAssetsPopulationResult) HasTotalAmount() bool` - -HasTotalAmount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsResult.md deleted file mode 100644 index ded33f3d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | Pointer to **string** | | [optional] -**MaxTransferOutAmount** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedAssetsResult - -`func NewMarginIsolatedAssetsResult() *MarginIsolatedAssetsResult` - -NewMarginIsolatedAssetsResult instantiates a new MarginIsolatedAssetsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedAssetsResultWithDefaults - -`func NewMarginIsolatedAssetsResultWithDefaults() *MarginIsolatedAssetsResult` - -NewMarginIsolatedAssetsResultWithDefaults instantiates a new MarginIsolatedAssetsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginIsolatedAssetsResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedAssetsResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedAssetsResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedAssetsResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetMaxTransferOutAmount - -`func (o *MarginIsolatedAssetsResult) GetMaxTransferOutAmount() string` - -GetMaxTransferOutAmount returns the MaxTransferOutAmount field if non-nil, zero value otherwise. - -### GetMaxTransferOutAmountOk - -`func (o *MarginIsolatedAssetsResult) GetMaxTransferOutAmountOk() (*string, bool)` - -GetMaxTransferOutAmountOk returns a tuple with the MaxTransferOutAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTransferOutAmount - -`func (o *MarginIsolatedAssetsResult) SetMaxTransferOutAmount(v string)` - -SetMaxTransferOutAmount sets MaxTransferOutAmount field to given value. - -### HasMaxTransferOutAmount - -`func (o *MarginIsolatedAssetsResult) HasMaxTransferOutAmount() bool` - -HasMaxTransferOutAmount returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedAssetsResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedAssetsResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedAssetsResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedAssetsResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md deleted file mode 100644 index fa4bc01d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md +++ /dev/null @@ -1,103 +0,0 @@ -# MarginIsolatedAssetsRiskRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNum** | Pointer to **string** | pageNum | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginIsolatedAssetsRiskRequest - -`func NewMarginIsolatedAssetsRiskRequest(symbol string, ) *MarginIsolatedAssetsRiskRequest` - -NewMarginIsolatedAssetsRiskRequest instantiates a new MarginIsolatedAssetsRiskRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedAssetsRiskRequestWithDefaults - -`func NewMarginIsolatedAssetsRiskRequestWithDefaults() *MarginIsolatedAssetsRiskRequest` - -NewMarginIsolatedAssetsRiskRequestWithDefaults instantiates a new MarginIsolatedAssetsRiskRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNum - -`func (o *MarginIsolatedAssetsRiskRequest) GetPageNum() string` - -GetPageNum returns the PageNum field if non-nil, zero value otherwise. - -### GetPageNumOk - -`func (o *MarginIsolatedAssetsRiskRequest) GetPageNumOk() (*string, bool)` - -GetPageNumOk returns a tuple with the PageNum field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNum - -`func (o *MarginIsolatedAssetsRiskRequest) SetPageNum(v string)` - -SetPageNum sets PageNum field to given value. - -### HasPageNum - -`func (o *MarginIsolatedAssetsRiskRequest) HasPageNum() bool` - -HasPageNum returns a boolean if a field has been set. - -### GetPageSize - -`func (o *MarginIsolatedAssetsRiskRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *MarginIsolatedAssetsRiskRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *MarginIsolatedAssetsRiskRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *MarginIsolatedAssetsRiskRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedAssetsRiskRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedAssetsRiskRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedAssetsRiskRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md deleted file mode 100644 index 26aeba9b..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginIsolatedAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RiskRate** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedAssetsRiskResult - -`func NewMarginIsolatedAssetsRiskResult() *MarginIsolatedAssetsRiskResult` - -NewMarginIsolatedAssetsRiskResult instantiates a new MarginIsolatedAssetsRiskResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedAssetsRiskResultWithDefaults - -`func NewMarginIsolatedAssetsRiskResultWithDefaults() *MarginIsolatedAssetsRiskResult` - -NewMarginIsolatedAssetsRiskResultWithDefaults instantiates a new MarginIsolatedAssetsRiskResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRiskRate - -`func (o *MarginIsolatedAssetsRiskResult) GetRiskRate() string` - -GetRiskRate returns the RiskRate field if non-nil, zero value otherwise. - -### GetRiskRateOk - -`func (o *MarginIsolatedAssetsRiskResult) GetRiskRateOk() (*string, bool)` - -GetRiskRateOk returns a tuple with the RiskRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRiskRate - -`func (o *MarginIsolatedAssetsRiskResult) SetRiskRate(v string)` - -SetRiskRate sets RiskRate field to given value. - -### HasRiskRate - -`func (o *MarginIsolatedAssetsRiskResult) HasRiskRate() bool` - -HasRiskRate returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedAssetsRiskResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedAssetsRiskResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedAssetsRiskResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedAssetsRiskResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowApi.md deleted file mode 100644 index 4d3ce4e4..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowApi.md +++ /dev/null @@ -1,87 +0,0 @@ -# \MarginIsolatedBorrowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**IsolatedLoanList**](MarginIsolatedBorrowApi.md#IsolatedLoanList) | **Get** /api/margin/v1/isolated/loan/list | list - - - -## IsolatedLoanList - -> ApiResponseResultOfMarginIsolatedLoanInfoResult IsolatedLoanList(ctx).Symbol(symbol).StartTime(startTime).Coin(coin).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - endTime := "1678193338000" // string | endTime (optional) - loanId := "loanId_example" // string | loanId (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedBorrowApi.IsolatedLoanList(context.Background()).Symbol(symbol).StartTime(startTime).Coin(coin).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedBorrowApi.IsolatedLoanList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `IsolatedLoanList`: ApiResponseResultOfMarginIsolatedLoanInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedBorrowApi.IsolatedLoanList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiIsolatedLoanListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **endTime** | **string** | endTime | - **loanId** | **string** | loanId | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginIsolatedLoanInfoResult**](ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 6588a94a..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# MarginIsolatedBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BorrowAmount** | Pointer to **string** | | [optional] -**ClientOid** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedBorrowLimitResult - -`func NewMarginIsolatedBorrowLimitResult() *MarginIsolatedBorrowLimitResult` - -NewMarginIsolatedBorrowLimitResult instantiates a new MarginIsolatedBorrowLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedBorrowLimitResultWithDefaults - -`func NewMarginIsolatedBorrowLimitResultWithDefaults() *MarginIsolatedBorrowLimitResult` - -NewMarginIsolatedBorrowLimitResultWithDefaults instantiates a new MarginIsolatedBorrowLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBorrowAmount - -`func (o *MarginIsolatedBorrowLimitResult) GetBorrowAmount() string` - -GetBorrowAmount returns the BorrowAmount field if non-nil, zero value otherwise. - -### GetBorrowAmountOk - -`func (o *MarginIsolatedBorrowLimitResult) GetBorrowAmountOk() (*string, bool)` - -GetBorrowAmountOk returns a tuple with the BorrowAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrowAmount - -`func (o *MarginIsolatedBorrowLimitResult) SetBorrowAmount(v string)` - -SetBorrowAmount sets BorrowAmount field to given value. - -### HasBorrowAmount - -`func (o *MarginIsolatedBorrowLimitResult) HasBorrowAmount() bool` - -HasBorrowAmount returns a boolean if a field has been set. - -### GetClientOid - -`func (o *MarginIsolatedBorrowLimitResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginIsolatedBorrowLimitResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginIsolatedBorrowLimitResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginIsolatedBorrowLimitResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedBorrowLimitResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedBorrowLimitResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedBorrowLimitResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedBorrowLimitResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedBorrowLimitResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedBorrowLimitResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedBorrowLimitResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedBorrowLimitResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md deleted file mode 100644 index 47929889..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginIsolatedFinFlowInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Balance** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Fee** | Pointer to **string** | | [optional] -**MarginId** | Pointer to **string** | | [optional] -**MarginType** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedFinFlowInfo - -`func NewMarginIsolatedFinFlowInfo() *MarginIsolatedFinFlowInfo` - -NewMarginIsolatedFinFlowInfo instantiates a new MarginIsolatedFinFlowInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedFinFlowInfoWithDefaults - -`func NewMarginIsolatedFinFlowInfoWithDefaults() *MarginIsolatedFinFlowInfo` - -NewMarginIsolatedFinFlowInfoWithDefaults instantiates a new MarginIsolatedFinFlowInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginIsolatedFinFlowInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginIsolatedFinFlowInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginIsolatedFinFlowInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginIsolatedFinFlowInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetBalance - -`func (o *MarginIsolatedFinFlowInfo) GetBalance() string` - -GetBalance returns the Balance field if non-nil, zero value otherwise. - -### GetBalanceOk - -`func (o *MarginIsolatedFinFlowInfo) GetBalanceOk() (*string, bool)` - -GetBalanceOk returns a tuple with the Balance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBalance - -`func (o *MarginIsolatedFinFlowInfo) SetBalance(v string)` - -SetBalance sets Balance field to given value. - -### HasBalance - -`func (o *MarginIsolatedFinFlowInfo) HasBalance() bool` - -HasBalance returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedFinFlowInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedFinFlowInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedFinFlowInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedFinFlowInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginIsolatedFinFlowInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedFinFlowInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedFinFlowInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedFinFlowInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFee - -`func (o *MarginIsolatedFinFlowInfo) GetFee() string` - -GetFee returns the Fee field if non-nil, zero value otherwise. - -### GetFeeOk - -`func (o *MarginIsolatedFinFlowInfo) GetFeeOk() (*string, bool)` - -GetFeeOk returns a tuple with the Fee field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFee - -`func (o *MarginIsolatedFinFlowInfo) SetFee(v string)` - -SetFee sets Fee field to given value. - -### HasFee - -`func (o *MarginIsolatedFinFlowInfo) HasFee() bool` - -HasFee returns a boolean if a field has been set. - -### GetMarginId - -`func (o *MarginIsolatedFinFlowInfo) GetMarginId() string` - -GetMarginId returns the MarginId field if non-nil, zero value otherwise. - -### GetMarginIdOk - -`func (o *MarginIsolatedFinFlowInfo) GetMarginIdOk() (*string, bool)` - -GetMarginIdOk returns a tuple with the MarginId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarginId - -`func (o *MarginIsolatedFinFlowInfo) SetMarginId(v string)` - -SetMarginId sets MarginId field to given value. - -### HasMarginId - -`func (o *MarginIsolatedFinFlowInfo) HasMarginId() bool` - -HasMarginId returns a boolean if a field has been set. - -### GetMarginType - -`func (o *MarginIsolatedFinFlowInfo) GetMarginType() string` - -GetMarginType returns the MarginType field if non-nil, zero value otherwise. - -### GetMarginTypeOk - -`func (o *MarginIsolatedFinFlowInfo) GetMarginTypeOk() (*string, bool)` - -GetMarginTypeOk returns a tuple with the MarginType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarginType - -`func (o *MarginIsolatedFinFlowInfo) SetMarginType(v string)` - -SetMarginType sets MarginType field to given value. - -### HasMarginType - -`func (o *MarginIsolatedFinFlowInfo) HasMarginType() bool` - -HasMarginType returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedFinFlowInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedFinFlowInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedFinFlowInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedFinFlowInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowResult.md deleted file mode 100644 index cc05565b..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginIsolatedFinFlowInfo**](MarginIsolatedFinFlowInfo.md) | | [optional] - -## Methods - -### NewMarginIsolatedFinFlowResult - -`func NewMarginIsolatedFinFlowResult() *MarginIsolatedFinFlowResult` - -NewMarginIsolatedFinFlowResult instantiates a new MarginIsolatedFinFlowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedFinFlowResultWithDefaults - -`func NewMarginIsolatedFinFlowResultWithDefaults() *MarginIsolatedFinFlowResult` - -NewMarginIsolatedFinFlowResultWithDefaults instantiates a new MarginIsolatedFinFlowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginIsolatedFinFlowResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginIsolatedFinFlowResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginIsolatedFinFlowResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginIsolatedFinFlowResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginIsolatedFinFlowResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginIsolatedFinFlowResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginIsolatedFinFlowResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginIsolatedFinFlowResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginIsolatedFinFlowResult) GetResultList() []MarginIsolatedFinFlowInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginIsolatedFinFlowResult) GetResultListOk() (*[]MarginIsolatedFinFlowInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginIsolatedFinFlowResult) SetResultList(v []MarginIsolatedFinFlowInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginIsolatedFinFlowResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinflowApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedFinflowApi.md deleted file mode 100644 index 15e443c7..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedFinflowApi.md +++ /dev/null @@ -1,89 +0,0 @@ -# \MarginIsolatedFinflowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**IsolatedFinList**](MarginIsolatedFinflowApi.md#IsolatedFinList) | **Get** /api/margin/v1/isolated/fin/list | list - - - -## IsolatedFinList - -> ApiResponseResultOfMarginIsolatedFinFlowResult IsolatedFinList(ctx).Symbol(symbol).StartTime(startTime).Coin(coin).MarginType(marginType).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - marginType := "transfer_in" // string | marginType (optional) - endTime := "1678193338000" // string | endTime (optional) - loanId := "loanId_example" // string | loanId (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedFinflowApi.IsolatedFinList(context.Background()).Symbol(symbol).StartTime(startTime).Coin(coin).MarginType(marginType).EndTime(endTime).LoanId(loanId).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedFinflowApi.IsolatedFinList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `IsolatedFinList`: ApiResponseResultOfMarginIsolatedFinFlowResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedFinflowApi.IsolatedFinList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiIsolatedFinListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **marginType** | **string** | marginType | - **endTime** | **string** | endTime | - **loanId** | **string** | loanId | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginIsolatedFinFlowResult**](ApiResponseResultOfMarginIsolatedFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestApi.md deleted file mode 100644 index 3e9aa118..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestApi.md +++ /dev/null @@ -1,83 +0,0 @@ -# \MarginIsolatedInterestApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**IsolatedInterestList**](MarginIsolatedInterestApi.md#IsolatedInterestList) | **Get** /api/margin/v1/isolated/interest/list | list - - - -## IsolatedInterestList - -> ApiResponseResultOfMarginIsolatedInterestInfoResult IsolatedInterestList(ctx).Symbol(symbol).StartTime(startTime).Coin(coin).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193138000" // string | startTime - coin := "USDT" // string | coin (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedInterestApi.IsolatedInterestList(context.Background()).Symbol(symbol).StartTime(startTime).Coin(coin).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedInterestApi.IsolatedInterestList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `IsolatedInterestList`: ApiResponseResultOfMarginIsolatedInterestInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedInterestApi.IsolatedInterestList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiIsolatedInterestListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginIsolatedInterestInfoResult**](ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfo.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfo.md deleted file mode 100644 index 63415eca..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfo.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginIsolatedInterestInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**InterestCoin** | Pointer to **string** | | [optional] -**InterestId** | Pointer to **string** | | [optional] -**InterestRate** | Pointer to **string** | | [optional] -**LoanCoin** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedInterestInfo - -`func NewMarginIsolatedInterestInfo() *MarginIsolatedInterestInfo` - -NewMarginIsolatedInterestInfo instantiates a new MarginIsolatedInterestInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedInterestInfoWithDefaults - -`func NewMarginIsolatedInterestInfoWithDefaults() *MarginIsolatedInterestInfo` - -NewMarginIsolatedInterestInfoWithDefaults instantiates a new MarginIsolatedInterestInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginIsolatedInterestInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginIsolatedInterestInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginIsolatedInterestInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginIsolatedInterestInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginIsolatedInterestInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedInterestInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedInterestInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedInterestInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetInterestCoin - -`func (o *MarginIsolatedInterestInfo) GetInterestCoin() string` - -GetInterestCoin returns the InterestCoin field if non-nil, zero value otherwise. - -### GetInterestCoinOk - -`func (o *MarginIsolatedInterestInfo) GetInterestCoinOk() (*string, bool)` - -GetInterestCoinOk returns a tuple with the InterestCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestCoin - -`func (o *MarginIsolatedInterestInfo) SetInterestCoin(v string)` - -SetInterestCoin sets InterestCoin field to given value. - -### HasInterestCoin - -`func (o *MarginIsolatedInterestInfo) HasInterestCoin() bool` - -HasInterestCoin returns a boolean if a field has been set. - -### GetInterestId - -`func (o *MarginIsolatedInterestInfo) GetInterestId() string` - -GetInterestId returns the InterestId field if non-nil, zero value otherwise. - -### GetInterestIdOk - -`func (o *MarginIsolatedInterestInfo) GetInterestIdOk() (*string, bool)` - -GetInterestIdOk returns a tuple with the InterestId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestId - -`func (o *MarginIsolatedInterestInfo) SetInterestId(v string)` - -SetInterestId sets InterestId field to given value. - -### HasInterestId - -`func (o *MarginIsolatedInterestInfo) HasInterestId() bool` - -HasInterestId returns a boolean if a field has been set. - -### GetInterestRate - -`func (o *MarginIsolatedInterestInfo) GetInterestRate() string` - -GetInterestRate returns the InterestRate field if non-nil, zero value otherwise. - -### GetInterestRateOk - -`func (o *MarginIsolatedInterestInfo) GetInterestRateOk() (*string, bool)` - -GetInterestRateOk returns a tuple with the InterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterestRate - -`func (o *MarginIsolatedInterestInfo) SetInterestRate(v string)` - -SetInterestRate sets InterestRate field to given value. - -### HasInterestRate - -`func (o *MarginIsolatedInterestInfo) HasInterestRate() bool` - -HasInterestRate returns a boolean if a field has been set. - -### GetLoanCoin - -`func (o *MarginIsolatedInterestInfo) GetLoanCoin() string` - -GetLoanCoin returns the LoanCoin field if non-nil, zero value otherwise. - -### GetLoanCoinOk - -`func (o *MarginIsolatedInterestInfo) GetLoanCoinOk() (*string, bool)` - -GetLoanCoinOk returns a tuple with the LoanCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanCoin - -`func (o *MarginIsolatedInterestInfo) SetLoanCoin(v string)` - -SetLoanCoin sets LoanCoin field to given value. - -### HasLoanCoin - -`func (o *MarginIsolatedInterestInfo) HasLoanCoin() bool` - -HasLoanCoin returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedInterestInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedInterestInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedInterestInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedInterestInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetType - -`func (o *MarginIsolatedInterestInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginIsolatedInterestInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginIsolatedInterestInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginIsolatedInterestInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md deleted file mode 100644 index 44e819ba..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginIsolatedInterestInfo**](MarginIsolatedInterestInfo.md) | | [optional] - -## Methods - -### NewMarginIsolatedInterestInfoResult - -`func NewMarginIsolatedInterestInfoResult() *MarginIsolatedInterestInfoResult` - -NewMarginIsolatedInterestInfoResult instantiates a new MarginIsolatedInterestInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedInterestInfoResultWithDefaults - -`func NewMarginIsolatedInterestInfoResultWithDefaults() *MarginIsolatedInterestInfoResult` - -NewMarginIsolatedInterestInfoResultWithDefaults instantiates a new MarginIsolatedInterestInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginIsolatedInterestInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginIsolatedInterestInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginIsolatedInterestInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginIsolatedInterestInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginIsolatedInterestInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginIsolatedInterestInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginIsolatedInterestInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginIsolatedInterestInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginIsolatedInterestInfoResult) GetResultList() []MarginIsolatedInterestInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginIsolatedInterestInfoResult) GetResultListOk() (*[]MarginIsolatedInterestInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginIsolatedInterestInfoResult) SetResultList(v []MarginIsolatedInterestInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginIsolatedInterestInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLevelResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLevelResult.md deleted file mode 100644 index bd78f5d2..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLevelResult.md +++ /dev/null @@ -1,264 +0,0 @@ -# MarginIsolatedLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseCoin** | Pointer to **string** | | [optional] -**BaseMaxBorrowableAmount** | Pointer to **string** | | [optional] -**InitRate** | Pointer to **string** | | [optional] -**Leverage** | Pointer to **string** | | [optional] -**MaintainMarginRate** | Pointer to **string** | | [optional] -**QuoteCoin** | Pointer to **string** | | [optional] -**QuoteMaxBorrowableAmount** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**Tier** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedLevelResult - -`func NewMarginIsolatedLevelResult() *MarginIsolatedLevelResult` - -NewMarginIsolatedLevelResult instantiates a new MarginIsolatedLevelResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLevelResultWithDefaults - -`func NewMarginIsolatedLevelResultWithDefaults() *MarginIsolatedLevelResult` - -NewMarginIsolatedLevelResultWithDefaults instantiates a new MarginIsolatedLevelResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBaseCoin - -`func (o *MarginIsolatedLevelResult) GetBaseCoin() string` - -GetBaseCoin returns the BaseCoin field if non-nil, zero value otherwise. - -### GetBaseCoinOk - -`func (o *MarginIsolatedLevelResult) GetBaseCoinOk() (*string, bool)` - -GetBaseCoinOk returns a tuple with the BaseCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseCoin - -`func (o *MarginIsolatedLevelResult) SetBaseCoin(v string)` - -SetBaseCoin sets BaseCoin field to given value. - -### HasBaseCoin - -`func (o *MarginIsolatedLevelResult) HasBaseCoin() bool` - -HasBaseCoin returns a boolean if a field has been set. - -### GetBaseMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) GetBaseMaxBorrowableAmount() string` - -GetBaseMaxBorrowableAmount returns the BaseMaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetBaseMaxBorrowableAmountOk - -`func (o *MarginIsolatedLevelResult) GetBaseMaxBorrowableAmountOk() (*string, bool)` - -GetBaseMaxBorrowableAmountOk returns a tuple with the BaseMaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) SetBaseMaxBorrowableAmount(v string)` - -SetBaseMaxBorrowableAmount sets BaseMaxBorrowableAmount field to given value. - -### HasBaseMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) HasBaseMaxBorrowableAmount() bool` - -HasBaseMaxBorrowableAmount returns a boolean if a field has been set. - -### GetInitRate - -`func (o *MarginIsolatedLevelResult) GetInitRate() string` - -GetInitRate returns the InitRate field if non-nil, zero value otherwise. - -### GetInitRateOk - -`func (o *MarginIsolatedLevelResult) GetInitRateOk() (*string, bool)` - -GetInitRateOk returns a tuple with the InitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInitRate - -`func (o *MarginIsolatedLevelResult) SetInitRate(v string)` - -SetInitRate sets InitRate field to given value. - -### HasInitRate - -`func (o *MarginIsolatedLevelResult) HasInitRate() bool` - -HasInitRate returns a boolean if a field has been set. - -### GetLeverage - -`func (o *MarginIsolatedLevelResult) GetLeverage() string` - -GetLeverage returns the Leverage field if non-nil, zero value otherwise. - -### GetLeverageOk - -`func (o *MarginIsolatedLevelResult) GetLeverageOk() (*string, bool)` - -GetLeverageOk returns a tuple with the Leverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLeverage - -`func (o *MarginIsolatedLevelResult) SetLeverage(v string)` - -SetLeverage sets Leverage field to given value. - -### HasLeverage - -`func (o *MarginIsolatedLevelResult) HasLeverage() bool` - -HasLeverage returns a boolean if a field has been set. - -### GetMaintainMarginRate - -`func (o *MarginIsolatedLevelResult) GetMaintainMarginRate() string` - -GetMaintainMarginRate returns the MaintainMarginRate field if non-nil, zero value otherwise. - -### GetMaintainMarginRateOk - -`func (o *MarginIsolatedLevelResult) GetMaintainMarginRateOk() (*string, bool)` - -GetMaintainMarginRateOk returns a tuple with the MaintainMarginRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaintainMarginRate - -`func (o *MarginIsolatedLevelResult) SetMaintainMarginRate(v string)` - -SetMaintainMarginRate sets MaintainMarginRate field to given value. - -### HasMaintainMarginRate - -`func (o *MarginIsolatedLevelResult) HasMaintainMarginRate() bool` - -HasMaintainMarginRate returns a boolean if a field has been set. - -### GetQuoteCoin - -`func (o *MarginIsolatedLevelResult) GetQuoteCoin() string` - -GetQuoteCoin returns the QuoteCoin field if non-nil, zero value otherwise. - -### GetQuoteCoinOk - -`func (o *MarginIsolatedLevelResult) GetQuoteCoinOk() (*string, bool)` - -GetQuoteCoinOk returns a tuple with the QuoteCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteCoin - -`func (o *MarginIsolatedLevelResult) SetQuoteCoin(v string)` - -SetQuoteCoin sets QuoteCoin field to given value. - -### HasQuoteCoin - -`func (o *MarginIsolatedLevelResult) HasQuoteCoin() bool` - -HasQuoteCoin returns a boolean if a field has been set. - -### GetQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) GetQuoteMaxBorrowableAmount() string` - -GetQuoteMaxBorrowableAmount returns the QuoteMaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetQuoteMaxBorrowableAmountOk - -`func (o *MarginIsolatedLevelResult) GetQuoteMaxBorrowableAmountOk() (*string, bool)` - -GetQuoteMaxBorrowableAmountOk returns a tuple with the QuoteMaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) SetQuoteMaxBorrowableAmount(v string)` - -SetQuoteMaxBorrowableAmount sets QuoteMaxBorrowableAmount field to given value. - -### HasQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedLevelResult) HasQuoteMaxBorrowableAmount() bool` - -HasQuoteMaxBorrowableAmount returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedLevelResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedLevelResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedLevelResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedLevelResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetTier - -`func (o *MarginIsolatedLevelResult) GetTier() string` - -GetTier returns the Tier field if non-nil, zero value otherwise. - -### GetTierOk - -`func (o *MarginIsolatedLevelResult) GetTierOk() (*string, bool)` - -GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTier - -`func (o *MarginIsolatedLevelResult) SetTier(v string)` - -SetTier sets Tier field to given value. - -### HasTier - -`func (o *MarginIsolatedLevelResult) HasTier() bool` - -HasTier returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLimitRequest.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLimitRequest.md deleted file mode 100644 index 693e8068..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLimitRequest.md +++ /dev/null @@ -1,93 +0,0 @@ -# MarginIsolatedLimitRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BorrowAmount** | **string** | borrowAmount | -**Coin** | **string** | coin | -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginIsolatedLimitRequest - -`func NewMarginIsolatedLimitRequest(borrowAmount string, coin string, symbol string, ) *MarginIsolatedLimitRequest` - -NewMarginIsolatedLimitRequest instantiates a new MarginIsolatedLimitRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLimitRequestWithDefaults - -`func NewMarginIsolatedLimitRequestWithDefaults() *MarginIsolatedLimitRequest` - -NewMarginIsolatedLimitRequestWithDefaults instantiates a new MarginIsolatedLimitRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBorrowAmount - -`func (o *MarginIsolatedLimitRequest) GetBorrowAmount() string` - -GetBorrowAmount returns the BorrowAmount field if non-nil, zero value otherwise. - -### GetBorrowAmountOk - -`func (o *MarginIsolatedLimitRequest) GetBorrowAmountOk() (*string, bool)` - -GetBorrowAmountOk returns a tuple with the BorrowAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBorrowAmount - -`func (o *MarginIsolatedLimitRequest) SetBorrowAmount(v string)` - -SetBorrowAmount sets BorrowAmount field to given value. - - -### GetCoin - -`func (o *MarginIsolatedLimitRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedLimitRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedLimitRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - -### GetSymbol - -`func (o *MarginIsolatedLimitRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedLimitRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedLimitRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationApi.md deleted file mode 100644 index 23f3af03..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationApi.md +++ /dev/null @@ -1,83 +0,0 @@ -# \MarginIsolatedLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**IsolatedLiquidationList**](MarginIsolatedLiquidationApi.md#IsolatedLiquidationList) | **Get** /api/margin/v1/isolated/liquidation/list | list - - - -## IsolatedLiquidationList - -> ApiResponseResultOfMarginIsolatedLiquidationInfoResult IsolatedLiquidationList(ctx).Symbol(symbol).StartTime(startTime).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193138000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedLiquidationApi.IsolatedLiquidationList(context.Background()).Symbol(symbol).StartTime(startTime).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedLiquidationApi.IsolatedLiquidationList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `IsolatedLiquidationList`: ApiResponseResultOfMarginIsolatedLiquidationInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedLiquidationApi.IsolatedLiquidationList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiIsolatedLiquidationListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginIsolatedLiquidationInfoResult**](ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md deleted file mode 100644 index 9a251f38..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md +++ /dev/null @@ -1,264 +0,0 @@ -# MarginIsolatedLiquidationInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Ctime** | Pointer to **string** | | [optional] -**LiqEndTime** | Pointer to **string** | | [optional] -**LiqFee** | Pointer to **string** | | [optional] -**LiqId** | Pointer to **string** | | [optional] -**LiqRisk** | Pointer to **string** | | [optional] -**LiqStartTime** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**TotalAssets** | Pointer to **string** | | [optional] -**TotalDebt** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedLiquidationInfo - -`func NewMarginIsolatedLiquidationInfo() *MarginIsolatedLiquidationInfo` - -NewMarginIsolatedLiquidationInfo instantiates a new MarginIsolatedLiquidationInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLiquidationInfoWithDefaults - -`func NewMarginIsolatedLiquidationInfoWithDefaults() *MarginIsolatedLiquidationInfo` - -NewMarginIsolatedLiquidationInfoWithDefaults instantiates a new MarginIsolatedLiquidationInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCtime - -`func (o *MarginIsolatedLiquidationInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedLiquidationInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedLiquidationInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedLiquidationInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetLiqEndTime - -`func (o *MarginIsolatedLiquidationInfo) GetLiqEndTime() string` - -GetLiqEndTime returns the LiqEndTime field if non-nil, zero value otherwise. - -### GetLiqEndTimeOk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqEndTimeOk() (*string, bool)` - -GetLiqEndTimeOk returns a tuple with the LiqEndTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqEndTime - -`func (o *MarginIsolatedLiquidationInfo) SetLiqEndTime(v string)` - -SetLiqEndTime sets LiqEndTime field to given value. - -### HasLiqEndTime - -`func (o *MarginIsolatedLiquidationInfo) HasLiqEndTime() bool` - -HasLiqEndTime returns a boolean if a field has been set. - -### GetLiqFee - -`func (o *MarginIsolatedLiquidationInfo) GetLiqFee() string` - -GetLiqFee returns the LiqFee field if non-nil, zero value otherwise. - -### GetLiqFeeOk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqFeeOk() (*string, bool)` - -GetLiqFeeOk returns a tuple with the LiqFee field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqFee - -`func (o *MarginIsolatedLiquidationInfo) SetLiqFee(v string)` - -SetLiqFee sets LiqFee field to given value. - -### HasLiqFee - -`func (o *MarginIsolatedLiquidationInfo) HasLiqFee() bool` - -HasLiqFee returns a boolean if a field has been set. - -### GetLiqId - -`func (o *MarginIsolatedLiquidationInfo) GetLiqId() string` - -GetLiqId returns the LiqId field if non-nil, zero value otherwise. - -### GetLiqIdOk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqIdOk() (*string, bool)` - -GetLiqIdOk returns a tuple with the LiqId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqId - -`func (o *MarginIsolatedLiquidationInfo) SetLiqId(v string)` - -SetLiqId sets LiqId field to given value. - -### HasLiqId - -`func (o *MarginIsolatedLiquidationInfo) HasLiqId() bool` - -HasLiqId returns a boolean if a field has been set. - -### GetLiqRisk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqRisk() string` - -GetLiqRisk returns the LiqRisk field if non-nil, zero value otherwise. - -### GetLiqRiskOk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqRiskOk() (*string, bool)` - -GetLiqRiskOk returns a tuple with the LiqRisk field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqRisk - -`func (o *MarginIsolatedLiquidationInfo) SetLiqRisk(v string)` - -SetLiqRisk sets LiqRisk field to given value. - -### HasLiqRisk - -`func (o *MarginIsolatedLiquidationInfo) HasLiqRisk() bool` - -HasLiqRisk returns a boolean if a field has been set. - -### GetLiqStartTime - -`func (o *MarginIsolatedLiquidationInfo) GetLiqStartTime() string` - -GetLiqStartTime returns the LiqStartTime field if non-nil, zero value otherwise. - -### GetLiqStartTimeOk - -`func (o *MarginIsolatedLiquidationInfo) GetLiqStartTimeOk() (*string, bool)` - -GetLiqStartTimeOk returns a tuple with the LiqStartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqStartTime - -`func (o *MarginIsolatedLiquidationInfo) SetLiqStartTime(v string)` - -SetLiqStartTime sets LiqStartTime field to given value. - -### HasLiqStartTime - -`func (o *MarginIsolatedLiquidationInfo) HasLiqStartTime() bool` - -HasLiqStartTime returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedLiquidationInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedLiquidationInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedLiquidationInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedLiquidationInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetTotalAssets - -`func (o *MarginIsolatedLiquidationInfo) GetTotalAssets() string` - -GetTotalAssets returns the TotalAssets field if non-nil, zero value otherwise. - -### GetTotalAssetsOk - -`func (o *MarginIsolatedLiquidationInfo) GetTotalAssetsOk() (*string, bool)` - -GetTotalAssetsOk returns a tuple with the TotalAssets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAssets - -`func (o *MarginIsolatedLiquidationInfo) SetTotalAssets(v string)` - -SetTotalAssets sets TotalAssets field to given value. - -### HasTotalAssets - -`func (o *MarginIsolatedLiquidationInfo) HasTotalAssets() bool` - -HasTotalAssets returns a boolean if a field has been set. - -### GetTotalDebt - -`func (o *MarginIsolatedLiquidationInfo) GetTotalDebt() string` - -GetTotalDebt returns the TotalDebt field if non-nil, zero value otherwise. - -### GetTotalDebtOk - -`func (o *MarginIsolatedLiquidationInfo) GetTotalDebtOk() (*string, bool)` - -GetTotalDebtOk returns a tuple with the TotalDebt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalDebt - -`func (o *MarginIsolatedLiquidationInfo) SetTotalDebt(v string)` - -SetTotalDebt sets TotalDebt field to given value. - -### HasTotalDebt - -`func (o *MarginIsolatedLiquidationInfo) HasTotalDebt() bool` - -HasTotalDebt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index 8efe6b12..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginIsolatedLiquidationInfo**](MarginIsolatedLiquidationInfo.md) | | [optional] - -## Methods - -### NewMarginIsolatedLiquidationInfoResult - -`func NewMarginIsolatedLiquidationInfoResult() *MarginIsolatedLiquidationInfoResult` - -NewMarginIsolatedLiquidationInfoResult instantiates a new MarginIsolatedLiquidationInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLiquidationInfoResultWithDefaults - -`func NewMarginIsolatedLiquidationInfoResultWithDefaults() *MarginIsolatedLiquidationInfoResult` - -NewMarginIsolatedLiquidationInfoResultWithDefaults instantiates a new MarginIsolatedLiquidationInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginIsolatedLiquidationInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginIsolatedLiquidationInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginIsolatedLiquidationInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginIsolatedLiquidationInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginIsolatedLiquidationInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginIsolatedLiquidationInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginIsolatedLiquidationInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginIsolatedLiquidationInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginIsolatedLiquidationInfoResult) GetResultList() []MarginIsolatedLiquidationInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginIsolatedLiquidationInfoResult) GetResultListOk() (*[]MarginIsolatedLiquidationInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginIsolatedLiquidationInfoResult) SetResultList(v []MarginIsolatedLiquidationInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginIsolatedLiquidationInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfo.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfo.md deleted file mode 100644 index f84de1c4..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfo.md +++ /dev/null @@ -1,186 +0,0 @@ -# MarginIsolatedLoanInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**LoanId** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedLoanInfo - -`func NewMarginIsolatedLoanInfo() *MarginIsolatedLoanInfo` - -NewMarginIsolatedLoanInfo instantiates a new MarginIsolatedLoanInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLoanInfoWithDefaults - -`func NewMarginIsolatedLoanInfoWithDefaults() *MarginIsolatedLoanInfo` - -NewMarginIsolatedLoanInfoWithDefaults instantiates a new MarginIsolatedLoanInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginIsolatedLoanInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginIsolatedLoanInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginIsolatedLoanInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginIsolatedLoanInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedLoanInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedLoanInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedLoanInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedLoanInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginIsolatedLoanInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedLoanInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedLoanInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedLoanInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetLoanId - -`func (o *MarginIsolatedLoanInfo) GetLoanId() string` - -GetLoanId returns the LoanId field if non-nil, zero value otherwise. - -### GetLoanIdOk - -`func (o *MarginIsolatedLoanInfo) GetLoanIdOk() (*string, bool)` - -GetLoanIdOk returns a tuple with the LoanId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanId - -`func (o *MarginIsolatedLoanInfo) SetLoanId(v string)` - -SetLoanId sets LoanId field to given value. - -### HasLoanId - -`func (o *MarginIsolatedLoanInfo) HasLoanId() bool` - -HasLoanId returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedLoanInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedLoanInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedLoanInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedLoanInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetType - -`func (o *MarginIsolatedLoanInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginIsolatedLoanInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginIsolatedLoanInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginIsolatedLoanInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md deleted file mode 100644 index 27fae221..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginIsolatedLoanInfo**](MarginIsolatedLoanInfo.md) | | [optional] - -## Methods - -### NewMarginIsolatedLoanInfoResult - -`func NewMarginIsolatedLoanInfoResult() *MarginIsolatedLoanInfoResult` - -NewMarginIsolatedLoanInfoResult instantiates a new MarginIsolatedLoanInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedLoanInfoResultWithDefaults - -`func NewMarginIsolatedLoanInfoResultWithDefaults() *MarginIsolatedLoanInfoResult` - -NewMarginIsolatedLoanInfoResultWithDefaults instantiates a new MarginIsolatedLoanInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginIsolatedLoanInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginIsolatedLoanInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginIsolatedLoanInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginIsolatedLoanInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginIsolatedLoanInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginIsolatedLoanInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginIsolatedLoanInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginIsolatedLoanInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginIsolatedLoanInfoResult) GetResultList() []MarginIsolatedLoanInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginIsolatedLoanInfoResult) GetResultListOk() (*[]MarginIsolatedLoanInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginIsolatedLoanInfoResult) SetResultList(v []MarginIsolatedLoanInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginIsolatedLoanInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md deleted file mode 100644 index aec44b98..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# MarginIsolatedMaxBorrowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | **string** | coin | -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginIsolatedMaxBorrowRequest - -`func NewMarginIsolatedMaxBorrowRequest(coin string, symbol string, ) *MarginIsolatedMaxBorrowRequest` - -NewMarginIsolatedMaxBorrowRequest instantiates a new MarginIsolatedMaxBorrowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedMaxBorrowRequestWithDefaults - -`func NewMarginIsolatedMaxBorrowRequestWithDefaults() *MarginIsolatedMaxBorrowRequest` - -NewMarginIsolatedMaxBorrowRequestWithDefaults instantiates a new MarginIsolatedMaxBorrowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginIsolatedMaxBorrowRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedMaxBorrowRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedMaxBorrowRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - -### GetSymbol - -`func (o *MarginIsolatedMaxBorrowRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedMaxBorrowRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedMaxBorrowRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 5c22f13d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | Pointer to **string** | | [optional] -**MaxBorrowableAmount** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedMaxBorrowResult - -`func NewMarginIsolatedMaxBorrowResult() *MarginIsolatedMaxBorrowResult` - -NewMarginIsolatedMaxBorrowResult instantiates a new MarginIsolatedMaxBorrowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedMaxBorrowResultWithDefaults - -`func NewMarginIsolatedMaxBorrowResultWithDefaults() *MarginIsolatedMaxBorrowResult` - -NewMarginIsolatedMaxBorrowResultWithDefaults instantiates a new MarginIsolatedMaxBorrowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginIsolatedMaxBorrowResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedMaxBorrowResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedMaxBorrowResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedMaxBorrowResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetMaxBorrowableAmount - -`func (o *MarginIsolatedMaxBorrowResult) GetMaxBorrowableAmount() string` - -GetMaxBorrowableAmount returns the MaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetMaxBorrowableAmountOk - -`func (o *MarginIsolatedMaxBorrowResult) GetMaxBorrowableAmountOk() (*string, bool)` - -GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxBorrowableAmount - -`func (o *MarginIsolatedMaxBorrowResult) SetMaxBorrowableAmount(v string)` - -SetMaxBorrowableAmount sets MaxBorrowableAmount field to given value. - -### HasMaxBorrowableAmount - -`func (o *MarginIsolatedMaxBorrowResult) HasMaxBorrowableAmount() bool` - -HasMaxBorrowableAmount returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedMaxBorrowResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedMaxBorrowResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedMaxBorrowResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedMaxBorrowResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedOrderApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedOrderApi.md deleted file mode 100644 index 00e5958b..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedOrderApi.md +++ /dev/null @@ -1,511 +0,0 @@ -# \MarginIsolatedOrderApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginIsolatedBatchCancelOrder**](MarginIsolatedOrderApi.md#MarginIsolatedBatchCancelOrder) | **Post** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -[**MarginIsolatedBatchPlaceOrder**](MarginIsolatedOrderApi.md#MarginIsolatedBatchPlaceOrder) | **Post** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -[**MarginIsolatedCancelOrder**](MarginIsolatedOrderApi.md#MarginIsolatedCancelOrder) | **Post** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -[**MarginIsolatedFills**](MarginIsolatedOrderApi.md#MarginIsolatedFills) | **Get** /api/margin/v1/isolated/order/fills | fills -[**MarginIsolatedHistoryOrders**](MarginIsolatedOrderApi.md#MarginIsolatedHistoryOrders) | **Get** /api/margin/v1/isolated/order/history | history -[**MarginIsolatedOpenOrders**](MarginIsolatedOrderApi.md#MarginIsolatedOpenOrders) | **Get** /api/margin/v1/isolated/order/openOrders | openOrders -[**MarginIsolatedPlaceOrder**](MarginIsolatedOrderApi.md#MarginIsolatedPlaceOrder) | **Post** /api/margin/v1/isolated/order/placeOrder | placeOrder - - - -## MarginIsolatedBatchCancelOrder - -> ApiResponseResultOfMarginBatchCancelOrderResult MarginIsolatedBatchCancelOrder(ctx).MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest).Execute() - -batchCancelOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginBatchCancelOrderRequest := *openapiclient.NewMarginBatchCancelOrderRequest("BTCUSDT_SPBL") // MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedBatchCancelOrder(context.Background()).MarginBatchCancelOrderRequest(marginBatchCancelOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedBatchCancelOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedBatchCancelOrder`: ApiResponseResultOfMarginBatchCancelOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedBatchCancelOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedBatchCancelOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginBatchCancelOrderRequest** | [**MarginBatchCancelOrderRequest**](MarginBatchCancelOrderRequest.md) | marginBatchCancelOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedBatchPlaceOrder - -> ApiResponseResultOfMarginBatchPlaceOrderResult MarginIsolatedBatchPlaceOrder(ctx).MarginOrderRequest(marginOrderRequest).Execute() - -batchPlaceOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginOrderRequest := *openapiclient.NewMarginBatchOrdersRequest("BTCUSDT_SPBL") // MarginBatchOrdersRequest | marginOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedBatchPlaceOrder(context.Background()).MarginOrderRequest(marginOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedBatchPlaceOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedBatchPlaceOrder`: ApiResponseResultOfMarginBatchPlaceOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedBatchPlaceOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedBatchPlaceOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginOrderRequest** | [**MarginBatchOrdersRequest**](MarginBatchOrdersRequest.md) | marginOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedCancelOrder - -> ApiResponseResultOfMarginBatchCancelOrderResult MarginIsolatedCancelOrder(ctx).MarginCancelOrderRequest(marginCancelOrderRequest).Execute() - -cancelOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginCancelOrderRequest := *openapiclient.NewMarginCancelOrderRequest("BTCUSDT_SPBL") // MarginCancelOrderRequest | marginCancelOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedCancelOrder(context.Background()).MarginCancelOrderRequest(marginCancelOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedCancelOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedCancelOrder`: ApiResponseResultOfMarginBatchCancelOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedCancelOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedCancelOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginCancelOrderRequest** | [**MarginCancelOrderRequest**](MarginCancelOrderRequest.md) | marginCancelOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedFills - -> ApiResponseResultOfMarginTradeDetailInfoResult MarginIsolatedFills(ctx).StartTime(startTime).Symbol(symbol).EndTime(endTime).OrderId(orderId).LastFillId(lastFillId).PageSize(pageSize).Execute() - -fills - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - symbol := "BTCUSDT" // string | symbol (optional) - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - lastFillId := "lastFillId_example" // string | lastFillId (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedFills(context.Background()).StartTime(startTime).Symbol(symbol).EndTime(endTime).OrderId(orderId).LastFillId(lastFillId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedFills``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedFills`: ApiResponseResultOfMarginTradeDetailInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedFills`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedFillsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **symbol** | **string** | symbol | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **lastFillId** | **string** | lastFillId | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMarginTradeDetailInfoResult**](ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedHistoryOrders - -> ApiResponseResultOfMarginOpenOrderInfoResult MarginIsolatedHistoryOrders(ctx).StartTime(startTime).Symbol(symbol).Source(source).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).MinId(minId).Execute() - -history - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - symbol := "BTCUSDT" // string | symbol (optional) - source := "API" // string | source (optional) - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - clientOid := "123456" // string | clientOid (optional) - pageSize := "10" // string | pageSize (optional) - minId := "minId_example" // string | minId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedHistoryOrders(context.Background()).StartTime(startTime).Symbol(symbol).Source(source).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).MinId(minId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedHistoryOrders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedHistoryOrders`: ApiResponseResultOfMarginOpenOrderInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedHistoryOrders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedHistoryOrdersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **symbol** | **string** | symbol | - **source** | **string** | source | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **clientOid** | **string** | clientOid | - **pageSize** | **string** | pageSize | - **minId** | **string** | minId | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedOpenOrders - -> ApiResponseResultOfMarginOpenOrderInfoResult MarginIsolatedOpenOrders(ctx).Symbol(symbol).StartTime(startTime).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).Execute() - -openOrders - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - orderId := "32428347234" // string | orderId (optional) - clientOid := "123456" // string | clientOid (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedOpenOrders(context.Background()).Symbol(symbol).StartTime(startTime).EndTime(endTime).OrderId(orderId).ClientOid(clientOid).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedOpenOrders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedOpenOrders`: ApiResponseResultOfMarginOpenOrderInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedOpenOrders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedOpenOrdersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **orderId** | **string** | orderId | - **clientOid** | **string** | clientOid | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedPlaceOrder - -> ApiResponseResultOfMarginPlaceOrderResult MarginIsolatedPlaceOrder(ctx).MarginOrderRequest(marginOrderRequest).Execute() - -placeOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - marginOrderRequest := *openapiclient.NewMarginOrderRequest("normal/autoLoan/autoRepay", "limit/market", "sell/buy", "BTCUSDT_SPBL") // MarginOrderRequest | marginOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedPlaceOrder(context.Background()).MarginOrderRequest(marginOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedOrderApi.MarginIsolatedPlaceOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedPlaceOrder`: ApiResponseResultOfMarginPlaceOrderResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedOrderApi.MarginIsolatedPlaceOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedPlaceOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marginOrderRequest** | [**MarginOrderRequest**](MarginOrderRequest.md) | marginOrderRequest | - -### Return type - -[**ApiResponseResultOfMarginPlaceOrderResult**](ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedPublicApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedPublicApi.md deleted file mode 100644 index 12d67b5d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedPublicApi.md +++ /dev/null @@ -1,142 +0,0 @@ -# \MarginIsolatedPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginIsolatedPublicInterestRateAndLimit**](MarginIsolatedPublicApi.md#MarginIsolatedPublicInterestRateAndLimit) | **Get** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -[**MarginIsolatedPublicTierData**](MarginIsolatedPublicApi.md#MarginIsolatedPublicTierData) | **Get** /api/margin/v1/isolated/public/tierData | tierData - - - -## MarginIsolatedPublicInterestRateAndLimit - -> ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult MarginIsolatedPublicInterestRateAndLimit(ctx).Symbol(symbol).Execute() - -interestRateAndLimit - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedPublicApi.MarginIsolatedPublicInterestRateAndLimit(context.Background()).Symbol(symbol).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedPublicApi.MarginIsolatedPublicInterestRateAndLimit``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedPublicInterestRateAndLimit`: ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedPublicApi.MarginIsolatedPublicInterestRateAndLimit`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedPublicInterestRateAndLimitRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult**](ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MarginIsolatedPublicTierData - -> ApiResponseResultOfListOfMarginIsolatedLevelResult MarginIsolatedPublicTierData(ctx).Symbol(symbol).Execute() - -tierData - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedPublicApi.MarginIsolatedPublicTierData(context.Background()).Symbol(symbol).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedPublicApi.MarginIsolatedPublicTierData``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginIsolatedPublicTierData`: ApiResponseResultOfListOfMarginIsolatedLevelResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedPublicApi.MarginIsolatedPublicTierData`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginIsolatedPublicTierDataRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedLevelResult**](ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md deleted file mode 100644 index c0b121e0..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,446 +0,0 @@ -# MarginIsolatedRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseBorrowAble** | Pointer to **bool** | | [optional] -**BaseCoin** | Pointer to **string** | | [optional] -**BaseDailyInterestRate** | Pointer to **string** | | [optional] -**BaseMaxBorrowableAmount** | Pointer to **string** | | [optional] -**BaseTransferInAble** | Pointer to **bool** | | [optional] -**BaseVips** | Pointer to [**[]MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | | [optional] -**BaseYearlyInterestRate** | Pointer to **string** | | [optional] -**Leverage** | Pointer to **string** | | [optional] -**QuoteBorrowAble** | Pointer to **bool** | | [optional] -**QuoteCoin** | Pointer to **string** | | [optional] -**QuoteDailyInterestRate** | Pointer to **string** | | [optional] -**QuoteMaxBorrowableAmount** | Pointer to **string** | | [optional] -**QuoteTransferInAble** | Pointer to **bool** | | [optional] -**QuoteVips** | Pointer to [**[]MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | | [optional] -**QuoteYearlyInterestRate** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedRateAndLimitResult - -`func NewMarginIsolatedRateAndLimitResult() *MarginIsolatedRateAndLimitResult` - -NewMarginIsolatedRateAndLimitResult instantiates a new MarginIsolatedRateAndLimitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedRateAndLimitResultWithDefaults - -`func NewMarginIsolatedRateAndLimitResultWithDefaults() *MarginIsolatedRateAndLimitResult` - -NewMarginIsolatedRateAndLimitResultWithDefaults instantiates a new MarginIsolatedRateAndLimitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBaseBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseBorrowAble() bool` - -GetBaseBorrowAble returns the BaseBorrowAble field if non-nil, zero value otherwise. - -### GetBaseBorrowAbleOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseBorrowAbleOk() (*bool, bool)` - -GetBaseBorrowAbleOk returns a tuple with the BaseBorrowAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseBorrowAble(v bool)` - -SetBaseBorrowAble sets BaseBorrowAble field to given value. - -### HasBaseBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseBorrowAble() bool` - -HasBaseBorrowAble returns a boolean if a field has been set. - -### GetBaseCoin - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseCoin() string` - -GetBaseCoin returns the BaseCoin field if non-nil, zero value otherwise. - -### GetBaseCoinOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseCoinOk() (*string, bool)` - -GetBaseCoinOk returns a tuple with the BaseCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseCoin - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseCoin(v string)` - -SetBaseCoin sets BaseCoin field to given value. - -### HasBaseCoin - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseCoin() bool` - -HasBaseCoin returns a boolean if a field has been set. - -### GetBaseDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseDailyInterestRate() string` - -GetBaseDailyInterestRate returns the BaseDailyInterestRate field if non-nil, zero value otherwise. - -### GetBaseDailyInterestRateOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseDailyInterestRateOk() (*string, bool)` - -GetBaseDailyInterestRateOk returns a tuple with the BaseDailyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseDailyInterestRate(v string)` - -SetBaseDailyInterestRate sets BaseDailyInterestRate field to given value. - -### HasBaseDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseDailyInterestRate() bool` - -HasBaseDailyInterestRate returns a boolean if a field has been set. - -### GetBaseMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseMaxBorrowableAmount() string` - -GetBaseMaxBorrowableAmount returns the BaseMaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetBaseMaxBorrowableAmountOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseMaxBorrowableAmountOk() (*string, bool)` - -GetBaseMaxBorrowableAmountOk returns a tuple with the BaseMaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseMaxBorrowableAmount(v string)` - -SetBaseMaxBorrowableAmount sets BaseMaxBorrowableAmount field to given value. - -### HasBaseMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseMaxBorrowableAmount() bool` - -HasBaseMaxBorrowableAmount returns a boolean if a field has been set. - -### GetBaseTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseTransferInAble() bool` - -GetBaseTransferInAble returns the BaseTransferInAble field if non-nil, zero value otherwise. - -### GetBaseTransferInAbleOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseTransferInAbleOk() (*bool, bool)` - -GetBaseTransferInAbleOk returns a tuple with the BaseTransferInAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseTransferInAble(v bool)` - -SetBaseTransferInAble sets BaseTransferInAble field to given value. - -### HasBaseTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseTransferInAble() bool` - -HasBaseTransferInAble returns a boolean if a field has been set. - -### GetBaseVips - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseVips() []MarginIsolatedVipResult` - -GetBaseVips returns the BaseVips field if non-nil, zero value otherwise. - -### GetBaseVipsOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseVipsOk() (*[]MarginIsolatedVipResult, bool)` - -GetBaseVipsOk returns a tuple with the BaseVips field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseVips - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseVips(v []MarginIsolatedVipResult)` - -SetBaseVips sets BaseVips field to given value. - -### HasBaseVips - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseVips() bool` - -HasBaseVips returns a boolean if a field has been set. - -### GetBaseYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseYearlyInterestRate() string` - -GetBaseYearlyInterestRate returns the BaseYearlyInterestRate field if non-nil, zero value otherwise. - -### GetBaseYearlyInterestRateOk - -`func (o *MarginIsolatedRateAndLimitResult) GetBaseYearlyInterestRateOk() (*string, bool)` - -GetBaseYearlyInterestRateOk returns a tuple with the BaseYearlyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) SetBaseYearlyInterestRate(v string)` - -SetBaseYearlyInterestRate sets BaseYearlyInterestRate field to given value. - -### HasBaseYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) HasBaseYearlyInterestRate() bool` - -HasBaseYearlyInterestRate returns a boolean if a field has been set. - -### GetLeverage - -`func (o *MarginIsolatedRateAndLimitResult) GetLeverage() string` - -GetLeverage returns the Leverage field if non-nil, zero value otherwise. - -### GetLeverageOk - -`func (o *MarginIsolatedRateAndLimitResult) GetLeverageOk() (*string, bool)` - -GetLeverageOk returns a tuple with the Leverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLeverage - -`func (o *MarginIsolatedRateAndLimitResult) SetLeverage(v string)` - -SetLeverage sets Leverage field to given value. - -### HasLeverage - -`func (o *MarginIsolatedRateAndLimitResult) HasLeverage() bool` - -HasLeverage returns a boolean if a field has been set. - -### GetQuoteBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteBorrowAble() bool` - -GetQuoteBorrowAble returns the QuoteBorrowAble field if non-nil, zero value otherwise. - -### GetQuoteBorrowAbleOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteBorrowAbleOk() (*bool, bool)` - -GetQuoteBorrowAbleOk returns a tuple with the QuoteBorrowAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteBorrowAble(v bool)` - -SetQuoteBorrowAble sets QuoteBorrowAble field to given value. - -### HasQuoteBorrowAble - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteBorrowAble() bool` - -HasQuoteBorrowAble returns a boolean if a field has been set. - -### GetQuoteCoin - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteCoin() string` - -GetQuoteCoin returns the QuoteCoin field if non-nil, zero value otherwise. - -### GetQuoteCoinOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteCoinOk() (*string, bool)` - -GetQuoteCoinOk returns a tuple with the QuoteCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteCoin - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteCoin(v string)` - -SetQuoteCoin sets QuoteCoin field to given value. - -### HasQuoteCoin - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteCoin() bool` - -HasQuoteCoin returns a boolean if a field has been set. - -### GetQuoteDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteDailyInterestRate() string` - -GetQuoteDailyInterestRate returns the QuoteDailyInterestRate field if non-nil, zero value otherwise. - -### GetQuoteDailyInterestRateOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteDailyInterestRateOk() (*string, bool)` - -GetQuoteDailyInterestRateOk returns a tuple with the QuoteDailyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteDailyInterestRate(v string)` - -SetQuoteDailyInterestRate sets QuoteDailyInterestRate field to given value. - -### HasQuoteDailyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteDailyInterestRate() bool` - -HasQuoteDailyInterestRate returns a boolean if a field has been set. - -### GetQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteMaxBorrowableAmount() string` - -GetQuoteMaxBorrowableAmount returns the QuoteMaxBorrowableAmount field if non-nil, zero value otherwise. - -### GetQuoteMaxBorrowableAmountOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteMaxBorrowableAmountOk() (*string, bool)` - -GetQuoteMaxBorrowableAmountOk returns a tuple with the QuoteMaxBorrowableAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteMaxBorrowableAmount(v string)` - -SetQuoteMaxBorrowableAmount sets QuoteMaxBorrowableAmount field to given value. - -### HasQuoteMaxBorrowableAmount - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteMaxBorrowableAmount() bool` - -HasQuoteMaxBorrowableAmount returns a boolean if a field has been set. - -### GetQuoteTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteTransferInAble() bool` - -GetQuoteTransferInAble returns the QuoteTransferInAble field if non-nil, zero value otherwise. - -### GetQuoteTransferInAbleOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteTransferInAbleOk() (*bool, bool)` - -GetQuoteTransferInAbleOk returns a tuple with the QuoteTransferInAble field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteTransferInAble(v bool)` - -SetQuoteTransferInAble sets QuoteTransferInAble field to given value. - -### HasQuoteTransferInAble - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteTransferInAble() bool` - -HasQuoteTransferInAble returns a boolean if a field has been set. - -### GetQuoteVips - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteVips() []MarginIsolatedVipResult` - -GetQuoteVips returns the QuoteVips field if non-nil, zero value otherwise. - -### GetQuoteVipsOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteVipsOk() (*[]MarginIsolatedVipResult, bool)` - -GetQuoteVipsOk returns a tuple with the QuoteVips field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteVips - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteVips(v []MarginIsolatedVipResult)` - -SetQuoteVips sets QuoteVips field to given value. - -### HasQuoteVips - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteVips() bool` - -HasQuoteVips returns a boolean if a field has been set. - -### GetQuoteYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteYearlyInterestRate() string` - -GetQuoteYearlyInterestRate returns the QuoteYearlyInterestRate field if non-nil, zero value otherwise. - -### GetQuoteYearlyInterestRateOk - -`func (o *MarginIsolatedRateAndLimitResult) GetQuoteYearlyInterestRateOk() (*string, bool)` - -GetQuoteYearlyInterestRateOk returns a tuple with the QuoteYearlyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) SetQuoteYearlyInterestRate(v string)` - -SetQuoteYearlyInterestRate sets QuoteYearlyInterestRate field to given value. - -### HasQuoteYearlyInterestRate - -`func (o *MarginIsolatedRateAndLimitResult) HasQuoteYearlyInterestRate() bool` - -HasQuoteYearlyInterestRate returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedRateAndLimitResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedRateAndLimitResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedRateAndLimitResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedRateAndLimitResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayApi.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayApi.md deleted file mode 100644 index 579f844a..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayApi.md +++ /dev/null @@ -1,87 +0,0 @@ -# \MarginIsolatedRepayApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**IsolateRepayList**](MarginIsolatedRepayApi.md#IsolateRepayList) | **Get** /api/margin/v1/isolated/repay/list | list - - - -## IsolateRepayList - -> ApiResponseResultOfMarginIsolatedRepayInfoResult IsolateRepayList(ctx).Symbol(symbol).StartTime(startTime).Coin(coin).RepayId(repayId).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - -list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - symbol := "BTCUSDT" // string | symbol - startTime := "1678193338000" // string | startTime - coin := "USDT" // string | coin (optional) - repayId := "repayId_example" // string | repayId (optional) - endTime := "1678193338000" // string | endTime (optional) - pageSize := "10" // string | pageSize (optional) - pageId := "pageId_example" // string | pageId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginIsolatedRepayApi.IsolateRepayList(context.Background()).Symbol(symbol).StartTime(startTime).Coin(coin).RepayId(repayId).EndTime(endTime).PageSize(pageSize).PageId(pageId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginIsolatedRepayApi.IsolateRepayList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `IsolateRepayList`: ApiResponseResultOfMarginIsolatedRepayInfoResult - fmt.Fprintf(os.Stdout, "Response from `MarginIsolatedRepayApi.IsolateRepayList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiIsolateRepayListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **string** | symbol | - **startTime** | **string** | startTime | - **coin** | **string** | coin | - **repayId** | **string** | repayId | - **endTime** | **string** | endTime | - **pageSize** | **string** | pageSize | - **pageId** | **string** | pageId | - -### Return type - -[**ApiResponseResultOfMarginIsolatedRepayInfoResult**](ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfo.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfo.md deleted file mode 100644 index e8374f4f..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfo.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginIsolatedRepayInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Interest** | Pointer to **string** | | [optional] -**RepayId** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**TotalAmount** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedRepayInfo - -`func NewMarginIsolatedRepayInfo() *MarginIsolatedRepayInfo` - -NewMarginIsolatedRepayInfo instantiates a new MarginIsolatedRepayInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedRepayInfoWithDefaults - -`func NewMarginIsolatedRepayInfoWithDefaults() *MarginIsolatedRepayInfo` - -NewMarginIsolatedRepayInfoWithDefaults instantiates a new MarginIsolatedRepayInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginIsolatedRepayInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginIsolatedRepayInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginIsolatedRepayInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginIsolatedRepayInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedRepayInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedRepayInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedRepayInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedRepayInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginIsolatedRepayInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginIsolatedRepayInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginIsolatedRepayInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginIsolatedRepayInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetInterest - -`func (o *MarginIsolatedRepayInfo) GetInterest() string` - -GetInterest returns the Interest field if non-nil, zero value otherwise. - -### GetInterestOk - -`func (o *MarginIsolatedRepayInfo) GetInterestOk() (*string, bool)` - -GetInterestOk returns a tuple with the Interest field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterest - -`func (o *MarginIsolatedRepayInfo) SetInterest(v string)` - -SetInterest sets Interest field to given value. - -### HasInterest - -`func (o *MarginIsolatedRepayInfo) HasInterest() bool` - -HasInterest returns a boolean if a field has been set. - -### GetRepayId - -`func (o *MarginIsolatedRepayInfo) GetRepayId() string` - -GetRepayId returns the RepayId field if non-nil, zero value otherwise. - -### GetRepayIdOk - -`func (o *MarginIsolatedRepayInfo) GetRepayIdOk() (*string, bool)` - -GetRepayIdOk returns a tuple with the RepayId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayId - -`func (o *MarginIsolatedRepayInfo) SetRepayId(v string)` - -SetRepayId sets RepayId field to given value. - -### HasRepayId - -`func (o *MarginIsolatedRepayInfo) HasRepayId() bool` - -HasRepayId returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedRepayInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedRepayInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedRepayInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedRepayInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetTotalAmount - -`func (o *MarginIsolatedRepayInfo) GetTotalAmount() string` - -GetTotalAmount returns the TotalAmount field if non-nil, zero value otherwise. - -### GetTotalAmountOk - -`func (o *MarginIsolatedRepayInfo) GetTotalAmountOk() (*string, bool)` - -GetTotalAmountOk returns a tuple with the TotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAmount - -`func (o *MarginIsolatedRepayInfo) SetTotalAmount(v string)` - -SetTotalAmount sets TotalAmount field to given value. - -### HasTotalAmount - -`func (o *MarginIsolatedRepayInfo) HasTotalAmount() bool` - -HasTotalAmount returns a boolean if a field has been set. - -### GetType - -`func (o *MarginIsolatedRepayInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginIsolatedRepayInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginIsolatedRepayInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginIsolatedRepayInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md deleted file mode 100644 index 37cdfa70..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginIsolatedRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginIsolatedRepayInfo**](MarginIsolatedRepayInfo.md) | | [optional] - -## Methods - -### NewMarginIsolatedRepayInfoResult - -`func NewMarginIsolatedRepayInfoResult() *MarginIsolatedRepayInfoResult` - -NewMarginIsolatedRepayInfoResult instantiates a new MarginIsolatedRepayInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedRepayInfoResultWithDefaults - -`func NewMarginIsolatedRepayInfoResultWithDefaults() *MarginIsolatedRepayInfoResult` - -NewMarginIsolatedRepayInfoResultWithDefaults instantiates a new MarginIsolatedRepayInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginIsolatedRepayInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginIsolatedRepayInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginIsolatedRepayInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginIsolatedRepayInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginIsolatedRepayInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginIsolatedRepayInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginIsolatedRepayInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginIsolatedRepayInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginIsolatedRepayInfoResult) GetResultList() []MarginIsolatedRepayInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginIsolatedRepayInfoResult) GetResultListOk() (*[]MarginIsolatedRepayInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginIsolatedRepayInfoResult) SetResultList(v []MarginIsolatedRepayInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginIsolatedRepayInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayRequest.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayRequest.md deleted file mode 100644 index 167c0797..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayRequest.md +++ /dev/null @@ -1,93 +0,0 @@ -# MarginIsolatedRepayRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Coin** | **string** | coin | -**RepayAmount** | **string** | repayAmount | -**Symbol** | **string** | symbol | - -## Methods - -### NewMarginIsolatedRepayRequest - -`func NewMarginIsolatedRepayRequest(coin string, repayAmount string, symbol string, ) *MarginIsolatedRepayRequest` - -NewMarginIsolatedRepayRequest instantiates a new MarginIsolatedRepayRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedRepayRequestWithDefaults - -`func NewMarginIsolatedRepayRequestWithDefaults() *MarginIsolatedRepayRequest` - -NewMarginIsolatedRepayRequestWithDefaults instantiates a new MarginIsolatedRepayRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoin - -`func (o *MarginIsolatedRepayRequest) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedRepayRequest) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedRepayRequest) SetCoin(v string)` - -SetCoin sets Coin field to given value. - - -### GetRepayAmount - -`func (o *MarginIsolatedRepayRequest) GetRepayAmount() string` - -GetRepayAmount returns the RepayAmount field if non-nil, zero value otherwise. - -### GetRepayAmountOk - -`func (o *MarginIsolatedRepayRequest) GetRepayAmountOk() (*string, bool)` - -GetRepayAmountOk returns a tuple with the RepayAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayAmount - -`func (o *MarginIsolatedRepayRequest) SetRepayAmount(v string)` - -SetRepayAmount sets RepayAmount field to given value. - - -### GetSymbol - -`func (o *MarginIsolatedRepayRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedRepayRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedRepayRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayResult.md deleted file mode 100644 index 50593122..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedRepayResult.md +++ /dev/null @@ -1,160 +0,0 @@ -# MarginIsolatedRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**RemainDebtAmount** | Pointer to **string** | | [optional] -**RepayAmount** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedRepayResult - -`func NewMarginIsolatedRepayResult() *MarginIsolatedRepayResult` - -NewMarginIsolatedRepayResult instantiates a new MarginIsolatedRepayResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedRepayResultWithDefaults - -`func NewMarginIsolatedRepayResultWithDefaults() *MarginIsolatedRepayResult` - -NewMarginIsolatedRepayResultWithDefaults instantiates a new MarginIsolatedRepayResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginIsolatedRepayResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginIsolatedRepayResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginIsolatedRepayResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginIsolatedRepayResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginIsolatedRepayResult) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginIsolatedRepayResult) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginIsolatedRepayResult) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginIsolatedRepayResult) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetRemainDebtAmount - -`func (o *MarginIsolatedRepayResult) GetRemainDebtAmount() string` - -GetRemainDebtAmount returns the RemainDebtAmount field if non-nil, zero value otherwise. - -### GetRemainDebtAmountOk - -`func (o *MarginIsolatedRepayResult) GetRemainDebtAmountOk() (*string, bool)` - -GetRemainDebtAmountOk returns a tuple with the RemainDebtAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRemainDebtAmount - -`func (o *MarginIsolatedRepayResult) SetRemainDebtAmount(v string)` - -SetRemainDebtAmount sets RemainDebtAmount field to given value. - -### HasRemainDebtAmount - -`func (o *MarginIsolatedRepayResult) HasRemainDebtAmount() bool` - -HasRemainDebtAmount returns a boolean if a field has been set. - -### GetRepayAmount - -`func (o *MarginIsolatedRepayResult) GetRepayAmount() string` - -GetRepayAmount returns the RepayAmount field if non-nil, zero value otherwise. - -### GetRepayAmountOk - -`func (o *MarginIsolatedRepayResult) GetRepayAmountOk() (*string, bool)` - -GetRepayAmountOk returns a tuple with the RepayAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayAmount - -`func (o *MarginIsolatedRepayResult) SetRepayAmount(v string)` - -SetRepayAmount sets RepayAmount field to given value. - -### HasRepayAmount - -`func (o *MarginIsolatedRepayResult) HasRepayAmount() bool` - -HasRepayAmount returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginIsolatedRepayResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginIsolatedRepayResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginIsolatedRepayResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginIsolatedRepayResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginIsolatedVipResult.md b/bitget-goland-sdk-open-api/docs/MarginIsolatedVipResult.md deleted file mode 100644 index eb9519e3..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginIsolatedVipResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# MarginIsolatedVipResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DailyInterestRate** | Pointer to **string** | | [optional] -**DiscountRate** | Pointer to **string** | | [optional] -**Level** | Pointer to **string** | | [optional] -**YearlyInterestRate** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginIsolatedVipResult - -`func NewMarginIsolatedVipResult() *MarginIsolatedVipResult` - -NewMarginIsolatedVipResult instantiates a new MarginIsolatedVipResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginIsolatedVipResultWithDefaults - -`func NewMarginIsolatedVipResultWithDefaults() *MarginIsolatedVipResult` - -NewMarginIsolatedVipResultWithDefaults instantiates a new MarginIsolatedVipResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDailyInterestRate - -`func (o *MarginIsolatedVipResult) GetDailyInterestRate() string` - -GetDailyInterestRate returns the DailyInterestRate field if non-nil, zero value otherwise. - -### GetDailyInterestRateOk - -`func (o *MarginIsolatedVipResult) GetDailyInterestRateOk() (*string, bool)` - -GetDailyInterestRateOk returns a tuple with the DailyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDailyInterestRate - -`func (o *MarginIsolatedVipResult) SetDailyInterestRate(v string)` - -SetDailyInterestRate sets DailyInterestRate field to given value. - -### HasDailyInterestRate - -`func (o *MarginIsolatedVipResult) HasDailyInterestRate() bool` - -HasDailyInterestRate returns a boolean if a field has been set. - -### GetDiscountRate - -`func (o *MarginIsolatedVipResult) GetDiscountRate() string` - -GetDiscountRate returns the DiscountRate field if non-nil, zero value otherwise. - -### GetDiscountRateOk - -`func (o *MarginIsolatedVipResult) GetDiscountRateOk() (*string, bool)` - -GetDiscountRateOk returns a tuple with the DiscountRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDiscountRate - -`func (o *MarginIsolatedVipResult) SetDiscountRate(v string)` - -SetDiscountRate sets DiscountRate field to given value. - -### HasDiscountRate - -`func (o *MarginIsolatedVipResult) HasDiscountRate() bool` - -HasDiscountRate returns a boolean if a field has been set. - -### GetLevel - -`func (o *MarginIsolatedVipResult) GetLevel() string` - -GetLevel returns the Level field if non-nil, zero value otherwise. - -### GetLevelOk - -`func (o *MarginIsolatedVipResult) GetLevelOk() (*string, bool)` - -GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLevel - -`func (o *MarginIsolatedVipResult) SetLevel(v string)` - -SetLevel sets Level field to given value. - -### HasLevel - -`func (o *MarginIsolatedVipResult) HasLevel() bool` - -HasLevel returns a boolean if a field has been set. - -### GetYearlyInterestRate - -`func (o *MarginIsolatedVipResult) GetYearlyInterestRate() string` - -GetYearlyInterestRate returns the YearlyInterestRate field if non-nil, zero value otherwise. - -### GetYearlyInterestRateOk - -`func (o *MarginIsolatedVipResult) GetYearlyInterestRateOk() (*string, bool)` - -GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYearlyInterestRate - -`func (o *MarginIsolatedVipResult) SetYearlyInterestRate(v string)` - -SetYearlyInterestRate sets YearlyInterestRate field to given value. - -### HasYearlyInterestRate - -`func (o *MarginIsolatedVipResult) HasYearlyInterestRate() bool` - -HasYearlyInterestRate returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginLiquidationInfo.md b/bitget-goland-sdk-open-api/docs/MarginLiquidationInfo.md deleted file mode 100644 index 69a7d43f..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginLiquidationInfo.md +++ /dev/null @@ -1,238 +0,0 @@ -# MarginLiquidationInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Ctime** | Pointer to **string** | | [optional] -**LiqEndTime** | Pointer to **string** | | [optional] -**LiqFee** | Pointer to **string** | | [optional] -**LiqId** | Pointer to **string** | | [optional] -**LiqRisk** | Pointer to **string** | | [optional] -**LiqStartTime** | Pointer to **string** | | [optional] -**TotalAssets** | Pointer to **string** | | [optional] -**TotalDebt** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginLiquidationInfo - -`func NewMarginLiquidationInfo() *MarginLiquidationInfo` - -NewMarginLiquidationInfo instantiates a new MarginLiquidationInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginLiquidationInfoWithDefaults - -`func NewMarginLiquidationInfoWithDefaults() *MarginLiquidationInfo` - -NewMarginLiquidationInfoWithDefaults instantiates a new MarginLiquidationInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCtime - -`func (o *MarginLiquidationInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginLiquidationInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginLiquidationInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginLiquidationInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetLiqEndTime - -`func (o *MarginLiquidationInfo) GetLiqEndTime() string` - -GetLiqEndTime returns the LiqEndTime field if non-nil, zero value otherwise. - -### GetLiqEndTimeOk - -`func (o *MarginLiquidationInfo) GetLiqEndTimeOk() (*string, bool)` - -GetLiqEndTimeOk returns a tuple with the LiqEndTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqEndTime - -`func (o *MarginLiquidationInfo) SetLiqEndTime(v string)` - -SetLiqEndTime sets LiqEndTime field to given value. - -### HasLiqEndTime - -`func (o *MarginLiquidationInfo) HasLiqEndTime() bool` - -HasLiqEndTime returns a boolean if a field has been set. - -### GetLiqFee - -`func (o *MarginLiquidationInfo) GetLiqFee() string` - -GetLiqFee returns the LiqFee field if non-nil, zero value otherwise. - -### GetLiqFeeOk - -`func (o *MarginLiquidationInfo) GetLiqFeeOk() (*string, bool)` - -GetLiqFeeOk returns a tuple with the LiqFee field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqFee - -`func (o *MarginLiquidationInfo) SetLiqFee(v string)` - -SetLiqFee sets LiqFee field to given value. - -### HasLiqFee - -`func (o *MarginLiquidationInfo) HasLiqFee() bool` - -HasLiqFee returns a boolean if a field has been set. - -### GetLiqId - -`func (o *MarginLiquidationInfo) GetLiqId() string` - -GetLiqId returns the LiqId field if non-nil, zero value otherwise. - -### GetLiqIdOk - -`func (o *MarginLiquidationInfo) GetLiqIdOk() (*string, bool)` - -GetLiqIdOk returns a tuple with the LiqId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqId - -`func (o *MarginLiquidationInfo) SetLiqId(v string)` - -SetLiqId sets LiqId field to given value. - -### HasLiqId - -`func (o *MarginLiquidationInfo) HasLiqId() bool` - -HasLiqId returns a boolean if a field has been set. - -### GetLiqRisk - -`func (o *MarginLiquidationInfo) GetLiqRisk() string` - -GetLiqRisk returns the LiqRisk field if non-nil, zero value otherwise. - -### GetLiqRiskOk - -`func (o *MarginLiquidationInfo) GetLiqRiskOk() (*string, bool)` - -GetLiqRiskOk returns a tuple with the LiqRisk field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqRisk - -`func (o *MarginLiquidationInfo) SetLiqRisk(v string)` - -SetLiqRisk sets LiqRisk field to given value. - -### HasLiqRisk - -`func (o *MarginLiquidationInfo) HasLiqRisk() bool` - -HasLiqRisk returns a boolean if a field has been set. - -### GetLiqStartTime - -`func (o *MarginLiquidationInfo) GetLiqStartTime() string` - -GetLiqStartTime returns the LiqStartTime field if non-nil, zero value otherwise. - -### GetLiqStartTimeOk - -`func (o *MarginLiquidationInfo) GetLiqStartTimeOk() (*string, bool)` - -GetLiqStartTimeOk returns a tuple with the LiqStartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiqStartTime - -`func (o *MarginLiquidationInfo) SetLiqStartTime(v string)` - -SetLiqStartTime sets LiqStartTime field to given value. - -### HasLiqStartTime - -`func (o *MarginLiquidationInfo) HasLiqStartTime() bool` - -HasLiqStartTime returns a boolean if a field has been set. - -### GetTotalAssets - -`func (o *MarginLiquidationInfo) GetTotalAssets() string` - -GetTotalAssets returns the TotalAssets field if non-nil, zero value otherwise. - -### GetTotalAssetsOk - -`func (o *MarginLiquidationInfo) GetTotalAssetsOk() (*string, bool)` - -GetTotalAssetsOk returns a tuple with the TotalAssets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAssets - -`func (o *MarginLiquidationInfo) SetTotalAssets(v string)` - -SetTotalAssets sets TotalAssets field to given value. - -### HasTotalAssets - -`func (o *MarginLiquidationInfo) HasTotalAssets() bool` - -HasTotalAssets returns a boolean if a field has been set. - -### GetTotalDebt - -`func (o *MarginLiquidationInfo) GetTotalDebt() string` - -GetTotalDebt returns the TotalDebt field if non-nil, zero value otherwise. - -### GetTotalDebtOk - -`func (o *MarginLiquidationInfo) GetTotalDebtOk() (*string, bool)` - -GetTotalDebtOk returns a tuple with the TotalDebt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalDebt - -`func (o *MarginLiquidationInfo) SetTotalDebt(v string)` - -SetTotalDebt sets TotalDebt field to given value. - -### HasTotalDebt - -`func (o *MarginLiquidationInfo) HasTotalDebt() bool` - -HasTotalDebt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginLiquidationInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginLiquidationInfoResult.md deleted file mode 100644 index 65373112..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginLiquidationInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginLiquidationInfo**](MarginLiquidationInfo.md) | | [optional] - -## Methods - -### NewMarginLiquidationInfoResult - -`func NewMarginLiquidationInfoResult() *MarginLiquidationInfoResult` - -NewMarginLiquidationInfoResult instantiates a new MarginLiquidationInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginLiquidationInfoResultWithDefaults - -`func NewMarginLiquidationInfoResultWithDefaults() *MarginLiquidationInfoResult` - -NewMarginLiquidationInfoResultWithDefaults instantiates a new MarginLiquidationInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginLiquidationInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginLiquidationInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginLiquidationInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginLiquidationInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginLiquidationInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginLiquidationInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginLiquidationInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginLiquidationInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginLiquidationInfoResult) GetResultList() []MarginLiquidationInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginLiquidationInfoResult) GetResultListOk() (*[]MarginLiquidationInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginLiquidationInfoResult) SetResultList(v []MarginLiquidationInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginLiquidationInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginLoanInfo.md b/bitget-goland-sdk-open-api/docs/MarginLoanInfo.md deleted file mode 100644 index 2ec1a74f..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginLoanInfo.md +++ /dev/null @@ -1,160 +0,0 @@ -# MarginLoanInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**LoanId** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginLoanInfo - -`func NewMarginLoanInfo() *MarginLoanInfo` - -NewMarginLoanInfo instantiates a new MarginLoanInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginLoanInfoWithDefaults - -`func NewMarginLoanInfoWithDefaults() *MarginLoanInfo` - -NewMarginLoanInfoWithDefaults instantiates a new MarginLoanInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginLoanInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginLoanInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginLoanInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginLoanInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginLoanInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginLoanInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginLoanInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginLoanInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginLoanInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginLoanInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginLoanInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginLoanInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetLoanId - -`func (o *MarginLoanInfo) GetLoanId() string` - -GetLoanId returns the LoanId field if non-nil, zero value otherwise. - -### GetLoanIdOk - -`func (o *MarginLoanInfo) GetLoanIdOk() (*string, bool)` - -GetLoanIdOk returns a tuple with the LoanId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanId - -`func (o *MarginLoanInfo) SetLoanId(v string)` - -SetLoanId sets LoanId field to given value. - -### HasLoanId - -`func (o *MarginLoanInfo) HasLoanId() bool` - -HasLoanId returns a boolean if a field has been set. - -### GetType - -`func (o *MarginLoanInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginLoanInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginLoanInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginLoanInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginLoanInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginLoanInfoResult.md deleted file mode 100644 index 165ed758..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginLoanInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginLoanInfo**](MarginLoanInfo.md) | | [optional] - -## Methods - -### NewMarginLoanInfoResult - -`func NewMarginLoanInfoResult() *MarginLoanInfoResult` - -NewMarginLoanInfoResult instantiates a new MarginLoanInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginLoanInfoResultWithDefaults - -`func NewMarginLoanInfoResultWithDefaults() *MarginLoanInfoResult` - -NewMarginLoanInfoResultWithDefaults instantiates a new MarginLoanInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginLoanInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginLoanInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginLoanInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginLoanInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginLoanInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginLoanInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginLoanInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginLoanInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginLoanInfoResult) GetResultList() []MarginLoanInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginLoanInfoResult) GetResultListOk() (*[]MarginLoanInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginLoanInfoResult) SetResultList(v []MarginLoanInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginLoanInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginOpenOrderInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginOpenOrderInfoResult.md deleted file mode 100644 index dc5b2fe7..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginOpenOrderInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginOpenOrderInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**OrderList** | Pointer to [**[]MarginOrderInfo**](MarginOrderInfo.md) | | [optional] - -## Methods - -### NewMarginOpenOrderInfoResult - -`func NewMarginOpenOrderInfoResult() *MarginOpenOrderInfoResult` - -NewMarginOpenOrderInfoResult instantiates a new MarginOpenOrderInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginOpenOrderInfoResultWithDefaults - -`func NewMarginOpenOrderInfoResultWithDefaults() *MarginOpenOrderInfoResult` - -NewMarginOpenOrderInfoResultWithDefaults instantiates a new MarginOpenOrderInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginOpenOrderInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginOpenOrderInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginOpenOrderInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginOpenOrderInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginOpenOrderInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginOpenOrderInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginOpenOrderInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginOpenOrderInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetOrderList - -`func (o *MarginOpenOrderInfoResult) GetOrderList() []MarginOrderInfo` - -GetOrderList returns the OrderList field if non-nil, zero value otherwise. - -### GetOrderListOk - -`func (o *MarginOpenOrderInfoResult) GetOrderListOk() (*[]MarginOrderInfo, bool)` - -GetOrderListOk returns a tuple with the OrderList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderList - -`func (o *MarginOpenOrderInfoResult) SetOrderList(v []MarginOrderInfo)` - -SetOrderList sets OrderList field to given value. - -### HasOrderList - -`func (o *MarginOpenOrderInfoResult) HasOrderList() bool` - -HasOrderList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginOrderInfo.md b/bitget-goland-sdk-open-api/docs/MarginOrderInfo.md deleted file mode 100644 index cdd6a928..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginOrderInfo.md +++ /dev/null @@ -1,420 +0,0 @@ -# MarginOrderInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseQuantity** | Pointer to **string** | | [optional] -**ClientOid** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**FillPrice** | Pointer to **string** | | [optional] -**FillQuantity** | Pointer to **string** | | [optional] -**FillTotalAmount** | Pointer to **string** | | [optional] -**LoanType** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] -**OrderType** | Pointer to **string** | | [optional] -**Price** | Pointer to **string** | | [optional] -**QuoteAmount** | Pointer to **string** | | [optional] -**Side** | Pointer to **string** | | [optional] -**Source** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginOrderInfo - -`func NewMarginOrderInfo() *MarginOrderInfo` - -NewMarginOrderInfo instantiates a new MarginOrderInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginOrderInfoWithDefaults - -`func NewMarginOrderInfoWithDefaults() *MarginOrderInfo` - -NewMarginOrderInfoWithDefaults instantiates a new MarginOrderInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBaseQuantity - -`func (o *MarginOrderInfo) GetBaseQuantity() string` - -GetBaseQuantity returns the BaseQuantity field if non-nil, zero value otherwise. - -### GetBaseQuantityOk - -`func (o *MarginOrderInfo) GetBaseQuantityOk() (*string, bool)` - -GetBaseQuantityOk returns a tuple with the BaseQuantity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseQuantity - -`func (o *MarginOrderInfo) SetBaseQuantity(v string)` - -SetBaseQuantity sets BaseQuantity field to given value. - -### HasBaseQuantity - -`func (o *MarginOrderInfo) HasBaseQuantity() bool` - -HasBaseQuantity returns a boolean if a field has been set. - -### GetClientOid - -`func (o *MarginOrderInfo) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginOrderInfo) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginOrderInfo) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginOrderInfo) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginOrderInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginOrderInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginOrderInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginOrderInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFillPrice - -`func (o *MarginOrderInfo) GetFillPrice() string` - -GetFillPrice returns the FillPrice field if non-nil, zero value otherwise. - -### GetFillPriceOk - -`func (o *MarginOrderInfo) GetFillPriceOk() (*string, bool)` - -GetFillPriceOk returns a tuple with the FillPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillPrice - -`func (o *MarginOrderInfo) SetFillPrice(v string)` - -SetFillPrice sets FillPrice field to given value. - -### HasFillPrice - -`func (o *MarginOrderInfo) HasFillPrice() bool` - -HasFillPrice returns a boolean if a field has been set. - -### GetFillQuantity - -`func (o *MarginOrderInfo) GetFillQuantity() string` - -GetFillQuantity returns the FillQuantity field if non-nil, zero value otherwise. - -### GetFillQuantityOk - -`func (o *MarginOrderInfo) GetFillQuantityOk() (*string, bool)` - -GetFillQuantityOk returns a tuple with the FillQuantity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillQuantity - -`func (o *MarginOrderInfo) SetFillQuantity(v string)` - -SetFillQuantity sets FillQuantity field to given value. - -### HasFillQuantity - -`func (o *MarginOrderInfo) HasFillQuantity() bool` - -HasFillQuantity returns a boolean if a field has been set. - -### GetFillTotalAmount - -`func (o *MarginOrderInfo) GetFillTotalAmount() string` - -GetFillTotalAmount returns the FillTotalAmount field if non-nil, zero value otherwise. - -### GetFillTotalAmountOk - -`func (o *MarginOrderInfo) GetFillTotalAmountOk() (*string, bool)` - -GetFillTotalAmountOk returns a tuple with the FillTotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillTotalAmount - -`func (o *MarginOrderInfo) SetFillTotalAmount(v string)` - -SetFillTotalAmount sets FillTotalAmount field to given value. - -### HasFillTotalAmount - -`func (o *MarginOrderInfo) HasFillTotalAmount() bool` - -HasFillTotalAmount returns a boolean if a field has been set. - -### GetLoanType - -`func (o *MarginOrderInfo) GetLoanType() string` - -GetLoanType returns the LoanType field if non-nil, zero value otherwise. - -### GetLoanTypeOk - -`func (o *MarginOrderInfo) GetLoanTypeOk() (*string, bool)` - -GetLoanTypeOk returns a tuple with the LoanType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanType - -`func (o *MarginOrderInfo) SetLoanType(v string)` - -SetLoanType sets LoanType field to given value. - -### HasLoanType - -`func (o *MarginOrderInfo) HasLoanType() bool` - -HasLoanType returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginOrderInfo) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginOrderInfo) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginOrderInfo) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginOrderInfo) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - -### GetOrderType - -`func (o *MarginOrderInfo) GetOrderType() string` - -GetOrderType returns the OrderType field if non-nil, zero value otherwise. - -### GetOrderTypeOk - -`func (o *MarginOrderInfo) GetOrderTypeOk() (*string, bool)` - -GetOrderTypeOk returns a tuple with the OrderType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderType - -`func (o *MarginOrderInfo) SetOrderType(v string)` - -SetOrderType sets OrderType field to given value. - -### HasOrderType - -`func (o *MarginOrderInfo) HasOrderType() bool` - -HasOrderType returns a boolean if a field has been set. - -### GetPrice - -`func (o *MarginOrderInfo) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *MarginOrderInfo) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *MarginOrderInfo) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *MarginOrderInfo) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetQuoteAmount - -`func (o *MarginOrderInfo) GetQuoteAmount() string` - -GetQuoteAmount returns the QuoteAmount field if non-nil, zero value otherwise. - -### GetQuoteAmountOk - -`func (o *MarginOrderInfo) GetQuoteAmountOk() (*string, bool)` - -GetQuoteAmountOk returns a tuple with the QuoteAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteAmount - -`func (o *MarginOrderInfo) SetQuoteAmount(v string)` - -SetQuoteAmount sets QuoteAmount field to given value. - -### HasQuoteAmount - -`func (o *MarginOrderInfo) HasQuoteAmount() bool` - -HasQuoteAmount returns a boolean if a field has been set. - -### GetSide - -`func (o *MarginOrderInfo) GetSide() string` - -GetSide returns the Side field if non-nil, zero value otherwise. - -### GetSideOk - -`func (o *MarginOrderInfo) GetSideOk() (*string, bool)` - -GetSideOk returns a tuple with the Side field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSide - -`func (o *MarginOrderInfo) SetSide(v string)` - -SetSide sets Side field to given value. - -### HasSide - -`func (o *MarginOrderInfo) HasSide() bool` - -HasSide returns a boolean if a field has been set. - -### GetSource - -`func (o *MarginOrderInfo) GetSource() string` - -GetSource returns the Source field if non-nil, zero value otherwise. - -### GetSourceOk - -`func (o *MarginOrderInfo) GetSourceOk() (*string, bool)` - -GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSource - -`func (o *MarginOrderInfo) SetSource(v string)` - -SetSource sets Source field to given value. - -### HasSource - -`func (o *MarginOrderInfo) HasSource() bool` - -HasSource returns a boolean if a field has been set. - -### GetStatus - -`func (o *MarginOrderInfo) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *MarginOrderInfo) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *MarginOrderInfo) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *MarginOrderInfo) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginOrderInfo) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginOrderInfo) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginOrderInfo) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginOrderInfo) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginOrderRequest.md b/bitget-goland-sdk-open-api/docs/MarginOrderRequest.md deleted file mode 100644 index abcbc2d1..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginOrderRequest.md +++ /dev/null @@ -1,296 +0,0 @@ -# MarginOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseQuantity** | Pointer to **string** | baseQuantity | [optional] -**ChannelApiCode** | Pointer to **string** | | [optional] -**ClientOid** | Pointer to **string** | clientOid | [optional] -**Ip** | Pointer to **string** | | [optional] -**LoanType** | **string** | loanType | -**OrderType** | **string** | orderType | -**Price** | Pointer to **string** | price | [optional] -**QuoteAmount** | Pointer to **string** | quoteAmount | [optional] -**Side** | **string** | side | -**Symbol** | **string** | symbol | -**TimeInForce** | Pointer to **string** | timeInForce | [optional] - -## Methods - -### NewMarginOrderRequest - -`func NewMarginOrderRequest(loanType string, orderType string, side string, symbol string, ) *MarginOrderRequest` - -NewMarginOrderRequest instantiates a new MarginOrderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginOrderRequestWithDefaults - -`func NewMarginOrderRequestWithDefaults() *MarginOrderRequest` - -NewMarginOrderRequestWithDefaults instantiates a new MarginOrderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBaseQuantity - -`func (o *MarginOrderRequest) GetBaseQuantity() string` - -GetBaseQuantity returns the BaseQuantity field if non-nil, zero value otherwise. - -### GetBaseQuantityOk - -`func (o *MarginOrderRequest) GetBaseQuantityOk() (*string, bool)` - -GetBaseQuantityOk returns a tuple with the BaseQuantity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseQuantity - -`func (o *MarginOrderRequest) SetBaseQuantity(v string)` - -SetBaseQuantity sets BaseQuantity field to given value. - -### HasBaseQuantity - -`func (o *MarginOrderRequest) HasBaseQuantity() bool` - -HasBaseQuantity returns a boolean if a field has been set. - -### GetChannelApiCode - -`func (o *MarginOrderRequest) GetChannelApiCode() string` - -GetChannelApiCode returns the ChannelApiCode field if non-nil, zero value otherwise. - -### GetChannelApiCodeOk - -`func (o *MarginOrderRequest) GetChannelApiCodeOk() (*string, bool)` - -GetChannelApiCodeOk returns a tuple with the ChannelApiCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChannelApiCode - -`func (o *MarginOrderRequest) SetChannelApiCode(v string)` - -SetChannelApiCode sets ChannelApiCode field to given value. - -### HasChannelApiCode - -`func (o *MarginOrderRequest) HasChannelApiCode() bool` - -HasChannelApiCode returns a boolean if a field has been set. - -### GetClientOid - -`func (o *MarginOrderRequest) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginOrderRequest) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginOrderRequest) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginOrderRequest) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetIp - -`func (o *MarginOrderRequest) GetIp() string` - -GetIp returns the Ip field if non-nil, zero value otherwise. - -### GetIpOk - -`func (o *MarginOrderRequest) GetIpOk() (*string, bool)` - -GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIp - -`func (o *MarginOrderRequest) SetIp(v string)` - -SetIp sets Ip field to given value. - -### HasIp - -`func (o *MarginOrderRequest) HasIp() bool` - -HasIp returns a boolean if a field has been set. - -### GetLoanType - -`func (o *MarginOrderRequest) GetLoanType() string` - -GetLoanType returns the LoanType field if non-nil, zero value otherwise. - -### GetLoanTypeOk - -`func (o *MarginOrderRequest) GetLoanTypeOk() (*string, bool)` - -GetLoanTypeOk returns a tuple with the LoanType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLoanType - -`func (o *MarginOrderRequest) SetLoanType(v string)` - -SetLoanType sets LoanType field to given value. - - -### GetOrderType - -`func (o *MarginOrderRequest) GetOrderType() string` - -GetOrderType returns the OrderType field if non-nil, zero value otherwise. - -### GetOrderTypeOk - -`func (o *MarginOrderRequest) GetOrderTypeOk() (*string, bool)` - -GetOrderTypeOk returns a tuple with the OrderType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderType - -`func (o *MarginOrderRequest) SetOrderType(v string)` - -SetOrderType sets OrderType field to given value. - - -### GetPrice - -`func (o *MarginOrderRequest) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *MarginOrderRequest) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *MarginOrderRequest) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *MarginOrderRequest) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetQuoteAmount - -`func (o *MarginOrderRequest) GetQuoteAmount() string` - -GetQuoteAmount returns the QuoteAmount field if non-nil, zero value otherwise. - -### GetQuoteAmountOk - -`func (o *MarginOrderRequest) GetQuoteAmountOk() (*string, bool)` - -GetQuoteAmountOk returns a tuple with the QuoteAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteAmount - -`func (o *MarginOrderRequest) SetQuoteAmount(v string)` - -SetQuoteAmount sets QuoteAmount field to given value. - -### HasQuoteAmount - -`func (o *MarginOrderRequest) HasQuoteAmount() bool` - -HasQuoteAmount returns a boolean if a field has been set. - -### GetSide - -`func (o *MarginOrderRequest) GetSide() string` - -GetSide returns the Side field if non-nil, zero value otherwise. - -### GetSideOk - -`func (o *MarginOrderRequest) GetSideOk() (*string, bool)` - -GetSideOk returns a tuple with the Side field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSide - -`func (o *MarginOrderRequest) SetSide(v string)` - -SetSide sets Side field to given value. - - -### GetSymbol - -`func (o *MarginOrderRequest) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginOrderRequest) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginOrderRequest) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - - -### GetTimeInForce - -`func (o *MarginOrderRequest) GetTimeInForce() string` - -GetTimeInForce returns the TimeInForce field if non-nil, zero value otherwise. - -### GetTimeInForceOk - -`func (o *MarginOrderRequest) GetTimeInForceOk() (*string, bool)` - -GetTimeInForceOk returns a tuple with the TimeInForce field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeInForce - -`func (o *MarginOrderRequest) SetTimeInForce(v string)` - -SetTimeInForce sets TimeInForce field to given value. - -### HasTimeInForce - -`func (o *MarginOrderRequest) HasTimeInForce() bool` - -HasTimeInForce returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginPlaceOrderResult.md b/bitget-goland-sdk-open-api/docs/MarginPlaceOrderResult.md deleted file mode 100644 index f015640e..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginPlaceOrderResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MarginPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClientOid** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginPlaceOrderResult - -`func NewMarginPlaceOrderResult() *MarginPlaceOrderResult` - -NewMarginPlaceOrderResult instantiates a new MarginPlaceOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginPlaceOrderResultWithDefaults - -`func NewMarginPlaceOrderResultWithDefaults() *MarginPlaceOrderResult` - -NewMarginPlaceOrderResultWithDefaults instantiates a new MarginPlaceOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClientOid - -`func (o *MarginPlaceOrderResult) GetClientOid() string` - -GetClientOid returns the ClientOid field if non-nil, zero value otherwise. - -### GetClientOidOk - -`func (o *MarginPlaceOrderResult) GetClientOidOk() (*string, bool)` - -GetClientOidOk returns a tuple with the ClientOid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientOid - -`func (o *MarginPlaceOrderResult) SetClientOid(v string)` - -SetClientOid sets ClientOid field to given value. - -### HasClientOid - -`func (o *MarginPlaceOrderResult) HasClientOid() bool` - -HasClientOid returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginPlaceOrderResult) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginPlaceOrderResult) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginPlaceOrderResult) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginPlaceOrderResult) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginPublicApi.md b/bitget-goland-sdk-open-api/docs/MarginPublicApi.md deleted file mode 100644 index 00ba9957..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginPublicApi.md +++ /dev/null @@ -1,70 +0,0 @@ -# \MarginPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MarginPublicCurrencies**](MarginPublicApi.md#MarginPublicCurrencies) | **Get** /api/margin/v1/public/currencies | currencies - - - -## MarginPublicCurrencies - -> ApiResponseResultOfListOfMarginSystemResult MarginPublicCurrencies(ctx).Execute() - -currencies - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.MarginPublicApi.MarginPublicCurrencies(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarginPublicApi.MarginPublicCurrencies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MarginPublicCurrencies`: ApiResponseResultOfListOfMarginSystemResult - fmt.Fprintf(os.Stdout, "Response from `MarginPublicApi.MarginPublicCurrencies`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiMarginPublicCurrenciesRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfListOfMarginSystemResult**](ApiResponseResultOfListOfMarginSystemResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/MarginRepayInfo.md b/bitget-goland-sdk-open-api/docs/MarginRepayInfo.md deleted file mode 100644 index c3dd9f7d..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginRepayInfo.md +++ /dev/null @@ -1,212 +0,0 @@ -# MarginRepayInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Interest** | Pointer to **string** | | [optional] -**RepayId** | Pointer to **string** | | [optional] -**TotalAmount** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginRepayInfo - -`func NewMarginRepayInfo() *MarginRepayInfo` - -NewMarginRepayInfo instantiates a new MarginRepayInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginRepayInfoWithDefaults - -`func NewMarginRepayInfoWithDefaults() *MarginRepayInfo` - -NewMarginRepayInfoWithDefaults instantiates a new MarginRepayInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *MarginRepayInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MarginRepayInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MarginRepayInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MarginRepayInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCoin - -`func (o *MarginRepayInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MarginRepayInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MarginRepayInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MarginRepayInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCtime - -`func (o *MarginRepayInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginRepayInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginRepayInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginRepayInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetInterest - -`func (o *MarginRepayInfo) GetInterest() string` - -GetInterest returns the Interest field if non-nil, zero value otherwise. - -### GetInterestOk - -`func (o *MarginRepayInfo) GetInterestOk() (*string, bool)` - -GetInterestOk returns a tuple with the Interest field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterest - -`func (o *MarginRepayInfo) SetInterest(v string)` - -SetInterest sets Interest field to given value. - -### HasInterest - -`func (o *MarginRepayInfo) HasInterest() bool` - -HasInterest returns a boolean if a field has been set. - -### GetRepayId - -`func (o *MarginRepayInfo) GetRepayId() string` - -GetRepayId returns the RepayId field if non-nil, zero value otherwise. - -### GetRepayIdOk - -`func (o *MarginRepayInfo) GetRepayIdOk() (*string, bool)` - -GetRepayIdOk returns a tuple with the RepayId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepayId - -`func (o *MarginRepayInfo) SetRepayId(v string)` - -SetRepayId sets RepayId field to given value. - -### HasRepayId - -`func (o *MarginRepayInfo) HasRepayId() bool` - -HasRepayId returns a boolean if a field has been set. - -### GetTotalAmount - -`func (o *MarginRepayInfo) GetTotalAmount() string` - -GetTotalAmount returns the TotalAmount field if non-nil, zero value otherwise. - -### GetTotalAmountOk - -`func (o *MarginRepayInfo) GetTotalAmountOk() (*string, bool)` - -GetTotalAmountOk returns a tuple with the TotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalAmount - -`func (o *MarginRepayInfo) SetTotalAmount(v string)` - -SetTotalAmount sets TotalAmount field to given value. - -### HasTotalAmount - -`func (o *MarginRepayInfo) HasTotalAmount() bool` - -HasTotalAmount returns a boolean if a field has been set. - -### GetType - -`func (o *MarginRepayInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MarginRepayInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MarginRepayInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MarginRepayInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginRepayInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginRepayInfoResult.md deleted file mode 100644 index 54bb9238..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginRepayInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MarginRepayInfo**](MarginRepayInfo.md) | | [optional] - -## Methods - -### NewMarginRepayInfoResult - -`func NewMarginRepayInfoResult() *MarginRepayInfoResult` - -NewMarginRepayInfoResult instantiates a new MarginRepayInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginRepayInfoResultWithDefaults - -`func NewMarginRepayInfoResultWithDefaults() *MarginRepayInfoResult` - -NewMarginRepayInfoResultWithDefaults instantiates a new MarginRepayInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxId - -`func (o *MarginRepayInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginRepayInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginRepayInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginRepayInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginRepayInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginRepayInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginRepayInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginRepayInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MarginRepayInfoResult) GetResultList() []MarginRepayInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MarginRepayInfoResult) GetResultListOk() (*[]MarginRepayInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MarginRepayInfoResult) SetResultList(v []MarginRepayInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MarginRepayInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginSystemResult.md b/bitget-goland-sdk-open-api/docs/MarginSystemResult.md deleted file mode 100644 index 93bbdbe4..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginSystemResult.md +++ /dev/null @@ -1,472 +0,0 @@ -# MarginSystemResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseCoin** | Pointer to **string** | | [optional] -**IsBorrowable** | Pointer to **bool** | | [optional] -**LiquidationRiskRatio** | Pointer to **string** | | [optional] -**MakerFeeRate** | Pointer to **string** | | [optional] -**MaxCrossLeverage** | Pointer to **string** | | [optional] -**MaxIsolatedLeverage** | Pointer to **string** | | [optional] -**MaxTradeAmount** | Pointer to **string** | | [optional] -**MinTradeAmount** | Pointer to **string** | | [optional] -**MinTradeUSDT** | Pointer to **string** | | [optional] -**PriceScale** | Pointer to **string** | | [optional] -**QuantityScale** | Pointer to **string** | | [optional] -**QuoteCoin** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] -**Symbol** | Pointer to **string** | | [optional] -**TakerFeeRate** | Pointer to **string** | | [optional] -**UserMinBorrow** | Pointer to **string** | | [optional] -**WarningRiskRatio** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginSystemResult - -`func NewMarginSystemResult() *MarginSystemResult` - -NewMarginSystemResult instantiates a new MarginSystemResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginSystemResultWithDefaults - -`func NewMarginSystemResultWithDefaults() *MarginSystemResult` - -NewMarginSystemResultWithDefaults instantiates a new MarginSystemResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBaseCoin - -`func (o *MarginSystemResult) GetBaseCoin() string` - -GetBaseCoin returns the BaseCoin field if non-nil, zero value otherwise. - -### GetBaseCoinOk - -`func (o *MarginSystemResult) GetBaseCoinOk() (*string, bool)` - -GetBaseCoinOk returns a tuple with the BaseCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseCoin - -`func (o *MarginSystemResult) SetBaseCoin(v string)` - -SetBaseCoin sets BaseCoin field to given value. - -### HasBaseCoin - -`func (o *MarginSystemResult) HasBaseCoin() bool` - -HasBaseCoin returns a boolean if a field has been set. - -### GetIsBorrowable - -`func (o *MarginSystemResult) GetIsBorrowable() bool` - -GetIsBorrowable returns the IsBorrowable field if non-nil, zero value otherwise. - -### GetIsBorrowableOk - -`func (o *MarginSystemResult) GetIsBorrowableOk() (*bool, bool)` - -GetIsBorrowableOk returns a tuple with the IsBorrowable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsBorrowable - -`func (o *MarginSystemResult) SetIsBorrowable(v bool)` - -SetIsBorrowable sets IsBorrowable field to given value. - -### HasIsBorrowable - -`func (o *MarginSystemResult) HasIsBorrowable() bool` - -HasIsBorrowable returns a boolean if a field has been set. - -### GetLiquidationRiskRatio - -`func (o *MarginSystemResult) GetLiquidationRiskRatio() string` - -GetLiquidationRiskRatio returns the LiquidationRiskRatio field if non-nil, zero value otherwise. - -### GetLiquidationRiskRatioOk - -`func (o *MarginSystemResult) GetLiquidationRiskRatioOk() (*string, bool)` - -GetLiquidationRiskRatioOk returns a tuple with the LiquidationRiskRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLiquidationRiskRatio - -`func (o *MarginSystemResult) SetLiquidationRiskRatio(v string)` - -SetLiquidationRiskRatio sets LiquidationRiskRatio field to given value. - -### HasLiquidationRiskRatio - -`func (o *MarginSystemResult) HasLiquidationRiskRatio() bool` - -HasLiquidationRiskRatio returns a boolean if a field has been set. - -### GetMakerFeeRate - -`func (o *MarginSystemResult) GetMakerFeeRate() string` - -GetMakerFeeRate returns the MakerFeeRate field if non-nil, zero value otherwise. - -### GetMakerFeeRateOk - -`func (o *MarginSystemResult) GetMakerFeeRateOk() (*string, bool)` - -GetMakerFeeRateOk returns a tuple with the MakerFeeRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMakerFeeRate - -`func (o *MarginSystemResult) SetMakerFeeRate(v string)` - -SetMakerFeeRate sets MakerFeeRate field to given value. - -### HasMakerFeeRate - -`func (o *MarginSystemResult) HasMakerFeeRate() bool` - -HasMakerFeeRate returns a boolean if a field has been set. - -### GetMaxCrossLeverage - -`func (o *MarginSystemResult) GetMaxCrossLeverage() string` - -GetMaxCrossLeverage returns the MaxCrossLeverage field if non-nil, zero value otherwise. - -### GetMaxCrossLeverageOk - -`func (o *MarginSystemResult) GetMaxCrossLeverageOk() (*string, bool)` - -GetMaxCrossLeverageOk returns a tuple with the MaxCrossLeverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCrossLeverage - -`func (o *MarginSystemResult) SetMaxCrossLeverage(v string)` - -SetMaxCrossLeverage sets MaxCrossLeverage field to given value. - -### HasMaxCrossLeverage - -`func (o *MarginSystemResult) HasMaxCrossLeverage() bool` - -HasMaxCrossLeverage returns a boolean if a field has been set. - -### GetMaxIsolatedLeverage - -`func (o *MarginSystemResult) GetMaxIsolatedLeverage() string` - -GetMaxIsolatedLeverage returns the MaxIsolatedLeverage field if non-nil, zero value otherwise. - -### GetMaxIsolatedLeverageOk - -`func (o *MarginSystemResult) GetMaxIsolatedLeverageOk() (*string, bool)` - -GetMaxIsolatedLeverageOk returns a tuple with the MaxIsolatedLeverage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxIsolatedLeverage - -`func (o *MarginSystemResult) SetMaxIsolatedLeverage(v string)` - -SetMaxIsolatedLeverage sets MaxIsolatedLeverage field to given value. - -### HasMaxIsolatedLeverage - -`func (o *MarginSystemResult) HasMaxIsolatedLeverage() bool` - -HasMaxIsolatedLeverage returns a boolean if a field has been set. - -### GetMaxTradeAmount - -`func (o *MarginSystemResult) GetMaxTradeAmount() string` - -GetMaxTradeAmount returns the MaxTradeAmount field if non-nil, zero value otherwise. - -### GetMaxTradeAmountOk - -`func (o *MarginSystemResult) GetMaxTradeAmountOk() (*string, bool)` - -GetMaxTradeAmountOk returns a tuple with the MaxTradeAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTradeAmount - -`func (o *MarginSystemResult) SetMaxTradeAmount(v string)` - -SetMaxTradeAmount sets MaxTradeAmount field to given value. - -### HasMaxTradeAmount - -`func (o *MarginSystemResult) HasMaxTradeAmount() bool` - -HasMaxTradeAmount returns a boolean if a field has been set. - -### GetMinTradeAmount - -`func (o *MarginSystemResult) GetMinTradeAmount() string` - -GetMinTradeAmount returns the MinTradeAmount field if non-nil, zero value otherwise. - -### GetMinTradeAmountOk - -`func (o *MarginSystemResult) GetMinTradeAmountOk() (*string, bool)` - -GetMinTradeAmountOk returns a tuple with the MinTradeAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinTradeAmount - -`func (o *MarginSystemResult) SetMinTradeAmount(v string)` - -SetMinTradeAmount sets MinTradeAmount field to given value. - -### HasMinTradeAmount - -`func (o *MarginSystemResult) HasMinTradeAmount() bool` - -HasMinTradeAmount returns a boolean if a field has been set. - -### GetMinTradeUSDT - -`func (o *MarginSystemResult) GetMinTradeUSDT() string` - -GetMinTradeUSDT returns the MinTradeUSDT field if non-nil, zero value otherwise. - -### GetMinTradeUSDTOk - -`func (o *MarginSystemResult) GetMinTradeUSDTOk() (*string, bool)` - -GetMinTradeUSDTOk returns a tuple with the MinTradeUSDT field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinTradeUSDT - -`func (o *MarginSystemResult) SetMinTradeUSDT(v string)` - -SetMinTradeUSDT sets MinTradeUSDT field to given value. - -### HasMinTradeUSDT - -`func (o *MarginSystemResult) HasMinTradeUSDT() bool` - -HasMinTradeUSDT returns a boolean if a field has been set. - -### GetPriceScale - -`func (o *MarginSystemResult) GetPriceScale() string` - -GetPriceScale returns the PriceScale field if non-nil, zero value otherwise. - -### GetPriceScaleOk - -`func (o *MarginSystemResult) GetPriceScaleOk() (*string, bool)` - -GetPriceScaleOk returns a tuple with the PriceScale field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPriceScale - -`func (o *MarginSystemResult) SetPriceScale(v string)` - -SetPriceScale sets PriceScale field to given value. - -### HasPriceScale - -`func (o *MarginSystemResult) HasPriceScale() bool` - -HasPriceScale returns a boolean if a field has been set. - -### GetQuantityScale - -`func (o *MarginSystemResult) GetQuantityScale() string` - -GetQuantityScale returns the QuantityScale field if non-nil, zero value otherwise. - -### GetQuantityScaleOk - -`func (o *MarginSystemResult) GetQuantityScaleOk() (*string, bool)` - -GetQuantityScaleOk returns a tuple with the QuantityScale field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuantityScale - -`func (o *MarginSystemResult) SetQuantityScale(v string)` - -SetQuantityScale sets QuantityScale field to given value. - -### HasQuantityScale - -`func (o *MarginSystemResult) HasQuantityScale() bool` - -HasQuantityScale returns a boolean if a field has been set. - -### GetQuoteCoin - -`func (o *MarginSystemResult) GetQuoteCoin() string` - -GetQuoteCoin returns the QuoteCoin field if non-nil, zero value otherwise. - -### GetQuoteCoinOk - -`func (o *MarginSystemResult) GetQuoteCoinOk() (*string, bool)` - -GetQuoteCoinOk returns a tuple with the QuoteCoin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuoteCoin - -`func (o *MarginSystemResult) SetQuoteCoin(v string)` - -SetQuoteCoin sets QuoteCoin field to given value. - -### HasQuoteCoin - -`func (o *MarginSystemResult) HasQuoteCoin() bool` - -HasQuoteCoin returns a boolean if a field has been set. - -### GetStatus - -`func (o *MarginSystemResult) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *MarginSystemResult) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *MarginSystemResult) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *MarginSystemResult) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetSymbol - -`func (o *MarginSystemResult) GetSymbol() string` - -GetSymbol returns the Symbol field if non-nil, zero value otherwise. - -### GetSymbolOk - -`func (o *MarginSystemResult) GetSymbolOk() (*string, bool)` - -GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbol - -`func (o *MarginSystemResult) SetSymbol(v string)` - -SetSymbol sets Symbol field to given value. - -### HasSymbol - -`func (o *MarginSystemResult) HasSymbol() bool` - -HasSymbol returns a boolean if a field has been set. - -### GetTakerFeeRate - -`func (o *MarginSystemResult) GetTakerFeeRate() string` - -GetTakerFeeRate returns the TakerFeeRate field if non-nil, zero value otherwise. - -### GetTakerFeeRateOk - -`func (o *MarginSystemResult) GetTakerFeeRateOk() (*string, bool)` - -GetTakerFeeRateOk returns a tuple with the TakerFeeRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTakerFeeRate - -`func (o *MarginSystemResult) SetTakerFeeRate(v string)` - -SetTakerFeeRate sets TakerFeeRate field to given value. - -### HasTakerFeeRate - -`func (o *MarginSystemResult) HasTakerFeeRate() bool` - -HasTakerFeeRate returns a boolean if a field has been set. - -### GetUserMinBorrow - -`func (o *MarginSystemResult) GetUserMinBorrow() string` - -GetUserMinBorrow returns the UserMinBorrow field if non-nil, zero value otherwise. - -### GetUserMinBorrowOk - -`func (o *MarginSystemResult) GetUserMinBorrowOk() (*string, bool)` - -GetUserMinBorrowOk returns a tuple with the UserMinBorrow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserMinBorrow - -`func (o *MarginSystemResult) SetUserMinBorrow(v string)` - -SetUserMinBorrow sets UserMinBorrow field to given value. - -### HasUserMinBorrow - -`func (o *MarginSystemResult) HasUserMinBorrow() bool` - -HasUserMinBorrow returns a boolean if a field has been set. - -### GetWarningRiskRatio - -`func (o *MarginSystemResult) GetWarningRiskRatio() string` - -GetWarningRiskRatio returns the WarningRiskRatio field if non-nil, zero value otherwise. - -### GetWarningRiskRatioOk - -`func (o *MarginSystemResult) GetWarningRiskRatioOk() (*string, bool)` - -GetWarningRiskRatioOk returns a tuple with the WarningRiskRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWarningRiskRatio - -`func (o *MarginSystemResult) SetWarningRiskRatio(v string)` - -SetWarningRiskRatio sets WarningRiskRatio field to given value. - -### HasWarningRiskRatio - -`func (o *MarginSystemResult) HasWarningRiskRatio() bool` - -HasWarningRiskRatio returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfo.md b/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfo.md deleted file mode 100644 index bab6d716..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfo.md +++ /dev/null @@ -1,290 +0,0 @@ -# MarginTradeDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Ctime** | Pointer to **string** | | [optional] -**FeeCcy** | Pointer to **string** | | [optional] -**Fees** | Pointer to **string** | | [optional] -**FillId** | Pointer to **string** | | [optional] -**FillPrice** | Pointer to **string** | | [optional] -**FillQuantity** | Pointer to **string** | | [optional] -**FillTotalAmount** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] -**OrderType** | Pointer to **string** | | [optional] -**Side** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginTradeDetailInfo - -`func NewMarginTradeDetailInfo() *MarginTradeDetailInfo` - -NewMarginTradeDetailInfo instantiates a new MarginTradeDetailInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginTradeDetailInfoWithDefaults - -`func NewMarginTradeDetailInfoWithDefaults() *MarginTradeDetailInfo` - -NewMarginTradeDetailInfoWithDefaults instantiates a new MarginTradeDetailInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCtime - -`func (o *MarginTradeDetailInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MarginTradeDetailInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MarginTradeDetailInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MarginTradeDetailInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFeeCcy - -`func (o *MarginTradeDetailInfo) GetFeeCcy() string` - -GetFeeCcy returns the FeeCcy field if non-nil, zero value otherwise. - -### GetFeeCcyOk - -`func (o *MarginTradeDetailInfo) GetFeeCcyOk() (*string, bool)` - -GetFeeCcyOk returns a tuple with the FeeCcy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeeCcy - -`func (o *MarginTradeDetailInfo) SetFeeCcy(v string)` - -SetFeeCcy sets FeeCcy field to given value. - -### HasFeeCcy - -`func (o *MarginTradeDetailInfo) HasFeeCcy() bool` - -HasFeeCcy returns a boolean if a field has been set. - -### GetFees - -`func (o *MarginTradeDetailInfo) GetFees() string` - -GetFees returns the Fees field if non-nil, zero value otherwise. - -### GetFeesOk - -`func (o *MarginTradeDetailInfo) GetFeesOk() (*string, bool)` - -GetFeesOk returns a tuple with the Fees field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFees - -`func (o *MarginTradeDetailInfo) SetFees(v string)` - -SetFees sets Fees field to given value. - -### HasFees - -`func (o *MarginTradeDetailInfo) HasFees() bool` - -HasFees returns a boolean if a field has been set. - -### GetFillId - -`func (o *MarginTradeDetailInfo) GetFillId() string` - -GetFillId returns the FillId field if non-nil, zero value otherwise. - -### GetFillIdOk - -`func (o *MarginTradeDetailInfo) GetFillIdOk() (*string, bool)` - -GetFillIdOk returns a tuple with the FillId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillId - -`func (o *MarginTradeDetailInfo) SetFillId(v string)` - -SetFillId sets FillId field to given value. - -### HasFillId - -`func (o *MarginTradeDetailInfo) HasFillId() bool` - -HasFillId returns a boolean if a field has been set. - -### GetFillPrice - -`func (o *MarginTradeDetailInfo) GetFillPrice() string` - -GetFillPrice returns the FillPrice field if non-nil, zero value otherwise. - -### GetFillPriceOk - -`func (o *MarginTradeDetailInfo) GetFillPriceOk() (*string, bool)` - -GetFillPriceOk returns a tuple with the FillPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillPrice - -`func (o *MarginTradeDetailInfo) SetFillPrice(v string)` - -SetFillPrice sets FillPrice field to given value. - -### HasFillPrice - -`func (o *MarginTradeDetailInfo) HasFillPrice() bool` - -HasFillPrice returns a boolean if a field has been set. - -### GetFillQuantity - -`func (o *MarginTradeDetailInfo) GetFillQuantity() string` - -GetFillQuantity returns the FillQuantity field if non-nil, zero value otherwise. - -### GetFillQuantityOk - -`func (o *MarginTradeDetailInfo) GetFillQuantityOk() (*string, bool)` - -GetFillQuantityOk returns a tuple with the FillQuantity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillQuantity - -`func (o *MarginTradeDetailInfo) SetFillQuantity(v string)` - -SetFillQuantity sets FillQuantity field to given value. - -### HasFillQuantity - -`func (o *MarginTradeDetailInfo) HasFillQuantity() bool` - -HasFillQuantity returns a boolean if a field has been set. - -### GetFillTotalAmount - -`func (o *MarginTradeDetailInfo) GetFillTotalAmount() string` - -GetFillTotalAmount returns the FillTotalAmount field if non-nil, zero value otherwise. - -### GetFillTotalAmountOk - -`func (o *MarginTradeDetailInfo) GetFillTotalAmountOk() (*string, bool)` - -GetFillTotalAmountOk returns a tuple with the FillTotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFillTotalAmount - -`func (o *MarginTradeDetailInfo) SetFillTotalAmount(v string)` - -SetFillTotalAmount sets FillTotalAmount field to given value. - -### HasFillTotalAmount - -`func (o *MarginTradeDetailInfo) HasFillTotalAmount() bool` - -HasFillTotalAmount returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MarginTradeDetailInfo) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MarginTradeDetailInfo) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MarginTradeDetailInfo) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MarginTradeDetailInfo) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - -### GetOrderType - -`func (o *MarginTradeDetailInfo) GetOrderType() string` - -GetOrderType returns the OrderType field if non-nil, zero value otherwise. - -### GetOrderTypeOk - -`func (o *MarginTradeDetailInfo) GetOrderTypeOk() (*string, bool)` - -GetOrderTypeOk returns a tuple with the OrderType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderType - -`func (o *MarginTradeDetailInfo) SetOrderType(v string)` - -SetOrderType sets OrderType field to given value. - -### HasOrderType - -`func (o *MarginTradeDetailInfo) HasOrderType() bool` - -HasOrderType returns a boolean if a field has been set. - -### GetSide - -`func (o *MarginTradeDetailInfo) GetSide() string` - -GetSide returns the Side field if non-nil, zero value otherwise. - -### GetSideOk - -`func (o *MarginTradeDetailInfo) GetSideOk() (*string, bool)` - -GetSideOk returns a tuple with the Side field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSide - -`func (o *MarginTradeDetailInfo) SetSide(v string)` - -SetSide sets Side field to given value. - -### HasSide - -`func (o *MarginTradeDetailInfo) HasSide() bool` - -HasSide returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfoResult.md b/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfoResult.md deleted file mode 100644 index 6a5afc70..00000000 --- a/bitget-goland-sdk-open-api/docs/MarginTradeDetailInfoResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# MarginTradeDetailInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Fills** | Pointer to [**[]MarginTradeDetailInfo**](MarginTradeDetailInfo.md) | | [optional] -**MaxId** | Pointer to **string** | | [optional] -**MinId** | Pointer to **string** | | [optional] - -## Methods - -### NewMarginTradeDetailInfoResult - -`func NewMarginTradeDetailInfoResult() *MarginTradeDetailInfoResult` - -NewMarginTradeDetailInfoResult instantiates a new MarginTradeDetailInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMarginTradeDetailInfoResultWithDefaults - -`func NewMarginTradeDetailInfoResultWithDefaults() *MarginTradeDetailInfoResult` - -NewMarginTradeDetailInfoResultWithDefaults instantiates a new MarginTradeDetailInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFills - -`func (o *MarginTradeDetailInfoResult) GetFills() []MarginTradeDetailInfo` - -GetFills returns the Fills field if non-nil, zero value otherwise. - -### GetFillsOk - -`func (o *MarginTradeDetailInfoResult) GetFillsOk() (*[]MarginTradeDetailInfo, bool)` - -GetFillsOk returns a tuple with the Fills field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFills - -`func (o *MarginTradeDetailInfoResult) SetFills(v []MarginTradeDetailInfo)` - -SetFills sets Fills field to given value. - -### HasFills - -`func (o *MarginTradeDetailInfoResult) HasFills() bool` - -HasFills returns a boolean if a field has been set. - -### GetMaxId - -`func (o *MarginTradeDetailInfoResult) GetMaxId() string` - -GetMaxId returns the MaxId field if non-nil, zero value otherwise. - -### GetMaxIdOk - -`func (o *MarginTradeDetailInfoResult) GetMaxIdOk() (*string, bool)` - -GetMaxIdOk returns a tuple with the MaxId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxId - -`func (o *MarginTradeDetailInfoResult) SetMaxId(v string)` - -SetMaxId sets MaxId field to given value. - -### HasMaxId - -`func (o *MarginTradeDetailInfoResult) HasMaxId() bool` - -HasMaxId returns a boolean if a field has been set. - -### GetMinId - -`func (o *MarginTradeDetailInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MarginTradeDetailInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MarginTradeDetailInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MarginTradeDetailInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantAdvInfo.md b/bitget-goland-sdk-open-api/docs/MerchantAdvInfo.md deleted file mode 100644 index 295a237f..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantAdvInfo.md +++ /dev/null @@ -1,602 +0,0 @@ -# MerchantAdvInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdvId** | Pointer to **string** | | [optional] -**AdvNo** | Pointer to **string** | | [optional] -**Amount** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**CoinPrecision** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**DealAmount** | Pointer to **string** | | [optional] -**FiatCode** | Pointer to **string** | | [optional] -**FiatPrecision** | Pointer to **string** | | [optional] -**FiatSymbol** | Pointer to **string** | | [optional] -**Hide** | Pointer to **string** | | [optional] -**MaxAmount** | Pointer to **string** | | [optional] -**MinAmount** | Pointer to **string** | | [optional] -**PayDuration** | Pointer to **string** | | [optional] -**PaymentMethod** | Pointer to [**[]FiatPaymentInfo**](FiatPaymentInfo.md) | | [optional] -**Price** | Pointer to **string** | | [optional] -**Remark** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] -**TurnoverNum** | Pointer to **string** | | [optional] -**TurnoverRate** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] -**UserLimit** | Pointer to [**MerchantAdvUserLimitInfo**](MerchantAdvUserLimitInfo.md) | | [optional] - -## Methods - -### NewMerchantAdvInfo - -`func NewMerchantAdvInfo() *MerchantAdvInfo` - -NewMerchantAdvInfo instantiates a new MerchantAdvInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantAdvInfoWithDefaults - -`func NewMerchantAdvInfoWithDefaults() *MerchantAdvInfo` - -NewMerchantAdvInfoWithDefaults instantiates a new MerchantAdvInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAdvId - -`func (o *MerchantAdvInfo) GetAdvId() string` - -GetAdvId returns the AdvId field if non-nil, zero value otherwise. - -### GetAdvIdOk - -`func (o *MerchantAdvInfo) GetAdvIdOk() (*string, bool)` - -GetAdvIdOk returns a tuple with the AdvId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdvId - -`func (o *MerchantAdvInfo) SetAdvId(v string)` - -SetAdvId sets AdvId field to given value. - -### HasAdvId - -`func (o *MerchantAdvInfo) HasAdvId() bool` - -HasAdvId returns a boolean if a field has been set. - -### GetAdvNo - -`func (o *MerchantAdvInfo) GetAdvNo() string` - -GetAdvNo returns the AdvNo field if non-nil, zero value otherwise. - -### GetAdvNoOk - -`func (o *MerchantAdvInfo) GetAdvNoOk() (*string, bool)` - -GetAdvNoOk returns a tuple with the AdvNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdvNo - -`func (o *MerchantAdvInfo) SetAdvNo(v string)` - -SetAdvNo sets AdvNo field to given value. - -### HasAdvNo - -`func (o *MerchantAdvInfo) HasAdvNo() bool` - -HasAdvNo returns a boolean if a field has been set. - -### GetAmount - -`func (o *MerchantAdvInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MerchantAdvInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MerchantAdvInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MerchantAdvInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetCoin - -`func (o *MerchantAdvInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MerchantAdvInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MerchantAdvInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MerchantAdvInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCoinPrecision - -`func (o *MerchantAdvInfo) GetCoinPrecision() string` - -GetCoinPrecision returns the CoinPrecision field if non-nil, zero value otherwise. - -### GetCoinPrecisionOk - -`func (o *MerchantAdvInfo) GetCoinPrecisionOk() (*string, bool)` - -GetCoinPrecisionOk returns a tuple with the CoinPrecision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoinPrecision - -`func (o *MerchantAdvInfo) SetCoinPrecision(v string)` - -SetCoinPrecision sets CoinPrecision field to given value. - -### HasCoinPrecision - -`func (o *MerchantAdvInfo) HasCoinPrecision() bool` - -HasCoinPrecision returns a boolean if a field has been set. - -### GetCtime - -`func (o *MerchantAdvInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MerchantAdvInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MerchantAdvInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MerchantAdvInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetDealAmount - -`func (o *MerchantAdvInfo) GetDealAmount() string` - -GetDealAmount returns the DealAmount field if non-nil, zero value otherwise. - -### GetDealAmountOk - -`func (o *MerchantAdvInfo) GetDealAmountOk() (*string, bool)` - -GetDealAmountOk returns a tuple with the DealAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDealAmount - -`func (o *MerchantAdvInfo) SetDealAmount(v string)` - -SetDealAmount sets DealAmount field to given value. - -### HasDealAmount - -`func (o *MerchantAdvInfo) HasDealAmount() bool` - -HasDealAmount returns a boolean if a field has been set. - -### GetFiatCode - -`func (o *MerchantAdvInfo) GetFiatCode() string` - -GetFiatCode returns the FiatCode field if non-nil, zero value otherwise. - -### GetFiatCodeOk - -`func (o *MerchantAdvInfo) GetFiatCodeOk() (*string, bool)` - -GetFiatCodeOk returns a tuple with the FiatCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFiatCode - -`func (o *MerchantAdvInfo) SetFiatCode(v string)` - -SetFiatCode sets FiatCode field to given value. - -### HasFiatCode - -`func (o *MerchantAdvInfo) HasFiatCode() bool` - -HasFiatCode returns a boolean if a field has been set. - -### GetFiatPrecision - -`func (o *MerchantAdvInfo) GetFiatPrecision() string` - -GetFiatPrecision returns the FiatPrecision field if non-nil, zero value otherwise. - -### GetFiatPrecisionOk - -`func (o *MerchantAdvInfo) GetFiatPrecisionOk() (*string, bool)` - -GetFiatPrecisionOk returns a tuple with the FiatPrecision field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFiatPrecision - -`func (o *MerchantAdvInfo) SetFiatPrecision(v string)` - -SetFiatPrecision sets FiatPrecision field to given value. - -### HasFiatPrecision - -`func (o *MerchantAdvInfo) HasFiatPrecision() bool` - -HasFiatPrecision returns a boolean if a field has been set. - -### GetFiatSymbol - -`func (o *MerchantAdvInfo) GetFiatSymbol() string` - -GetFiatSymbol returns the FiatSymbol field if non-nil, zero value otherwise. - -### GetFiatSymbolOk - -`func (o *MerchantAdvInfo) GetFiatSymbolOk() (*string, bool)` - -GetFiatSymbolOk returns a tuple with the FiatSymbol field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFiatSymbol - -`func (o *MerchantAdvInfo) SetFiatSymbol(v string)` - -SetFiatSymbol sets FiatSymbol field to given value. - -### HasFiatSymbol - -`func (o *MerchantAdvInfo) HasFiatSymbol() bool` - -HasFiatSymbol returns a boolean if a field has been set. - -### GetHide - -`func (o *MerchantAdvInfo) GetHide() string` - -GetHide returns the Hide field if non-nil, zero value otherwise. - -### GetHideOk - -`func (o *MerchantAdvInfo) GetHideOk() (*string, bool)` - -GetHideOk returns a tuple with the Hide field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHide - -`func (o *MerchantAdvInfo) SetHide(v string)` - -SetHide sets Hide field to given value. - -### HasHide - -`func (o *MerchantAdvInfo) HasHide() bool` - -HasHide returns a boolean if a field has been set. - -### GetMaxAmount - -`func (o *MerchantAdvInfo) GetMaxAmount() string` - -GetMaxAmount returns the MaxAmount field if non-nil, zero value otherwise. - -### GetMaxAmountOk - -`func (o *MerchantAdvInfo) GetMaxAmountOk() (*string, bool)` - -GetMaxAmountOk returns a tuple with the MaxAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxAmount - -`func (o *MerchantAdvInfo) SetMaxAmount(v string)` - -SetMaxAmount sets MaxAmount field to given value. - -### HasMaxAmount - -`func (o *MerchantAdvInfo) HasMaxAmount() bool` - -HasMaxAmount returns a boolean if a field has been set. - -### GetMinAmount - -`func (o *MerchantAdvInfo) GetMinAmount() string` - -GetMinAmount returns the MinAmount field if non-nil, zero value otherwise. - -### GetMinAmountOk - -`func (o *MerchantAdvInfo) GetMinAmountOk() (*string, bool)` - -GetMinAmountOk returns a tuple with the MinAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinAmount - -`func (o *MerchantAdvInfo) SetMinAmount(v string)` - -SetMinAmount sets MinAmount field to given value. - -### HasMinAmount - -`func (o *MerchantAdvInfo) HasMinAmount() bool` - -HasMinAmount returns a boolean if a field has been set. - -### GetPayDuration - -`func (o *MerchantAdvInfo) GetPayDuration() string` - -GetPayDuration returns the PayDuration field if non-nil, zero value otherwise. - -### GetPayDurationOk - -`func (o *MerchantAdvInfo) GetPayDurationOk() (*string, bool)` - -GetPayDurationOk returns a tuple with the PayDuration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayDuration - -`func (o *MerchantAdvInfo) SetPayDuration(v string)` - -SetPayDuration sets PayDuration field to given value. - -### HasPayDuration - -`func (o *MerchantAdvInfo) HasPayDuration() bool` - -HasPayDuration returns a boolean if a field has been set. - -### GetPaymentMethod - -`func (o *MerchantAdvInfo) GetPaymentMethod() []FiatPaymentInfo` - -GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. - -### GetPaymentMethodOk - -`func (o *MerchantAdvInfo) GetPaymentMethodOk() (*[]FiatPaymentInfo, bool)` - -GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentMethod - -`func (o *MerchantAdvInfo) SetPaymentMethod(v []FiatPaymentInfo)` - -SetPaymentMethod sets PaymentMethod field to given value. - -### HasPaymentMethod - -`func (o *MerchantAdvInfo) HasPaymentMethod() bool` - -HasPaymentMethod returns a boolean if a field has been set. - -### GetPrice - -`func (o *MerchantAdvInfo) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *MerchantAdvInfo) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *MerchantAdvInfo) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *MerchantAdvInfo) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetRemark - -`func (o *MerchantAdvInfo) GetRemark() string` - -GetRemark returns the Remark field if non-nil, zero value otherwise. - -### GetRemarkOk - -`func (o *MerchantAdvInfo) GetRemarkOk() (*string, bool)` - -GetRemarkOk returns a tuple with the Remark field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRemark - -`func (o *MerchantAdvInfo) SetRemark(v string)` - -SetRemark sets Remark field to given value. - -### HasRemark - -`func (o *MerchantAdvInfo) HasRemark() bool` - -HasRemark returns a boolean if a field has been set. - -### GetStatus - -`func (o *MerchantAdvInfo) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *MerchantAdvInfo) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *MerchantAdvInfo) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *MerchantAdvInfo) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTurnoverNum - -`func (o *MerchantAdvInfo) GetTurnoverNum() string` - -GetTurnoverNum returns the TurnoverNum field if non-nil, zero value otherwise. - -### GetTurnoverNumOk - -`func (o *MerchantAdvInfo) GetTurnoverNumOk() (*string, bool)` - -GetTurnoverNumOk returns a tuple with the TurnoverNum field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTurnoverNum - -`func (o *MerchantAdvInfo) SetTurnoverNum(v string)` - -SetTurnoverNum sets TurnoverNum field to given value. - -### HasTurnoverNum - -`func (o *MerchantAdvInfo) HasTurnoverNum() bool` - -HasTurnoverNum returns a boolean if a field has been set. - -### GetTurnoverRate - -`func (o *MerchantAdvInfo) GetTurnoverRate() string` - -GetTurnoverRate returns the TurnoverRate field if non-nil, zero value otherwise. - -### GetTurnoverRateOk - -`func (o *MerchantAdvInfo) GetTurnoverRateOk() (*string, bool)` - -GetTurnoverRateOk returns a tuple with the TurnoverRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTurnoverRate - -`func (o *MerchantAdvInfo) SetTurnoverRate(v string)` - -SetTurnoverRate sets TurnoverRate field to given value. - -### HasTurnoverRate - -`func (o *MerchantAdvInfo) HasTurnoverRate() bool` - -HasTurnoverRate returns a boolean if a field has been set. - -### GetType - -`func (o *MerchantAdvInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MerchantAdvInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MerchantAdvInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MerchantAdvInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetUserLimit - -`func (o *MerchantAdvInfo) GetUserLimit() MerchantAdvUserLimitInfo` - -GetUserLimit returns the UserLimit field if non-nil, zero value otherwise. - -### GetUserLimitOk - -`func (o *MerchantAdvInfo) GetUserLimitOk() (*MerchantAdvUserLimitInfo, bool)` - -GetUserLimitOk returns a tuple with the UserLimit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserLimit - -`func (o *MerchantAdvInfo) SetUserLimit(v MerchantAdvUserLimitInfo)` - -SetUserLimit sets UserLimit field to given value. - -### HasUserLimit - -`func (o *MerchantAdvInfo) HasUserLimit() bool` - -HasUserLimit returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantAdvResult.md b/bitget-goland-sdk-open-api/docs/MerchantAdvResult.md deleted file mode 100644 index 77d69945..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantAdvResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MerchantAdvResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdvList** | Pointer to [**[]MerchantAdvInfo**](MerchantAdvInfo.md) | | [optional] -**MinId** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantAdvResult - -`func NewMerchantAdvResult() *MerchantAdvResult` - -NewMerchantAdvResult instantiates a new MerchantAdvResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantAdvResultWithDefaults - -`func NewMerchantAdvResultWithDefaults() *MerchantAdvResult` - -NewMerchantAdvResultWithDefaults instantiates a new MerchantAdvResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAdvList - -`func (o *MerchantAdvResult) GetAdvList() []MerchantAdvInfo` - -GetAdvList returns the AdvList field if non-nil, zero value otherwise. - -### GetAdvListOk - -`func (o *MerchantAdvResult) GetAdvListOk() (*[]MerchantAdvInfo, bool)` - -GetAdvListOk returns a tuple with the AdvList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdvList - -`func (o *MerchantAdvResult) SetAdvList(v []MerchantAdvInfo)` - -SetAdvList sets AdvList field to given value. - -### HasAdvList - -`func (o *MerchantAdvResult) HasAdvList() bool` - -HasAdvList returns a boolean if a field has been set. - -### GetMinId - -`func (o *MerchantAdvResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MerchantAdvResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MerchantAdvResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MerchantAdvResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantAdvUserLimitInfo.md b/bitget-goland-sdk-open-api/docs/MerchantAdvUserLimitInfo.md deleted file mode 100644 index 541eabb0..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantAdvUserLimitInfo.md +++ /dev/null @@ -1,186 +0,0 @@ -# MerchantAdvUserLimitInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AllowMerchantPlace** | Pointer to **string** | | [optional] -**Country** | Pointer to **string** | | [optional] -**MaxCompleteNum** | Pointer to **string** | | [optional] -**MinCompleteNum** | Pointer to **string** | | [optional] -**PlaceOrderNum** | Pointer to **string** | | [optional] -**ThirtyCompleteRate** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantAdvUserLimitInfo - -`func NewMerchantAdvUserLimitInfo() *MerchantAdvUserLimitInfo` - -NewMerchantAdvUserLimitInfo instantiates a new MerchantAdvUserLimitInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantAdvUserLimitInfoWithDefaults - -`func NewMerchantAdvUserLimitInfoWithDefaults() *MerchantAdvUserLimitInfo` - -NewMerchantAdvUserLimitInfoWithDefaults instantiates a new MerchantAdvUserLimitInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAllowMerchantPlace - -`func (o *MerchantAdvUserLimitInfo) GetAllowMerchantPlace() string` - -GetAllowMerchantPlace returns the AllowMerchantPlace field if non-nil, zero value otherwise. - -### GetAllowMerchantPlaceOk - -`func (o *MerchantAdvUserLimitInfo) GetAllowMerchantPlaceOk() (*string, bool)` - -GetAllowMerchantPlaceOk returns a tuple with the AllowMerchantPlace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllowMerchantPlace - -`func (o *MerchantAdvUserLimitInfo) SetAllowMerchantPlace(v string)` - -SetAllowMerchantPlace sets AllowMerchantPlace field to given value. - -### HasAllowMerchantPlace - -`func (o *MerchantAdvUserLimitInfo) HasAllowMerchantPlace() bool` - -HasAllowMerchantPlace returns a boolean if a field has been set. - -### GetCountry - -`func (o *MerchantAdvUserLimitInfo) GetCountry() string` - -GetCountry returns the Country field if non-nil, zero value otherwise. - -### GetCountryOk - -`func (o *MerchantAdvUserLimitInfo) GetCountryOk() (*string, bool)` - -GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCountry - -`func (o *MerchantAdvUserLimitInfo) SetCountry(v string)` - -SetCountry sets Country field to given value. - -### HasCountry - -`func (o *MerchantAdvUserLimitInfo) HasCountry() bool` - -HasCountry returns a boolean if a field has been set. - -### GetMaxCompleteNum - -`func (o *MerchantAdvUserLimitInfo) GetMaxCompleteNum() string` - -GetMaxCompleteNum returns the MaxCompleteNum field if non-nil, zero value otherwise. - -### GetMaxCompleteNumOk - -`func (o *MerchantAdvUserLimitInfo) GetMaxCompleteNumOk() (*string, bool)` - -GetMaxCompleteNumOk returns a tuple with the MaxCompleteNum field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCompleteNum - -`func (o *MerchantAdvUserLimitInfo) SetMaxCompleteNum(v string)` - -SetMaxCompleteNum sets MaxCompleteNum field to given value. - -### HasMaxCompleteNum - -`func (o *MerchantAdvUserLimitInfo) HasMaxCompleteNum() bool` - -HasMaxCompleteNum returns a boolean if a field has been set. - -### GetMinCompleteNum - -`func (o *MerchantAdvUserLimitInfo) GetMinCompleteNum() string` - -GetMinCompleteNum returns the MinCompleteNum field if non-nil, zero value otherwise. - -### GetMinCompleteNumOk - -`func (o *MerchantAdvUserLimitInfo) GetMinCompleteNumOk() (*string, bool)` - -GetMinCompleteNumOk returns a tuple with the MinCompleteNum field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinCompleteNum - -`func (o *MerchantAdvUserLimitInfo) SetMinCompleteNum(v string)` - -SetMinCompleteNum sets MinCompleteNum field to given value. - -### HasMinCompleteNum - -`func (o *MerchantAdvUserLimitInfo) HasMinCompleteNum() bool` - -HasMinCompleteNum returns a boolean if a field has been set. - -### GetPlaceOrderNum - -`func (o *MerchantAdvUserLimitInfo) GetPlaceOrderNum() string` - -GetPlaceOrderNum returns the PlaceOrderNum field if non-nil, zero value otherwise. - -### GetPlaceOrderNumOk - -`func (o *MerchantAdvUserLimitInfo) GetPlaceOrderNumOk() (*string, bool)` - -GetPlaceOrderNumOk returns a tuple with the PlaceOrderNum field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlaceOrderNum - -`func (o *MerchantAdvUserLimitInfo) SetPlaceOrderNum(v string)` - -SetPlaceOrderNum sets PlaceOrderNum field to given value. - -### HasPlaceOrderNum - -`func (o *MerchantAdvUserLimitInfo) HasPlaceOrderNum() bool` - -HasPlaceOrderNum returns a boolean if a field has been set. - -### GetThirtyCompleteRate - -`func (o *MerchantAdvUserLimitInfo) GetThirtyCompleteRate() string` - -GetThirtyCompleteRate returns the ThirtyCompleteRate field if non-nil, zero value otherwise. - -### GetThirtyCompleteRateOk - -`func (o *MerchantAdvUserLimitInfo) GetThirtyCompleteRateOk() (*string, bool)` - -GetThirtyCompleteRateOk returns a tuple with the ThirtyCompleteRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyCompleteRate - -`func (o *MerchantAdvUserLimitInfo) SetThirtyCompleteRate(v string)` - -SetThirtyCompleteRate sets ThirtyCompleteRate field to given value. - -### HasThirtyCompleteRate - -`func (o *MerchantAdvUserLimitInfo) HasThirtyCompleteRate() bool` - -HasThirtyCompleteRate returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantInfo.md b/bitget-goland-sdk-open-api/docs/MerchantInfo.md deleted file mode 100644 index 7e080922..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantInfo.md +++ /dev/null @@ -1,394 +0,0 @@ -# MerchantInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AveragePayment** | Pointer to **string** | | [optional] -**AverageRealese** | Pointer to **string** | | [optional] -**IsOnline** | Pointer to **string** | | [optional] -**MerchantId** | Pointer to **string** | | [optional] -**NickName** | Pointer to **string** | | [optional] -**RegisterTime** | Pointer to **string** | | [optional] -**ThirtyBuy** | Pointer to **string** | | [optional] -**ThirtyCompletionRate** | Pointer to **string** | | [optional] -**ThirtySell** | Pointer to **string** | | [optional] -**ThirtyTrades** | Pointer to **string** | | [optional] -**TotalBuy** | Pointer to **string** | | [optional] -**TotalCompletionRate** | Pointer to **string** | | [optional] -**TotalSell** | Pointer to **string** | | [optional] -**TotalTrades** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantInfo - -`func NewMerchantInfo() *MerchantInfo` - -NewMerchantInfo instantiates a new MerchantInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantInfoWithDefaults - -`func NewMerchantInfoWithDefaults() *MerchantInfo` - -NewMerchantInfoWithDefaults instantiates a new MerchantInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAveragePayment - -`func (o *MerchantInfo) GetAveragePayment() string` - -GetAveragePayment returns the AveragePayment field if non-nil, zero value otherwise. - -### GetAveragePaymentOk - -`func (o *MerchantInfo) GetAveragePaymentOk() (*string, bool)` - -GetAveragePaymentOk returns a tuple with the AveragePayment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAveragePayment - -`func (o *MerchantInfo) SetAveragePayment(v string)` - -SetAveragePayment sets AveragePayment field to given value. - -### HasAveragePayment - -`func (o *MerchantInfo) HasAveragePayment() bool` - -HasAveragePayment returns a boolean if a field has been set. - -### GetAverageRealese - -`func (o *MerchantInfo) GetAverageRealese() string` - -GetAverageRealese returns the AverageRealese field if non-nil, zero value otherwise. - -### GetAverageRealeseOk - -`func (o *MerchantInfo) GetAverageRealeseOk() (*string, bool)` - -GetAverageRealeseOk returns a tuple with the AverageRealese field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAverageRealese - -`func (o *MerchantInfo) SetAverageRealese(v string)` - -SetAverageRealese sets AverageRealese field to given value. - -### HasAverageRealese - -`func (o *MerchantInfo) HasAverageRealese() bool` - -HasAverageRealese returns a boolean if a field has been set. - -### GetIsOnline - -`func (o *MerchantInfo) GetIsOnline() string` - -GetIsOnline returns the IsOnline field if non-nil, zero value otherwise. - -### GetIsOnlineOk - -`func (o *MerchantInfo) GetIsOnlineOk() (*string, bool)` - -GetIsOnlineOk returns a tuple with the IsOnline field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsOnline - -`func (o *MerchantInfo) SetIsOnline(v string)` - -SetIsOnline sets IsOnline field to given value. - -### HasIsOnline - -`func (o *MerchantInfo) HasIsOnline() bool` - -HasIsOnline returns a boolean if a field has been set. - -### GetMerchantId - -`func (o *MerchantInfo) GetMerchantId() string` - -GetMerchantId returns the MerchantId field if non-nil, zero value otherwise. - -### GetMerchantIdOk - -`func (o *MerchantInfo) GetMerchantIdOk() (*string, bool)` - -GetMerchantIdOk returns a tuple with the MerchantId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMerchantId - -`func (o *MerchantInfo) SetMerchantId(v string)` - -SetMerchantId sets MerchantId field to given value. - -### HasMerchantId - -`func (o *MerchantInfo) HasMerchantId() bool` - -HasMerchantId returns a boolean if a field has been set. - -### GetNickName - -`func (o *MerchantInfo) GetNickName() string` - -GetNickName returns the NickName field if non-nil, zero value otherwise. - -### GetNickNameOk - -`func (o *MerchantInfo) GetNickNameOk() (*string, bool)` - -GetNickNameOk returns a tuple with the NickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNickName - -`func (o *MerchantInfo) SetNickName(v string)` - -SetNickName sets NickName field to given value. - -### HasNickName - -`func (o *MerchantInfo) HasNickName() bool` - -HasNickName returns a boolean if a field has been set. - -### GetRegisterTime - -`func (o *MerchantInfo) GetRegisterTime() string` - -GetRegisterTime returns the RegisterTime field if non-nil, zero value otherwise. - -### GetRegisterTimeOk - -`func (o *MerchantInfo) GetRegisterTimeOk() (*string, bool)` - -GetRegisterTimeOk returns a tuple with the RegisterTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegisterTime - -`func (o *MerchantInfo) SetRegisterTime(v string)` - -SetRegisterTime sets RegisterTime field to given value. - -### HasRegisterTime - -`func (o *MerchantInfo) HasRegisterTime() bool` - -HasRegisterTime returns a boolean if a field has been set. - -### GetThirtyBuy - -`func (o *MerchantInfo) GetThirtyBuy() string` - -GetThirtyBuy returns the ThirtyBuy field if non-nil, zero value otherwise. - -### GetThirtyBuyOk - -`func (o *MerchantInfo) GetThirtyBuyOk() (*string, bool)` - -GetThirtyBuyOk returns a tuple with the ThirtyBuy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyBuy - -`func (o *MerchantInfo) SetThirtyBuy(v string)` - -SetThirtyBuy sets ThirtyBuy field to given value. - -### HasThirtyBuy - -`func (o *MerchantInfo) HasThirtyBuy() bool` - -HasThirtyBuy returns a boolean if a field has been set. - -### GetThirtyCompletionRate - -`func (o *MerchantInfo) GetThirtyCompletionRate() string` - -GetThirtyCompletionRate returns the ThirtyCompletionRate field if non-nil, zero value otherwise. - -### GetThirtyCompletionRateOk - -`func (o *MerchantInfo) GetThirtyCompletionRateOk() (*string, bool)` - -GetThirtyCompletionRateOk returns a tuple with the ThirtyCompletionRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyCompletionRate - -`func (o *MerchantInfo) SetThirtyCompletionRate(v string)` - -SetThirtyCompletionRate sets ThirtyCompletionRate field to given value. - -### HasThirtyCompletionRate - -`func (o *MerchantInfo) HasThirtyCompletionRate() bool` - -HasThirtyCompletionRate returns a boolean if a field has been set. - -### GetThirtySell - -`func (o *MerchantInfo) GetThirtySell() string` - -GetThirtySell returns the ThirtySell field if non-nil, zero value otherwise. - -### GetThirtySellOk - -`func (o *MerchantInfo) GetThirtySellOk() (*string, bool)` - -GetThirtySellOk returns a tuple with the ThirtySell field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtySell - -`func (o *MerchantInfo) SetThirtySell(v string)` - -SetThirtySell sets ThirtySell field to given value. - -### HasThirtySell - -`func (o *MerchantInfo) HasThirtySell() bool` - -HasThirtySell returns a boolean if a field has been set. - -### GetThirtyTrades - -`func (o *MerchantInfo) GetThirtyTrades() string` - -GetThirtyTrades returns the ThirtyTrades field if non-nil, zero value otherwise. - -### GetThirtyTradesOk - -`func (o *MerchantInfo) GetThirtyTradesOk() (*string, bool)` - -GetThirtyTradesOk returns a tuple with the ThirtyTrades field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyTrades - -`func (o *MerchantInfo) SetThirtyTrades(v string)` - -SetThirtyTrades sets ThirtyTrades field to given value. - -### HasThirtyTrades - -`func (o *MerchantInfo) HasThirtyTrades() bool` - -HasThirtyTrades returns a boolean if a field has been set. - -### GetTotalBuy - -`func (o *MerchantInfo) GetTotalBuy() string` - -GetTotalBuy returns the TotalBuy field if non-nil, zero value otherwise. - -### GetTotalBuyOk - -`func (o *MerchantInfo) GetTotalBuyOk() (*string, bool)` - -GetTotalBuyOk returns a tuple with the TotalBuy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalBuy - -`func (o *MerchantInfo) SetTotalBuy(v string)` - -SetTotalBuy sets TotalBuy field to given value. - -### HasTotalBuy - -`func (o *MerchantInfo) HasTotalBuy() bool` - -HasTotalBuy returns a boolean if a field has been set. - -### GetTotalCompletionRate - -`func (o *MerchantInfo) GetTotalCompletionRate() string` - -GetTotalCompletionRate returns the TotalCompletionRate field if non-nil, zero value otherwise. - -### GetTotalCompletionRateOk - -`func (o *MerchantInfo) GetTotalCompletionRateOk() (*string, bool)` - -GetTotalCompletionRateOk returns a tuple with the TotalCompletionRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalCompletionRate - -`func (o *MerchantInfo) SetTotalCompletionRate(v string)` - -SetTotalCompletionRate sets TotalCompletionRate field to given value. - -### HasTotalCompletionRate - -`func (o *MerchantInfo) HasTotalCompletionRate() bool` - -HasTotalCompletionRate returns a boolean if a field has been set. - -### GetTotalSell - -`func (o *MerchantInfo) GetTotalSell() string` - -GetTotalSell returns the TotalSell field if non-nil, zero value otherwise. - -### GetTotalSellOk - -`func (o *MerchantInfo) GetTotalSellOk() (*string, bool)` - -GetTotalSellOk returns a tuple with the TotalSell field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalSell - -`func (o *MerchantInfo) SetTotalSell(v string)` - -SetTotalSell sets TotalSell field to given value. - -### HasTotalSell - -`func (o *MerchantInfo) HasTotalSell() bool` - -HasTotalSell returns a boolean if a field has been set. - -### GetTotalTrades - -`func (o *MerchantInfo) GetTotalTrades() string` - -GetTotalTrades returns the TotalTrades field if non-nil, zero value otherwise. - -### GetTotalTradesOk - -`func (o *MerchantInfo) GetTotalTradesOk() (*string, bool)` - -GetTotalTradesOk returns a tuple with the TotalTrades field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalTrades - -`func (o *MerchantInfo) SetTotalTrades(v string)` - -SetTotalTrades sets TotalTrades field to given value. - -### HasTotalTrades - -`func (o *MerchantInfo) HasTotalTrades() bool` - -HasTotalTrades returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantInfoResult.md b/bitget-goland-sdk-open-api/docs/MerchantInfoResult.md deleted file mode 100644 index 8d2a56c1..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantInfoResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MerchantInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]MerchantInfo**](MerchantInfo.md) | | [optional] - -## Methods - -### NewMerchantInfoResult - -`func NewMerchantInfoResult() *MerchantInfoResult` - -NewMerchantInfoResult instantiates a new MerchantInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantInfoResultWithDefaults - -`func NewMerchantInfoResultWithDefaults() *MerchantInfoResult` - -NewMerchantInfoResultWithDefaults instantiates a new MerchantInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinId - -`func (o *MerchantInfoResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MerchantInfoResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MerchantInfoResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MerchantInfoResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *MerchantInfoResult) GetResultList() []MerchantInfo` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MerchantInfoResult) GetResultListOk() (*[]MerchantInfo, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MerchantInfoResult) SetResultList(v []MerchantInfo)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MerchantInfoResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantOrderInfo.md b/bitget-goland-sdk-open-api/docs/MerchantOrderInfo.md deleted file mode 100644 index f434d939..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantOrderInfo.md +++ /dev/null @@ -1,498 +0,0 @@ -# MerchantOrderInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AdvNo** | Pointer to **string** | | [optional] -**Amount** | Pointer to **string** | | [optional] -**BuyerRealName** | Pointer to **string** | | [optional] -**Coin** | Pointer to **string** | | [optional] -**Count** | Pointer to **string** | | [optional] -**Ctime** | Pointer to **string** | | [optional] -**Fiat** | Pointer to **string** | | [optional] -**OrderId** | Pointer to **string** | | [optional] -**OrderNo** | Pointer to **string** | | [optional] -**PaymentInfo** | Pointer to [**MerchantOrderPaymentInfo**](MerchantOrderPaymentInfo.md) | | [optional] -**PaymentTime** | Pointer to **string** | | [optional] -**Price** | Pointer to **string** | | [optional] -**ReleaseCoinTime** | Pointer to **string** | | [optional] -**RepresentTime** | Pointer to **string** | | [optional] -**SellerRealName** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] -**WithdrawTime** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantOrderInfo - -`func NewMerchantOrderInfo() *MerchantOrderInfo` - -NewMerchantOrderInfo instantiates a new MerchantOrderInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantOrderInfoWithDefaults - -`func NewMerchantOrderInfoWithDefaults() *MerchantOrderInfo` - -NewMerchantOrderInfoWithDefaults instantiates a new MerchantOrderInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAdvNo - -`func (o *MerchantOrderInfo) GetAdvNo() string` - -GetAdvNo returns the AdvNo field if non-nil, zero value otherwise. - -### GetAdvNoOk - -`func (o *MerchantOrderInfo) GetAdvNoOk() (*string, bool)` - -GetAdvNoOk returns a tuple with the AdvNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdvNo - -`func (o *MerchantOrderInfo) SetAdvNo(v string)` - -SetAdvNo sets AdvNo field to given value. - -### HasAdvNo - -`func (o *MerchantOrderInfo) HasAdvNo() bool` - -HasAdvNo returns a boolean if a field has been set. - -### GetAmount - -`func (o *MerchantOrderInfo) GetAmount() string` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *MerchantOrderInfo) GetAmountOk() (*string, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *MerchantOrderInfo) SetAmount(v string)` - -SetAmount sets Amount field to given value. - -### HasAmount - -`func (o *MerchantOrderInfo) HasAmount() bool` - -HasAmount returns a boolean if a field has been set. - -### GetBuyerRealName - -`func (o *MerchantOrderInfo) GetBuyerRealName() string` - -GetBuyerRealName returns the BuyerRealName field if non-nil, zero value otherwise. - -### GetBuyerRealNameOk - -`func (o *MerchantOrderInfo) GetBuyerRealNameOk() (*string, bool)` - -GetBuyerRealNameOk returns a tuple with the BuyerRealName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyerRealName - -`func (o *MerchantOrderInfo) SetBuyerRealName(v string)` - -SetBuyerRealName sets BuyerRealName field to given value. - -### HasBuyerRealName - -`func (o *MerchantOrderInfo) HasBuyerRealName() bool` - -HasBuyerRealName returns a boolean if a field has been set. - -### GetCoin - -`func (o *MerchantOrderInfo) GetCoin() string` - -GetCoin returns the Coin field if non-nil, zero value otherwise. - -### GetCoinOk - -`func (o *MerchantOrderInfo) GetCoinOk() (*string, bool)` - -GetCoinOk returns a tuple with the Coin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoin - -`func (o *MerchantOrderInfo) SetCoin(v string)` - -SetCoin sets Coin field to given value. - -### HasCoin - -`func (o *MerchantOrderInfo) HasCoin() bool` - -HasCoin returns a boolean if a field has been set. - -### GetCount - -`func (o *MerchantOrderInfo) GetCount() string` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *MerchantOrderInfo) GetCountOk() (*string, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *MerchantOrderInfo) SetCount(v string)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *MerchantOrderInfo) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetCtime - -`func (o *MerchantOrderInfo) GetCtime() string` - -GetCtime returns the Ctime field if non-nil, zero value otherwise. - -### GetCtimeOk - -`func (o *MerchantOrderInfo) GetCtimeOk() (*string, bool)` - -GetCtimeOk returns a tuple with the Ctime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCtime - -`func (o *MerchantOrderInfo) SetCtime(v string)` - -SetCtime sets Ctime field to given value. - -### HasCtime - -`func (o *MerchantOrderInfo) HasCtime() bool` - -HasCtime returns a boolean if a field has been set. - -### GetFiat - -`func (o *MerchantOrderInfo) GetFiat() string` - -GetFiat returns the Fiat field if non-nil, zero value otherwise. - -### GetFiatOk - -`func (o *MerchantOrderInfo) GetFiatOk() (*string, bool)` - -GetFiatOk returns a tuple with the Fiat field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFiat - -`func (o *MerchantOrderInfo) SetFiat(v string)` - -SetFiat sets Fiat field to given value. - -### HasFiat - -`func (o *MerchantOrderInfo) HasFiat() bool` - -HasFiat returns a boolean if a field has been set. - -### GetOrderId - -`func (o *MerchantOrderInfo) GetOrderId() string` - -GetOrderId returns the OrderId field if non-nil, zero value otherwise. - -### GetOrderIdOk - -`func (o *MerchantOrderInfo) GetOrderIdOk() (*string, bool)` - -GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderId - -`func (o *MerchantOrderInfo) SetOrderId(v string)` - -SetOrderId sets OrderId field to given value. - -### HasOrderId - -`func (o *MerchantOrderInfo) HasOrderId() bool` - -HasOrderId returns a boolean if a field has been set. - -### GetOrderNo - -`func (o *MerchantOrderInfo) GetOrderNo() string` - -GetOrderNo returns the OrderNo field if non-nil, zero value otherwise. - -### GetOrderNoOk - -`func (o *MerchantOrderInfo) GetOrderNoOk() (*string, bool)` - -GetOrderNoOk returns a tuple with the OrderNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderNo - -`func (o *MerchantOrderInfo) SetOrderNo(v string)` - -SetOrderNo sets OrderNo field to given value. - -### HasOrderNo - -`func (o *MerchantOrderInfo) HasOrderNo() bool` - -HasOrderNo returns a boolean if a field has been set. - -### GetPaymentInfo - -`func (o *MerchantOrderInfo) GetPaymentInfo() MerchantOrderPaymentInfo` - -GetPaymentInfo returns the PaymentInfo field if non-nil, zero value otherwise. - -### GetPaymentInfoOk - -`func (o *MerchantOrderInfo) GetPaymentInfoOk() (*MerchantOrderPaymentInfo, bool)` - -GetPaymentInfoOk returns a tuple with the PaymentInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentInfo - -`func (o *MerchantOrderInfo) SetPaymentInfo(v MerchantOrderPaymentInfo)` - -SetPaymentInfo sets PaymentInfo field to given value. - -### HasPaymentInfo - -`func (o *MerchantOrderInfo) HasPaymentInfo() bool` - -HasPaymentInfo returns a boolean if a field has been set. - -### GetPaymentTime - -`func (o *MerchantOrderInfo) GetPaymentTime() string` - -GetPaymentTime returns the PaymentTime field if non-nil, zero value otherwise. - -### GetPaymentTimeOk - -`func (o *MerchantOrderInfo) GetPaymentTimeOk() (*string, bool)` - -GetPaymentTimeOk returns a tuple with the PaymentTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentTime - -`func (o *MerchantOrderInfo) SetPaymentTime(v string)` - -SetPaymentTime sets PaymentTime field to given value. - -### HasPaymentTime - -`func (o *MerchantOrderInfo) HasPaymentTime() bool` - -HasPaymentTime returns a boolean if a field has been set. - -### GetPrice - -`func (o *MerchantOrderInfo) GetPrice() string` - -GetPrice returns the Price field if non-nil, zero value otherwise. - -### GetPriceOk - -`func (o *MerchantOrderInfo) GetPriceOk() (*string, bool)` - -GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrice - -`func (o *MerchantOrderInfo) SetPrice(v string)` - -SetPrice sets Price field to given value. - -### HasPrice - -`func (o *MerchantOrderInfo) HasPrice() bool` - -HasPrice returns a boolean if a field has been set. - -### GetReleaseCoinTime - -`func (o *MerchantOrderInfo) GetReleaseCoinTime() string` - -GetReleaseCoinTime returns the ReleaseCoinTime field if non-nil, zero value otherwise. - -### GetReleaseCoinTimeOk - -`func (o *MerchantOrderInfo) GetReleaseCoinTimeOk() (*string, bool)` - -GetReleaseCoinTimeOk returns a tuple with the ReleaseCoinTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReleaseCoinTime - -`func (o *MerchantOrderInfo) SetReleaseCoinTime(v string)` - -SetReleaseCoinTime sets ReleaseCoinTime field to given value. - -### HasReleaseCoinTime - -`func (o *MerchantOrderInfo) HasReleaseCoinTime() bool` - -HasReleaseCoinTime returns a boolean if a field has been set. - -### GetRepresentTime - -`func (o *MerchantOrderInfo) GetRepresentTime() string` - -GetRepresentTime returns the RepresentTime field if non-nil, zero value otherwise. - -### GetRepresentTimeOk - -`func (o *MerchantOrderInfo) GetRepresentTimeOk() (*string, bool)` - -GetRepresentTimeOk returns a tuple with the RepresentTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRepresentTime - -`func (o *MerchantOrderInfo) SetRepresentTime(v string)` - -SetRepresentTime sets RepresentTime field to given value. - -### HasRepresentTime - -`func (o *MerchantOrderInfo) HasRepresentTime() bool` - -HasRepresentTime returns a boolean if a field has been set. - -### GetSellerRealName - -`func (o *MerchantOrderInfo) GetSellerRealName() string` - -GetSellerRealName returns the SellerRealName field if non-nil, zero value otherwise. - -### GetSellerRealNameOk - -`func (o *MerchantOrderInfo) GetSellerRealNameOk() (*string, bool)` - -GetSellerRealNameOk returns a tuple with the SellerRealName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSellerRealName - -`func (o *MerchantOrderInfo) SetSellerRealName(v string)` - -SetSellerRealName sets SellerRealName field to given value. - -### HasSellerRealName - -`func (o *MerchantOrderInfo) HasSellerRealName() bool` - -HasSellerRealName returns a boolean if a field has been set. - -### GetStatus - -`func (o *MerchantOrderInfo) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *MerchantOrderInfo) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *MerchantOrderInfo) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *MerchantOrderInfo) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetType - -`func (o *MerchantOrderInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MerchantOrderInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *MerchantOrderInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *MerchantOrderInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetWithdrawTime - -`func (o *MerchantOrderInfo) GetWithdrawTime() string` - -GetWithdrawTime returns the WithdrawTime field if non-nil, zero value otherwise. - -### GetWithdrawTimeOk - -`func (o *MerchantOrderInfo) GetWithdrawTimeOk() (*string, bool)` - -GetWithdrawTimeOk returns a tuple with the WithdrawTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWithdrawTime - -`func (o *MerchantOrderInfo) SetWithdrawTime(v string)` - -SetWithdrawTime sets WithdrawTime field to given value. - -### HasWithdrawTime - -`func (o *MerchantOrderInfo) HasWithdrawTime() bool` - -HasWithdrawTime returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantOrderPaymentInfo.md b/bitget-goland-sdk-open-api/docs/MerchantOrderPaymentInfo.md deleted file mode 100644 index a1e0834f..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantOrderPaymentInfo.md +++ /dev/null @@ -1,108 +0,0 @@ -# MerchantOrderPaymentInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PaymethodId** | Pointer to **string** | | [optional] -**PaymethodInfo** | Pointer to [**[]OrderPaymentDetailInfo**](OrderPaymentDetailInfo.md) | | [optional] -**PaymethodName** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantOrderPaymentInfo - -`func NewMerchantOrderPaymentInfo() *MerchantOrderPaymentInfo` - -NewMerchantOrderPaymentInfo instantiates a new MerchantOrderPaymentInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantOrderPaymentInfoWithDefaults - -`func NewMerchantOrderPaymentInfoWithDefaults() *MerchantOrderPaymentInfo` - -NewMerchantOrderPaymentInfoWithDefaults instantiates a new MerchantOrderPaymentInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPaymethodId - -`func (o *MerchantOrderPaymentInfo) GetPaymethodId() string` - -GetPaymethodId returns the PaymethodId field if non-nil, zero value otherwise. - -### GetPaymethodIdOk - -`func (o *MerchantOrderPaymentInfo) GetPaymethodIdOk() (*string, bool)` - -GetPaymethodIdOk returns a tuple with the PaymethodId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymethodId - -`func (o *MerchantOrderPaymentInfo) SetPaymethodId(v string)` - -SetPaymethodId sets PaymethodId field to given value. - -### HasPaymethodId - -`func (o *MerchantOrderPaymentInfo) HasPaymethodId() bool` - -HasPaymethodId returns a boolean if a field has been set. - -### GetPaymethodInfo - -`func (o *MerchantOrderPaymentInfo) GetPaymethodInfo() []OrderPaymentDetailInfo` - -GetPaymethodInfo returns the PaymethodInfo field if non-nil, zero value otherwise. - -### GetPaymethodInfoOk - -`func (o *MerchantOrderPaymentInfo) GetPaymethodInfoOk() (*[]OrderPaymentDetailInfo, bool)` - -GetPaymethodInfoOk returns a tuple with the PaymethodInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymethodInfo - -`func (o *MerchantOrderPaymentInfo) SetPaymethodInfo(v []OrderPaymentDetailInfo)` - -SetPaymethodInfo sets PaymethodInfo field to given value. - -### HasPaymethodInfo - -`func (o *MerchantOrderPaymentInfo) HasPaymethodInfo() bool` - -HasPaymethodInfo returns a boolean if a field has been set. - -### GetPaymethodName - -`func (o *MerchantOrderPaymentInfo) GetPaymethodName() string` - -GetPaymethodName returns the PaymethodName field if non-nil, zero value otherwise. - -### GetPaymethodNameOk - -`func (o *MerchantOrderPaymentInfo) GetPaymethodNameOk() (*string, bool)` - -GetPaymethodNameOk returns a tuple with the PaymethodName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymethodName - -`func (o *MerchantOrderPaymentInfo) SetPaymethodName(v string)` - -SetPaymethodName sets PaymethodName field to given value. - -### HasPaymethodName - -`func (o *MerchantOrderPaymentInfo) HasPaymethodName() bool` - -HasPaymethodName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantOrderResult.md b/bitget-goland-sdk-open-api/docs/MerchantOrderResult.md deleted file mode 100644 index 87026278..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantOrderResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MerchantOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinId** | Pointer to **string** | | [optional] -**OrderList** | Pointer to [**[]MerchantOrderInfo**](MerchantOrderInfo.md) | | [optional] - -## Methods - -### NewMerchantOrderResult - -`func NewMerchantOrderResult() *MerchantOrderResult` - -NewMerchantOrderResult instantiates a new MerchantOrderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantOrderResultWithDefaults - -`func NewMerchantOrderResultWithDefaults() *MerchantOrderResult` - -NewMerchantOrderResultWithDefaults instantiates a new MerchantOrderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinId - -`func (o *MerchantOrderResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *MerchantOrderResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *MerchantOrderResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *MerchantOrderResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetOrderList - -`func (o *MerchantOrderResult) GetOrderList() []MerchantOrderInfo` - -GetOrderList returns the OrderList field if non-nil, zero value otherwise. - -### GetOrderListOk - -`func (o *MerchantOrderResult) GetOrderListOk() (*[]MerchantOrderInfo, bool)` - -GetOrderListOk returns a tuple with the OrderList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderList - -`func (o *MerchantOrderResult) SetOrderList(v []MerchantOrderInfo)` - -SetOrderList sets OrderList field to given value. - -### HasOrderList - -`func (o *MerchantOrderResult) HasOrderList() bool` - -HasOrderList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MerchantPersonInfo.md b/bitget-goland-sdk-open-api/docs/MerchantPersonInfo.md deleted file mode 100644 index eddf7f68..00000000 --- a/bitget-goland-sdk-open-api/docs/MerchantPersonInfo.md +++ /dev/null @@ -1,524 +0,0 @@ -# MerchantPersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AveragePayment** | Pointer to **string** | | [optional] -**AverageRealese** | Pointer to **string** | | [optional] -**Email** | Pointer to **string** | | [optional] -**EmailBindFlag** | Pointer to **bool** | | [optional] -**KycFlag** | Pointer to **bool** | | [optional] -**MerchantId** | Pointer to **string** | | [optional] -**Mobile** | Pointer to **string** | | [optional] -**MobileBindFlag** | Pointer to **bool** | | [optional] -**NickName** | Pointer to **string** | | [optional] -**RealName** | Pointer to **string** | | [optional] -**RegisterTime** | Pointer to **string** | | [optional] -**ThirtyBuy** | Pointer to **string** | | [optional] -**ThirtyCompletionRate** | Pointer to **string** | | [optional] -**ThirtySell** | Pointer to **string** | | [optional] -**ThirtyTrades** | Pointer to **string** | | [optional] -**TotalBuy** | Pointer to **string** | | [optional] -**TotalCompletionRate** | Pointer to **string** | | [optional] -**TotalSell** | Pointer to **string** | | [optional] -**TotalTrades** | Pointer to **string** | | [optional] - -## Methods - -### NewMerchantPersonInfo - -`func NewMerchantPersonInfo() *MerchantPersonInfo` - -NewMerchantPersonInfo instantiates a new MerchantPersonInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMerchantPersonInfoWithDefaults - -`func NewMerchantPersonInfoWithDefaults() *MerchantPersonInfo` - -NewMerchantPersonInfoWithDefaults instantiates a new MerchantPersonInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAveragePayment - -`func (o *MerchantPersonInfo) GetAveragePayment() string` - -GetAveragePayment returns the AveragePayment field if non-nil, zero value otherwise. - -### GetAveragePaymentOk - -`func (o *MerchantPersonInfo) GetAveragePaymentOk() (*string, bool)` - -GetAveragePaymentOk returns a tuple with the AveragePayment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAveragePayment - -`func (o *MerchantPersonInfo) SetAveragePayment(v string)` - -SetAveragePayment sets AveragePayment field to given value. - -### HasAveragePayment - -`func (o *MerchantPersonInfo) HasAveragePayment() bool` - -HasAveragePayment returns a boolean if a field has been set. - -### GetAverageRealese - -`func (o *MerchantPersonInfo) GetAverageRealese() string` - -GetAverageRealese returns the AverageRealese field if non-nil, zero value otherwise. - -### GetAverageRealeseOk - -`func (o *MerchantPersonInfo) GetAverageRealeseOk() (*string, bool)` - -GetAverageRealeseOk returns a tuple with the AverageRealese field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAverageRealese - -`func (o *MerchantPersonInfo) SetAverageRealese(v string)` - -SetAverageRealese sets AverageRealese field to given value. - -### HasAverageRealese - -`func (o *MerchantPersonInfo) HasAverageRealese() bool` - -HasAverageRealese returns a boolean if a field has been set. - -### GetEmail - -`func (o *MerchantPersonInfo) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *MerchantPersonInfo) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *MerchantPersonInfo) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *MerchantPersonInfo) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetEmailBindFlag - -`func (o *MerchantPersonInfo) GetEmailBindFlag() bool` - -GetEmailBindFlag returns the EmailBindFlag field if non-nil, zero value otherwise. - -### GetEmailBindFlagOk - -`func (o *MerchantPersonInfo) GetEmailBindFlagOk() (*bool, bool)` - -GetEmailBindFlagOk returns a tuple with the EmailBindFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmailBindFlag - -`func (o *MerchantPersonInfo) SetEmailBindFlag(v bool)` - -SetEmailBindFlag sets EmailBindFlag field to given value. - -### HasEmailBindFlag - -`func (o *MerchantPersonInfo) HasEmailBindFlag() bool` - -HasEmailBindFlag returns a boolean if a field has been set. - -### GetKycFlag - -`func (o *MerchantPersonInfo) GetKycFlag() bool` - -GetKycFlag returns the KycFlag field if non-nil, zero value otherwise. - -### GetKycFlagOk - -`func (o *MerchantPersonInfo) GetKycFlagOk() (*bool, bool)` - -GetKycFlagOk returns a tuple with the KycFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKycFlag - -`func (o *MerchantPersonInfo) SetKycFlag(v bool)` - -SetKycFlag sets KycFlag field to given value. - -### HasKycFlag - -`func (o *MerchantPersonInfo) HasKycFlag() bool` - -HasKycFlag returns a boolean if a field has been set. - -### GetMerchantId - -`func (o *MerchantPersonInfo) GetMerchantId() string` - -GetMerchantId returns the MerchantId field if non-nil, zero value otherwise. - -### GetMerchantIdOk - -`func (o *MerchantPersonInfo) GetMerchantIdOk() (*string, bool)` - -GetMerchantIdOk returns a tuple with the MerchantId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMerchantId - -`func (o *MerchantPersonInfo) SetMerchantId(v string)` - -SetMerchantId sets MerchantId field to given value. - -### HasMerchantId - -`func (o *MerchantPersonInfo) HasMerchantId() bool` - -HasMerchantId returns a boolean if a field has been set. - -### GetMobile - -`func (o *MerchantPersonInfo) GetMobile() string` - -GetMobile returns the Mobile field if non-nil, zero value otherwise. - -### GetMobileOk - -`func (o *MerchantPersonInfo) GetMobileOk() (*string, bool)` - -GetMobileOk returns a tuple with the Mobile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMobile - -`func (o *MerchantPersonInfo) SetMobile(v string)` - -SetMobile sets Mobile field to given value. - -### HasMobile - -`func (o *MerchantPersonInfo) HasMobile() bool` - -HasMobile returns a boolean if a field has been set. - -### GetMobileBindFlag - -`func (o *MerchantPersonInfo) GetMobileBindFlag() bool` - -GetMobileBindFlag returns the MobileBindFlag field if non-nil, zero value otherwise. - -### GetMobileBindFlagOk - -`func (o *MerchantPersonInfo) GetMobileBindFlagOk() (*bool, bool)` - -GetMobileBindFlagOk returns a tuple with the MobileBindFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMobileBindFlag - -`func (o *MerchantPersonInfo) SetMobileBindFlag(v bool)` - -SetMobileBindFlag sets MobileBindFlag field to given value. - -### HasMobileBindFlag - -`func (o *MerchantPersonInfo) HasMobileBindFlag() bool` - -HasMobileBindFlag returns a boolean if a field has been set. - -### GetNickName - -`func (o *MerchantPersonInfo) GetNickName() string` - -GetNickName returns the NickName field if non-nil, zero value otherwise. - -### GetNickNameOk - -`func (o *MerchantPersonInfo) GetNickNameOk() (*string, bool)` - -GetNickNameOk returns a tuple with the NickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNickName - -`func (o *MerchantPersonInfo) SetNickName(v string)` - -SetNickName sets NickName field to given value. - -### HasNickName - -`func (o *MerchantPersonInfo) HasNickName() bool` - -HasNickName returns a boolean if a field has been set. - -### GetRealName - -`func (o *MerchantPersonInfo) GetRealName() string` - -GetRealName returns the RealName field if non-nil, zero value otherwise. - -### GetRealNameOk - -`func (o *MerchantPersonInfo) GetRealNameOk() (*string, bool)` - -GetRealNameOk returns a tuple with the RealName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRealName - -`func (o *MerchantPersonInfo) SetRealName(v string)` - -SetRealName sets RealName field to given value. - -### HasRealName - -`func (o *MerchantPersonInfo) HasRealName() bool` - -HasRealName returns a boolean if a field has been set. - -### GetRegisterTime - -`func (o *MerchantPersonInfo) GetRegisterTime() string` - -GetRegisterTime returns the RegisterTime field if non-nil, zero value otherwise. - -### GetRegisterTimeOk - -`func (o *MerchantPersonInfo) GetRegisterTimeOk() (*string, bool)` - -GetRegisterTimeOk returns a tuple with the RegisterTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegisterTime - -`func (o *MerchantPersonInfo) SetRegisterTime(v string)` - -SetRegisterTime sets RegisterTime field to given value. - -### HasRegisterTime - -`func (o *MerchantPersonInfo) HasRegisterTime() bool` - -HasRegisterTime returns a boolean if a field has been set. - -### GetThirtyBuy - -`func (o *MerchantPersonInfo) GetThirtyBuy() string` - -GetThirtyBuy returns the ThirtyBuy field if non-nil, zero value otherwise. - -### GetThirtyBuyOk - -`func (o *MerchantPersonInfo) GetThirtyBuyOk() (*string, bool)` - -GetThirtyBuyOk returns a tuple with the ThirtyBuy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyBuy - -`func (o *MerchantPersonInfo) SetThirtyBuy(v string)` - -SetThirtyBuy sets ThirtyBuy field to given value. - -### HasThirtyBuy - -`func (o *MerchantPersonInfo) HasThirtyBuy() bool` - -HasThirtyBuy returns a boolean if a field has been set. - -### GetThirtyCompletionRate - -`func (o *MerchantPersonInfo) GetThirtyCompletionRate() string` - -GetThirtyCompletionRate returns the ThirtyCompletionRate field if non-nil, zero value otherwise. - -### GetThirtyCompletionRateOk - -`func (o *MerchantPersonInfo) GetThirtyCompletionRateOk() (*string, bool)` - -GetThirtyCompletionRateOk returns a tuple with the ThirtyCompletionRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyCompletionRate - -`func (o *MerchantPersonInfo) SetThirtyCompletionRate(v string)` - -SetThirtyCompletionRate sets ThirtyCompletionRate field to given value. - -### HasThirtyCompletionRate - -`func (o *MerchantPersonInfo) HasThirtyCompletionRate() bool` - -HasThirtyCompletionRate returns a boolean if a field has been set. - -### GetThirtySell - -`func (o *MerchantPersonInfo) GetThirtySell() string` - -GetThirtySell returns the ThirtySell field if non-nil, zero value otherwise. - -### GetThirtySellOk - -`func (o *MerchantPersonInfo) GetThirtySellOk() (*string, bool)` - -GetThirtySellOk returns a tuple with the ThirtySell field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtySell - -`func (o *MerchantPersonInfo) SetThirtySell(v string)` - -SetThirtySell sets ThirtySell field to given value. - -### HasThirtySell - -`func (o *MerchantPersonInfo) HasThirtySell() bool` - -HasThirtySell returns a boolean if a field has been set. - -### GetThirtyTrades - -`func (o *MerchantPersonInfo) GetThirtyTrades() string` - -GetThirtyTrades returns the ThirtyTrades field if non-nil, zero value otherwise. - -### GetThirtyTradesOk - -`func (o *MerchantPersonInfo) GetThirtyTradesOk() (*string, bool)` - -GetThirtyTradesOk returns a tuple with the ThirtyTrades field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetThirtyTrades - -`func (o *MerchantPersonInfo) SetThirtyTrades(v string)` - -SetThirtyTrades sets ThirtyTrades field to given value. - -### HasThirtyTrades - -`func (o *MerchantPersonInfo) HasThirtyTrades() bool` - -HasThirtyTrades returns a boolean if a field has been set. - -### GetTotalBuy - -`func (o *MerchantPersonInfo) GetTotalBuy() string` - -GetTotalBuy returns the TotalBuy field if non-nil, zero value otherwise. - -### GetTotalBuyOk - -`func (o *MerchantPersonInfo) GetTotalBuyOk() (*string, bool)` - -GetTotalBuyOk returns a tuple with the TotalBuy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalBuy - -`func (o *MerchantPersonInfo) SetTotalBuy(v string)` - -SetTotalBuy sets TotalBuy field to given value. - -### HasTotalBuy - -`func (o *MerchantPersonInfo) HasTotalBuy() bool` - -HasTotalBuy returns a boolean if a field has been set. - -### GetTotalCompletionRate - -`func (o *MerchantPersonInfo) GetTotalCompletionRate() string` - -GetTotalCompletionRate returns the TotalCompletionRate field if non-nil, zero value otherwise. - -### GetTotalCompletionRateOk - -`func (o *MerchantPersonInfo) GetTotalCompletionRateOk() (*string, bool)` - -GetTotalCompletionRateOk returns a tuple with the TotalCompletionRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalCompletionRate - -`func (o *MerchantPersonInfo) SetTotalCompletionRate(v string)` - -SetTotalCompletionRate sets TotalCompletionRate field to given value. - -### HasTotalCompletionRate - -`func (o *MerchantPersonInfo) HasTotalCompletionRate() bool` - -HasTotalCompletionRate returns a boolean if a field has been set. - -### GetTotalSell - -`func (o *MerchantPersonInfo) GetTotalSell() string` - -GetTotalSell returns the TotalSell field if non-nil, zero value otherwise. - -### GetTotalSellOk - -`func (o *MerchantPersonInfo) GetTotalSellOk() (*string, bool)` - -GetTotalSellOk returns a tuple with the TotalSell field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalSell - -`func (o *MerchantPersonInfo) SetTotalSell(v string)` - -SetTotalSell sets TotalSell field to given value. - -### HasTotalSell - -`func (o *MerchantPersonInfo) HasTotalSell() bool` - -HasTotalSell returns a boolean if a field has been set. - -### GetTotalTrades - -`func (o *MerchantPersonInfo) GetTotalTrades() string` - -GetTotalTrades returns the TotalTrades field if non-nil, zero value otherwise. - -### GetTotalTradesOk - -`func (o *MerchantPersonInfo) GetTotalTradesOk() (*string, bool)` - -GetTotalTradesOk returns a tuple with the TotalTrades field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalTrades - -`func (o *MerchantPersonInfo) SetTotalTrades(v string)` - -SetTotalTrades sets TotalTrades field to given value. - -### HasTotalTrades - -`func (o *MerchantPersonInfo) HasTotalTrades() bool` - -HasTotalTrades returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTracerResult.md b/bitget-goland-sdk-open-api/docs/MyTracerResult.md deleted file mode 100644 index 2606a158..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTracerResult.md +++ /dev/null @@ -1,160 +0,0 @@ -# MyTracerResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountEquity** | Pointer to **string** | | [optional] -**CanRemoveTraceUser** | Pointer to **bool** | | [optional] -**TracerHeadPic** | Pointer to **string** | | [optional] -**TracerNickName** | Pointer to **string** | | [optional] -**TracerUserId** | Pointer to **string** | | [optional] - -## Methods - -### NewMyTracerResult - -`func NewMyTracerResult() *MyTracerResult` - -NewMyTracerResult instantiates a new MyTracerResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTracerResultWithDefaults - -`func NewMyTracerResultWithDefaults() *MyTracerResult` - -NewMyTracerResultWithDefaults instantiates a new MyTracerResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccountEquity - -`func (o *MyTracerResult) GetAccountEquity() string` - -GetAccountEquity returns the AccountEquity field if non-nil, zero value otherwise. - -### GetAccountEquityOk - -`func (o *MyTracerResult) GetAccountEquityOk() (*string, bool)` - -GetAccountEquityOk returns a tuple with the AccountEquity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountEquity - -`func (o *MyTracerResult) SetAccountEquity(v string)` - -SetAccountEquity sets AccountEquity field to given value. - -### HasAccountEquity - -`func (o *MyTracerResult) HasAccountEquity() bool` - -HasAccountEquity returns a boolean if a field has been set. - -### GetCanRemoveTraceUser - -`func (o *MyTracerResult) GetCanRemoveTraceUser() bool` - -GetCanRemoveTraceUser returns the CanRemoveTraceUser field if non-nil, zero value otherwise. - -### GetCanRemoveTraceUserOk - -`func (o *MyTracerResult) GetCanRemoveTraceUserOk() (*bool, bool)` - -GetCanRemoveTraceUserOk returns a tuple with the CanRemoveTraceUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCanRemoveTraceUser - -`func (o *MyTracerResult) SetCanRemoveTraceUser(v bool)` - -SetCanRemoveTraceUser sets CanRemoveTraceUser field to given value. - -### HasCanRemoveTraceUser - -`func (o *MyTracerResult) HasCanRemoveTraceUser() bool` - -HasCanRemoveTraceUser returns a boolean if a field has been set. - -### GetTracerHeadPic - -`func (o *MyTracerResult) GetTracerHeadPic() string` - -GetTracerHeadPic returns the TracerHeadPic field if non-nil, zero value otherwise. - -### GetTracerHeadPicOk - -`func (o *MyTracerResult) GetTracerHeadPicOk() (*string, bool)` - -GetTracerHeadPicOk returns a tuple with the TracerHeadPic field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTracerHeadPic - -`func (o *MyTracerResult) SetTracerHeadPic(v string)` - -SetTracerHeadPic sets TracerHeadPic field to given value. - -### HasTracerHeadPic - -`func (o *MyTracerResult) HasTracerHeadPic() bool` - -HasTracerHeadPic returns a boolean if a field has been set. - -### GetTracerNickName - -`func (o *MyTracerResult) GetTracerNickName() string` - -GetTracerNickName returns the TracerNickName field if non-nil, zero value otherwise. - -### GetTracerNickNameOk - -`func (o *MyTracerResult) GetTracerNickNameOk() (*string, bool)` - -GetTracerNickNameOk returns a tuple with the TracerNickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTracerNickName - -`func (o *MyTracerResult) SetTracerNickName(v string)` - -SetTracerNickName sets TracerNickName field to given value. - -### HasTracerNickName - -`func (o *MyTracerResult) HasTracerNickName() bool` - -HasTracerNickName returns a boolean if a field has been set. - -### GetTracerUserId - -`func (o *MyTracerResult) GetTracerUserId() string` - -GetTracerUserId returns the TracerUserId field if non-nil, zero value otherwise. - -### GetTracerUserIdOk - -`func (o *MyTracerResult) GetTracerUserIdOk() (*string, bool)` - -GetTracerUserIdOk returns a tuple with the TracerUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTracerUserId - -`func (o *MyTracerResult) SetTracerUserId(v string)` - -SetTracerUserId sets TracerUserId field to given value. - -### HasTracerUserId - -`func (o *MyTracerResult) HasTracerUserId() bool` - -HasTracerUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTracersRequest.md b/bitget-goland-sdk-open-api/docs/MyTracersRequest.md deleted file mode 100644 index 8ee354d9..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTracersRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# MyTracersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewMyTracersRequest - -`func NewMyTracersRequest() *MyTracersRequest` - -NewMyTracersRequest instantiates a new MyTracersRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTracersRequestWithDefaults - -`func NewMyTracersRequestWithDefaults() *MyTracersRequest` - -NewMyTracersRequestWithDefaults instantiates a new MyTracersRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNo - -`func (o *MyTracersRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *MyTracersRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *MyTracersRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *MyTracersRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *MyTracersRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *MyTracersRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *MyTracersRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *MyTracersRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTracersResult.md b/bitget-goland-sdk-open-api/docs/MyTracersResult.md deleted file mode 100644 index 6a070951..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTracersResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MyTracersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NextFlag** | Pointer to **bool** | | [optional] -**ResultList** | Pointer to [**[]MyTracerResult**](MyTracerResult.md) | | [optional] - -## Methods - -### NewMyTracersResult - -`func NewMyTracersResult() *MyTracersResult` - -NewMyTracersResult instantiates a new MyTracersResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTracersResultWithDefaults - -`func NewMyTracersResultWithDefaults() *MyTracersResult` - -NewMyTracersResultWithDefaults instantiates a new MyTracersResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNextFlag - -`func (o *MyTracersResult) GetNextFlag() bool` - -GetNextFlag returns the NextFlag field if non-nil, zero value otherwise. - -### GetNextFlagOk - -`func (o *MyTracersResult) GetNextFlagOk() (*bool, bool)` - -GetNextFlagOk returns a tuple with the NextFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextFlag - -`func (o *MyTracersResult) SetNextFlag(v bool)` - -SetNextFlag sets NextFlag field to given value. - -### HasNextFlag - -`func (o *MyTracersResult) HasNextFlag() bool` - -HasNextFlag returns a boolean if a field has been set. - -### GetResultList - -`func (o *MyTracersResult) GetResultList() []MyTracerResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MyTracersResult) GetResultListOk() (*[]MyTracerResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MyTracersResult) SetResultList(v []MyTracerResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MyTracersResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTraderResult.md b/bitget-goland-sdk-open-api/docs/MyTraderResult.md deleted file mode 100644 index 85e916b5..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTraderResult.md +++ /dev/null @@ -1,212 +0,0 @@ -# MyTraderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CertificationType** | Pointer to **string** | | [optional] -**HeadPic** | Pointer to **string** | | [optional] -**TraceTotalAmount** | Pointer to **string** | | [optional] -**TraceTotalNetProfit** | Pointer to **string** | | [optional] -**TraceTotalProfit** | Pointer to **string** | | [optional] -**TradeNickName** | Pointer to **string** | | [optional] -**TraderUid** | Pointer to **string** | | [optional] - -## Methods - -### NewMyTraderResult - -`func NewMyTraderResult() *MyTraderResult` - -NewMyTraderResult instantiates a new MyTraderResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTraderResultWithDefaults - -`func NewMyTraderResultWithDefaults() *MyTraderResult` - -NewMyTraderResultWithDefaults instantiates a new MyTraderResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCertificationType - -`func (o *MyTraderResult) GetCertificationType() string` - -GetCertificationType returns the CertificationType field if non-nil, zero value otherwise. - -### GetCertificationTypeOk - -`func (o *MyTraderResult) GetCertificationTypeOk() (*string, bool)` - -GetCertificationTypeOk returns a tuple with the CertificationType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCertificationType - -`func (o *MyTraderResult) SetCertificationType(v string)` - -SetCertificationType sets CertificationType field to given value. - -### HasCertificationType - -`func (o *MyTraderResult) HasCertificationType() bool` - -HasCertificationType returns a boolean if a field has been set. - -### GetHeadPic - -`func (o *MyTraderResult) GetHeadPic() string` - -GetHeadPic returns the HeadPic field if non-nil, zero value otherwise. - -### GetHeadPicOk - -`func (o *MyTraderResult) GetHeadPicOk() (*string, bool)` - -GetHeadPicOk returns a tuple with the HeadPic field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHeadPic - -`func (o *MyTraderResult) SetHeadPic(v string)` - -SetHeadPic sets HeadPic field to given value. - -### HasHeadPic - -`func (o *MyTraderResult) HasHeadPic() bool` - -HasHeadPic returns a boolean if a field has been set. - -### GetTraceTotalAmount - -`func (o *MyTraderResult) GetTraceTotalAmount() string` - -GetTraceTotalAmount returns the TraceTotalAmount field if non-nil, zero value otherwise. - -### GetTraceTotalAmountOk - -`func (o *MyTraderResult) GetTraceTotalAmountOk() (*string, bool)` - -GetTraceTotalAmountOk returns a tuple with the TraceTotalAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceTotalAmount - -`func (o *MyTraderResult) SetTraceTotalAmount(v string)` - -SetTraceTotalAmount sets TraceTotalAmount field to given value. - -### HasTraceTotalAmount - -`func (o *MyTraderResult) HasTraceTotalAmount() bool` - -HasTraceTotalAmount returns a boolean if a field has been set. - -### GetTraceTotalNetProfit - -`func (o *MyTraderResult) GetTraceTotalNetProfit() string` - -GetTraceTotalNetProfit returns the TraceTotalNetProfit field if non-nil, zero value otherwise. - -### GetTraceTotalNetProfitOk - -`func (o *MyTraderResult) GetTraceTotalNetProfitOk() (*string, bool)` - -GetTraceTotalNetProfitOk returns a tuple with the TraceTotalNetProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceTotalNetProfit - -`func (o *MyTraderResult) SetTraceTotalNetProfit(v string)` - -SetTraceTotalNetProfit sets TraceTotalNetProfit field to given value. - -### HasTraceTotalNetProfit - -`func (o *MyTraderResult) HasTraceTotalNetProfit() bool` - -HasTraceTotalNetProfit returns a boolean if a field has been set. - -### GetTraceTotalProfit - -`func (o *MyTraderResult) GetTraceTotalProfit() string` - -GetTraceTotalProfit returns the TraceTotalProfit field if non-nil, zero value otherwise. - -### GetTraceTotalProfitOk - -`func (o *MyTraderResult) GetTraceTotalProfitOk() (*string, bool)` - -GetTraceTotalProfitOk returns a tuple with the TraceTotalProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceTotalProfit - -`func (o *MyTraderResult) SetTraceTotalProfit(v string)` - -SetTraceTotalProfit sets TraceTotalProfit field to given value. - -### HasTraceTotalProfit - -`func (o *MyTraderResult) HasTraceTotalProfit() bool` - -HasTraceTotalProfit returns a boolean if a field has been set. - -### GetTradeNickName - -`func (o *MyTraderResult) GetTradeNickName() string` - -GetTradeNickName returns the TradeNickName field if non-nil, zero value otherwise. - -### GetTradeNickNameOk - -`func (o *MyTraderResult) GetTradeNickNameOk() (*string, bool)` - -GetTradeNickNameOk returns a tuple with the TradeNickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTradeNickName - -`func (o *MyTraderResult) SetTradeNickName(v string)` - -SetTradeNickName sets TradeNickName field to given value. - -### HasTradeNickName - -`func (o *MyTraderResult) HasTradeNickName() bool` - -HasTradeNickName returns a boolean if a field has been set. - -### GetTraderUid - -`func (o *MyTraderResult) GetTraderUid() string` - -GetTraderUid returns the TraderUid field if non-nil, zero value otherwise. - -### GetTraderUidOk - -`func (o *MyTraderResult) GetTraderUidOk() (*string, bool)` - -GetTraderUidOk returns a tuple with the TraderUid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderUid - -`func (o *MyTraderResult) SetTraderUid(v string)` - -SetTraderUid sets TraderUid field to given value. - -### HasTraderUid - -`func (o *MyTraderResult) HasTraderUid() bool` - -HasTraderUid returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTradersRequest.md b/bitget-goland-sdk-open-api/docs/MyTradersRequest.md deleted file mode 100644 index 3edc6977..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTradersRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# MyTradersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewMyTradersRequest - -`func NewMyTradersRequest() *MyTradersRequest` - -NewMyTradersRequest instantiates a new MyTradersRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTradersRequestWithDefaults - -`func NewMyTradersRequestWithDefaults() *MyTradersRequest` - -NewMyTradersRequestWithDefaults instantiates a new MyTradersRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNo - -`func (o *MyTradersRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *MyTradersRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *MyTradersRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *MyTradersRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *MyTradersRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *MyTradersRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *MyTradersRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *MyTradersRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/MyTradersResult.md b/bitget-goland-sdk-open-api/docs/MyTradersResult.md deleted file mode 100644 index 223cfad6..00000000 --- a/bitget-goland-sdk-open-api/docs/MyTradersResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# MyTradersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NextFlag** | Pointer to **bool** | | [optional] -**ResultList** | Pointer to [**[]MyTraderResult**](MyTraderResult.md) | | [optional] - -## Methods - -### NewMyTradersResult - -`func NewMyTradersResult() *MyTradersResult` - -NewMyTradersResult instantiates a new MyTradersResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMyTradersResultWithDefaults - -`func NewMyTradersResultWithDefaults() *MyTradersResult` - -NewMyTradersResultWithDefaults instantiates a new MyTradersResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNextFlag - -`func (o *MyTradersResult) GetNextFlag() bool` - -GetNextFlag returns the NextFlag field if non-nil, zero value otherwise. - -### GetNextFlagOk - -`func (o *MyTradersResult) GetNextFlagOk() (*bool, bool)` - -GetNextFlagOk returns a tuple with the NextFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextFlag - -`func (o *MyTradersResult) SetNextFlag(v bool)` - -SetNextFlag sets NextFlag field to given value. - -### HasNextFlag - -`func (o *MyTradersResult) HasNextFlag() bool` - -HasNextFlag returns a boolean if a field has been set. - -### GetResultList - -`func (o *MyTradersResult) GetResultList() []MyTraderResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *MyTradersResult) GetResultListOk() (*[]MyTraderResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *MyTradersResult) SetResultList(v []MyTraderResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *MyTradersResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/OrderCurrentListResult.md b/bitget-goland-sdk-open-api/docs/OrderCurrentListResult.md deleted file mode 100644 index 527734c1..00000000 --- a/bitget-goland-sdk-open-api/docs/OrderCurrentListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# OrderCurrentListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]OrderCurrentResult**](OrderCurrentResult.md) | | [optional] - -## Methods - -### NewOrderCurrentListResult - -`func NewOrderCurrentListResult() *OrderCurrentListResult` - -NewOrderCurrentListResult instantiates a new OrderCurrentListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderCurrentListResultWithDefaults - -`func NewOrderCurrentListResultWithDefaults() *OrderCurrentListResult` - -NewOrderCurrentListResultWithDefaults instantiates a new OrderCurrentListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinId - -`func (o *OrderCurrentListResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *OrderCurrentListResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *OrderCurrentListResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *OrderCurrentListResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *OrderCurrentListResult) GetResultList() []OrderCurrentResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *OrderCurrentListResult) GetResultListOk() (*[]OrderCurrentResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *OrderCurrentListResult) SetResultList(v []OrderCurrentResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *OrderCurrentListResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/OrderCurrentResult.md b/bitget-goland-sdk-open-api/docs/OrderCurrentResult.md deleted file mode 100644 index d5712db4..00000000 --- a/bitget-goland-sdk-open-api/docs/OrderCurrentResult.md +++ /dev/null @@ -1,368 +0,0 @@ -# OrderCurrentResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BuyDelegateCount** | Pointer to **string** | | [optional] -**BuyPrice** | Pointer to **string** | | [optional] -**BuyTime** | Pointer to **string** | | [optional] -**DealCount** | Pointer to **string** | | [optional] -**HoldCount** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] -**ProfitRate** | Pointer to **string** | | [optional] -**StopLossPrice** | Pointer to **string** | | [optional] -**StopProfitPrice** | Pointer to **string** | | [optional] -**SymbolDisplayName** | Pointer to **string** | | [optional] -**SymbolId** | Pointer to **string** | | [optional] -**TrackingNo** | Pointer to **string** | | [optional] -**TrackingType** | Pointer to **string** | | [optional] - -## Methods - -### NewOrderCurrentResult - -`func NewOrderCurrentResult() *OrderCurrentResult` - -NewOrderCurrentResult instantiates a new OrderCurrentResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderCurrentResultWithDefaults - -`func NewOrderCurrentResultWithDefaults() *OrderCurrentResult` - -NewOrderCurrentResultWithDefaults instantiates a new OrderCurrentResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBuyDelegateCount - -`func (o *OrderCurrentResult) GetBuyDelegateCount() string` - -GetBuyDelegateCount returns the BuyDelegateCount field if non-nil, zero value otherwise. - -### GetBuyDelegateCountOk - -`func (o *OrderCurrentResult) GetBuyDelegateCountOk() (*string, bool)` - -GetBuyDelegateCountOk returns a tuple with the BuyDelegateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyDelegateCount - -`func (o *OrderCurrentResult) SetBuyDelegateCount(v string)` - -SetBuyDelegateCount sets BuyDelegateCount field to given value. - -### HasBuyDelegateCount - -`func (o *OrderCurrentResult) HasBuyDelegateCount() bool` - -HasBuyDelegateCount returns a boolean if a field has been set. - -### GetBuyPrice - -`func (o *OrderCurrentResult) GetBuyPrice() string` - -GetBuyPrice returns the BuyPrice field if non-nil, zero value otherwise. - -### GetBuyPriceOk - -`func (o *OrderCurrentResult) GetBuyPriceOk() (*string, bool)` - -GetBuyPriceOk returns a tuple with the BuyPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyPrice - -`func (o *OrderCurrentResult) SetBuyPrice(v string)` - -SetBuyPrice sets BuyPrice field to given value. - -### HasBuyPrice - -`func (o *OrderCurrentResult) HasBuyPrice() bool` - -HasBuyPrice returns a boolean if a field has been set. - -### GetBuyTime - -`func (o *OrderCurrentResult) GetBuyTime() string` - -GetBuyTime returns the BuyTime field if non-nil, zero value otherwise. - -### GetBuyTimeOk - -`func (o *OrderCurrentResult) GetBuyTimeOk() (*string, bool)` - -GetBuyTimeOk returns a tuple with the BuyTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyTime - -`func (o *OrderCurrentResult) SetBuyTime(v string)` - -SetBuyTime sets BuyTime field to given value. - -### HasBuyTime - -`func (o *OrderCurrentResult) HasBuyTime() bool` - -HasBuyTime returns a boolean if a field has been set. - -### GetDealCount - -`func (o *OrderCurrentResult) GetDealCount() string` - -GetDealCount returns the DealCount field if non-nil, zero value otherwise. - -### GetDealCountOk - -`func (o *OrderCurrentResult) GetDealCountOk() (*string, bool)` - -GetDealCountOk returns a tuple with the DealCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDealCount - -`func (o *OrderCurrentResult) SetDealCount(v string)` - -SetDealCount sets DealCount field to given value. - -### HasDealCount - -`func (o *OrderCurrentResult) HasDealCount() bool` - -HasDealCount returns a boolean if a field has been set. - -### GetHoldCount - -`func (o *OrderCurrentResult) GetHoldCount() string` - -GetHoldCount returns the HoldCount field if non-nil, zero value otherwise. - -### GetHoldCountOk - -`func (o *OrderCurrentResult) GetHoldCountOk() (*string, bool)` - -GetHoldCountOk returns a tuple with the HoldCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHoldCount - -`func (o *OrderCurrentResult) SetHoldCount(v string)` - -SetHoldCount sets HoldCount field to given value. - -### HasHoldCount - -`func (o *OrderCurrentResult) HasHoldCount() bool` - -HasHoldCount returns a boolean if a field has been set. - -### GetProfit - -`func (o *OrderCurrentResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *OrderCurrentResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *OrderCurrentResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *OrderCurrentResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - -### GetProfitRate - -`func (o *OrderCurrentResult) GetProfitRate() string` - -GetProfitRate returns the ProfitRate field if non-nil, zero value otherwise. - -### GetProfitRateOk - -`func (o *OrderCurrentResult) GetProfitRateOk() (*string, bool)` - -GetProfitRateOk returns a tuple with the ProfitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfitRate - -`func (o *OrderCurrentResult) SetProfitRate(v string)` - -SetProfitRate sets ProfitRate field to given value. - -### HasProfitRate - -`func (o *OrderCurrentResult) HasProfitRate() bool` - -HasProfitRate returns a boolean if a field has been set. - -### GetStopLossPrice - -`func (o *OrderCurrentResult) GetStopLossPrice() string` - -GetStopLossPrice returns the StopLossPrice field if non-nil, zero value otherwise. - -### GetStopLossPriceOk - -`func (o *OrderCurrentResult) GetStopLossPriceOk() (*string, bool)` - -GetStopLossPriceOk returns a tuple with the StopLossPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopLossPrice - -`func (o *OrderCurrentResult) SetStopLossPrice(v string)` - -SetStopLossPrice sets StopLossPrice field to given value. - -### HasStopLossPrice - -`func (o *OrderCurrentResult) HasStopLossPrice() bool` - -HasStopLossPrice returns a boolean if a field has been set. - -### GetStopProfitPrice - -`func (o *OrderCurrentResult) GetStopProfitPrice() string` - -GetStopProfitPrice returns the StopProfitPrice field if non-nil, zero value otherwise. - -### GetStopProfitPriceOk - -`func (o *OrderCurrentResult) GetStopProfitPriceOk() (*string, bool)` - -GetStopProfitPriceOk returns a tuple with the StopProfitPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopProfitPrice - -`func (o *OrderCurrentResult) SetStopProfitPrice(v string)` - -SetStopProfitPrice sets StopProfitPrice field to given value. - -### HasStopProfitPrice - -`func (o *OrderCurrentResult) HasStopProfitPrice() bool` - -HasStopProfitPrice returns a boolean if a field has been set. - -### GetSymbolDisplayName - -`func (o *OrderCurrentResult) GetSymbolDisplayName() string` - -GetSymbolDisplayName returns the SymbolDisplayName field if non-nil, zero value otherwise. - -### GetSymbolDisplayNameOk - -`func (o *OrderCurrentResult) GetSymbolDisplayNameOk() (*string, bool)` - -GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolDisplayName - -`func (o *OrderCurrentResult) SetSymbolDisplayName(v string)` - -SetSymbolDisplayName sets SymbolDisplayName field to given value. - -### HasSymbolDisplayName - -`func (o *OrderCurrentResult) HasSymbolDisplayName() bool` - -HasSymbolDisplayName returns a boolean if a field has been set. - -### GetSymbolId - -`func (o *OrderCurrentResult) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *OrderCurrentResult) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *OrderCurrentResult) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - -### HasSymbolId - -`func (o *OrderCurrentResult) HasSymbolId() bool` - -HasSymbolId returns a boolean if a field has been set. - -### GetTrackingNo - -`func (o *OrderCurrentResult) GetTrackingNo() string` - -GetTrackingNo returns the TrackingNo field if non-nil, zero value otherwise. - -### GetTrackingNoOk - -`func (o *OrderCurrentResult) GetTrackingNoOk() (*string, bool)` - -GetTrackingNoOk returns a tuple with the TrackingNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingNo - -`func (o *OrderCurrentResult) SetTrackingNo(v string)` - -SetTrackingNo sets TrackingNo field to given value. - -### HasTrackingNo - -`func (o *OrderCurrentResult) HasTrackingNo() bool` - -HasTrackingNo returns a boolean if a field has been set. - -### GetTrackingType - -`func (o *OrderCurrentResult) GetTrackingType() string` - -GetTrackingType returns the TrackingType field if non-nil, zero value otherwise. - -### GetTrackingTypeOk - -`func (o *OrderCurrentResult) GetTrackingTypeOk() (*string, bool)` - -GetTrackingTypeOk returns a tuple with the TrackingType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingType - -`func (o *OrderCurrentResult) SetTrackingType(v string)` - -SetTrackingType sets TrackingType field to given value. - -### HasTrackingType - -`func (o *OrderCurrentResult) HasTrackingType() bool` - -HasTrackingType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/OrderHistoryListResult.md b/bitget-goland-sdk-open-api/docs/OrderHistoryListResult.md deleted file mode 100644 index e662021b..00000000 --- a/bitget-goland-sdk-open-api/docs/OrderHistoryListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# OrderHistoryListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinId** | Pointer to **string** | | [optional] -**ResultList** | Pointer to [**[]OrderHistoryResult**](OrderHistoryResult.md) | | [optional] - -## Methods - -### NewOrderHistoryListResult - -`func NewOrderHistoryListResult() *OrderHistoryListResult` - -NewOrderHistoryListResult instantiates a new OrderHistoryListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderHistoryListResultWithDefaults - -`func NewOrderHistoryListResultWithDefaults() *OrderHistoryListResult` - -NewOrderHistoryListResultWithDefaults instantiates a new OrderHistoryListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinId - -`func (o *OrderHistoryListResult) GetMinId() string` - -GetMinId returns the MinId field if non-nil, zero value otherwise. - -### GetMinIdOk - -`func (o *OrderHistoryListResult) GetMinIdOk() (*string, bool)` - -GetMinIdOk returns a tuple with the MinId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinId - -`func (o *OrderHistoryListResult) SetMinId(v string)` - -SetMinId sets MinId field to given value. - -### HasMinId - -`func (o *OrderHistoryListResult) HasMinId() bool` - -HasMinId returns a boolean if a field has been set. - -### GetResultList - -`func (o *OrderHistoryListResult) GetResultList() []OrderHistoryResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *OrderHistoryListResult) GetResultListOk() (*[]OrderHistoryResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *OrderHistoryListResult) SetResultList(v []OrderHistoryResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *OrderHistoryListResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/OrderHistoryResult.md b/bitget-goland-sdk-open-api/docs/OrderHistoryResult.md deleted file mode 100644 index 9b00fe28..00000000 --- a/bitget-goland-sdk-open-api/docs/OrderHistoryResult.md +++ /dev/null @@ -1,394 +0,0 @@ -# OrderHistoryResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BuyLeftTokenId** | Pointer to **string** | | [optional] -**BuyPrice** | Pointer to **string** | | [optional] -**BuyRightTokenId** | Pointer to **string** | | [optional] -**BuyTime** | Pointer to **string** | | [optional] -**DealCount** | Pointer to **string** | | [optional] -**NetProfit** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] -**ProfitRate** | Pointer to **string** | | [optional] -**SellPrice** | Pointer to **string** | | [optional] -**SellTime** | Pointer to **string** | | [optional] -**SymbolDisplayName** | Pointer to **string** | | [optional] -**SymbolId** | Pointer to **string** | | [optional] -**TrackingNo** | Pointer to **string** | | [optional] -**TraderUserId** | Pointer to **string** | | [optional] - -## Methods - -### NewOrderHistoryResult - -`func NewOrderHistoryResult() *OrderHistoryResult` - -NewOrderHistoryResult instantiates a new OrderHistoryResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderHistoryResultWithDefaults - -`func NewOrderHistoryResultWithDefaults() *OrderHistoryResult` - -NewOrderHistoryResultWithDefaults instantiates a new OrderHistoryResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBuyLeftTokenId - -`func (o *OrderHistoryResult) GetBuyLeftTokenId() string` - -GetBuyLeftTokenId returns the BuyLeftTokenId field if non-nil, zero value otherwise. - -### GetBuyLeftTokenIdOk - -`func (o *OrderHistoryResult) GetBuyLeftTokenIdOk() (*string, bool)` - -GetBuyLeftTokenIdOk returns a tuple with the BuyLeftTokenId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyLeftTokenId - -`func (o *OrderHistoryResult) SetBuyLeftTokenId(v string)` - -SetBuyLeftTokenId sets BuyLeftTokenId field to given value. - -### HasBuyLeftTokenId - -`func (o *OrderHistoryResult) HasBuyLeftTokenId() bool` - -HasBuyLeftTokenId returns a boolean if a field has been set. - -### GetBuyPrice - -`func (o *OrderHistoryResult) GetBuyPrice() string` - -GetBuyPrice returns the BuyPrice field if non-nil, zero value otherwise. - -### GetBuyPriceOk - -`func (o *OrderHistoryResult) GetBuyPriceOk() (*string, bool)` - -GetBuyPriceOk returns a tuple with the BuyPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyPrice - -`func (o *OrderHistoryResult) SetBuyPrice(v string)` - -SetBuyPrice sets BuyPrice field to given value. - -### HasBuyPrice - -`func (o *OrderHistoryResult) HasBuyPrice() bool` - -HasBuyPrice returns a boolean if a field has been set. - -### GetBuyRightTokenId - -`func (o *OrderHistoryResult) GetBuyRightTokenId() string` - -GetBuyRightTokenId returns the BuyRightTokenId field if non-nil, zero value otherwise. - -### GetBuyRightTokenIdOk - -`func (o *OrderHistoryResult) GetBuyRightTokenIdOk() (*string, bool)` - -GetBuyRightTokenIdOk returns a tuple with the BuyRightTokenId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyRightTokenId - -`func (o *OrderHistoryResult) SetBuyRightTokenId(v string)` - -SetBuyRightTokenId sets BuyRightTokenId field to given value. - -### HasBuyRightTokenId - -`func (o *OrderHistoryResult) HasBuyRightTokenId() bool` - -HasBuyRightTokenId returns a boolean if a field has been set. - -### GetBuyTime - -`func (o *OrderHistoryResult) GetBuyTime() string` - -GetBuyTime returns the BuyTime field if non-nil, zero value otherwise. - -### GetBuyTimeOk - -`func (o *OrderHistoryResult) GetBuyTimeOk() (*string, bool)` - -GetBuyTimeOk returns a tuple with the BuyTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBuyTime - -`func (o *OrderHistoryResult) SetBuyTime(v string)` - -SetBuyTime sets BuyTime field to given value. - -### HasBuyTime - -`func (o *OrderHistoryResult) HasBuyTime() bool` - -HasBuyTime returns a boolean if a field has been set. - -### GetDealCount - -`func (o *OrderHistoryResult) GetDealCount() string` - -GetDealCount returns the DealCount field if non-nil, zero value otherwise. - -### GetDealCountOk - -`func (o *OrderHistoryResult) GetDealCountOk() (*string, bool)` - -GetDealCountOk returns a tuple with the DealCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDealCount - -`func (o *OrderHistoryResult) SetDealCount(v string)` - -SetDealCount sets DealCount field to given value. - -### HasDealCount - -`func (o *OrderHistoryResult) HasDealCount() bool` - -HasDealCount returns a boolean if a field has been set. - -### GetNetProfit - -`func (o *OrderHistoryResult) GetNetProfit() string` - -GetNetProfit returns the NetProfit field if non-nil, zero value otherwise. - -### GetNetProfitOk - -`func (o *OrderHistoryResult) GetNetProfitOk() (*string, bool)` - -GetNetProfitOk returns a tuple with the NetProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetProfit - -`func (o *OrderHistoryResult) SetNetProfit(v string)` - -SetNetProfit sets NetProfit field to given value. - -### HasNetProfit - -`func (o *OrderHistoryResult) HasNetProfit() bool` - -HasNetProfit returns a boolean if a field has been set. - -### GetProfit - -`func (o *OrderHistoryResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *OrderHistoryResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *OrderHistoryResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *OrderHistoryResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - -### GetProfitRate - -`func (o *OrderHistoryResult) GetProfitRate() string` - -GetProfitRate returns the ProfitRate field if non-nil, zero value otherwise. - -### GetProfitRateOk - -`func (o *OrderHistoryResult) GetProfitRateOk() (*string, bool)` - -GetProfitRateOk returns a tuple with the ProfitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfitRate - -`func (o *OrderHistoryResult) SetProfitRate(v string)` - -SetProfitRate sets ProfitRate field to given value. - -### HasProfitRate - -`func (o *OrderHistoryResult) HasProfitRate() bool` - -HasProfitRate returns a boolean if a field has been set. - -### GetSellPrice - -`func (o *OrderHistoryResult) GetSellPrice() string` - -GetSellPrice returns the SellPrice field if non-nil, zero value otherwise. - -### GetSellPriceOk - -`func (o *OrderHistoryResult) GetSellPriceOk() (*string, bool)` - -GetSellPriceOk returns a tuple with the SellPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSellPrice - -`func (o *OrderHistoryResult) SetSellPrice(v string)` - -SetSellPrice sets SellPrice field to given value. - -### HasSellPrice - -`func (o *OrderHistoryResult) HasSellPrice() bool` - -HasSellPrice returns a boolean if a field has been set. - -### GetSellTime - -`func (o *OrderHistoryResult) GetSellTime() string` - -GetSellTime returns the SellTime field if non-nil, zero value otherwise. - -### GetSellTimeOk - -`func (o *OrderHistoryResult) GetSellTimeOk() (*string, bool)` - -GetSellTimeOk returns a tuple with the SellTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSellTime - -`func (o *OrderHistoryResult) SetSellTime(v string)` - -SetSellTime sets SellTime field to given value. - -### HasSellTime - -`func (o *OrderHistoryResult) HasSellTime() bool` - -HasSellTime returns a boolean if a field has been set. - -### GetSymbolDisplayName - -`func (o *OrderHistoryResult) GetSymbolDisplayName() string` - -GetSymbolDisplayName returns the SymbolDisplayName field if non-nil, zero value otherwise. - -### GetSymbolDisplayNameOk - -`func (o *OrderHistoryResult) GetSymbolDisplayNameOk() (*string, bool)` - -GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolDisplayName - -`func (o *OrderHistoryResult) SetSymbolDisplayName(v string)` - -SetSymbolDisplayName sets SymbolDisplayName field to given value. - -### HasSymbolDisplayName - -`func (o *OrderHistoryResult) HasSymbolDisplayName() bool` - -HasSymbolDisplayName returns a boolean if a field has been set. - -### GetSymbolId - -`func (o *OrderHistoryResult) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *OrderHistoryResult) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *OrderHistoryResult) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - -### HasSymbolId - -`func (o *OrderHistoryResult) HasSymbolId() bool` - -HasSymbolId returns a boolean if a field has been set. - -### GetTrackingNo - -`func (o *OrderHistoryResult) GetTrackingNo() string` - -GetTrackingNo returns the TrackingNo field if non-nil, zero value otherwise. - -### GetTrackingNoOk - -`func (o *OrderHistoryResult) GetTrackingNoOk() (*string, bool)` - -GetTrackingNoOk returns a tuple with the TrackingNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingNo - -`func (o *OrderHistoryResult) SetTrackingNo(v string)` - -SetTrackingNo sets TrackingNo field to given value. - -### HasTrackingNo - -`func (o *OrderHistoryResult) HasTrackingNo() bool` - -HasTrackingNo returns a boolean if a field has been set. - -### GetTraderUserId - -`func (o *OrderHistoryResult) GetTraderUserId() string` - -GetTraderUserId returns the TraderUserId field if non-nil, zero value otherwise. - -### GetTraderUserIdOk - -`func (o *OrderHistoryResult) GetTraderUserIdOk() (*string, bool)` - -GetTraderUserIdOk returns a tuple with the TraderUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderUserId - -`func (o *OrderHistoryResult) SetTraderUserId(v string)` - -SetTraderUserId sets TraderUserId field to given value. - -### HasTraderUserId - -`func (o *OrderHistoryResult) HasTraderUserId() bool` - -HasTraderUserId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/OrderPaymentDetailInfo.md b/bitget-goland-sdk-open-api/docs/OrderPaymentDetailInfo.md deleted file mode 100644 index 876aea7f..00000000 --- a/bitget-goland-sdk-open-api/docs/OrderPaymentDetailInfo.md +++ /dev/null @@ -1,134 +0,0 @@ -# OrderPaymentDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | | [optional] -**Type** | Pointer to **string** | | [optional] -**Value** | Pointer to **string** | | [optional] - -## Methods - -### NewOrderPaymentDetailInfo - -`func NewOrderPaymentDetailInfo() *OrderPaymentDetailInfo` - -NewOrderPaymentDetailInfo instantiates a new OrderPaymentDetailInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderPaymentDetailInfoWithDefaults - -`func NewOrderPaymentDetailInfoWithDefaults() *OrderPaymentDetailInfo` - -NewOrderPaymentDetailInfoWithDefaults instantiates a new OrderPaymentDetailInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *OrderPaymentDetailInfo) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *OrderPaymentDetailInfo) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *OrderPaymentDetailInfo) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *OrderPaymentDetailInfo) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetRequired - -`func (o *OrderPaymentDetailInfo) GetRequired() bool` - -GetRequired returns the Required field if non-nil, zero value otherwise. - -### GetRequiredOk - -`func (o *OrderPaymentDetailInfo) GetRequiredOk() (*bool, bool)` - -GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequired - -`func (o *OrderPaymentDetailInfo) SetRequired(v bool)` - -SetRequired sets Required field to given value. - -### HasRequired - -`func (o *OrderPaymentDetailInfo) HasRequired() bool` - -HasRequired returns a boolean if a field has been set. - -### GetType - -`func (o *OrderPaymentDetailInfo) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *OrderPaymentDetailInfo) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *OrderPaymentDetailInfo) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *OrderPaymentDetailInfo) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetValue - -`func (o *OrderPaymentDetailInfo) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *OrderPaymentDetailInfo) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *OrderPaymentDetailInfo) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *OrderPaymentDetailInfo) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/P2pMerchantApi.md b/bitget-goland-sdk-open-api/docs/P2pMerchantApi.md deleted file mode 100644 index 1fb955c0..00000000 --- a/bitget-goland-sdk-open-api/docs/P2pMerchantApi.md +++ /dev/null @@ -1,317 +0,0 @@ -# \P2pMerchantApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**MerchantAdvList**](P2pMerchantApi.md#MerchantAdvList) | **Get** /api/p2p/v1/merchant/advList | advList -[**MerchantInfo**](P2pMerchantApi.md#MerchantInfo) | **Get** /api/p2p/v1/merchant/merchantInfo | merchantInfo -[**MerchantList**](P2pMerchantApi.md#MerchantList) | **Get** /api/p2p/v1/merchant/merchantList | merchantList -[**MerchantOrderList**](P2pMerchantApi.md#MerchantOrderList) | **Get** /api/p2p/v1/merchant/orderList | orderList - - - -## MerchantAdvList - -> ApiResponseResultOfMerchantAdvResult MerchantAdvList(ctx).StartTime(startTime).EndTime(endTime).Status(status).Type_(type_).AdvNo(advNo).Coin(coin).LanguageType(languageType).Fiat(fiat).LastMinId(lastMinId).PageSize(pageSize).OrderBy(orderBy).Execute() - -advList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - status := "upper" // string | status (optional) - type_ := "sell" // string | type (optional) - advNo := "1678193338000" // string | advNo (optional) - coin := "USDT" // string | coin (optional) - languageType := "en-US" // string | languageType (optional) - fiat := "USD" // string | fiat (optional) - lastMinId := "43534" // string | languageType (optional) - pageSize := "10" // string | pageSize (optional) - orderBy := "createTime" // string | orderBy (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.P2pMerchantApi.MerchantAdvList(context.Background()).StartTime(startTime).EndTime(endTime).Status(status).Type_(type_).AdvNo(advNo).Coin(coin).LanguageType(languageType).Fiat(fiat).LastMinId(lastMinId).PageSize(pageSize).OrderBy(orderBy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `P2pMerchantApi.MerchantAdvList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MerchantAdvList`: ApiResponseResultOfMerchantAdvResult - fmt.Fprintf(os.Stdout, "Response from `P2pMerchantApi.MerchantAdvList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMerchantAdvListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **status** | **string** | status | - **type_** | **string** | type | - **advNo** | **string** | advNo | - **coin** | **string** | coin | - **languageType** | **string** | languageType | - **fiat** | **string** | fiat | - **lastMinId** | **string** | languageType | - **pageSize** | **string** | pageSize | - **orderBy** | **string** | orderBy | - -### Return type - -[**ApiResponseResultOfMerchantAdvResult**](ApiResponseResultOfMerchantAdvResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MerchantInfo - -> ApiResponseResultOfMerchantPersonInfo MerchantInfo(ctx).Execute() - -merchantInfo - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.P2pMerchantApi.MerchantInfo(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `P2pMerchantApi.MerchantInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MerchantInfo`: ApiResponseResultOfMerchantPersonInfo - fmt.Fprintf(os.Stdout, "Response from `P2pMerchantApi.MerchantInfo`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiMerchantInfoRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfMerchantPersonInfo**](ApiResponseResultOfMerchantPersonInfo.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MerchantList - -> ApiResponseResultOfMerchantInfoResult MerchantList(ctx).Online(online).MerchantId(merchantId).LastMinId(lastMinId).PageSize(pageSize).Execute() - -merchantList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - online := "yes" // string | online (optional) - merchantId := "4534534534" // string | merchantId (optional) - lastMinId := "1678193338000" // string | lastMinId (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.P2pMerchantApi.MerchantList(context.Background()).Online(online).MerchantId(merchantId).LastMinId(lastMinId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `P2pMerchantApi.MerchantList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MerchantList`: ApiResponseResultOfMerchantInfoResult - fmt.Fprintf(os.Stdout, "Response from `P2pMerchantApi.MerchantList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMerchantListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **online** | **string** | online | - **merchantId** | **string** | merchantId | - **lastMinId** | **string** | lastMinId | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMerchantInfoResult**](ApiResponseResultOfMerchantInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## MerchantOrderList - -> ApiResponseResultOfMerchantOrderResult MerchantOrderList(ctx).StartTime(startTime).EndTime(endTime).Status(status).Type_(type_).AdvNo(advNo).OrderNo(orderNo).Coin(coin).LanguageType(languageType).Fiat(fiat).LastMinId(lastMinId).PageSize(pageSize).Execute() - -orderList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - startTime := "1678193338000" // string | startTime - endTime := "1678193338000" // string | endTime (optional) - status := "wait_pay" // string | status (optional) - type_ := "sell" // string | type (optional) - advNo := "1678193338000" // string | advNo (optional) - orderNo := "23842478324723423" // string | orderNo (optional) - coin := "USDT" // string | coin (optional) - languageType := "en-US" // string | languageType (optional) - fiat := "USD" // string | fiat (optional) - lastMinId := "43534" // string | languageType (optional) - pageSize := "10" // string | pageSize (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.P2pMerchantApi.MerchantOrderList(context.Background()).StartTime(startTime).EndTime(endTime).Status(status).Type_(type_).AdvNo(advNo).OrderNo(orderNo).Coin(coin).LanguageType(languageType).Fiat(fiat).LastMinId(lastMinId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `P2pMerchantApi.MerchantOrderList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MerchantOrderList`: ApiResponseResultOfMerchantOrderResult - fmt.Fprintf(os.Stdout, "Response from `P2pMerchantApi.MerchantOrderList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiMerchantOrderListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **startTime** | **string** | startTime | - **endTime** | **string** | endTime | - **status** | **string** | status | - **type_** | **string** | type | - **advNo** | **string** | advNo | - **orderNo** | **string** | orderNo | - **coin** | **string** | coin | - **languageType** | **string** | languageType | - **fiat** | **string** | fiat | - **lastMinId** | **string** | languageType | - **pageSize** | **string** | pageSize | - -### Return type - -[**ApiResponseResultOfMerchantOrderResult**](ApiResponseResultOfMerchantOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/ProductCodeRequest.md b/bitget-goland-sdk-open-api/docs/ProductCodeRequest.md deleted file mode 100644 index 4e16fee2..00000000 --- a/bitget-goland-sdk-open-api/docs/ProductCodeRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# ProductCodeRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SymbolIds** | **[]string** | symbolIds | - -## Methods - -### NewProductCodeRequest - -`func NewProductCodeRequest(symbolIds []string, ) *ProductCodeRequest` - -NewProductCodeRequest instantiates a new ProductCodeRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewProductCodeRequestWithDefaults - -`func NewProductCodeRequestWithDefaults() *ProductCodeRequest` - -NewProductCodeRequestWithDefaults instantiates a new ProductCodeRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSymbolIds - -`func (o *ProductCodeRequest) GetSymbolIds() []string` - -GetSymbolIds returns the SymbolIds field if non-nil, zero value otherwise. - -### GetSymbolIdsOk - -`func (o *ProductCodeRequest) GetSymbolIdsOk() (*[]string, bool)` - -GetSymbolIdsOk returns a tuple with the SymbolIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolIds - -`func (o *ProductCodeRequest) SetSymbolIds(v []string)` - -SetSymbolIds sets SymbolIds field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/RemoveTraderRequest.md b/bitget-goland-sdk-open-api/docs/RemoveTraderRequest.md deleted file mode 100644 index 2c22cd95..00000000 --- a/bitget-goland-sdk-open-api/docs/RemoveTraderRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# RemoveTraderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TraderUserId** | **string** | traderUserId | - -## Methods - -### NewRemoveTraderRequest - -`func NewRemoveTraderRequest(traderUserId string, ) *RemoveTraderRequest` - -NewRemoveTraderRequest instantiates a new RemoveTraderRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRemoveTraderRequestWithDefaults - -`func NewRemoveTraderRequestWithDefaults() *RemoveTraderRequest` - -NewRemoveTraderRequestWithDefaults instantiates a new RemoveTraderRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTraderUserId - -`func (o *RemoveTraderRequest) GetTraderUserId() string` - -GetTraderUserId returns the TraderUserId field if non-nil, zero value otherwise. - -### GetTraderUserIdOk - -`func (o *RemoveTraderRequest) GetTraderUserIdOk() (*string, bool)` - -GetTraderUserIdOk returns a tuple with the TraderUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderUserId - -`func (o *RemoveTraderRequest) SetTraderUserId(v string)` - -SetTraderUserId sets TraderUserId field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/SpotInfoResult.md b/bitget-goland-sdk-open-api/docs/SpotInfoResult.md deleted file mode 100644 index 2c33383e..00000000 --- a/bitget-goland-sdk-open-api/docs/SpotInfoResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# SpotInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxCount** | Pointer to **string** | | [optional] -**SurplusCount** | Pointer to **string** | | [optional] -**SymbolId** | Pointer to **string** | | [optional] -**SymbolName** | Pointer to **string** | | [optional] - -## Methods - -### NewSpotInfoResult - -`func NewSpotInfoResult() *SpotInfoResult` - -NewSpotInfoResult instantiates a new SpotInfoResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSpotInfoResultWithDefaults - -`func NewSpotInfoResultWithDefaults() *SpotInfoResult` - -NewSpotInfoResultWithDefaults instantiates a new SpotInfoResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxCount - -`func (o *SpotInfoResult) GetMaxCount() string` - -GetMaxCount returns the MaxCount field if non-nil, zero value otherwise. - -### GetMaxCountOk - -`func (o *SpotInfoResult) GetMaxCountOk() (*string, bool)` - -GetMaxCountOk returns a tuple with the MaxCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCount - -`func (o *SpotInfoResult) SetMaxCount(v string)` - -SetMaxCount sets MaxCount field to given value. - -### HasMaxCount - -`func (o *SpotInfoResult) HasMaxCount() bool` - -HasMaxCount returns a boolean if a field has been set. - -### GetSurplusCount - -`func (o *SpotInfoResult) GetSurplusCount() string` - -GetSurplusCount returns the SurplusCount field if non-nil, zero value otherwise. - -### GetSurplusCountOk - -`func (o *SpotInfoResult) GetSurplusCountOk() (*string, bool)` - -GetSurplusCountOk returns a tuple with the SurplusCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSurplusCount - -`func (o *SpotInfoResult) SetSurplusCount(v string)` - -SetSurplusCount sets SurplusCount field to given value. - -### HasSurplusCount - -`func (o *SpotInfoResult) HasSurplusCount() bool` - -HasSurplusCount returns a boolean if a field has been set. - -### GetSymbolId - -`func (o *SpotInfoResult) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *SpotInfoResult) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *SpotInfoResult) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - -### HasSymbolId - -`func (o *SpotInfoResult) HasSymbolId() bool` - -HasSymbolId returns a boolean if a field has been set. - -### GetSymbolName - -`func (o *SpotInfoResult) GetSymbolName() string` - -GetSymbolName returns the SymbolName field if non-nil, zero value otherwise. - -### GetSymbolNameOk - -`func (o *SpotInfoResult) GetSymbolNameOk() (*string, bool)` - -GetSymbolNameOk returns a tuple with the SymbolName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolName - -`func (o *SpotInfoResult) SetSymbolName(v string)` - -SetSymbolName sets SymbolName field to given value. - -### HasSymbolName - -`func (o *SpotInfoResult) HasSymbolName() bool` - -HasSymbolName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/SpotTraceOrderApi.md b/bitget-goland-sdk-open-api/docs/SpotTraceOrderApi.md deleted file mode 100644 index 0233f9c5..00000000 --- a/bitget-goland-sdk-open-api/docs/SpotTraceOrderApi.md +++ /dev/null @@ -1,869 +0,0 @@ -# \SpotTraceOrderApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**SpotTraceCloseTrackingOrder**](SpotTraceOrderApi.md#SpotTraceCloseTrackingOrder) | **Post** /api/spot/v1/trace/order/closeTrackingOrder | closeTrackingOrder -[**SpotTraceEndOrder**](SpotTraceOrderApi.md#SpotTraceEndOrder) | **Post** /api/spot/v1/trace/order/endOrder | endOrder -[**SpotTraceGetTraceSettings**](SpotTraceOrderApi.md#SpotTraceGetTraceSettings) | **Post** /api/spot/v1/trace/order/getTraceSettings | getTraceSettings -[**SpotTraceGetTraderSettings**](SpotTraceOrderApi.md#SpotTraceGetTraderSettings) | **Post** /api/spot/v1/trace/order/getTraderSettings | getTraderSettings -[**SpotTraceMyTracers**](SpotTraceOrderApi.md#SpotTraceMyTracers) | **Post** /api/spot/v1/trace/order/myTracers | myTracers -[**SpotTraceMyTraders**](SpotTraceOrderApi.md#SpotTraceMyTraders) | **Post** /api/spot/v1/trace/order/myTraders | myTraders -[**SpotTraceOrderCurrentList**](SpotTraceOrderApi.md#SpotTraceOrderCurrentList) | **Post** /api/spot/v1/trace/order/orderCurrentList | orderCurrentList -[**SpotTraceOrderHistoryList**](SpotTraceOrderApi.md#SpotTraceOrderHistoryList) | **Post** /api/spot/v1/trace/order/orderHistoryList | orderHistoryList -[**SpotTraceRemoveTrader**](SpotTraceOrderApi.md#SpotTraceRemoveTrader) | **Post** /api/spot/v1/trace/order/removeTrader | removeTrader -[**SpotTraceSetProductCode**](SpotTraceOrderApi.md#SpotTraceSetProductCode) | **Post** /api/spot/v1/trace/order/setProductCode | setProductCode -[**SpotTraceSetTraceConfig**](SpotTraceOrderApi.md#SpotTraceSetTraceConfig) | **Post** /api/spot/v1/trace/order/setTraceConfig | setTraceConfig -[**SpotTraceSpotInfoList**](SpotTraceOrderApi.md#SpotTraceSpotInfoList) | **Post** /api/spot/v1/trace/order/spotInfoList | spotInfoList -[**SpotTraceUpdateTpsl**](SpotTraceOrderApi.md#SpotTraceUpdateTpsl) | **Post** /api/spot/v1/trace/order/updateTpsl | updateTpsl - - - -## SpotTraceCloseTrackingOrder - -> ApiResponseResultOfboolean SpotTraceCloseTrackingOrder(ctx).CloseTrackingOrderRequest(closeTrackingOrderRequest).Execute() - -closeTrackingOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - closeTrackingOrderRequest := *openapiclient.NewCloseTrackingOrderRequest("BTCUSDT_SPBL", []string{"TrackingOrderNos_example"}) // CloseTrackingOrderRequest | closeTrackingOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceCloseTrackingOrder(context.Background()).CloseTrackingOrderRequest(closeTrackingOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceCloseTrackingOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceCloseTrackingOrder`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceCloseTrackingOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceCloseTrackingOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **closeTrackingOrderRequest** | [**CloseTrackingOrderRequest**](CloseTrackingOrderRequest.md) | closeTrackingOrderRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceEndOrder - -> ApiResponseResultOfboolean SpotTraceEndOrder(ctx).EndOrderRequest(endOrderRequest).Execute() - -endOrder - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - endOrderRequest := *openapiclient.NewEndOrderRequest([]string{"TrackingOrderNos_example"}) // EndOrderRequest | endOrderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceEndOrder(context.Background()).EndOrderRequest(endOrderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceEndOrder``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceEndOrder`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceEndOrder`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceEndOrderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **endOrderRequest** | [**EndOrderRequest**](EndOrderRequest.md) | endOrderRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceGetTraceSettings - -> ApiResponseResultOfTraceSettingResult SpotTraceGetTraceSettings(ctx).TraceSettingsRequest(traceSettingsRequest).Execute() - -getTraceSettings - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - traceSettingsRequest := *openapiclient.NewTraceSettingsRequest("TraderUserId_example") // TraceSettingsRequest | traceSettingsRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceGetTraceSettings(context.Background()).TraceSettingsRequest(traceSettingsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceGetTraceSettings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceGetTraceSettings`: ApiResponseResultOfTraceSettingResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceGetTraceSettings`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceGetTraceSettingsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **traceSettingsRequest** | [**TraceSettingsRequest**](TraceSettingsRequest.md) | traceSettingsRequest | - -### Return type - -[**ApiResponseResultOfTraceSettingResult**](ApiResponseResultOfTraceSettingResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceGetTraderSettings - -> ApiResponseResultOfTraderSettingResult SpotTraceGetTraderSettings(ctx).Execute() - -getTraderSettings - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceGetTraderSettings(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceGetTraderSettings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceGetTraderSettings`: ApiResponseResultOfTraderSettingResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceGetTraderSettings`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceGetTraderSettingsRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfTraderSettingResult**](ApiResponseResultOfTraderSettingResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceMyTracers - -> ApiResponseResultOfMyTracersResult SpotTraceMyTracers(ctx).MyTracersRequest(myTracersRequest).Execute() - -myTracers - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - myTracersRequest := *openapiclient.NewMyTracersRequest() // MyTracersRequest | myTracersRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceMyTracers(context.Background()).MyTracersRequest(myTracersRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceMyTracers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceMyTracers`: ApiResponseResultOfMyTracersResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceMyTracers`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceMyTracersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **myTracersRequest** | [**MyTracersRequest**](MyTracersRequest.md) | myTracersRequest | - -### Return type - -[**ApiResponseResultOfMyTracersResult**](ApiResponseResultOfMyTracersResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceMyTraders - -> ApiResponseResultOfMyTradersResult SpotTraceMyTraders(ctx).MyTradersRequest(myTradersRequest).Execute() - -myTraders - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - myTradersRequest := *openapiclient.NewMyTradersRequest() // MyTradersRequest | myTradersRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceMyTraders(context.Background()).MyTradersRequest(myTradersRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceMyTraders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceMyTraders`: ApiResponseResultOfMyTradersResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceMyTraders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceMyTradersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **myTradersRequest** | [**MyTradersRequest**](MyTradersRequest.md) | myTradersRequest | - -### Return type - -[**ApiResponseResultOfMyTradersResult**](ApiResponseResultOfMyTradersResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceOrderCurrentList - -> ApiResponseResultOfOrderCurrentListResult SpotTraceOrderCurrentList(ctx).CurrentOrderListRequest(currentOrderListRequest).Execute() - -orderCurrentList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - currentOrderListRequest := *openapiclient.NewCurrentOrderListRequest() // CurrentOrderListRequest | currentOrderListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceOrderCurrentList(context.Background()).CurrentOrderListRequest(currentOrderListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceOrderCurrentList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceOrderCurrentList`: ApiResponseResultOfOrderCurrentListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceOrderCurrentList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceOrderCurrentListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **currentOrderListRequest** | [**CurrentOrderListRequest**](CurrentOrderListRequest.md) | currentOrderListRequest | - -### Return type - -[**ApiResponseResultOfOrderCurrentListResult**](ApiResponseResultOfOrderCurrentListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceOrderHistoryList - -> ApiResponseResultOfOrderHistoryListResult SpotTraceOrderHistoryList(ctx).HistoryOrderListRequest(historyOrderListRequest).Execute() - -orderHistoryList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - historyOrderListRequest := *openapiclient.NewHistoryOrderListRequest() // HistoryOrderListRequest | historyOrderListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceOrderHistoryList(context.Background()).HistoryOrderListRequest(historyOrderListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceOrderHistoryList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceOrderHistoryList`: ApiResponseResultOfOrderHistoryListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceOrderHistoryList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceOrderHistoryListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **historyOrderListRequest** | [**HistoryOrderListRequest**](HistoryOrderListRequest.md) | historyOrderListRequest | - -### Return type - -[**ApiResponseResultOfOrderHistoryListResult**](ApiResponseResultOfOrderHistoryListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceRemoveTrader - -> ApiResponseResultOfboolean SpotTraceRemoveTrader(ctx).RemoveTraderRequest(removeTraderRequest).Execute() - -removeTrader - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - removeTraderRequest := *openapiclient.NewRemoveTraderRequest("TraderUserId_example") // RemoveTraderRequest | removeTraderRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceRemoveTrader(context.Background()).RemoveTraderRequest(removeTraderRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceRemoveTrader``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceRemoveTrader`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceRemoveTrader`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceRemoveTraderRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **removeTraderRequest** | [**RemoveTraderRequest**](RemoveTraderRequest.md) | removeTraderRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceSetProductCode - -> ApiResponseResultOfboolean SpotTraceSetProductCode(ctx).ProductCodeRequest(productCodeRequest).Execute() - -setProductCode - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - productCodeRequest := *openapiclient.NewProductCodeRequest([]string{"SymbolIds_example"}) // ProductCodeRequest | productCodeRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceSetProductCode(context.Background()).ProductCodeRequest(productCodeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceSetProductCode``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceSetProductCode`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceSetProductCode`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceSetProductCodeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **productCodeRequest** | [**ProductCodeRequest**](ProductCodeRequest.md) | productCodeRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceSetTraceConfig - -> ApiResponseResultOfboolean SpotTraceSetTraceConfig(ctx).TraceConfigRequest(traceConfigRequest).Execute() - -setTraceConfig - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - traceConfigRequest := *openapiclient.NewTraceConfigRequest("0,1", "TraderUserId_example") // TraceConfigRequest | traceConfigRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceSetTraceConfig(context.Background()).TraceConfigRequest(traceConfigRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceSetTraceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceSetTraceConfig`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceSetTraceConfig`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceSetTraceConfigRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **traceConfigRequest** | [**TraceConfigRequest**](TraceConfigRequest.md) | traceConfigRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceSpotInfoList - -> ApiResponseResultOfListOfSpotInfoResult SpotTraceSpotInfoList(ctx).Execute() - -spotInfoList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceSpotInfoList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceSpotInfoList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceSpotInfoList`: ApiResponseResultOfListOfSpotInfoResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceSpotInfoList`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceSpotInfoListRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfListOfSpotInfoResult**](ApiResponseResultOfListOfSpotInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceUpdateTpsl - -> ApiResponseResultOfboolean SpotTraceUpdateTpsl(ctx).UpdateTpslRequest(updateTpslRequest).Execute() - -updateTpsl - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - updateTpslRequest := *openapiclient.NewUpdateTpslRequest("1", "1", "1032884851114008576") // UpdateTpslRequest | updateTpslRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceOrderApi.SpotTraceUpdateTpsl(context.Background()).UpdateTpslRequest(updateTpslRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceOrderApi.SpotTraceUpdateTpsl``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceUpdateTpsl`: ApiResponseResultOfboolean - fmt.Fprintf(os.Stdout, "Response from `SpotTraceOrderApi.SpotTraceUpdateTpsl`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceUpdateTpslRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **updateTpslRequest** | [**UpdateTpslRequest**](UpdateTpslRequest.md) | updateTpslRequest | - -### Return type - -[**ApiResponseResultOfboolean**](ApiResponseResultOfboolean.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/SpotTraceProfitApi.md b/bitget-goland-sdk-open-api/docs/SpotTraceProfitApi.md deleted file mode 100644 index b6006bbe..00000000 --- a/bitget-goland-sdk-open-api/docs/SpotTraceProfitApi.md +++ /dev/null @@ -1,338 +0,0 @@ -# \SpotTraceProfitApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**SpotTraceProfitHisDetailList**](SpotTraceProfitApi.md#SpotTraceProfitHisDetailList) | **Post** /api/spot/v1/trace/profit/profitHisDetailList | profitHisDetailList -[**SpotTraceProfitHisList**](SpotTraceProfitApi.md#SpotTraceProfitHisList) | **Post** /api/spot/v1/trace/profit/profitHisList | profitHisList -[**SpotTraceTotalProfitInfo**](SpotTraceProfitApi.md#SpotTraceTotalProfitInfo) | **Post** /api/spot/v1/trace/profit/totalProfitInfo | totalProfitInfo -[**SpotTraceTotalProfitList**](SpotTraceProfitApi.md#SpotTraceTotalProfitList) | **Post** /api/spot/v1/trace/profit/totalProfitList | totalProfitList -[**SpotTraceWaitProfitDetailList**](SpotTraceProfitApi.md#SpotTraceWaitProfitDetailList) | **Post** /api/spot/v1/trace/profit/waitProfitDetailList | waitProfitDetailList - - - -## SpotTraceProfitHisDetailList - -> ApiResponseResultOfTraderProfitHisDetailListResult SpotTraceProfitHisDetailList(ctx).TotalProfitHisDetailListRequest(totalProfitHisDetailListRequest).Execute() - -profitHisDetailList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - totalProfitHisDetailListRequest := *openapiclient.NewTotalProfitHisDetailListRequest("USDT", "1681985100000") // TotalProfitHisDetailListRequest | totalProfitHisDetailListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceProfitApi.SpotTraceProfitHisDetailList(context.Background()).TotalProfitHisDetailListRequest(totalProfitHisDetailListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceProfitApi.SpotTraceProfitHisDetailList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceProfitHisDetailList`: ApiResponseResultOfTraderProfitHisDetailListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceProfitApi.SpotTraceProfitHisDetailList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceProfitHisDetailListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **totalProfitHisDetailListRequest** | [**TotalProfitHisDetailListRequest**](TotalProfitHisDetailListRequest.md) | totalProfitHisDetailListRequest | - -### Return type - -[**ApiResponseResultOfTraderProfitHisDetailListResult**](ApiResponseResultOfTraderProfitHisDetailListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceProfitHisList - -> ApiResponseResultOfTraderProfitHisListResult SpotTraceProfitHisList(ctx).TotalProfitHisListRequest(totalProfitHisListRequest).Execute() - -profitHisList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - totalProfitHisListRequest := *openapiclient.NewTotalProfitHisListRequest() // TotalProfitHisListRequest | totalProfitHisListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceProfitApi.SpotTraceProfitHisList(context.Background()).TotalProfitHisListRequest(totalProfitHisListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceProfitApi.SpotTraceProfitHisList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceProfitHisList`: ApiResponseResultOfTraderProfitHisListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceProfitApi.SpotTraceProfitHisList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceProfitHisListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **totalProfitHisListRequest** | [**TotalProfitHisListRequest**](TotalProfitHisListRequest.md) | totalProfitHisListRequest | - -### Return type - -[**ApiResponseResultOfTraderProfitHisListResult**](ApiResponseResultOfTraderProfitHisListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceTotalProfitInfo - -> ApiResponseResultOfTraderTotalProfitResult SpotTraceTotalProfitInfo(ctx).Execute() - -totalProfitInfo - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceProfitApi.SpotTraceTotalProfitInfo(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceProfitApi.SpotTraceTotalProfitInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceTotalProfitInfo`: ApiResponseResultOfTraderTotalProfitResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceProfitApi.SpotTraceTotalProfitInfo`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceTotalProfitInfoRequest struct via the builder pattern - - -### Return type - -[**ApiResponseResultOfTraderTotalProfitResult**](ApiResponseResultOfTraderTotalProfitResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceTotalProfitList - -> ApiResponseResultOfListOfTraderTotalProfitListResult SpotTraceTotalProfitList(ctx).TotalProfitListRequest(totalProfitListRequest).Execute() - -totalProfitList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - totalProfitListRequest := *openapiclient.NewTotalProfitListRequest() // TotalProfitListRequest | totalProfitListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceProfitApi.SpotTraceTotalProfitList(context.Background()).TotalProfitListRequest(totalProfitListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceProfitApi.SpotTraceTotalProfitList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceTotalProfitList`: ApiResponseResultOfListOfTraderTotalProfitListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceProfitApi.SpotTraceTotalProfitList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceTotalProfitListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **totalProfitListRequest** | [**TotalProfitListRequest**](TotalProfitListRequest.md) | totalProfitListRequest | - -### Return type - -[**ApiResponseResultOfListOfTraderTotalProfitListResult**](ApiResponseResultOfListOfTraderTotalProfitListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## SpotTraceWaitProfitDetailList - -> ApiResponseResultOfTraderWaitProfitDetailListResult SpotTraceWaitProfitDetailList(ctx).WaitProfitDetailListRequest(waitProfitDetailListRequest).Execute() - -waitProfitDetailList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - waitProfitDetailListRequest := *openapiclient.NewWaitProfitDetailListRequest() // WaitProfitDetailListRequest | waitProfitDetailListRequest - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SpotTraceProfitApi.SpotTraceWaitProfitDetailList(context.Background()).WaitProfitDetailListRequest(waitProfitDetailListRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SpotTraceProfitApi.SpotTraceWaitProfitDetailList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SpotTraceWaitProfitDetailList`: ApiResponseResultOfTraderWaitProfitDetailListResult - fmt.Fprintf(os.Stdout, "Response from `SpotTraceProfitApi.SpotTraceWaitProfitDetailList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiSpotTraceWaitProfitDetailListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **waitProfitDetailListRequest** | [**WaitProfitDetailListRequest**](WaitProfitDetailListRequest.md) | waitProfitDetailListRequest | - -### Return type - -[**ApiResponseResultOfTraderWaitProfitDetailListResult**](ApiResponseResultOfTraderWaitProfitDetailListResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/bitget-goland-sdk-open-api/docs/TotalProfitHisDetailListRequest.md b/bitget-goland-sdk-open-api/docs/TotalProfitHisDetailListRequest.md deleted file mode 100644 index 712b8205..00000000 --- a/bitget-goland-sdk-open-api/docs/TotalProfitHisDetailListRequest.md +++ /dev/null @@ -1,124 +0,0 @@ -# TotalProfitHisDetailListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CoinName** | **string** | coinName | -**Date** | **string** | date | -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewTotalProfitHisDetailListRequest - -`func NewTotalProfitHisDetailListRequest(coinName string, date string, ) *TotalProfitHisDetailListRequest` - -NewTotalProfitHisDetailListRequest instantiates a new TotalProfitHisDetailListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTotalProfitHisDetailListRequestWithDefaults - -`func NewTotalProfitHisDetailListRequestWithDefaults() *TotalProfitHisDetailListRequest` - -NewTotalProfitHisDetailListRequestWithDefaults instantiates a new TotalProfitHisDetailListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoinName - -`func (o *TotalProfitHisDetailListRequest) GetCoinName() string` - -GetCoinName returns the CoinName field if non-nil, zero value otherwise. - -### GetCoinNameOk - -`func (o *TotalProfitHisDetailListRequest) GetCoinNameOk() (*string, bool)` - -GetCoinNameOk returns a tuple with the CoinName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoinName - -`func (o *TotalProfitHisDetailListRequest) SetCoinName(v string)` - -SetCoinName sets CoinName field to given value. - - -### GetDate - -`func (o *TotalProfitHisDetailListRequest) GetDate() string` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *TotalProfitHisDetailListRequest) GetDateOk() (*string, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *TotalProfitHisDetailListRequest) SetDate(v string)` - -SetDate sets Date field to given value. - - -### GetPageNo - -`func (o *TotalProfitHisDetailListRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *TotalProfitHisDetailListRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *TotalProfitHisDetailListRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *TotalProfitHisDetailListRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *TotalProfitHisDetailListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *TotalProfitHisDetailListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *TotalProfitHisDetailListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *TotalProfitHisDetailListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TotalProfitHisListRequest.md b/bitget-goland-sdk-open-api/docs/TotalProfitHisListRequest.md deleted file mode 100644 index 2366e5a8..00000000 --- a/bitget-goland-sdk-open-api/docs/TotalProfitHisListRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# TotalProfitHisListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewTotalProfitHisListRequest - -`func NewTotalProfitHisListRequest() *TotalProfitHisListRequest` - -NewTotalProfitHisListRequest instantiates a new TotalProfitHisListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTotalProfitHisListRequestWithDefaults - -`func NewTotalProfitHisListRequestWithDefaults() *TotalProfitHisListRequest` - -NewTotalProfitHisListRequestWithDefaults instantiates a new TotalProfitHisListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNo - -`func (o *TotalProfitHisListRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *TotalProfitHisListRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *TotalProfitHisListRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *TotalProfitHisListRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *TotalProfitHisListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *TotalProfitHisListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *TotalProfitHisListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *TotalProfitHisListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TotalProfitListRequest.md b/bitget-goland-sdk-open-api/docs/TotalProfitListRequest.md deleted file mode 100644 index 24ac63e4..00000000 --- a/bitget-goland-sdk-open-api/docs/TotalProfitListRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# TotalProfitListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewTotalProfitListRequest - -`func NewTotalProfitListRequest() *TotalProfitListRequest` - -NewTotalProfitListRequest instantiates a new TotalProfitListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTotalProfitListRequestWithDefaults - -`func NewTotalProfitListRequestWithDefaults() *TotalProfitListRequest` - -NewTotalProfitListRequestWithDefaults instantiates a new TotalProfitListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNo - -`func (o *TotalProfitListRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *TotalProfitListRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *TotalProfitListRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *TotalProfitListRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *TotalProfitListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *TotalProfitListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *TotalProfitListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *TotalProfitListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceConfigRequest.md b/bitget-goland-sdk-open-api/docs/TraceConfigRequest.md deleted file mode 100644 index cf6a2411..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceConfigRequest.md +++ /dev/null @@ -1,98 +0,0 @@ -# TraceConfigRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Setting** | Pointer to [**[]TraceConfigSettingRequest**](TraceConfigSettingRequest.md) | | [optional] -**SettingType** | **string** | settingType | -**TraderUserId** | **string** | traderUserId | - -## Methods - -### NewTraceConfigRequest - -`func NewTraceConfigRequest(settingType string, traderUserId string, ) *TraceConfigRequest` - -NewTraceConfigRequest instantiates a new TraceConfigRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceConfigRequestWithDefaults - -`func NewTraceConfigRequestWithDefaults() *TraceConfigRequest` - -NewTraceConfigRequestWithDefaults instantiates a new TraceConfigRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSetting - -`func (o *TraceConfigRequest) GetSetting() []TraceConfigSettingRequest` - -GetSetting returns the Setting field if non-nil, zero value otherwise. - -### GetSettingOk - -`func (o *TraceConfigRequest) GetSettingOk() (*[]TraceConfigSettingRequest, bool)` - -GetSettingOk returns a tuple with the Setting field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSetting - -`func (o *TraceConfigRequest) SetSetting(v []TraceConfigSettingRequest)` - -SetSetting sets Setting field to given value. - -### HasSetting - -`func (o *TraceConfigRequest) HasSetting() bool` - -HasSetting returns a boolean if a field has been set. - -### GetSettingType - -`func (o *TraceConfigRequest) GetSettingType() string` - -GetSettingType returns the SettingType field if non-nil, zero value otherwise. - -### GetSettingTypeOk - -`func (o *TraceConfigRequest) GetSettingTypeOk() (*string, bool)` - -GetSettingTypeOk returns a tuple with the SettingType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettingType - -`func (o *TraceConfigRequest) SetSettingType(v string)` - -SetSettingType sets SettingType field to given value. - - -### GetTraderUserId - -`func (o *TraceConfigRequest) GetTraderUserId() string` - -GetTraderUserId returns the TraderUserId field if non-nil, zero value otherwise. - -### GetTraderUserIdOk - -`func (o *TraceConfigRequest) GetTraderUserIdOk() (*string, bool)` - -GetTraderUserIdOk returns a tuple with the TraderUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderUserId - -`func (o *TraceConfigRequest) SetTraderUserId(v string)` - -SetTraderUserId sets TraderUserId field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceConfigSettingRequest.md b/bitget-goland-sdk-open-api/docs/TraceConfigSettingRequest.md deleted file mode 100644 index af0aa037..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceConfigSettingRequest.md +++ /dev/null @@ -1,156 +0,0 @@ -# TraceConfigSettingRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MaxHoldCount** | **string** | maxHoldCount | -**StopLossRation** | **string** | stopLossRation | -**StopProfitRation** | **string** | stopProfitRation | -**SymbolId** | **string** | symbolId | -**TraceType** | **string** | traceType | -**TraceValue** | **string** | traceValue | - -## Methods - -### NewTraceConfigSettingRequest - -`func NewTraceConfigSettingRequest(maxHoldCount string, stopLossRation string, stopProfitRation string, symbolId string, traceType string, traceValue string, ) *TraceConfigSettingRequest` - -NewTraceConfigSettingRequest instantiates a new TraceConfigSettingRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceConfigSettingRequestWithDefaults - -`func NewTraceConfigSettingRequestWithDefaults() *TraceConfigSettingRequest` - -NewTraceConfigSettingRequestWithDefaults instantiates a new TraceConfigSettingRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMaxHoldCount - -`func (o *TraceConfigSettingRequest) GetMaxHoldCount() string` - -GetMaxHoldCount returns the MaxHoldCount field if non-nil, zero value otherwise. - -### GetMaxHoldCountOk - -`func (o *TraceConfigSettingRequest) GetMaxHoldCountOk() (*string, bool)` - -GetMaxHoldCountOk returns a tuple with the MaxHoldCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxHoldCount - -`func (o *TraceConfigSettingRequest) SetMaxHoldCount(v string)` - -SetMaxHoldCount sets MaxHoldCount field to given value. - - -### GetStopLossRation - -`func (o *TraceConfigSettingRequest) GetStopLossRation() string` - -GetStopLossRation returns the StopLossRation field if non-nil, zero value otherwise. - -### GetStopLossRationOk - -`func (o *TraceConfigSettingRequest) GetStopLossRationOk() (*string, bool)` - -GetStopLossRationOk returns a tuple with the StopLossRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopLossRation - -`func (o *TraceConfigSettingRequest) SetStopLossRation(v string)` - -SetStopLossRation sets StopLossRation field to given value. - - -### GetStopProfitRation - -`func (o *TraceConfigSettingRequest) GetStopProfitRation() string` - -GetStopProfitRation returns the StopProfitRation field if non-nil, zero value otherwise. - -### GetStopProfitRationOk - -`func (o *TraceConfigSettingRequest) GetStopProfitRationOk() (*string, bool)` - -GetStopProfitRationOk returns a tuple with the StopProfitRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopProfitRation - -`func (o *TraceConfigSettingRequest) SetStopProfitRation(v string)` - -SetStopProfitRation sets StopProfitRation field to given value. - - -### GetSymbolId - -`func (o *TraceConfigSettingRequest) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *TraceConfigSettingRequest) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *TraceConfigSettingRequest) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - - -### GetTraceType - -`func (o *TraceConfigSettingRequest) GetTraceType() string` - -GetTraceType returns the TraceType field if non-nil, zero value otherwise. - -### GetTraceTypeOk - -`func (o *TraceConfigSettingRequest) GetTraceTypeOk() (*string, bool)` - -GetTraceTypeOk returns a tuple with the TraceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceType - -`func (o *TraceConfigSettingRequest) SetTraceType(v string)` - -SetTraceType sets TraceType field to given value. - - -### GetTraceValue - -`func (o *TraceConfigSettingRequest) GetTraceValue() string` - -GetTraceValue returns the TraceValue field if non-nil, zero value otherwise. - -### GetTraceValueOk - -`func (o *TraceConfigSettingRequest) GetTraceValueOk() (*string, bool)` - -GetTraceValueOk returns a tuple with the TraceValue field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceValue - -`func (o *TraceConfigSettingRequest) SetTraceValue(v string)` - -SetTraceValue sets TraceValue field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceSettingBatchDetailsResult.md b/bitget-goland-sdk-open-api/docs/TraceSettingBatchDetailsResult.md deleted file mode 100644 index 874be432..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceSettingBatchDetailsResult.md +++ /dev/null @@ -1,212 +0,0 @@ -# TraceSettingBatchDetailsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BusinessLineCode** | Pointer to **string** | | [optional] -**MaxTraceAmount** | Pointer to **string** | | [optional] -**StopLossRation** | Pointer to **string** | | [optional] -**StopProfitRation** | Pointer to **string** | | [optional] -**SymbolDisplayName** | Pointer to **string** | | [optional] -**SymbolId** | Pointer to **string** | | [optional] -**TraceType** | Pointer to **string** | | [optional] - -## Methods - -### NewTraceSettingBatchDetailsResult - -`func NewTraceSettingBatchDetailsResult() *TraceSettingBatchDetailsResult` - -NewTraceSettingBatchDetailsResult instantiates a new TraceSettingBatchDetailsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceSettingBatchDetailsResultWithDefaults - -`func NewTraceSettingBatchDetailsResultWithDefaults() *TraceSettingBatchDetailsResult` - -NewTraceSettingBatchDetailsResultWithDefaults instantiates a new TraceSettingBatchDetailsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBusinessLineCode - -`func (o *TraceSettingBatchDetailsResult) GetBusinessLineCode() string` - -GetBusinessLineCode returns the BusinessLineCode field if non-nil, zero value otherwise. - -### GetBusinessLineCodeOk - -`func (o *TraceSettingBatchDetailsResult) GetBusinessLineCodeOk() (*string, bool)` - -GetBusinessLineCodeOk returns a tuple with the BusinessLineCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBusinessLineCode - -`func (o *TraceSettingBatchDetailsResult) SetBusinessLineCode(v string)` - -SetBusinessLineCode sets BusinessLineCode field to given value. - -### HasBusinessLineCode - -`func (o *TraceSettingBatchDetailsResult) HasBusinessLineCode() bool` - -HasBusinessLineCode returns a boolean if a field has been set. - -### GetMaxTraceAmount - -`func (o *TraceSettingBatchDetailsResult) GetMaxTraceAmount() string` - -GetMaxTraceAmount returns the MaxTraceAmount field if non-nil, zero value otherwise. - -### GetMaxTraceAmountOk - -`func (o *TraceSettingBatchDetailsResult) GetMaxTraceAmountOk() (*string, bool)` - -GetMaxTraceAmountOk returns a tuple with the MaxTraceAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTraceAmount - -`func (o *TraceSettingBatchDetailsResult) SetMaxTraceAmount(v string)` - -SetMaxTraceAmount sets MaxTraceAmount field to given value. - -### HasMaxTraceAmount - -`func (o *TraceSettingBatchDetailsResult) HasMaxTraceAmount() bool` - -HasMaxTraceAmount returns a boolean if a field has been set. - -### GetStopLossRation - -`func (o *TraceSettingBatchDetailsResult) GetStopLossRation() string` - -GetStopLossRation returns the StopLossRation field if non-nil, zero value otherwise. - -### GetStopLossRationOk - -`func (o *TraceSettingBatchDetailsResult) GetStopLossRationOk() (*string, bool)` - -GetStopLossRationOk returns a tuple with the StopLossRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopLossRation - -`func (o *TraceSettingBatchDetailsResult) SetStopLossRation(v string)` - -SetStopLossRation sets StopLossRation field to given value. - -### HasStopLossRation - -`func (o *TraceSettingBatchDetailsResult) HasStopLossRation() bool` - -HasStopLossRation returns a boolean if a field has been set. - -### GetStopProfitRation - -`func (o *TraceSettingBatchDetailsResult) GetStopProfitRation() string` - -GetStopProfitRation returns the StopProfitRation field if non-nil, zero value otherwise. - -### GetStopProfitRationOk - -`func (o *TraceSettingBatchDetailsResult) GetStopProfitRationOk() (*string, bool)` - -GetStopProfitRationOk returns a tuple with the StopProfitRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopProfitRation - -`func (o *TraceSettingBatchDetailsResult) SetStopProfitRation(v string)` - -SetStopProfitRation sets StopProfitRation field to given value. - -### HasStopProfitRation - -`func (o *TraceSettingBatchDetailsResult) HasStopProfitRation() bool` - -HasStopProfitRation returns a boolean if a field has been set. - -### GetSymbolDisplayName - -`func (o *TraceSettingBatchDetailsResult) GetSymbolDisplayName() string` - -GetSymbolDisplayName returns the SymbolDisplayName field if non-nil, zero value otherwise. - -### GetSymbolDisplayNameOk - -`func (o *TraceSettingBatchDetailsResult) GetSymbolDisplayNameOk() (*string, bool)` - -GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolDisplayName - -`func (o *TraceSettingBatchDetailsResult) SetSymbolDisplayName(v string)` - -SetSymbolDisplayName sets SymbolDisplayName field to given value. - -### HasSymbolDisplayName - -`func (o *TraceSettingBatchDetailsResult) HasSymbolDisplayName() bool` - -HasSymbolDisplayName returns a boolean if a field has been set. - -### GetSymbolId - -`func (o *TraceSettingBatchDetailsResult) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *TraceSettingBatchDetailsResult) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *TraceSettingBatchDetailsResult) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - -### HasSymbolId - -`func (o *TraceSettingBatchDetailsResult) HasSymbolId() bool` - -HasSymbolId returns a boolean if a field has been set. - -### GetTraceType - -`func (o *TraceSettingBatchDetailsResult) GetTraceType() string` - -GetTraceType returns the TraceType field if non-nil, zero value otherwise. - -### GetTraceTypeOk - -`func (o *TraceSettingBatchDetailsResult) GetTraceTypeOk() (*string, bool)` - -GetTraceTypeOk returns a tuple with the TraceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceType - -`func (o *TraceSettingBatchDetailsResult) SetTraceType(v string)` - -SetTraceType sets TraceType field to given value. - -### HasTraceType - -`func (o *TraceSettingBatchDetailsResult) HasTraceType() bool` - -HasTraceType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceSettingProductConfigsResult.md b/bitget-goland-sdk-open-api/docs/TraceSettingProductConfigsResult.md deleted file mode 100644 index 87f272e8..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceSettingProductConfigsResult.md +++ /dev/null @@ -1,446 +0,0 @@ -# TraceSettingProductConfigsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BusinessLine** | Pointer to **string** | | [optional] -**MaxStopLossRation** | Pointer to **string** | | [optional] -**MaxStopProfitRation** | Pointer to **string** | | [optional] -**MaxTraceAmount** | Pointer to **string** | | [optional] -**MaxTraceAmountSystem** | Pointer to **string** | | [optional] -**MaxTraceCount** | Pointer to **string** | | [optional] -**MaxTraceRation** | Pointer to **string** | | [optional] -**MinStopLossRation** | Pointer to **string** | | [optional] -**MinStopProfitRation** | Pointer to **string** | | [optional] -**MinTraceAmount** | Pointer to **string** | | [optional] -**MinTraceCount** | Pointer to **string** | | [optional] -**MinTraceRation** | Pointer to **string** | | [optional] -**SliderMaxStopLossRatio** | Pointer to **string** | | [optional] -**SliderMaxStopProfitRatio** | Pointer to **string** | | [optional] -**SymbolId** | Pointer to **string** | | [optional] -**SymbolName** | Pointer to **string** | | [optional] - -## Methods - -### NewTraceSettingProductConfigsResult - -`func NewTraceSettingProductConfigsResult() *TraceSettingProductConfigsResult` - -NewTraceSettingProductConfigsResult instantiates a new TraceSettingProductConfigsResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceSettingProductConfigsResultWithDefaults - -`func NewTraceSettingProductConfigsResultWithDefaults() *TraceSettingProductConfigsResult` - -NewTraceSettingProductConfigsResultWithDefaults instantiates a new TraceSettingProductConfigsResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBusinessLine - -`func (o *TraceSettingProductConfigsResult) GetBusinessLine() string` - -GetBusinessLine returns the BusinessLine field if non-nil, zero value otherwise. - -### GetBusinessLineOk - -`func (o *TraceSettingProductConfigsResult) GetBusinessLineOk() (*string, bool)` - -GetBusinessLineOk returns a tuple with the BusinessLine field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBusinessLine - -`func (o *TraceSettingProductConfigsResult) SetBusinessLine(v string)` - -SetBusinessLine sets BusinessLine field to given value. - -### HasBusinessLine - -`func (o *TraceSettingProductConfigsResult) HasBusinessLine() bool` - -HasBusinessLine returns a boolean if a field has been set. - -### GetMaxStopLossRation - -`func (o *TraceSettingProductConfigsResult) GetMaxStopLossRation() string` - -GetMaxStopLossRation returns the MaxStopLossRation field if non-nil, zero value otherwise. - -### GetMaxStopLossRationOk - -`func (o *TraceSettingProductConfigsResult) GetMaxStopLossRationOk() (*string, bool)` - -GetMaxStopLossRationOk returns a tuple with the MaxStopLossRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxStopLossRation - -`func (o *TraceSettingProductConfigsResult) SetMaxStopLossRation(v string)` - -SetMaxStopLossRation sets MaxStopLossRation field to given value. - -### HasMaxStopLossRation - -`func (o *TraceSettingProductConfigsResult) HasMaxStopLossRation() bool` - -HasMaxStopLossRation returns a boolean if a field has been set. - -### GetMaxStopProfitRation - -`func (o *TraceSettingProductConfigsResult) GetMaxStopProfitRation() string` - -GetMaxStopProfitRation returns the MaxStopProfitRation field if non-nil, zero value otherwise. - -### GetMaxStopProfitRationOk - -`func (o *TraceSettingProductConfigsResult) GetMaxStopProfitRationOk() (*string, bool)` - -GetMaxStopProfitRationOk returns a tuple with the MaxStopProfitRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxStopProfitRation - -`func (o *TraceSettingProductConfigsResult) SetMaxStopProfitRation(v string)` - -SetMaxStopProfitRation sets MaxStopProfitRation field to given value. - -### HasMaxStopProfitRation - -`func (o *TraceSettingProductConfigsResult) HasMaxStopProfitRation() bool` - -HasMaxStopProfitRation returns a boolean if a field has been set. - -### GetMaxTraceAmount - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceAmount() string` - -GetMaxTraceAmount returns the MaxTraceAmount field if non-nil, zero value otherwise. - -### GetMaxTraceAmountOk - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountOk() (*string, bool)` - -GetMaxTraceAmountOk returns a tuple with the MaxTraceAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTraceAmount - -`func (o *TraceSettingProductConfigsResult) SetMaxTraceAmount(v string)` - -SetMaxTraceAmount sets MaxTraceAmount field to given value. - -### HasMaxTraceAmount - -`func (o *TraceSettingProductConfigsResult) HasMaxTraceAmount() bool` - -HasMaxTraceAmount returns a boolean if a field has been set. - -### GetMaxTraceAmountSystem - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountSystem() string` - -GetMaxTraceAmountSystem returns the MaxTraceAmountSystem field if non-nil, zero value otherwise. - -### GetMaxTraceAmountSystemOk - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountSystemOk() (*string, bool)` - -GetMaxTraceAmountSystemOk returns a tuple with the MaxTraceAmountSystem field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTraceAmountSystem - -`func (o *TraceSettingProductConfigsResult) SetMaxTraceAmountSystem(v string)` - -SetMaxTraceAmountSystem sets MaxTraceAmountSystem field to given value. - -### HasMaxTraceAmountSystem - -`func (o *TraceSettingProductConfigsResult) HasMaxTraceAmountSystem() bool` - -HasMaxTraceAmountSystem returns a boolean if a field has been set. - -### GetMaxTraceCount - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceCount() string` - -GetMaxTraceCount returns the MaxTraceCount field if non-nil, zero value otherwise. - -### GetMaxTraceCountOk - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceCountOk() (*string, bool)` - -GetMaxTraceCountOk returns a tuple with the MaxTraceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTraceCount - -`func (o *TraceSettingProductConfigsResult) SetMaxTraceCount(v string)` - -SetMaxTraceCount sets MaxTraceCount field to given value. - -### HasMaxTraceCount - -`func (o *TraceSettingProductConfigsResult) HasMaxTraceCount() bool` - -HasMaxTraceCount returns a boolean if a field has been set. - -### GetMaxTraceRation - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceRation() string` - -GetMaxTraceRation returns the MaxTraceRation field if non-nil, zero value otherwise. - -### GetMaxTraceRationOk - -`func (o *TraceSettingProductConfigsResult) GetMaxTraceRationOk() (*string, bool)` - -GetMaxTraceRationOk returns a tuple with the MaxTraceRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxTraceRation - -`func (o *TraceSettingProductConfigsResult) SetMaxTraceRation(v string)` - -SetMaxTraceRation sets MaxTraceRation field to given value. - -### HasMaxTraceRation - -`func (o *TraceSettingProductConfigsResult) HasMaxTraceRation() bool` - -HasMaxTraceRation returns a boolean if a field has been set. - -### GetMinStopLossRation - -`func (o *TraceSettingProductConfigsResult) GetMinStopLossRation() string` - -GetMinStopLossRation returns the MinStopLossRation field if non-nil, zero value otherwise. - -### GetMinStopLossRationOk - -`func (o *TraceSettingProductConfigsResult) GetMinStopLossRationOk() (*string, bool)` - -GetMinStopLossRationOk returns a tuple with the MinStopLossRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinStopLossRation - -`func (o *TraceSettingProductConfigsResult) SetMinStopLossRation(v string)` - -SetMinStopLossRation sets MinStopLossRation field to given value. - -### HasMinStopLossRation - -`func (o *TraceSettingProductConfigsResult) HasMinStopLossRation() bool` - -HasMinStopLossRation returns a boolean if a field has been set. - -### GetMinStopProfitRation - -`func (o *TraceSettingProductConfigsResult) GetMinStopProfitRation() string` - -GetMinStopProfitRation returns the MinStopProfitRation field if non-nil, zero value otherwise. - -### GetMinStopProfitRationOk - -`func (o *TraceSettingProductConfigsResult) GetMinStopProfitRationOk() (*string, bool)` - -GetMinStopProfitRationOk returns a tuple with the MinStopProfitRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinStopProfitRation - -`func (o *TraceSettingProductConfigsResult) SetMinStopProfitRation(v string)` - -SetMinStopProfitRation sets MinStopProfitRation field to given value. - -### HasMinStopProfitRation - -`func (o *TraceSettingProductConfigsResult) HasMinStopProfitRation() bool` - -HasMinStopProfitRation returns a boolean if a field has been set. - -### GetMinTraceAmount - -`func (o *TraceSettingProductConfigsResult) GetMinTraceAmount() string` - -GetMinTraceAmount returns the MinTraceAmount field if non-nil, zero value otherwise. - -### GetMinTraceAmountOk - -`func (o *TraceSettingProductConfigsResult) GetMinTraceAmountOk() (*string, bool)` - -GetMinTraceAmountOk returns a tuple with the MinTraceAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinTraceAmount - -`func (o *TraceSettingProductConfigsResult) SetMinTraceAmount(v string)` - -SetMinTraceAmount sets MinTraceAmount field to given value. - -### HasMinTraceAmount - -`func (o *TraceSettingProductConfigsResult) HasMinTraceAmount() bool` - -HasMinTraceAmount returns a boolean if a field has been set. - -### GetMinTraceCount - -`func (o *TraceSettingProductConfigsResult) GetMinTraceCount() string` - -GetMinTraceCount returns the MinTraceCount field if non-nil, zero value otherwise. - -### GetMinTraceCountOk - -`func (o *TraceSettingProductConfigsResult) GetMinTraceCountOk() (*string, bool)` - -GetMinTraceCountOk returns a tuple with the MinTraceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinTraceCount - -`func (o *TraceSettingProductConfigsResult) SetMinTraceCount(v string)` - -SetMinTraceCount sets MinTraceCount field to given value. - -### HasMinTraceCount - -`func (o *TraceSettingProductConfigsResult) HasMinTraceCount() bool` - -HasMinTraceCount returns a boolean if a field has been set. - -### GetMinTraceRation - -`func (o *TraceSettingProductConfigsResult) GetMinTraceRation() string` - -GetMinTraceRation returns the MinTraceRation field if non-nil, zero value otherwise. - -### GetMinTraceRationOk - -`func (o *TraceSettingProductConfigsResult) GetMinTraceRationOk() (*string, bool)` - -GetMinTraceRationOk returns a tuple with the MinTraceRation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinTraceRation - -`func (o *TraceSettingProductConfigsResult) SetMinTraceRation(v string)` - -SetMinTraceRation sets MinTraceRation field to given value. - -### HasMinTraceRation - -`func (o *TraceSettingProductConfigsResult) HasMinTraceRation() bool` - -HasMinTraceRation returns a boolean if a field has been set. - -### GetSliderMaxStopLossRatio - -`func (o *TraceSettingProductConfigsResult) GetSliderMaxStopLossRatio() string` - -GetSliderMaxStopLossRatio returns the SliderMaxStopLossRatio field if non-nil, zero value otherwise. - -### GetSliderMaxStopLossRatioOk - -`func (o *TraceSettingProductConfigsResult) GetSliderMaxStopLossRatioOk() (*string, bool)` - -GetSliderMaxStopLossRatioOk returns a tuple with the SliderMaxStopLossRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSliderMaxStopLossRatio - -`func (o *TraceSettingProductConfigsResult) SetSliderMaxStopLossRatio(v string)` - -SetSliderMaxStopLossRatio sets SliderMaxStopLossRatio field to given value. - -### HasSliderMaxStopLossRatio - -`func (o *TraceSettingProductConfigsResult) HasSliderMaxStopLossRatio() bool` - -HasSliderMaxStopLossRatio returns a boolean if a field has been set. - -### GetSliderMaxStopProfitRatio - -`func (o *TraceSettingProductConfigsResult) GetSliderMaxStopProfitRatio() string` - -GetSliderMaxStopProfitRatio returns the SliderMaxStopProfitRatio field if non-nil, zero value otherwise. - -### GetSliderMaxStopProfitRatioOk - -`func (o *TraceSettingProductConfigsResult) GetSliderMaxStopProfitRatioOk() (*string, bool)` - -GetSliderMaxStopProfitRatioOk returns a tuple with the SliderMaxStopProfitRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSliderMaxStopProfitRatio - -`func (o *TraceSettingProductConfigsResult) SetSliderMaxStopProfitRatio(v string)` - -SetSliderMaxStopProfitRatio sets SliderMaxStopProfitRatio field to given value. - -### HasSliderMaxStopProfitRatio - -`func (o *TraceSettingProductConfigsResult) HasSliderMaxStopProfitRatio() bool` - -HasSliderMaxStopProfitRatio returns a boolean if a field has been set. - -### GetSymbolId - -`func (o *TraceSettingProductConfigsResult) GetSymbolId() string` - -GetSymbolId returns the SymbolId field if non-nil, zero value otherwise. - -### GetSymbolIdOk - -`func (o *TraceSettingProductConfigsResult) GetSymbolIdOk() (*string, bool)` - -GetSymbolIdOk returns a tuple with the SymbolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolId - -`func (o *TraceSettingProductConfigsResult) SetSymbolId(v string)` - -SetSymbolId sets SymbolId field to given value. - -### HasSymbolId - -`func (o *TraceSettingProductConfigsResult) HasSymbolId() bool` - -HasSymbolId returns a boolean if a field has been set. - -### GetSymbolName - -`func (o *TraceSettingProductConfigsResult) GetSymbolName() string` - -GetSymbolName returns the SymbolName field if non-nil, zero value otherwise. - -### GetSymbolNameOk - -`func (o *TraceSettingProductConfigsResult) GetSymbolNameOk() (*string, bool)` - -GetSymbolNameOk returns a tuple with the SymbolName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSymbolName - -`func (o *TraceSettingProductConfigsResult) SetSymbolName(v string)` - -SetSymbolName sets SymbolName field to given value. - -### HasSymbolName - -`func (o *TraceSettingProductConfigsResult) HasSymbolName() bool` - -HasSymbolName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceSettingResult.md b/bitget-goland-sdk-open-api/docs/TraceSettingResult.md deleted file mode 100644 index 23f220d3..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceSettingResult.md +++ /dev/null @@ -1,238 +0,0 @@ -# TraceSettingResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**IsMyTrader** | Pointer to **bool** | | [optional] -**ProfitRate** | Pointer to **string** | | [optional] -**SettingType** | Pointer to **string** | | [optional] -**SettledInDays** | Pointer to **string** | | [optional] -**TraceBatchDetails** | Pointer to [**[]TraceSettingBatchDetailsResult**](TraceSettingBatchDetailsResult.md) | | [optional] -**TraceProductConfigs** | Pointer to [**[]TraceSettingProductConfigsResult**](TraceSettingProductConfigsResult.md) | | [optional] -**TraderHeadPic** | Pointer to **string** | | [optional] -**TraderNickName** | Pointer to **string** | | [optional] - -## Methods - -### NewTraceSettingResult - -`func NewTraceSettingResult() *TraceSettingResult` - -NewTraceSettingResult instantiates a new TraceSettingResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceSettingResultWithDefaults - -`func NewTraceSettingResultWithDefaults() *TraceSettingResult` - -NewTraceSettingResultWithDefaults instantiates a new TraceSettingResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetIsMyTrader - -`func (o *TraceSettingResult) GetIsMyTrader() bool` - -GetIsMyTrader returns the IsMyTrader field if non-nil, zero value otherwise. - -### GetIsMyTraderOk - -`func (o *TraceSettingResult) GetIsMyTraderOk() (*bool, bool)` - -GetIsMyTraderOk returns a tuple with the IsMyTrader field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsMyTrader - -`func (o *TraceSettingResult) SetIsMyTrader(v bool)` - -SetIsMyTrader sets IsMyTrader field to given value. - -### HasIsMyTrader - -`func (o *TraceSettingResult) HasIsMyTrader() bool` - -HasIsMyTrader returns a boolean if a field has been set. - -### GetProfitRate - -`func (o *TraceSettingResult) GetProfitRate() string` - -GetProfitRate returns the ProfitRate field if non-nil, zero value otherwise. - -### GetProfitRateOk - -`func (o *TraceSettingResult) GetProfitRateOk() (*string, bool)` - -GetProfitRateOk returns a tuple with the ProfitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfitRate - -`func (o *TraceSettingResult) SetProfitRate(v string)` - -SetProfitRate sets ProfitRate field to given value. - -### HasProfitRate - -`func (o *TraceSettingResult) HasProfitRate() bool` - -HasProfitRate returns a boolean if a field has been set. - -### GetSettingType - -`func (o *TraceSettingResult) GetSettingType() string` - -GetSettingType returns the SettingType field if non-nil, zero value otherwise. - -### GetSettingTypeOk - -`func (o *TraceSettingResult) GetSettingTypeOk() (*string, bool)` - -GetSettingTypeOk returns a tuple with the SettingType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettingType - -`func (o *TraceSettingResult) SetSettingType(v string)` - -SetSettingType sets SettingType field to given value. - -### HasSettingType - -`func (o *TraceSettingResult) HasSettingType() bool` - -HasSettingType returns a boolean if a field has been set. - -### GetSettledInDays - -`func (o *TraceSettingResult) GetSettledInDays() string` - -GetSettledInDays returns the SettledInDays field if non-nil, zero value otherwise. - -### GetSettledInDaysOk - -`func (o *TraceSettingResult) GetSettledInDaysOk() (*string, bool)` - -GetSettledInDaysOk returns a tuple with the SettledInDays field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettledInDays - -`func (o *TraceSettingResult) SetSettledInDays(v string)` - -SetSettledInDays sets SettledInDays field to given value. - -### HasSettledInDays - -`func (o *TraceSettingResult) HasSettledInDays() bool` - -HasSettledInDays returns a boolean if a field has been set. - -### GetTraceBatchDetails - -`func (o *TraceSettingResult) GetTraceBatchDetails() []TraceSettingBatchDetailsResult` - -GetTraceBatchDetails returns the TraceBatchDetails field if non-nil, zero value otherwise. - -### GetTraceBatchDetailsOk - -`func (o *TraceSettingResult) GetTraceBatchDetailsOk() (*[]TraceSettingBatchDetailsResult, bool)` - -GetTraceBatchDetailsOk returns a tuple with the TraceBatchDetails field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceBatchDetails - -`func (o *TraceSettingResult) SetTraceBatchDetails(v []TraceSettingBatchDetailsResult)` - -SetTraceBatchDetails sets TraceBatchDetails field to given value. - -### HasTraceBatchDetails - -`func (o *TraceSettingResult) HasTraceBatchDetails() bool` - -HasTraceBatchDetails returns a boolean if a field has been set. - -### GetTraceProductConfigs - -`func (o *TraceSettingResult) GetTraceProductConfigs() []TraceSettingProductConfigsResult` - -GetTraceProductConfigs returns the TraceProductConfigs field if non-nil, zero value otherwise. - -### GetTraceProductConfigsOk - -`func (o *TraceSettingResult) GetTraceProductConfigsOk() (*[]TraceSettingProductConfigsResult, bool)` - -GetTraceProductConfigsOk returns a tuple with the TraceProductConfigs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraceProductConfigs - -`func (o *TraceSettingResult) SetTraceProductConfigs(v []TraceSettingProductConfigsResult)` - -SetTraceProductConfigs sets TraceProductConfigs field to given value. - -### HasTraceProductConfigs - -`func (o *TraceSettingResult) HasTraceProductConfigs() bool` - -HasTraceProductConfigs returns a boolean if a field has been set. - -### GetTraderHeadPic - -`func (o *TraceSettingResult) GetTraderHeadPic() string` - -GetTraderHeadPic returns the TraderHeadPic field if non-nil, zero value otherwise. - -### GetTraderHeadPicOk - -`func (o *TraceSettingResult) GetTraderHeadPicOk() (*string, bool)` - -GetTraderHeadPicOk returns a tuple with the TraderHeadPic field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderHeadPic - -`func (o *TraceSettingResult) SetTraderHeadPic(v string)` - -SetTraderHeadPic sets TraderHeadPic field to given value. - -### HasTraderHeadPic - -`func (o *TraceSettingResult) HasTraderHeadPic() bool` - -HasTraderHeadPic returns a boolean if a field has been set. - -### GetTraderNickName - -`func (o *TraceSettingResult) GetTraderNickName() string` - -GetTraderNickName returns the TraderNickName field if non-nil, zero value otherwise. - -### GetTraderNickNameOk - -`func (o *TraceSettingResult) GetTraderNickNameOk() (*string, bool)` - -GetTraderNickNameOk returns a tuple with the TraderNickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderNickName - -`func (o *TraceSettingResult) SetTraderNickName(v string)` - -SetTraderNickName sets TraderNickName field to given value. - -### HasTraderNickName - -`func (o *TraceSettingResult) HasTraderNickName() bool` - -HasTraderNickName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraceSettingsRequest.md b/bitget-goland-sdk-open-api/docs/TraceSettingsRequest.md deleted file mode 100644 index ece7ba50..00000000 --- a/bitget-goland-sdk-open-api/docs/TraceSettingsRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# TraceSettingsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TraderUserId** | **string** | traderUserId | - -## Methods - -### NewTraceSettingsRequest - -`func NewTraceSettingsRequest(traderUserId string, ) *TraceSettingsRequest` - -NewTraceSettingsRequest instantiates a new TraceSettingsRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraceSettingsRequestWithDefaults - -`func NewTraceSettingsRequestWithDefaults() *TraceSettingsRequest` - -NewTraceSettingsRequestWithDefaults instantiates a new TraceSettingsRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTraderUserId - -`func (o *TraceSettingsRequest) GetTraderUserId() string` - -GetTraderUserId returns the TraderUserId field if non-nil, zero value otherwise. - -### GetTraderUserIdOk - -`func (o *TraceSettingsRequest) GetTraderUserIdOk() (*string, bool)` - -GetTraderUserIdOk returns a tuple with the TraderUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTraderUserId - -`func (o *TraceSettingsRequest) SetTraderUserId(v string)` - -SetTraderUserId sets TraderUserId field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailListResult.md b/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailListResult.md deleted file mode 100644 index 8fe42287..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# TraderProfitHisDetailListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NextFlag** | Pointer to **bool** | | [optional] -**ResultList** | Pointer to [**[]TraderProfitHisDetailResult**](TraderProfitHisDetailResult.md) | | [optional] - -## Methods - -### NewTraderProfitHisDetailListResult - -`func NewTraderProfitHisDetailListResult() *TraderProfitHisDetailListResult` - -NewTraderProfitHisDetailListResult instantiates a new TraderProfitHisDetailListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderProfitHisDetailListResultWithDefaults - -`func NewTraderProfitHisDetailListResultWithDefaults() *TraderProfitHisDetailListResult` - -NewTraderProfitHisDetailListResultWithDefaults instantiates a new TraderProfitHisDetailListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNextFlag - -`func (o *TraderProfitHisDetailListResult) GetNextFlag() bool` - -GetNextFlag returns the NextFlag field if non-nil, zero value otherwise. - -### GetNextFlagOk - -`func (o *TraderProfitHisDetailListResult) GetNextFlagOk() (*bool, bool)` - -GetNextFlagOk returns a tuple with the NextFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextFlag - -`func (o *TraderProfitHisDetailListResult) SetNextFlag(v bool)` - -SetNextFlag sets NextFlag field to given value. - -### HasNextFlag - -`func (o *TraderProfitHisDetailListResult) HasNextFlag() bool` - -HasNextFlag returns a boolean if a field has been set. - -### GetResultList - -`func (o *TraderProfitHisDetailListResult) GetResultList() []TraderProfitHisDetailResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *TraderProfitHisDetailListResult) GetResultListOk() (*[]TraderProfitHisDetailResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *TraderProfitHisDetailListResult) SetResultList(v []TraderProfitHisDetailResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *TraderProfitHisDetailListResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailResult.md b/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailResult.md deleted file mode 100644 index f703a1d4..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderProfitHisDetailResult.md +++ /dev/null @@ -1,186 +0,0 @@ -# TraderProfitHisDetailResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CoinName** | Pointer to **string** | | [optional] -**DistributeRatio** | Pointer to **string** | | [optional] -**HeadPic** | Pointer to **string** | | [optional] -**NickName** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] -**TracerNickName** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderProfitHisDetailResult - -`func NewTraderProfitHisDetailResult() *TraderProfitHisDetailResult` - -NewTraderProfitHisDetailResult instantiates a new TraderProfitHisDetailResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderProfitHisDetailResultWithDefaults - -`func NewTraderProfitHisDetailResultWithDefaults() *TraderProfitHisDetailResult` - -NewTraderProfitHisDetailResultWithDefaults instantiates a new TraderProfitHisDetailResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoinName - -`func (o *TraderProfitHisDetailResult) GetCoinName() string` - -GetCoinName returns the CoinName field if non-nil, zero value otherwise. - -### GetCoinNameOk - -`func (o *TraderProfitHisDetailResult) GetCoinNameOk() (*string, bool)` - -GetCoinNameOk returns a tuple with the CoinName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoinName - -`func (o *TraderProfitHisDetailResult) SetCoinName(v string)` - -SetCoinName sets CoinName field to given value. - -### HasCoinName - -`func (o *TraderProfitHisDetailResult) HasCoinName() bool` - -HasCoinName returns a boolean if a field has been set. - -### GetDistributeRatio - -`func (o *TraderProfitHisDetailResult) GetDistributeRatio() string` - -GetDistributeRatio returns the DistributeRatio field if non-nil, zero value otherwise. - -### GetDistributeRatioOk - -`func (o *TraderProfitHisDetailResult) GetDistributeRatioOk() (*string, bool)` - -GetDistributeRatioOk returns a tuple with the DistributeRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistributeRatio - -`func (o *TraderProfitHisDetailResult) SetDistributeRatio(v string)` - -SetDistributeRatio sets DistributeRatio field to given value. - -### HasDistributeRatio - -`func (o *TraderProfitHisDetailResult) HasDistributeRatio() bool` - -HasDistributeRatio returns a boolean if a field has been set. - -### GetHeadPic - -`func (o *TraderProfitHisDetailResult) GetHeadPic() string` - -GetHeadPic returns the HeadPic field if non-nil, zero value otherwise. - -### GetHeadPicOk - -`func (o *TraderProfitHisDetailResult) GetHeadPicOk() (*string, bool)` - -GetHeadPicOk returns a tuple with the HeadPic field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHeadPic - -`func (o *TraderProfitHisDetailResult) SetHeadPic(v string)` - -SetHeadPic sets HeadPic field to given value. - -### HasHeadPic - -`func (o *TraderProfitHisDetailResult) HasHeadPic() bool` - -HasHeadPic returns a boolean if a field has been set. - -### GetNickName - -`func (o *TraderProfitHisDetailResult) GetNickName() string` - -GetNickName returns the NickName field if non-nil, zero value otherwise. - -### GetNickNameOk - -`func (o *TraderProfitHisDetailResult) GetNickNameOk() (*string, bool)` - -GetNickNameOk returns a tuple with the NickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNickName - -`func (o *TraderProfitHisDetailResult) SetNickName(v string)` - -SetNickName sets NickName field to given value. - -### HasNickName - -`func (o *TraderProfitHisDetailResult) HasNickName() bool` - -HasNickName returns a boolean if a field has been set. - -### GetProfit - -`func (o *TraderProfitHisDetailResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *TraderProfitHisDetailResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *TraderProfitHisDetailResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *TraderProfitHisDetailResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - -### GetTracerNickName - -`func (o *TraderProfitHisDetailResult) GetTracerNickName() string` - -GetTracerNickName returns the TracerNickName field if non-nil, zero value otherwise. - -### GetTracerNickNameOk - -`func (o *TraderProfitHisDetailResult) GetTracerNickNameOk() (*string, bool)` - -GetTracerNickNameOk returns a tuple with the TracerNickName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTracerNickName - -`func (o *TraderProfitHisDetailResult) SetTracerNickName(v string)` - -SetTracerNickName sets TracerNickName field to given value. - -### HasTracerNickName - -`func (o *TraderProfitHisDetailResult) HasTracerNickName() bool` - -HasTracerNickName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderProfitHisListResult.md b/bitget-goland-sdk-open-api/docs/TraderProfitHisListResult.md deleted file mode 100644 index 87fb1602..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderProfitHisListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# TraderProfitHisListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NextFlag** | Pointer to **bool** | | [optional] -**ResultList** | Pointer to [**[]TraderProfitHisResult**](TraderProfitHisResult.md) | | [optional] - -## Methods - -### NewTraderProfitHisListResult - -`func NewTraderProfitHisListResult() *TraderProfitHisListResult` - -NewTraderProfitHisListResult instantiates a new TraderProfitHisListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderProfitHisListResultWithDefaults - -`func NewTraderProfitHisListResultWithDefaults() *TraderProfitHisListResult` - -NewTraderProfitHisListResultWithDefaults instantiates a new TraderProfitHisListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNextFlag - -`func (o *TraderProfitHisListResult) GetNextFlag() bool` - -GetNextFlag returns the NextFlag field if non-nil, zero value otherwise. - -### GetNextFlagOk - -`func (o *TraderProfitHisListResult) GetNextFlagOk() (*bool, bool)` - -GetNextFlagOk returns a tuple with the NextFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextFlag - -`func (o *TraderProfitHisListResult) SetNextFlag(v bool)` - -SetNextFlag sets NextFlag field to given value. - -### HasNextFlag - -`func (o *TraderProfitHisListResult) HasNextFlag() bool` - -HasNextFlag returns a boolean if a field has been set. - -### GetResultList - -`func (o *TraderProfitHisListResult) GetResultList() []TraderProfitHisResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *TraderProfitHisListResult) GetResultListOk() (*[]TraderProfitHisResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *TraderProfitHisListResult) SetResultList(v []TraderProfitHisResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *TraderProfitHisListResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderProfitHisResult.md b/bitget-goland-sdk-open-api/docs/TraderProfitHisResult.md deleted file mode 100644 index 3a25706f..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderProfitHisResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# TraderProfitHisResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CoinName** | Pointer to **string** | | [optional] -**Date** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderProfitHisResult - -`func NewTraderProfitHisResult() *TraderProfitHisResult` - -NewTraderProfitHisResult instantiates a new TraderProfitHisResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderProfitHisResultWithDefaults - -`func NewTraderProfitHisResultWithDefaults() *TraderProfitHisResult` - -NewTraderProfitHisResultWithDefaults instantiates a new TraderProfitHisResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoinName - -`func (o *TraderProfitHisResult) GetCoinName() string` - -GetCoinName returns the CoinName field if non-nil, zero value otherwise. - -### GetCoinNameOk - -`func (o *TraderProfitHisResult) GetCoinNameOk() (*string, bool)` - -GetCoinNameOk returns a tuple with the CoinName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoinName - -`func (o *TraderProfitHisResult) SetCoinName(v string)` - -SetCoinName sets CoinName field to given value. - -### HasCoinName - -`func (o *TraderProfitHisResult) HasCoinName() bool` - -HasCoinName returns a boolean if a field has been set. - -### GetDate - -`func (o *TraderProfitHisResult) GetDate() string` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *TraderProfitHisResult) GetDateOk() (*string, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *TraderProfitHisResult) SetDate(v string)` - -SetDate sets Date field to given value. - -### HasDate - -`func (o *TraderProfitHisResult) HasDate() bool` - -HasDate returns a boolean if a field has been set. - -### GetProfit - -`func (o *TraderProfitHisResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *TraderProfitHisResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *TraderProfitHisResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *TraderProfitHisResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderSettingLablesResult.md b/bitget-goland-sdk-open-api/docs/TraderSettingLablesResult.md deleted file mode 100644 index 1d1c0662..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderSettingLablesResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# TraderSettingLablesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderSettingLablesResult - -`func NewTraderSettingLablesResult() *TraderSettingLablesResult` - -NewTraderSettingLablesResult instantiates a new TraderSettingLablesResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderSettingLablesResultWithDefaults - -`func NewTraderSettingLablesResultWithDefaults() *TraderSettingLablesResult` - -NewTraderSettingLablesResultWithDefaults instantiates a new TraderSettingLablesResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *TraderSettingLablesResult) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TraderSettingLablesResult) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TraderSettingLablesResult) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *TraderSettingLablesResult) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *TraderSettingLablesResult) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *TraderSettingLablesResult) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *TraderSettingLablesResult) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *TraderSettingLablesResult) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderSettingResult.md b/bitget-goland-sdk-open-api/docs/TraderSettingResult.md deleted file mode 100644 index 12c1e5e2..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderSettingResult.md +++ /dev/null @@ -1,160 +0,0 @@ -# TraderSettingResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Labels** | Pointer to [**[]TraderSettingLablesResult**](TraderSettingLablesResult.md) | | [optional] -**OpenProduct** | Pointer to **bool** | | [optional] -**ShowAssetsMap** | Pointer to **bool** | | [optional] -**ShowEquity** | Pointer to **bool** | | [optional] -**SupportProductCodes** | Pointer to [**[]TraderSettingSupportProductResult**](TraderSettingSupportProductResult.md) | | [optional] - -## Methods - -### NewTraderSettingResult - -`func NewTraderSettingResult() *TraderSettingResult` - -NewTraderSettingResult instantiates a new TraderSettingResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderSettingResultWithDefaults - -`func NewTraderSettingResultWithDefaults() *TraderSettingResult` - -NewTraderSettingResultWithDefaults instantiates a new TraderSettingResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLabels - -`func (o *TraderSettingResult) GetLabels() []TraderSettingLablesResult` - -GetLabels returns the Labels field if non-nil, zero value otherwise. - -### GetLabelsOk - -`func (o *TraderSettingResult) GetLabelsOk() (*[]TraderSettingLablesResult, bool)` - -GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabels - -`func (o *TraderSettingResult) SetLabels(v []TraderSettingLablesResult)` - -SetLabels sets Labels field to given value. - -### HasLabels - -`func (o *TraderSettingResult) HasLabels() bool` - -HasLabels returns a boolean if a field has been set. - -### GetOpenProduct - -`func (o *TraderSettingResult) GetOpenProduct() bool` - -GetOpenProduct returns the OpenProduct field if non-nil, zero value otherwise. - -### GetOpenProductOk - -`func (o *TraderSettingResult) GetOpenProductOk() (*bool, bool)` - -GetOpenProductOk returns a tuple with the OpenProduct field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOpenProduct - -`func (o *TraderSettingResult) SetOpenProduct(v bool)` - -SetOpenProduct sets OpenProduct field to given value. - -### HasOpenProduct - -`func (o *TraderSettingResult) HasOpenProduct() bool` - -HasOpenProduct returns a boolean if a field has been set. - -### GetShowAssetsMap - -`func (o *TraderSettingResult) GetShowAssetsMap() bool` - -GetShowAssetsMap returns the ShowAssetsMap field if non-nil, zero value otherwise. - -### GetShowAssetsMapOk - -`func (o *TraderSettingResult) GetShowAssetsMapOk() (*bool, bool)` - -GetShowAssetsMapOk returns a tuple with the ShowAssetsMap field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShowAssetsMap - -`func (o *TraderSettingResult) SetShowAssetsMap(v bool)` - -SetShowAssetsMap sets ShowAssetsMap field to given value. - -### HasShowAssetsMap - -`func (o *TraderSettingResult) HasShowAssetsMap() bool` - -HasShowAssetsMap returns a boolean if a field has been set. - -### GetShowEquity - -`func (o *TraderSettingResult) GetShowEquity() bool` - -GetShowEquity returns the ShowEquity field if non-nil, zero value otherwise. - -### GetShowEquityOk - -`func (o *TraderSettingResult) GetShowEquityOk() (*bool, bool)` - -GetShowEquityOk returns a tuple with the ShowEquity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShowEquity - -`func (o *TraderSettingResult) SetShowEquity(v bool)` - -SetShowEquity sets ShowEquity field to given value. - -### HasShowEquity - -`func (o *TraderSettingResult) HasShowEquity() bool` - -HasShowEquity returns a boolean if a field has been set. - -### GetSupportProductCodes - -`func (o *TraderSettingResult) GetSupportProductCodes() []TraderSettingSupportProductResult` - -GetSupportProductCodes returns the SupportProductCodes field if non-nil, zero value otherwise. - -### GetSupportProductCodesOk - -`func (o *TraderSettingResult) GetSupportProductCodesOk() (*[]TraderSettingSupportProductResult, bool)` - -GetSupportProductCodesOk returns a tuple with the SupportProductCodes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSupportProductCodes - -`func (o *TraderSettingResult) SetSupportProductCodes(v []TraderSettingSupportProductResult)` - -SetSupportProductCodes sets SupportProductCodes field to given value. - -### HasSupportProductCodes - -`func (o *TraderSettingResult) HasSupportProductCodes() bool` - -HasSupportProductCodes returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderSettingSupportProductResult.md b/bitget-goland-sdk-open-api/docs/TraderSettingSupportProductResult.md deleted file mode 100644 index 2a64bb32..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderSettingSupportProductResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# TraderSettingSupportProductResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OpenCopyTrace** | Pointer to **bool** | | [optional] -**ProductCode** | Pointer to **string** | | [optional] -**ProductName** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderSettingSupportProductResult - -`func NewTraderSettingSupportProductResult() *TraderSettingSupportProductResult` - -NewTraderSettingSupportProductResult instantiates a new TraderSettingSupportProductResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderSettingSupportProductResultWithDefaults - -`func NewTraderSettingSupportProductResultWithDefaults() *TraderSettingSupportProductResult` - -NewTraderSettingSupportProductResultWithDefaults instantiates a new TraderSettingSupportProductResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOpenCopyTrace - -`func (o *TraderSettingSupportProductResult) GetOpenCopyTrace() bool` - -GetOpenCopyTrace returns the OpenCopyTrace field if non-nil, zero value otherwise. - -### GetOpenCopyTraceOk - -`func (o *TraderSettingSupportProductResult) GetOpenCopyTraceOk() (*bool, bool)` - -GetOpenCopyTraceOk returns a tuple with the OpenCopyTrace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOpenCopyTrace - -`func (o *TraderSettingSupportProductResult) SetOpenCopyTrace(v bool)` - -SetOpenCopyTrace sets OpenCopyTrace field to given value. - -### HasOpenCopyTrace - -`func (o *TraderSettingSupportProductResult) HasOpenCopyTrace() bool` - -HasOpenCopyTrace returns a boolean if a field has been set. - -### GetProductCode - -`func (o *TraderSettingSupportProductResult) GetProductCode() string` - -GetProductCode returns the ProductCode field if non-nil, zero value otherwise. - -### GetProductCodeOk - -`func (o *TraderSettingSupportProductResult) GetProductCodeOk() (*string, bool)` - -GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProductCode - -`func (o *TraderSettingSupportProductResult) SetProductCode(v string)` - -SetProductCode sets ProductCode field to given value. - -### HasProductCode - -`func (o *TraderSettingSupportProductResult) HasProductCode() bool` - -HasProductCode returns a boolean if a field has been set. - -### GetProductName - -`func (o *TraderSettingSupportProductResult) GetProductName() string` - -GetProductName returns the ProductName field if non-nil, zero value otherwise. - -### GetProductNameOk - -`func (o *TraderSettingSupportProductResult) GetProductNameOk() (*string, bool)` - -GetProductNameOk returns a tuple with the ProductName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProductName - -`func (o *TraderSettingSupportProductResult) SetProductName(v string)` - -SetProductName sets ProductName field to given value. - -### HasProductName - -`func (o *TraderSettingSupportProductResult) HasProductName() bool` - -HasProductName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderTotalProfitListResult.md b/bitget-goland-sdk-open-api/docs/TraderTotalProfitListResult.md deleted file mode 100644 index 81dfc032..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderTotalProfitListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# TraderTotalProfitListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ProductCode** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderTotalProfitListResult - -`func NewTraderTotalProfitListResult() *TraderTotalProfitListResult` - -NewTraderTotalProfitListResult instantiates a new TraderTotalProfitListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderTotalProfitListResultWithDefaults - -`func NewTraderTotalProfitListResultWithDefaults() *TraderTotalProfitListResult` - -NewTraderTotalProfitListResultWithDefaults instantiates a new TraderTotalProfitListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetProductCode - -`func (o *TraderTotalProfitListResult) GetProductCode() string` - -GetProductCode returns the ProductCode field if non-nil, zero value otherwise. - -### GetProductCodeOk - -`func (o *TraderTotalProfitListResult) GetProductCodeOk() (*string, bool)` - -GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProductCode - -`func (o *TraderTotalProfitListResult) SetProductCode(v string)` - -SetProductCode sets ProductCode field to given value. - -### HasProductCode - -`func (o *TraderTotalProfitListResult) HasProductCode() bool` - -HasProductCode returns a boolean if a field has been set. - -### GetProfit - -`func (o *TraderTotalProfitListResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *TraderTotalProfitListResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *TraderTotalProfitListResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *TraderTotalProfitListResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderTotalProfitResult.md b/bitget-goland-sdk-open-api/docs/TraderTotalProfitResult.md deleted file mode 100644 index 9e7b814d..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderTotalProfitResult.md +++ /dev/null @@ -1,134 +0,0 @@ -# TraderTotalProfitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SumProfit** | Pointer to **string** | | [optional] -**WaitProfit** | Pointer to **string** | | [optional] -**YesterdaySplitProfit** | Pointer to **string** | | [optional] -**YesterdayTimeStamp** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderTotalProfitResult - -`func NewTraderTotalProfitResult() *TraderTotalProfitResult` - -NewTraderTotalProfitResult instantiates a new TraderTotalProfitResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderTotalProfitResultWithDefaults - -`func NewTraderTotalProfitResultWithDefaults() *TraderTotalProfitResult` - -NewTraderTotalProfitResultWithDefaults instantiates a new TraderTotalProfitResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSumProfit - -`func (o *TraderTotalProfitResult) GetSumProfit() string` - -GetSumProfit returns the SumProfit field if non-nil, zero value otherwise. - -### GetSumProfitOk - -`func (o *TraderTotalProfitResult) GetSumProfitOk() (*string, bool)` - -GetSumProfitOk returns a tuple with the SumProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSumProfit - -`func (o *TraderTotalProfitResult) SetSumProfit(v string)` - -SetSumProfit sets SumProfit field to given value. - -### HasSumProfit - -`func (o *TraderTotalProfitResult) HasSumProfit() bool` - -HasSumProfit returns a boolean if a field has been set. - -### GetWaitProfit - -`func (o *TraderTotalProfitResult) GetWaitProfit() string` - -GetWaitProfit returns the WaitProfit field if non-nil, zero value otherwise. - -### GetWaitProfitOk - -`func (o *TraderTotalProfitResult) GetWaitProfitOk() (*string, bool)` - -GetWaitProfitOk returns a tuple with the WaitProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWaitProfit - -`func (o *TraderTotalProfitResult) SetWaitProfit(v string)` - -SetWaitProfit sets WaitProfit field to given value. - -### HasWaitProfit - -`func (o *TraderTotalProfitResult) HasWaitProfit() bool` - -HasWaitProfit returns a boolean if a field has been set. - -### GetYesterdaySplitProfit - -`func (o *TraderTotalProfitResult) GetYesterdaySplitProfit() string` - -GetYesterdaySplitProfit returns the YesterdaySplitProfit field if non-nil, zero value otherwise. - -### GetYesterdaySplitProfitOk - -`func (o *TraderTotalProfitResult) GetYesterdaySplitProfitOk() (*string, bool)` - -GetYesterdaySplitProfitOk returns a tuple with the YesterdaySplitProfit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYesterdaySplitProfit - -`func (o *TraderTotalProfitResult) SetYesterdaySplitProfit(v string)` - -SetYesterdaySplitProfit sets YesterdaySplitProfit field to given value. - -### HasYesterdaySplitProfit - -`func (o *TraderTotalProfitResult) HasYesterdaySplitProfit() bool` - -HasYesterdaySplitProfit returns a boolean if a field has been set. - -### GetYesterdayTimeStamp - -`func (o *TraderTotalProfitResult) GetYesterdayTimeStamp() string` - -GetYesterdayTimeStamp returns the YesterdayTimeStamp field if non-nil, zero value otherwise. - -### GetYesterdayTimeStampOk - -`func (o *TraderTotalProfitResult) GetYesterdayTimeStampOk() (*string, bool)` - -GetYesterdayTimeStampOk returns a tuple with the YesterdayTimeStamp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYesterdayTimeStamp - -`func (o *TraderTotalProfitResult) SetYesterdayTimeStamp(v string)` - -SetYesterdayTimeStamp sets YesterdayTimeStamp field to given value. - -### HasYesterdayTimeStamp - -`func (o *TraderTotalProfitResult) HasYesterdayTimeStamp() bool` - -HasYesterdayTimeStamp returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailListResult.md b/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailListResult.md deleted file mode 100644 index ef43a667..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailListResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# TraderWaitProfitDetailListResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NextFlag** | Pointer to **bool** | | [optional] -**ResultList** | Pointer to [**[]TraderWaitProfitDetailResult**](TraderWaitProfitDetailResult.md) | | [optional] - -## Methods - -### NewTraderWaitProfitDetailListResult - -`func NewTraderWaitProfitDetailListResult() *TraderWaitProfitDetailListResult` - -NewTraderWaitProfitDetailListResult instantiates a new TraderWaitProfitDetailListResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderWaitProfitDetailListResultWithDefaults - -`func NewTraderWaitProfitDetailListResultWithDefaults() *TraderWaitProfitDetailListResult` - -NewTraderWaitProfitDetailListResultWithDefaults instantiates a new TraderWaitProfitDetailListResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNextFlag - -`func (o *TraderWaitProfitDetailListResult) GetNextFlag() bool` - -GetNextFlag returns the NextFlag field if non-nil, zero value otherwise. - -### GetNextFlagOk - -`func (o *TraderWaitProfitDetailListResult) GetNextFlagOk() (*bool, bool)` - -GetNextFlagOk returns a tuple with the NextFlag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNextFlag - -`func (o *TraderWaitProfitDetailListResult) SetNextFlag(v bool)` - -SetNextFlag sets NextFlag field to given value. - -### HasNextFlag - -`func (o *TraderWaitProfitDetailListResult) HasNextFlag() bool` - -HasNextFlag returns a boolean if a field has been set. - -### GetResultList - -`func (o *TraderWaitProfitDetailListResult) GetResultList() []TraderWaitProfitDetailResult` - -GetResultList returns the ResultList field if non-nil, zero value otherwise. - -### GetResultListOk - -`func (o *TraderWaitProfitDetailListResult) GetResultListOk() (*[]TraderWaitProfitDetailResult, bool)` - -GetResultListOk returns a tuple with the ResultList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultList - -`func (o *TraderWaitProfitDetailListResult) SetResultList(v []TraderWaitProfitDetailResult)` - -SetResultList sets ResultList field to given value. - -### HasResultList - -`func (o *TraderWaitProfitDetailListResult) HasResultList() bool` - -HasResultList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailResult.md b/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailResult.md deleted file mode 100644 index 3bc14f8a..00000000 --- a/bitget-goland-sdk-open-api/docs/TraderWaitProfitDetailResult.md +++ /dev/null @@ -1,108 +0,0 @@ -# TraderWaitProfitDetailResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CoinName** | Pointer to **string** | | [optional] -**DistributeRatio** | Pointer to **string** | | [optional] -**Profit** | Pointer to **string** | | [optional] - -## Methods - -### NewTraderWaitProfitDetailResult - -`func NewTraderWaitProfitDetailResult() *TraderWaitProfitDetailResult` - -NewTraderWaitProfitDetailResult instantiates a new TraderWaitProfitDetailResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTraderWaitProfitDetailResultWithDefaults - -`func NewTraderWaitProfitDetailResultWithDefaults() *TraderWaitProfitDetailResult` - -NewTraderWaitProfitDetailResultWithDefaults instantiates a new TraderWaitProfitDetailResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCoinName - -`func (o *TraderWaitProfitDetailResult) GetCoinName() string` - -GetCoinName returns the CoinName field if non-nil, zero value otherwise. - -### GetCoinNameOk - -`func (o *TraderWaitProfitDetailResult) GetCoinNameOk() (*string, bool)` - -GetCoinNameOk returns a tuple with the CoinName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCoinName - -`func (o *TraderWaitProfitDetailResult) SetCoinName(v string)` - -SetCoinName sets CoinName field to given value. - -### HasCoinName - -`func (o *TraderWaitProfitDetailResult) HasCoinName() bool` - -HasCoinName returns a boolean if a field has been set. - -### GetDistributeRatio - -`func (o *TraderWaitProfitDetailResult) GetDistributeRatio() string` - -GetDistributeRatio returns the DistributeRatio field if non-nil, zero value otherwise. - -### GetDistributeRatioOk - -`func (o *TraderWaitProfitDetailResult) GetDistributeRatioOk() (*string, bool)` - -GetDistributeRatioOk returns a tuple with the DistributeRatio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistributeRatio - -`func (o *TraderWaitProfitDetailResult) SetDistributeRatio(v string)` - -SetDistributeRatio sets DistributeRatio field to given value. - -### HasDistributeRatio - -`func (o *TraderWaitProfitDetailResult) HasDistributeRatio() bool` - -HasDistributeRatio returns a boolean if a field has been set. - -### GetProfit - -`func (o *TraderWaitProfitDetailResult) GetProfit() string` - -GetProfit returns the Profit field if non-nil, zero value otherwise. - -### GetProfitOk - -`func (o *TraderWaitProfitDetailResult) GetProfitOk() (*string, bool)` - -GetProfitOk returns a tuple with the Profit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfit - -`func (o *TraderWaitProfitDetailResult) SetProfit(v string)` - -SetProfit sets Profit field to given value. - -### HasProfit - -`func (o *TraderWaitProfitDetailResult) HasProfit() bool` - -HasProfit returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/UpdateTpslRequest.md b/bitget-goland-sdk-open-api/docs/UpdateTpslRequest.md deleted file mode 100644 index b2f04b24..00000000 --- a/bitget-goland-sdk-open-api/docs/UpdateTpslRequest.md +++ /dev/null @@ -1,93 +0,0 @@ -# UpdateTpslRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StopLossPrice** | **string** | stopLossPrice | -**StopProfitPrice** | **string** | stopProfitPrice | -**TrackingNo** | **string** | trackingNo | - -## Methods - -### NewUpdateTpslRequest - -`func NewUpdateTpslRequest(stopLossPrice string, stopProfitPrice string, trackingNo string, ) *UpdateTpslRequest` - -NewUpdateTpslRequest instantiates a new UpdateTpslRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateTpslRequestWithDefaults - -`func NewUpdateTpslRequestWithDefaults() *UpdateTpslRequest` - -NewUpdateTpslRequestWithDefaults instantiates a new UpdateTpslRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStopLossPrice - -`func (o *UpdateTpslRequest) GetStopLossPrice() string` - -GetStopLossPrice returns the StopLossPrice field if non-nil, zero value otherwise. - -### GetStopLossPriceOk - -`func (o *UpdateTpslRequest) GetStopLossPriceOk() (*string, bool)` - -GetStopLossPriceOk returns a tuple with the StopLossPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopLossPrice - -`func (o *UpdateTpslRequest) SetStopLossPrice(v string)` - -SetStopLossPrice sets StopLossPrice field to given value. - - -### GetStopProfitPrice - -`func (o *UpdateTpslRequest) GetStopProfitPrice() string` - -GetStopProfitPrice returns the StopProfitPrice field if non-nil, zero value otherwise. - -### GetStopProfitPriceOk - -`func (o *UpdateTpslRequest) GetStopProfitPriceOk() (*string, bool)` - -GetStopProfitPriceOk returns a tuple with the StopProfitPrice field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStopProfitPrice - -`func (o *UpdateTpslRequest) SetStopProfitPrice(v string)` - -SetStopProfitPrice sets StopProfitPrice field to given value. - - -### GetTrackingNo - -`func (o *UpdateTpslRequest) GetTrackingNo() string` - -GetTrackingNo returns the TrackingNo field if non-nil, zero value otherwise. - -### GetTrackingNoOk - -`func (o *UpdateTpslRequest) GetTrackingNoOk() (*string, bool)` - -GetTrackingNoOk returns a tuple with the TrackingNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTrackingNo - -`func (o *UpdateTpslRequest) SetTrackingNo(v string)` - -SetTrackingNo sets TrackingNo field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/docs/WaitProfitDetailListRequest.md b/bitget-goland-sdk-open-api/docs/WaitProfitDetailListRequest.md deleted file mode 100644 index 03a954d5..00000000 --- a/bitget-goland-sdk-open-api/docs/WaitProfitDetailListRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# WaitProfitDetailListRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PageNo** | Pointer to **string** | pageNo | [optional] -**PageSize** | Pointer to **string** | pageSize | [optional] - -## Methods - -### NewWaitProfitDetailListRequest - -`func NewWaitProfitDetailListRequest() *WaitProfitDetailListRequest` - -NewWaitProfitDetailListRequest instantiates a new WaitProfitDetailListRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWaitProfitDetailListRequestWithDefaults - -`func NewWaitProfitDetailListRequestWithDefaults() *WaitProfitDetailListRequest` - -NewWaitProfitDetailListRequestWithDefaults instantiates a new WaitProfitDetailListRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPageNo - -`func (o *WaitProfitDetailListRequest) GetPageNo() string` - -GetPageNo returns the PageNo field if non-nil, zero value otherwise. - -### GetPageNoOk - -`func (o *WaitProfitDetailListRequest) GetPageNoOk() (*string, bool)` - -GetPageNoOk returns a tuple with the PageNo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNo - -`func (o *WaitProfitDetailListRequest) SetPageNo(v string)` - -SetPageNo sets PageNo field to given value. - -### HasPageNo - -`func (o *WaitProfitDetailListRequest) HasPageNo() bool` - -HasPageNo returns a boolean if a field has been set. - -### GetPageSize - -`func (o *WaitProfitDetailListRequest) GetPageSize() string` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *WaitProfitDetailListRequest) GetPageSizeOk() (*string, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *WaitProfitDetailListRequest) SetPageSize(v string)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *WaitProfitDetailListRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/bitget-goland-sdk-open-api/git_push.sh b/bitget-goland-sdk-open-api/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/bitget-goland-sdk-open-api/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/bitget-goland-sdk-open-api/go.mod b/bitget-goland-sdk-open-api/go.mod deleted file mode 100644 index 13c89e62..00000000 --- a/bitget-goland-sdk-open-api/go.mod +++ /dev/null @@ -1,9 +0,0 @@ -module github.com/bitget/openapi - -go 1.13 - -require ( - github.com/stretchr/testify v1.4.0 - golang.org/x/net v0.6.0 // indirect - golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558 -) diff --git a/bitget-goland-sdk-open-api/go.sum b/bitget-goland-sdk-open-api/go.sum deleted file mode 100644 index 80e28942..00000000 --- a/bitget-goland-sdk-open-api/go.sum +++ /dev/null @@ -1,387 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0 h1:L4ZwwTvKW9gr0ZMS1yrHD9GZhIuVjOBBnaKH+SPQK0Q= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558 h1:D7nTwh4J0i+5mW4Zjzn5omvlr6YBcWywE6KOcatyNxY= -golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_assets_population_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_assets_population_result.go deleted file mode 100644 index f36d8da7..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_assets_population_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginCrossAssetsPopulationResult struct for ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -type ApiResponseResultOfListOfMarginCrossAssetsPopulationResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginCrossAssetsPopulationResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginCrossAssetsPopulationResult ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -// NewApiResponseResultOfListOfMarginCrossAssetsPopulationResult instantiates a new ApiResponseResultOfListOfMarginCrossAssetsPopulationResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginCrossAssetsPopulationResult() *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - this := ApiResponseResultOfListOfMarginCrossAssetsPopulationResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginCrossAssetsPopulationResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossAssetsPopulationResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginCrossAssetsPopulationResultWithDefaults() *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - this := ApiResponseResultOfListOfMarginCrossAssetsPopulationResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetData() []MarginCrossAssetsPopulationResult { - if o == nil || isNil(o.Data) { - var ret []MarginCrossAssetsPopulationResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetDataOk() ([]MarginCrossAssetsPopulationResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginCrossAssetsPopulationResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetData(v []MarginCrossAssetsPopulationResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginCrossAssetsPopulationResult := _ApiResponseResultOfListOfMarginCrossAssetsPopulationResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginCrossAssetsPopulationResult); err == nil { - *o = ApiResponseResultOfListOfMarginCrossAssetsPopulationResult(varApiResponseResultOfListOfMarginCrossAssetsPopulationResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult struct { - value *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) Get() *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) Set(val *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult(val *ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) *NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - return &NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginCrossAssetsPopulationResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_level_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_level_result.go deleted file mode 100644 index 9537d3a0..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_level_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginCrossLevelResult struct for ApiResponseResultOfListOfMarginCrossLevelResult -type ApiResponseResultOfListOfMarginCrossLevelResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginCrossLevelResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginCrossLevelResult ApiResponseResultOfListOfMarginCrossLevelResult - -// NewApiResponseResultOfListOfMarginCrossLevelResult instantiates a new ApiResponseResultOfListOfMarginCrossLevelResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginCrossLevelResult() *ApiResponseResultOfListOfMarginCrossLevelResult { - this := ApiResponseResultOfListOfMarginCrossLevelResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginCrossLevelResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossLevelResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginCrossLevelResultWithDefaults() *ApiResponseResultOfListOfMarginCrossLevelResult { - this := ApiResponseResultOfListOfMarginCrossLevelResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetData() []MarginCrossLevelResult { - if o == nil || isNil(o.Data) { - var ret []MarginCrossLevelResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetDataOk() ([]MarginCrossLevelResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginCrossLevelResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetData(v []MarginCrossLevelResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginCrossLevelResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginCrossLevelResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginCrossLevelResult := _ApiResponseResultOfListOfMarginCrossLevelResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginCrossLevelResult); err == nil { - *o = ApiResponseResultOfListOfMarginCrossLevelResult(varApiResponseResultOfListOfMarginCrossLevelResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginCrossLevelResult struct { - value *ApiResponseResultOfListOfMarginCrossLevelResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginCrossLevelResult) Get() *ApiResponseResultOfListOfMarginCrossLevelResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginCrossLevelResult) Set(val *ApiResponseResultOfListOfMarginCrossLevelResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginCrossLevelResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginCrossLevelResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginCrossLevelResult(val *ApiResponseResultOfListOfMarginCrossLevelResult) *NullableApiResponseResultOfListOfMarginCrossLevelResult { - return &NullableApiResponseResultOfListOfMarginCrossLevelResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginCrossLevelResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginCrossLevelResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_rate_and_limit_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_rate_and_limit_result.go deleted file mode 100644 index b440cc25..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_cross_rate_and_limit_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginCrossRateAndLimitResult struct for ApiResponseResultOfListOfMarginCrossRateAndLimitResult -type ApiResponseResultOfListOfMarginCrossRateAndLimitResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginCrossRateAndLimitResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginCrossRateAndLimitResult ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -// NewApiResponseResultOfListOfMarginCrossRateAndLimitResult instantiates a new ApiResponseResultOfListOfMarginCrossRateAndLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginCrossRateAndLimitResult() *ApiResponseResultOfListOfMarginCrossRateAndLimitResult { - this := ApiResponseResultOfListOfMarginCrossRateAndLimitResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginCrossRateAndLimitResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginCrossRateAndLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginCrossRateAndLimitResultWithDefaults() *ApiResponseResultOfListOfMarginCrossRateAndLimitResult { - this := ApiResponseResultOfListOfMarginCrossRateAndLimitResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetData() []MarginCrossRateAndLimitResult { - if o == nil || isNil(o.Data) { - var ret []MarginCrossRateAndLimitResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetDataOk() ([]MarginCrossRateAndLimitResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginCrossRateAndLimitResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetData(v []MarginCrossRateAndLimitResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginCrossRateAndLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginCrossRateAndLimitResult := _ApiResponseResultOfListOfMarginCrossRateAndLimitResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginCrossRateAndLimitResult); err == nil { - *o = ApiResponseResultOfListOfMarginCrossRateAndLimitResult(varApiResponseResultOfListOfMarginCrossRateAndLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult struct { - value *ApiResponseResultOfListOfMarginCrossRateAndLimitResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) Get() *ApiResponseResultOfListOfMarginCrossRateAndLimitResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) Set(val *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginCrossRateAndLimitResult(val *ApiResponseResultOfListOfMarginCrossRateAndLimitResult) *NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult { - return &NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginCrossRateAndLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_population_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_population_result.go deleted file mode 100644 index 402fc408..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_population_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult struct for ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -type ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginIsolatedAssetsPopulationResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - -// NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult() *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - this := ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - this := ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetData() []MarginIsolatedAssetsPopulationResult { - if o == nil || isNil(o.Data) { - var ret []MarginIsolatedAssetsPopulationResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetDataOk() ([]MarginIsolatedAssetsPopulationResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginIsolatedAssetsPopulationResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetData(v []MarginIsolatedAssetsPopulationResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult := _ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult); err == nil { - *o = ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult(varApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult struct { - value *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) Get() *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) Set(val *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult(val *ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) *NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - return &NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_risk_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_risk_result.go deleted file mode 100644 index 50990689..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_assets_risk_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult struct for ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -type ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginIsolatedAssetsRiskResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - -// NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResult instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResult() *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - this := ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginIsolatedAssetsRiskResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - this := ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetData() []MarginIsolatedAssetsRiskResult { - if o == nil || isNil(o.Data) { - var ret []MarginIsolatedAssetsRiskResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetDataOk() ([]MarginIsolatedAssetsRiskResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginIsolatedAssetsRiskResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetData(v []MarginIsolatedAssetsRiskResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginIsolatedAssetsRiskResult := _ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginIsolatedAssetsRiskResult); err == nil { - *o = ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult(varApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult struct { - value *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) Get() *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) Set(val *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult(val *ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) *NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - return &NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_level_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_level_result.go deleted file mode 100644 index 2fdd0f2f..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_level_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginIsolatedLevelResult struct for ApiResponseResultOfListOfMarginIsolatedLevelResult -type ApiResponseResultOfListOfMarginIsolatedLevelResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginIsolatedLevelResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginIsolatedLevelResult ApiResponseResultOfListOfMarginIsolatedLevelResult - -// NewApiResponseResultOfListOfMarginIsolatedLevelResult instantiates a new ApiResponseResultOfListOfMarginIsolatedLevelResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginIsolatedLevelResult() *ApiResponseResultOfListOfMarginIsolatedLevelResult { - this := ApiResponseResultOfListOfMarginIsolatedLevelResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginIsolatedLevelResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedLevelResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginIsolatedLevelResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedLevelResult { - this := ApiResponseResultOfListOfMarginIsolatedLevelResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetData() []MarginIsolatedLevelResult { - if o == nil || isNil(o.Data) { - var ret []MarginIsolatedLevelResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetDataOk() ([]MarginIsolatedLevelResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginIsolatedLevelResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetData(v []MarginIsolatedLevelResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginIsolatedLevelResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginIsolatedLevelResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginIsolatedLevelResult := _ApiResponseResultOfListOfMarginIsolatedLevelResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginIsolatedLevelResult); err == nil { - *o = ApiResponseResultOfListOfMarginIsolatedLevelResult(varApiResponseResultOfListOfMarginIsolatedLevelResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginIsolatedLevelResult struct { - value *ApiResponseResultOfListOfMarginIsolatedLevelResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedLevelResult) Get() *ApiResponseResultOfListOfMarginIsolatedLevelResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedLevelResult) Set(val *ApiResponseResultOfListOfMarginIsolatedLevelResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedLevelResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedLevelResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginIsolatedLevelResult(val *ApiResponseResultOfListOfMarginIsolatedLevelResult) *NullableApiResponseResultOfListOfMarginIsolatedLevelResult { - return &NullableApiResponseResultOfListOfMarginIsolatedLevelResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedLevelResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedLevelResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.go deleted file mode 100644 index 6af089d4..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult struct for ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -type ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginIsolatedRateAndLimitResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -// NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResult instantiates a new ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResult() *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - this := ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginIsolatedRateAndLimitResultWithDefaults() *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - this := ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetData() []MarginIsolatedRateAndLimitResult { - if o == nil || isNil(o.Data) { - var ret []MarginIsolatedRateAndLimitResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetDataOk() ([]MarginIsolatedRateAndLimitResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginIsolatedRateAndLimitResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetData(v []MarginIsolatedRateAndLimitResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginIsolatedRateAndLimitResult := _ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginIsolatedRateAndLimitResult); err == nil { - *o = ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult(varApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult struct { - value *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) Get() *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) Set(val *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult(val *ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) *NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - return &NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_system_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_system_result.go deleted file mode 100644 index 70fc417f..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_margin_system_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfMarginSystemResult struct for ApiResponseResultOfListOfMarginSystemResult -type ApiResponseResultOfListOfMarginSystemResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []MarginSystemResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfMarginSystemResult ApiResponseResultOfListOfMarginSystemResult - -// NewApiResponseResultOfListOfMarginSystemResult instantiates a new ApiResponseResultOfListOfMarginSystemResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfMarginSystemResult() *ApiResponseResultOfListOfMarginSystemResult { - this := ApiResponseResultOfListOfMarginSystemResult{} - return &this -} - -// NewApiResponseResultOfListOfMarginSystemResultWithDefaults instantiates a new ApiResponseResultOfListOfMarginSystemResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfMarginSystemResultWithDefaults() *ApiResponseResultOfListOfMarginSystemResult { - this := ApiResponseResultOfListOfMarginSystemResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfMarginSystemResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetData() []MarginSystemResult { - if o == nil || isNil(o.Data) { - var ret []MarginSystemResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetDataOk() ([]MarginSystemResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []MarginSystemResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfMarginSystemResult) SetData(v []MarginSystemResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfMarginSystemResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfMarginSystemResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfMarginSystemResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfMarginSystemResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfMarginSystemResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfMarginSystemResult := _ApiResponseResultOfListOfMarginSystemResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfMarginSystemResult); err == nil { - *o = ApiResponseResultOfListOfMarginSystemResult(varApiResponseResultOfListOfMarginSystemResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfMarginSystemResult struct { - value *ApiResponseResultOfListOfMarginSystemResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfMarginSystemResult) Get() *ApiResponseResultOfListOfMarginSystemResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfMarginSystemResult) Set(val *ApiResponseResultOfListOfMarginSystemResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfMarginSystemResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfMarginSystemResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfMarginSystemResult(val *ApiResponseResultOfListOfMarginSystemResult) *NullableApiResponseResultOfListOfMarginSystemResult { - return &NullableApiResponseResultOfListOfMarginSystemResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfMarginSystemResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfMarginSystemResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_spot_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_spot_info_result.go deleted file mode 100644 index 9aac59a9..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_spot_info_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfSpotInfoResult struct for ApiResponseResultOfListOfSpotInfoResult -type ApiResponseResultOfListOfSpotInfoResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []SpotInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfSpotInfoResult ApiResponseResultOfListOfSpotInfoResult - -// NewApiResponseResultOfListOfSpotInfoResult instantiates a new ApiResponseResultOfListOfSpotInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfSpotInfoResult() *ApiResponseResultOfListOfSpotInfoResult { - this := ApiResponseResultOfListOfSpotInfoResult{} - return &this -} - -// NewApiResponseResultOfListOfSpotInfoResultWithDefaults instantiates a new ApiResponseResultOfListOfSpotInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfSpotInfoResultWithDefaults() *ApiResponseResultOfListOfSpotInfoResult { - this := ApiResponseResultOfListOfSpotInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfSpotInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetData() []SpotInfoResult { - if o == nil || isNil(o.Data) { - var ret []SpotInfoResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetDataOk() ([]SpotInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []SpotInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfSpotInfoResult) SetData(v []SpotInfoResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfSpotInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfSpotInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfSpotInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfSpotInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfSpotInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfSpotInfoResult := _ApiResponseResultOfListOfSpotInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfSpotInfoResult); err == nil { - *o = ApiResponseResultOfListOfSpotInfoResult(varApiResponseResultOfListOfSpotInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfSpotInfoResult struct { - value *ApiResponseResultOfListOfSpotInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfSpotInfoResult) Get() *ApiResponseResultOfListOfSpotInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfSpotInfoResult) Set(val *ApiResponseResultOfListOfSpotInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfSpotInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfSpotInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfSpotInfoResult(val *ApiResponseResultOfListOfSpotInfoResult) *NullableApiResponseResultOfListOfSpotInfoResult { - return &NullableApiResponseResultOfListOfSpotInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfSpotInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfSpotInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_trader_total_profit_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_trader_total_profit_list_result.go deleted file mode 100644 index 01652880..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_list_of_trader_total_profit_list_result.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfListOfTraderTotalProfitListResult struct for ApiResponseResultOfListOfTraderTotalProfitListResult -type ApiResponseResultOfListOfTraderTotalProfitListResult struct { - // code - Code *string `json:"code,omitempty"` - // data - Data []TraderTotalProfitListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfListOfTraderTotalProfitListResult ApiResponseResultOfListOfTraderTotalProfitListResult - -// NewApiResponseResultOfListOfTraderTotalProfitListResult instantiates a new ApiResponseResultOfListOfTraderTotalProfitListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfListOfTraderTotalProfitListResult() *ApiResponseResultOfListOfTraderTotalProfitListResult { - this := ApiResponseResultOfListOfTraderTotalProfitListResult{} - return &this -} - -// NewApiResponseResultOfListOfTraderTotalProfitListResultWithDefaults instantiates a new ApiResponseResultOfListOfTraderTotalProfitListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfListOfTraderTotalProfitListResultWithDefaults() *ApiResponseResultOfListOfTraderTotalProfitListResult { - this := ApiResponseResultOfListOfTraderTotalProfitListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetData() []TraderTotalProfitListResult { - if o == nil || isNil(o.Data) { - var ret []TraderTotalProfitListResult - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetDataOk() ([]TraderTotalProfitListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []TraderTotalProfitListResult and assigns it to the Data field. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetData(v []TraderTotalProfitListResult) { - o.Data = v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfListOfTraderTotalProfitListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfListOfTraderTotalProfitListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfListOfTraderTotalProfitListResult := _ApiResponseResultOfListOfTraderTotalProfitListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfListOfTraderTotalProfitListResult); err == nil { - *o = ApiResponseResultOfListOfTraderTotalProfitListResult(varApiResponseResultOfListOfTraderTotalProfitListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfListOfTraderTotalProfitListResult struct { - value *ApiResponseResultOfListOfTraderTotalProfitListResult - isSet bool -} - -func (v NullableApiResponseResultOfListOfTraderTotalProfitListResult) Get() *ApiResponseResultOfListOfTraderTotalProfitListResult { - return v.value -} - -func (v *NullableApiResponseResultOfListOfTraderTotalProfitListResult) Set(val *ApiResponseResultOfListOfTraderTotalProfitListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfListOfTraderTotalProfitListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfListOfTraderTotalProfitListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfListOfTraderTotalProfitListResult(val *ApiResponseResultOfListOfTraderTotalProfitListResult) *NullableApiResponseResultOfListOfTraderTotalProfitListResult { - return &NullableApiResponseResultOfListOfTraderTotalProfitListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfListOfTraderTotalProfitListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfListOfTraderTotalProfitListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_cancel_order_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_cancel_order_result.go deleted file mode 100644 index 83c2f76c..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_cancel_order_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginBatchCancelOrderResult struct for ApiResponseResultOfMarginBatchCancelOrderResult -type ApiResponseResultOfMarginBatchCancelOrderResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginBatchCancelOrderResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginBatchCancelOrderResult ApiResponseResultOfMarginBatchCancelOrderResult - -// NewApiResponseResultOfMarginBatchCancelOrderResult instantiates a new ApiResponseResultOfMarginBatchCancelOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginBatchCancelOrderResult() *ApiResponseResultOfMarginBatchCancelOrderResult { - this := ApiResponseResultOfMarginBatchCancelOrderResult{} - return &this -} - -// NewApiResponseResultOfMarginBatchCancelOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginBatchCancelOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginBatchCancelOrderResultWithDefaults() *ApiResponseResultOfMarginBatchCancelOrderResult { - this := ApiResponseResultOfMarginBatchCancelOrderResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetData() MarginBatchCancelOrderResult { - if o == nil || isNil(o.Data) { - var ret MarginBatchCancelOrderResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetDataOk() (*MarginBatchCancelOrderResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginBatchCancelOrderResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetData(v MarginBatchCancelOrderResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginBatchCancelOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginBatchCancelOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginBatchCancelOrderResult := _ApiResponseResultOfMarginBatchCancelOrderResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginBatchCancelOrderResult); err == nil { - *o = ApiResponseResultOfMarginBatchCancelOrderResult(varApiResponseResultOfMarginBatchCancelOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginBatchCancelOrderResult struct { - value *ApiResponseResultOfMarginBatchCancelOrderResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginBatchCancelOrderResult) Get() *ApiResponseResultOfMarginBatchCancelOrderResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginBatchCancelOrderResult) Set(val *ApiResponseResultOfMarginBatchCancelOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginBatchCancelOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginBatchCancelOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginBatchCancelOrderResult(val *ApiResponseResultOfMarginBatchCancelOrderResult) *NullableApiResponseResultOfMarginBatchCancelOrderResult { - return &NullableApiResponseResultOfMarginBatchCancelOrderResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginBatchCancelOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginBatchCancelOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_place_order_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_place_order_result.go deleted file mode 100644 index cada8a0e..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_batch_place_order_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginBatchPlaceOrderResult struct for ApiResponseResultOfMarginBatchPlaceOrderResult -type ApiResponseResultOfMarginBatchPlaceOrderResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginBatchPlaceOrderResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginBatchPlaceOrderResult ApiResponseResultOfMarginBatchPlaceOrderResult - -// NewApiResponseResultOfMarginBatchPlaceOrderResult instantiates a new ApiResponseResultOfMarginBatchPlaceOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginBatchPlaceOrderResult() *ApiResponseResultOfMarginBatchPlaceOrderResult { - this := ApiResponseResultOfMarginBatchPlaceOrderResult{} - return &this -} - -// NewApiResponseResultOfMarginBatchPlaceOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginBatchPlaceOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginBatchPlaceOrderResultWithDefaults() *ApiResponseResultOfMarginBatchPlaceOrderResult { - this := ApiResponseResultOfMarginBatchPlaceOrderResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetData() MarginBatchPlaceOrderResult { - if o == nil || isNil(o.Data) { - var ret MarginBatchPlaceOrderResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetDataOk() (*MarginBatchPlaceOrderResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginBatchPlaceOrderResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetData(v MarginBatchPlaceOrderResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginBatchPlaceOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginBatchPlaceOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginBatchPlaceOrderResult := _ApiResponseResultOfMarginBatchPlaceOrderResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginBatchPlaceOrderResult); err == nil { - *o = ApiResponseResultOfMarginBatchPlaceOrderResult(varApiResponseResultOfMarginBatchPlaceOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginBatchPlaceOrderResult struct { - value *ApiResponseResultOfMarginBatchPlaceOrderResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginBatchPlaceOrderResult) Get() *ApiResponseResultOfMarginBatchPlaceOrderResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginBatchPlaceOrderResult) Set(val *ApiResponseResultOfMarginBatchPlaceOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginBatchPlaceOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginBatchPlaceOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginBatchPlaceOrderResult(val *ApiResponseResultOfMarginBatchPlaceOrderResult) *NullableApiResponseResultOfMarginBatchPlaceOrderResult { - return &NullableApiResponseResultOfMarginBatchPlaceOrderResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginBatchPlaceOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginBatchPlaceOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_result.go deleted file mode 100644 index 8e66c355..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossAssetsResult struct for ApiResponseResultOfMarginCrossAssetsResult -type ApiResponseResultOfMarginCrossAssetsResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossAssetsResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossAssetsResult ApiResponseResultOfMarginCrossAssetsResult - -// NewApiResponseResultOfMarginCrossAssetsResult instantiates a new ApiResponseResultOfMarginCrossAssetsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossAssetsResult() *ApiResponseResultOfMarginCrossAssetsResult { - this := ApiResponseResultOfMarginCrossAssetsResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossAssetsResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossAssetsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossAssetsResultWithDefaults() *ApiResponseResultOfMarginCrossAssetsResult { - this := ApiResponseResultOfMarginCrossAssetsResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossAssetsResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetData() MarginCrossAssetsResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossAssetsResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetDataOk() (*MarginCrossAssetsResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossAssetsResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossAssetsResult) SetData(v MarginCrossAssetsResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossAssetsResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossAssetsResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossAssetsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossAssetsResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossAssetsResult := _ApiResponseResultOfMarginCrossAssetsResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossAssetsResult); err == nil { - *o = ApiResponseResultOfMarginCrossAssetsResult(varApiResponseResultOfMarginCrossAssetsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossAssetsResult struct { - value *ApiResponseResultOfMarginCrossAssetsResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossAssetsResult) Get() *ApiResponseResultOfMarginCrossAssetsResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsResult) Set(val *ApiResponseResultOfMarginCrossAssetsResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossAssetsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossAssetsResult(val *ApiResponseResultOfMarginCrossAssetsResult) *NullableApiResponseResultOfMarginCrossAssetsResult { - return &NullableApiResponseResultOfMarginCrossAssetsResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossAssetsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_risk_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_risk_result.go deleted file mode 100644 index c2ee1ac3..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_assets_risk_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossAssetsRiskResult struct for ApiResponseResultOfMarginCrossAssetsRiskResult -type ApiResponseResultOfMarginCrossAssetsRiskResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossAssetsRiskResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossAssetsRiskResult ApiResponseResultOfMarginCrossAssetsRiskResult - -// NewApiResponseResultOfMarginCrossAssetsRiskResult instantiates a new ApiResponseResultOfMarginCrossAssetsRiskResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossAssetsRiskResult() *ApiResponseResultOfMarginCrossAssetsRiskResult { - this := ApiResponseResultOfMarginCrossAssetsRiskResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossAssetsRiskResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossAssetsRiskResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossAssetsRiskResultWithDefaults() *ApiResponseResultOfMarginCrossAssetsRiskResult { - this := ApiResponseResultOfMarginCrossAssetsRiskResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetData() MarginCrossAssetsRiskResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossAssetsRiskResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetDataOk() (*MarginCrossAssetsRiskResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossAssetsRiskResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetData(v MarginCrossAssetsRiskResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossAssetsRiskResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossAssetsRiskResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossAssetsRiskResult := _ApiResponseResultOfMarginCrossAssetsRiskResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossAssetsRiskResult); err == nil { - *o = ApiResponseResultOfMarginCrossAssetsRiskResult(varApiResponseResultOfMarginCrossAssetsRiskResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossAssetsRiskResult struct { - value *ApiResponseResultOfMarginCrossAssetsRiskResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossAssetsRiskResult) Get() *ApiResponseResultOfMarginCrossAssetsRiskResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsRiskResult) Set(val *ApiResponseResultOfMarginCrossAssetsRiskResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossAssetsRiskResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsRiskResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossAssetsRiskResult(val *ApiResponseResultOfMarginCrossAssetsRiskResult) *NullableApiResponseResultOfMarginCrossAssetsRiskResult { - return &NullableApiResponseResultOfMarginCrossAssetsRiskResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossAssetsRiskResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossAssetsRiskResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_borrow_limit_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_borrow_limit_result.go deleted file mode 100644 index e2180be7..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_borrow_limit_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossBorrowLimitResult struct for ApiResponseResultOfMarginCrossBorrowLimitResult -type ApiResponseResultOfMarginCrossBorrowLimitResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossBorrowLimitResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossBorrowLimitResult ApiResponseResultOfMarginCrossBorrowLimitResult - -// NewApiResponseResultOfMarginCrossBorrowLimitResult instantiates a new ApiResponseResultOfMarginCrossBorrowLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossBorrowLimitResult() *ApiResponseResultOfMarginCrossBorrowLimitResult { - this := ApiResponseResultOfMarginCrossBorrowLimitResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossBorrowLimitResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossBorrowLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossBorrowLimitResultWithDefaults() *ApiResponseResultOfMarginCrossBorrowLimitResult { - this := ApiResponseResultOfMarginCrossBorrowLimitResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetData() MarginCrossBorrowLimitResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossBorrowLimitResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetDataOk() (*MarginCrossBorrowLimitResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossBorrowLimitResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetData(v MarginCrossBorrowLimitResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossBorrowLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossBorrowLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossBorrowLimitResult := _ApiResponseResultOfMarginCrossBorrowLimitResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossBorrowLimitResult); err == nil { - *o = ApiResponseResultOfMarginCrossBorrowLimitResult(varApiResponseResultOfMarginCrossBorrowLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossBorrowLimitResult struct { - value *ApiResponseResultOfMarginCrossBorrowLimitResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossBorrowLimitResult) Get() *ApiResponseResultOfMarginCrossBorrowLimitResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossBorrowLimitResult) Set(val *ApiResponseResultOfMarginCrossBorrowLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossBorrowLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossBorrowLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossBorrowLimitResult(val *ApiResponseResultOfMarginCrossBorrowLimitResult) *NullableApiResponseResultOfMarginCrossBorrowLimitResult { - return &NullableApiResponseResultOfMarginCrossBorrowLimitResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossBorrowLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossBorrowLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_fin_flow_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_fin_flow_result.go deleted file mode 100644 index 692bffd9..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_fin_flow_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossFinFlowResult struct for ApiResponseResultOfMarginCrossFinFlowResult -type ApiResponseResultOfMarginCrossFinFlowResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossFinFlowResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossFinFlowResult ApiResponseResultOfMarginCrossFinFlowResult - -// NewApiResponseResultOfMarginCrossFinFlowResult instantiates a new ApiResponseResultOfMarginCrossFinFlowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossFinFlowResult() *ApiResponseResultOfMarginCrossFinFlowResult { - this := ApiResponseResultOfMarginCrossFinFlowResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossFinFlowResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossFinFlowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossFinFlowResultWithDefaults() *ApiResponseResultOfMarginCrossFinFlowResult { - this := ApiResponseResultOfMarginCrossFinFlowResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetData() MarginCrossFinFlowResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossFinFlowResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetDataOk() (*MarginCrossFinFlowResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossFinFlowResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetData(v MarginCrossFinFlowResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossFinFlowResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossFinFlowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossFinFlowResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossFinFlowResult := _ApiResponseResultOfMarginCrossFinFlowResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossFinFlowResult); err == nil { - *o = ApiResponseResultOfMarginCrossFinFlowResult(varApiResponseResultOfMarginCrossFinFlowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossFinFlowResult struct { - value *ApiResponseResultOfMarginCrossFinFlowResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossFinFlowResult) Get() *ApiResponseResultOfMarginCrossFinFlowResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossFinFlowResult) Set(val *ApiResponseResultOfMarginCrossFinFlowResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossFinFlowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossFinFlowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossFinFlowResult(val *ApiResponseResultOfMarginCrossFinFlowResult) *NullableApiResponseResultOfMarginCrossFinFlowResult { - return &NullableApiResponseResultOfMarginCrossFinFlowResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossFinFlowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossFinFlowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_max_borrow_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_max_borrow_result.go deleted file mode 100644 index 74b35e70..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_max_borrow_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossMaxBorrowResult struct for ApiResponseResultOfMarginCrossMaxBorrowResult -type ApiResponseResultOfMarginCrossMaxBorrowResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossMaxBorrowResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossMaxBorrowResult ApiResponseResultOfMarginCrossMaxBorrowResult - -// NewApiResponseResultOfMarginCrossMaxBorrowResult instantiates a new ApiResponseResultOfMarginCrossMaxBorrowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossMaxBorrowResult() *ApiResponseResultOfMarginCrossMaxBorrowResult { - this := ApiResponseResultOfMarginCrossMaxBorrowResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossMaxBorrowResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossMaxBorrowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossMaxBorrowResultWithDefaults() *ApiResponseResultOfMarginCrossMaxBorrowResult { - this := ApiResponseResultOfMarginCrossMaxBorrowResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetData() MarginCrossMaxBorrowResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossMaxBorrowResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetDataOk() (*MarginCrossMaxBorrowResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossMaxBorrowResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetData(v MarginCrossMaxBorrowResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossMaxBorrowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossMaxBorrowResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossMaxBorrowResult := _ApiResponseResultOfMarginCrossMaxBorrowResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossMaxBorrowResult); err == nil { - *o = ApiResponseResultOfMarginCrossMaxBorrowResult(varApiResponseResultOfMarginCrossMaxBorrowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossMaxBorrowResult struct { - value *ApiResponseResultOfMarginCrossMaxBorrowResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossMaxBorrowResult) Get() *ApiResponseResultOfMarginCrossMaxBorrowResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossMaxBorrowResult) Set(val *ApiResponseResultOfMarginCrossMaxBorrowResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossMaxBorrowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossMaxBorrowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossMaxBorrowResult(val *ApiResponseResultOfMarginCrossMaxBorrowResult) *NullableApiResponseResultOfMarginCrossMaxBorrowResult { - return &NullableApiResponseResultOfMarginCrossMaxBorrowResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossMaxBorrowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossMaxBorrowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_repay_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_repay_result.go deleted file mode 100644 index ab83b984..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_cross_repay_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginCrossRepayResult struct for ApiResponseResultOfMarginCrossRepayResult -type ApiResponseResultOfMarginCrossRepayResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginCrossRepayResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginCrossRepayResult ApiResponseResultOfMarginCrossRepayResult - -// NewApiResponseResultOfMarginCrossRepayResult instantiates a new ApiResponseResultOfMarginCrossRepayResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginCrossRepayResult() *ApiResponseResultOfMarginCrossRepayResult { - this := ApiResponseResultOfMarginCrossRepayResult{} - return &this -} - -// NewApiResponseResultOfMarginCrossRepayResultWithDefaults instantiates a new ApiResponseResultOfMarginCrossRepayResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginCrossRepayResultWithDefaults() *ApiResponseResultOfMarginCrossRepayResult { - this := ApiResponseResultOfMarginCrossRepayResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginCrossRepayResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetData() MarginCrossRepayResult { - if o == nil || isNil(o.Data) { - var ret MarginCrossRepayResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetDataOk() (*MarginCrossRepayResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginCrossRepayResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginCrossRepayResult) SetData(v MarginCrossRepayResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginCrossRepayResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginCrossRepayResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginCrossRepayResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginCrossRepayResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginCrossRepayResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginCrossRepayResult := _ApiResponseResultOfMarginCrossRepayResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginCrossRepayResult); err == nil { - *o = ApiResponseResultOfMarginCrossRepayResult(varApiResponseResultOfMarginCrossRepayResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginCrossRepayResult struct { - value *ApiResponseResultOfMarginCrossRepayResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginCrossRepayResult) Get() *ApiResponseResultOfMarginCrossRepayResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginCrossRepayResult) Set(val *ApiResponseResultOfMarginCrossRepayResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginCrossRepayResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginCrossRepayResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginCrossRepayResult(val *ApiResponseResultOfMarginCrossRepayResult) *NullableApiResponseResultOfMarginCrossRepayResult { - return &NullableApiResponseResultOfMarginCrossRepayResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginCrossRepayResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginCrossRepayResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_interest_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_interest_info_result.go deleted file mode 100644 index 729bf01d..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_interest_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginInterestInfoResult struct for ApiResponseResultOfMarginInterestInfoResult -type ApiResponseResultOfMarginInterestInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginInterestInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginInterestInfoResult ApiResponseResultOfMarginInterestInfoResult - -// NewApiResponseResultOfMarginInterestInfoResult instantiates a new ApiResponseResultOfMarginInterestInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginInterestInfoResult() *ApiResponseResultOfMarginInterestInfoResult { - this := ApiResponseResultOfMarginInterestInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginInterestInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginInterestInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginInterestInfoResultWithDefaults() *ApiResponseResultOfMarginInterestInfoResult { - this := ApiResponseResultOfMarginInterestInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginInterestInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetData() MarginInterestInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginInterestInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetDataOk() (*MarginInterestInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginInterestInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginInterestInfoResult) SetData(v MarginInterestInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginInterestInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginInterestInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginInterestInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginInterestInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginInterestInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginInterestInfoResult := _ApiResponseResultOfMarginInterestInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginInterestInfoResult); err == nil { - *o = ApiResponseResultOfMarginInterestInfoResult(varApiResponseResultOfMarginInterestInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginInterestInfoResult struct { - value *ApiResponseResultOfMarginInterestInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginInterestInfoResult) Get() *ApiResponseResultOfMarginInterestInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginInterestInfoResult) Set(val *ApiResponseResultOfMarginInterestInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginInterestInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginInterestInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginInterestInfoResult(val *ApiResponseResultOfMarginInterestInfoResult) *NullableApiResponseResultOfMarginInterestInfoResult { - return &NullableApiResponseResultOfMarginInterestInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginInterestInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginInterestInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_assets_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_assets_result.go deleted file mode 100644 index 3a87d06a..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_assets_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedAssetsResult struct for ApiResponseResultOfMarginIsolatedAssetsResult -type ApiResponseResultOfMarginIsolatedAssetsResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedAssetsResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedAssetsResult ApiResponseResultOfMarginIsolatedAssetsResult - -// NewApiResponseResultOfMarginIsolatedAssetsResult instantiates a new ApiResponseResultOfMarginIsolatedAssetsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedAssetsResult() *ApiResponseResultOfMarginIsolatedAssetsResult { - this := ApiResponseResultOfMarginIsolatedAssetsResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedAssetsResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedAssetsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedAssetsResultWithDefaults() *ApiResponseResultOfMarginIsolatedAssetsResult { - this := ApiResponseResultOfMarginIsolatedAssetsResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetData() MarginIsolatedAssetsResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedAssetsResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetDataOk() (*MarginIsolatedAssetsResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedAssetsResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetData(v MarginIsolatedAssetsResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedAssetsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedAssetsResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedAssetsResult := _ApiResponseResultOfMarginIsolatedAssetsResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedAssetsResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedAssetsResult(varApiResponseResultOfMarginIsolatedAssetsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedAssetsResult struct { - value *ApiResponseResultOfMarginIsolatedAssetsResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedAssetsResult) Get() *ApiResponseResultOfMarginIsolatedAssetsResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedAssetsResult) Set(val *ApiResponseResultOfMarginIsolatedAssetsResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedAssetsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedAssetsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedAssetsResult(val *ApiResponseResultOfMarginIsolatedAssetsResult) *NullableApiResponseResultOfMarginIsolatedAssetsResult { - return &NullableApiResponseResultOfMarginIsolatedAssetsResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedAssetsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedAssetsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_borrow_limit_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_borrow_limit_result.go deleted file mode 100644 index e0616932..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_borrow_limit_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedBorrowLimitResult struct for ApiResponseResultOfMarginIsolatedBorrowLimitResult -type ApiResponseResultOfMarginIsolatedBorrowLimitResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedBorrowLimitResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedBorrowLimitResult ApiResponseResultOfMarginIsolatedBorrowLimitResult - -// NewApiResponseResultOfMarginIsolatedBorrowLimitResult instantiates a new ApiResponseResultOfMarginIsolatedBorrowLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedBorrowLimitResult() *ApiResponseResultOfMarginIsolatedBorrowLimitResult { - this := ApiResponseResultOfMarginIsolatedBorrowLimitResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedBorrowLimitResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedBorrowLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedBorrowLimitResultWithDefaults() *ApiResponseResultOfMarginIsolatedBorrowLimitResult { - this := ApiResponseResultOfMarginIsolatedBorrowLimitResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetData() MarginIsolatedBorrowLimitResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedBorrowLimitResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetDataOk() (*MarginIsolatedBorrowLimitResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedBorrowLimitResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetData(v MarginIsolatedBorrowLimitResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedBorrowLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedBorrowLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedBorrowLimitResult := _ApiResponseResultOfMarginIsolatedBorrowLimitResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedBorrowLimitResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedBorrowLimitResult(varApiResponseResultOfMarginIsolatedBorrowLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedBorrowLimitResult struct { - value *ApiResponseResultOfMarginIsolatedBorrowLimitResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) Get() *ApiResponseResultOfMarginIsolatedBorrowLimitResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) Set(val *ApiResponseResultOfMarginIsolatedBorrowLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedBorrowLimitResult(val *ApiResponseResultOfMarginIsolatedBorrowLimitResult) *NullableApiResponseResultOfMarginIsolatedBorrowLimitResult { - return &NullableApiResponseResultOfMarginIsolatedBorrowLimitResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedBorrowLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_fin_flow_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_fin_flow_result.go deleted file mode 100644 index 96120ea4..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_fin_flow_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedFinFlowResult struct for ApiResponseResultOfMarginIsolatedFinFlowResult -type ApiResponseResultOfMarginIsolatedFinFlowResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedFinFlowResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedFinFlowResult ApiResponseResultOfMarginIsolatedFinFlowResult - -// NewApiResponseResultOfMarginIsolatedFinFlowResult instantiates a new ApiResponseResultOfMarginIsolatedFinFlowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedFinFlowResult() *ApiResponseResultOfMarginIsolatedFinFlowResult { - this := ApiResponseResultOfMarginIsolatedFinFlowResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedFinFlowResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedFinFlowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedFinFlowResultWithDefaults() *ApiResponseResultOfMarginIsolatedFinFlowResult { - this := ApiResponseResultOfMarginIsolatedFinFlowResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetData() MarginIsolatedFinFlowResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedFinFlowResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetDataOk() (*MarginIsolatedFinFlowResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedFinFlowResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetData(v MarginIsolatedFinFlowResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedFinFlowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedFinFlowResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedFinFlowResult := _ApiResponseResultOfMarginIsolatedFinFlowResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedFinFlowResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedFinFlowResult(varApiResponseResultOfMarginIsolatedFinFlowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedFinFlowResult struct { - value *ApiResponseResultOfMarginIsolatedFinFlowResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedFinFlowResult) Get() *ApiResponseResultOfMarginIsolatedFinFlowResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedFinFlowResult) Set(val *ApiResponseResultOfMarginIsolatedFinFlowResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedFinFlowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedFinFlowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedFinFlowResult(val *ApiResponseResultOfMarginIsolatedFinFlowResult) *NullableApiResponseResultOfMarginIsolatedFinFlowResult { - return &NullableApiResponseResultOfMarginIsolatedFinFlowResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedFinFlowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedFinFlowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_interest_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_interest_info_result.go deleted file mode 100644 index e0573863..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_interest_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedInterestInfoResult struct for ApiResponseResultOfMarginIsolatedInterestInfoResult -type ApiResponseResultOfMarginIsolatedInterestInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedInterestInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedInterestInfoResult ApiResponseResultOfMarginIsolatedInterestInfoResult - -// NewApiResponseResultOfMarginIsolatedInterestInfoResult instantiates a new ApiResponseResultOfMarginIsolatedInterestInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedInterestInfoResult() *ApiResponseResultOfMarginIsolatedInterestInfoResult { - this := ApiResponseResultOfMarginIsolatedInterestInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedInterestInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedInterestInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedInterestInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedInterestInfoResult { - this := ApiResponseResultOfMarginIsolatedInterestInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetData() MarginIsolatedInterestInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedInterestInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetDataOk() (*MarginIsolatedInterestInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedInterestInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetData(v MarginIsolatedInterestInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedInterestInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedInterestInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedInterestInfoResult := _ApiResponseResultOfMarginIsolatedInterestInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedInterestInfoResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedInterestInfoResult(varApiResponseResultOfMarginIsolatedInterestInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedInterestInfoResult struct { - value *ApiResponseResultOfMarginIsolatedInterestInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedInterestInfoResult) Get() *ApiResponseResultOfMarginIsolatedInterestInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedInterestInfoResult) Set(val *ApiResponseResultOfMarginIsolatedInterestInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedInterestInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedInterestInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedInterestInfoResult(val *ApiResponseResultOfMarginIsolatedInterestInfoResult) *NullableApiResponseResultOfMarginIsolatedInterestInfoResult { - return &NullableApiResponseResultOfMarginIsolatedInterestInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedInterestInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedInterestInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_liquidation_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_liquidation_info_result.go deleted file mode 100644 index c0259e9e..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_liquidation_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedLiquidationInfoResult struct for ApiResponseResultOfMarginIsolatedLiquidationInfoResult -type ApiResponseResultOfMarginIsolatedLiquidationInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedLiquidationInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedLiquidationInfoResult ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -// NewApiResponseResultOfMarginIsolatedLiquidationInfoResult instantiates a new ApiResponseResultOfMarginIsolatedLiquidationInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedLiquidationInfoResult() *ApiResponseResultOfMarginIsolatedLiquidationInfoResult { - this := ApiResponseResultOfMarginIsolatedLiquidationInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedLiquidationInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedLiquidationInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedLiquidationInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedLiquidationInfoResult { - this := ApiResponseResultOfMarginIsolatedLiquidationInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetData() MarginIsolatedLiquidationInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedLiquidationInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetDataOk() (*MarginIsolatedLiquidationInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedLiquidationInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetData(v MarginIsolatedLiquidationInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedLiquidationInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedLiquidationInfoResult := _ApiResponseResultOfMarginIsolatedLiquidationInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedLiquidationInfoResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedLiquidationInfoResult(varApiResponseResultOfMarginIsolatedLiquidationInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult struct { - value *ApiResponseResultOfMarginIsolatedLiquidationInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) Get() *ApiResponseResultOfMarginIsolatedLiquidationInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) Set(val *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedLiquidationInfoResult(val *ApiResponseResultOfMarginIsolatedLiquidationInfoResult) *NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult { - return &NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedLiquidationInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_loan_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_loan_info_result.go deleted file mode 100644 index e73cbbd2..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_loan_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedLoanInfoResult struct for ApiResponseResultOfMarginIsolatedLoanInfoResult -type ApiResponseResultOfMarginIsolatedLoanInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedLoanInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedLoanInfoResult ApiResponseResultOfMarginIsolatedLoanInfoResult - -// NewApiResponseResultOfMarginIsolatedLoanInfoResult instantiates a new ApiResponseResultOfMarginIsolatedLoanInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedLoanInfoResult() *ApiResponseResultOfMarginIsolatedLoanInfoResult { - this := ApiResponseResultOfMarginIsolatedLoanInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedLoanInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedLoanInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedLoanInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedLoanInfoResult { - this := ApiResponseResultOfMarginIsolatedLoanInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetData() MarginIsolatedLoanInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedLoanInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetDataOk() (*MarginIsolatedLoanInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedLoanInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetData(v MarginIsolatedLoanInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedLoanInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedLoanInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedLoanInfoResult := _ApiResponseResultOfMarginIsolatedLoanInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedLoanInfoResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedLoanInfoResult(varApiResponseResultOfMarginIsolatedLoanInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedLoanInfoResult struct { - value *ApiResponseResultOfMarginIsolatedLoanInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedLoanInfoResult) Get() *ApiResponseResultOfMarginIsolatedLoanInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedLoanInfoResult) Set(val *ApiResponseResultOfMarginIsolatedLoanInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedLoanInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedLoanInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedLoanInfoResult(val *ApiResponseResultOfMarginIsolatedLoanInfoResult) *NullableApiResponseResultOfMarginIsolatedLoanInfoResult { - return &NullableApiResponseResultOfMarginIsolatedLoanInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedLoanInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedLoanInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_max_borrow_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_max_borrow_result.go deleted file mode 100644 index 27cabeb4..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_max_borrow_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedMaxBorrowResult struct for ApiResponseResultOfMarginIsolatedMaxBorrowResult -type ApiResponseResultOfMarginIsolatedMaxBorrowResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedMaxBorrowResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedMaxBorrowResult ApiResponseResultOfMarginIsolatedMaxBorrowResult - -// NewApiResponseResultOfMarginIsolatedMaxBorrowResult instantiates a new ApiResponseResultOfMarginIsolatedMaxBorrowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedMaxBorrowResult() *ApiResponseResultOfMarginIsolatedMaxBorrowResult { - this := ApiResponseResultOfMarginIsolatedMaxBorrowResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedMaxBorrowResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedMaxBorrowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedMaxBorrowResultWithDefaults() *ApiResponseResultOfMarginIsolatedMaxBorrowResult { - this := ApiResponseResultOfMarginIsolatedMaxBorrowResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetData() MarginIsolatedMaxBorrowResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedMaxBorrowResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetDataOk() (*MarginIsolatedMaxBorrowResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedMaxBorrowResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetData(v MarginIsolatedMaxBorrowResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedMaxBorrowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedMaxBorrowResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedMaxBorrowResult := _ApiResponseResultOfMarginIsolatedMaxBorrowResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedMaxBorrowResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedMaxBorrowResult(varApiResponseResultOfMarginIsolatedMaxBorrowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedMaxBorrowResult struct { - value *ApiResponseResultOfMarginIsolatedMaxBorrowResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) Get() *ApiResponseResultOfMarginIsolatedMaxBorrowResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) Set(val *ApiResponseResultOfMarginIsolatedMaxBorrowResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedMaxBorrowResult(val *ApiResponseResultOfMarginIsolatedMaxBorrowResult) *NullableApiResponseResultOfMarginIsolatedMaxBorrowResult { - return &NullableApiResponseResultOfMarginIsolatedMaxBorrowResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedMaxBorrowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_info_result.go deleted file mode 100644 index 95aefd9c..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedRepayInfoResult struct for ApiResponseResultOfMarginIsolatedRepayInfoResult -type ApiResponseResultOfMarginIsolatedRepayInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedRepayInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedRepayInfoResult ApiResponseResultOfMarginIsolatedRepayInfoResult - -// NewApiResponseResultOfMarginIsolatedRepayInfoResult instantiates a new ApiResponseResultOfMarginIsolatedRepayInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedRepayInfoResult() *ApiResponseResultOfMarginIsolatedRepayInfoResult { - this := ApiResponseResultOfMarginIsolatedRepayInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedRepayInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedRepayInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedRepayInfoResultWithDefaults() *ApiResponseResultOfMarginIsolatedRepayInfoResult { - this := ApiResponseResultOfMarginIsolatedRepayInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetData() MarginIsolatedRepayInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedRepayInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetDataOk() (*MarginIsolatedRepayInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedRepayInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetData(v MarginIsolatedRepayInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedRepayInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedRepayInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedRepayInfoResult := _ApiResponseResultOfMarginIsolatedRepayInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedRepayInfoResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedRepayInfoResult(varApiResponseResultOfMarginIsolatedRepayInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedRepayInfoResult struct { - value *ApiResponseResultOfMarginIsolatedRepayInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayInfoResult) Get() *ApiResponseResultOfMarginIsolatedRepayInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayInfoResult) Set(val *ApiResponseResultOfMarginIsolatedRepayInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedRepayInfoResult(val *ApiResponseResultOfMarginIsolatedRepayInfoResult) *NullableApiResponseResultOfMarginIsolatedRepayInfoResult { - return &NullableApiResponseResultOfMarginIsolatedRepayInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_result.go deleted file mode 100644 index e1c832e9..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_isolated_repay_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginIsolatedRepayResult struct for ApiResponseResultOfMarginIsolatedRepayResult -type ApiResponseResultOfMarginIsolatedRepayResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginIsolatedRepayResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginIsolatedRepayResult ApiResponseResultOfMarginIsolatedRepayResult - -// NewApiResponseResultOfMarginIsolatedRepayResult instantiates a new ApiResponseResultOfMarginIsolatedRepayResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginIsolatedRepayResult() *ApiResponseResultOfMarginIsolatedRepayResult { - this := ApiResponseResultOfMarginIsolatedRepayResult{} - return &this -} - -// NewApiResponseResultOfMarginIsolatedRepayResultWithDefaults instantiates a new ApiResponseResultOfMarginIsolatedRepayResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginIsolatedRepayResultWithDefaults() *ApiResponseResultOfMarginIsolatedRepayResult { - this := ApiResponseResultOfMarginIsolatedRepayResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetData() MarginIsolatedRepayResult { - if o == nil || isNil(o.Data) { - var ret MarginIsolatedRepayResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetDataOk() (*MarginIsolatedRepayResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginIsolatedRepayResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetData(v MarginIsolatedRepayResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginIsolatedRepayResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginIsolatedRepayResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginIsolatedRepayResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginIsolatedRepayResult := _ApiResponseResultOfMarginIsolatedRepayResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginIsolatedRepayResult); err == nil { - *o = ApiResponseResultOfMarginIsolatedRepayResult(varApiResponseResultOfMarginIsolatedRepayResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginIsolatedRepayResult struct { - value *ApiResponseResultOfMarginIsolatedRepayResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayResult) Get() *ApiResponseResultOfMarginIsolatedRepayResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayResult) Set(val *ApiResponseResultOfMarginIsolatedRepayResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginIsolatedRepayResult(val *ApiResponseResultOfMarginIsolatedRepayResult) *NullableApiResponseResultOfMarginIsolatedRepayResult { - return &NullableApiResponseResultOfMarginIsolatedRepayResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginIsolatedRepayResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginIsolatedRepayResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_liquidation_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_liquidation_info_result.go deleted file mode 100644 index 600e1058..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_liquidation_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginLiquidationInfoResult struct for ApiResponseResultOfMarginLiquidationInfoResult -type ApiResponseResultOfMarginLiquidationInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginLiquidationInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginLiquidationInfoResult ApiResponseResultOfMarginLiquidationInfoResult - -// NewApiResponseResultOfMarginLiquidationInfoResult instantiates a new ApiResponseResultOfMarginLiquidationInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginLiquidationInfoResult() *ApiResponseResultOfMarginLiquidationInfoResult { - this := ApiResponseResultOfMarginLiquidationInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginLiquidationInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginLiquidationInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginLiquidationInfoResultWithDefaults() *ApiResponseResultOfMarginLiquidationInfoResult { - this := ApiResponseResultOfMarginLiquidationInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetData() MarginLiquidationInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginLiquidationInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetDataOk() (*MarginLiquidationInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginLiquidationInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetData(v MarginLiquidationInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginLiquidationInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginLiquidationInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginLiquidationInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginLiquidationInfoResult := _ApiResponseResultOfMarginLiquidationInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginLiquidationInfoResult); err == nil { - *o = ApiResponseResultOfMarginLiquidationInfoResult(varApiResponseResultOfMarginLiquidationInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginLiquidationInfoResult struct { - value *ApiResponseResultOfMarginLiquidationInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginLiquidationInfoResult) Get() *ApiResponseResultOfMarginLiquidationInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginLiquidationInfoResult) Set(val *ApiResponseResultOfMarginLiquidationInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginLiquidationInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginLiquidationInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginLiquidationInfoResult(val *ApiResponseResultOfMarginLiquidationInfoResult) *NullableApiResponseResultOfMarginLiquidationInfoResult { - return &NullableApiResponseResultOfMarginLiquidationInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginLiquidationInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginLiquidationInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_loan_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_loan_info_result.go deleted file mode 100644 index e1201185..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_loan_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginLoanInfoResult struct for ApiResponseResultOfMarginLoanInfoResult -type ApiResponseResultOfMarginLoanInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginLoanInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginLoanInfoResult ApiResponseResultOfMarginLoanInfoResult - -// NewApiResponseResultOfMarginLoanInfoResult instantiates a new ApiResponseResultOfMarginLoanInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginLoanInfoResult() *ApiResponseResultOfMarginLoanInfoResult { - this := ApiResponseResultOfMarginLoanInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginLoanInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginLoanInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginLoanInfoResultWithDefaults() *ApiResponseResultOfMarginLoanInfoResult { - this := ApiResponseResultOfMarginLoanInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginLoanInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetData() MarginLoanInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginLoanInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetDataOk() (*MarginLoanInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginLoanInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginLoanInfoResult) SetData(v MarginLoanInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginLoanInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginLoanInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginLoanInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginLoanInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginLoanInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginLoanInfoResult := _ApiResponseResultOfMarginLoanInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginLoanInfoResult); err == nil { - *o = ApiResponseResultOfMarginLoanInfoResult(varApiResponseResultOfMarginLoanInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginLoanInfoResult struct { - value *ApiResponseResultOfMarginLoanInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginLoanInfoResult) Get() *ApiResponseResultOfMarginLoanInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginLoanInfoResult) Set(val *ApiResponseResultOfMarginLoanInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginLoanInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginLoanInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginLoanInfoResult(val *ApiResponseResultOfMarginLoanInfoResult) *NullableApiResponseResultOfMarginLoanInfoResult { - return &NullableApiResponseResultOfMarginLoanInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginLoanInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginLoanInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_open_order_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_open_order_info_result.go deleted file mode 100644 index 0ddc1c0a..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_open_order_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginOpenOrderInfoResult struct for ApiResponseResultOfMarginOpenOrderInfoResult -type ApiResponseResultOfMarginOpenOrderInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginOpenOrderInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginOpenOrderInfoResult ApiResponseResultOfMarginOpenOrderInfoResult - -// NewApiResponseResultOfMarginOpenOrderInfoResult instantiates a new ApiResponseResultOfMarginOpenOrderInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginOpenOrderInfoResult() *ApiResponseResultOfMarginOpenOrderInfoResult { - this := ApiResponseResultOfMarginOpenOrderInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginOpenOrderInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginOpenOrderInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginOpenOrderInfoResultWithDefaults() *ApiResponseResultOfMarginOpenOrderInfoResult { - this := ApiResponseResultOfMarginOpenOrderInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetData() MarginOpenOrderInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginOpenOrderInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetDataOk() (*MarginOpenOrderInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginOpenOrderInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetData(v MarginOpenOrderInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginOpenOrderInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginOpenOrderInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginOpenOrderInfoResult := _ApiResponseResultOfMarginOpenOrderInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginOpenOrderInfoResult); err == nil { - *o = ApiResponseResultOfMarginOpenOrderInfoResult(varApiResponseResultOfMarginOpenOrderInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginOpenOrderInfoResult struct { - value *ApiResponseResultOfMarginOpenOrderInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginOpenOrderInfoResult) Get() *ApiResponseResultOfMarginOpenOrderInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginOpenOrderInfoResult) Set(val *ApiResponseResultOfMarginOpenOrderInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginOpenOrderInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginOpenOrderInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginOpenOrderInfoResult(val *ApiResponseResultOfMarginOpenOrderInfoResult) *NullableApiResponseResultOfMarginOpenOrderInfoResult { - return &NullableApiResponseResultOfMarginOpenOrderInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginOpenOrderInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginOpenOrderInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_place_order_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_place_order_result.go deleted file mode 100644 index c667e685..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_place_order_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginPlaceOrderResult struct for ApiResponseResultOfMarginPlaceOrderResult -type ApiResponseResultOfMarginPlaceOrderResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginPlaceOrderResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginPlaceOrderResult ApiResponseResultOfMarginPlaceOrderResult - -// NewApiResponseResultOfMarginPlaceOrderResult instantiates a new ApiResponseResultOfMarginPlaceOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginPlaceOrderResult() *ApiResponseResultOfMarginPlaceOrderResult { - this := ApiResponseResultOfMarginPlaceOrderResult{} - return &this -} - -// NewApiResponseResultOfMarginPlaceOrderResultWithDefaults instantiates a new ApiResponseResultOfMarginPlaceOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginPlaceOrderResultWithDefaults() *ApiResponseResultOfMarginPlaceOrderResult { - this := ApiResponseResultOfMarginPlaceOrderResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginPlaceOrderResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetData() MarginPlaceOrderResult { - if o == nil || isNil(o.Data) { - var ret MarginPlaceOrderResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetDataOk() (*MarginPlaceOrderResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginPlaceOrderResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginPlaceOrderResult) SetData(v MarginPlaceOrderResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginPlaceOrderResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginPlaceOrderResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginPlaceOrderResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginPlaceOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginPlaceOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginPlaceOrderResult := _ApiResponseResultOfMarginPlaceOrderResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginPlaceOrderResult); err == nil { - *o = ApiResponseResultOfMarginPlaceOrderResult(varApiResponseResultOfMarginPlaceOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginPlaceOrderResult struct { - value *ApiResponseResultOfMarginPlaceOrderResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginPlaceOrderResult) Get() *ApiResponseResultOfMarginPlaceOrderResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginPlaceOrderResult) Set(val *ApiResponseResultOfMarginPlaceOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginPlaceOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginPlaceOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginPlaceOrderResult(val *ApiResponseResultOfMarginPlaceOrderResult) *NullableApiResponseResultOfMarginPlaceOrderResult { - return &NullableApiResponseResultOfMarginPlaceOrderResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginPlaceOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginPlaceOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_repay_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_repay_info_result.go deleted file mode 100644 index 5ca6efa1..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_repay_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginRepayInfoResult struct for ApiResponseResultOfMarginRepayInfoResult -type ApiResponseResultOfMarginRepayInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginRepayInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginRepayInfoResult ApiResponseResultOfMarginRepayInfoResult - -// NewApiResponseResultOfMarginRepayInfoResult instantiates a new ApiResponseResultOfMarginRepayInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginRepayInfoResult() *ApiResponseResultOfMarginRepayInfoResult { - this := ApiResponseResultOfMarginRepayInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginRepayInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginRepayInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginRepayInfoResultWithDefaults() *ApiResponseResultOfMarginRepayInfoResult { - this := ApiResponseResultOfMarginRepayInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginRepayInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetData() MarginRepayInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginRepayInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetDataOk() (*MarginRepayInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginRepayInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginRepayInfoResult) SetData(v MarginRepayInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginRepayInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginRepayInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginRepayInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginRepayInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginRepayInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginRepayInfoResult := _ApiResponseResultOfMarginRepayInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginRepayInfoResult); err == nil { - *o = ApiResponseResultOfMarginRepayInfoResult(varApiResponseResultOfMarginRepayInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginRepayInfoResult struct { - value *ApiResponseResultOfMarginRepayInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginRepayInfoResult) Get() *ApiResponseResultOfMarginRepayInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginRepayInfoResult) Set(val *ApiResponseResultOfMarginRepayInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginRepayInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginRepayInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginRepayInfoResult(val *ApiResponseResultOfMarginRepayInfoResult) *NullableApiResponseResultOfMarginRepayInfoResult { - return &NullableApiResponseResultOfMarginRepayInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginRepayInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginRepayInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_trade_detail_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_margin_trade_detail_info_result.go deleted file mode 100644 index b65e538d..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_margin_trade_detail_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMarginTradeDetailInfoResult struct for ApiResponseResultOfMarginTradeDetailInfoResult -type ApiResponseResultOfMarginTradeDetailInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MarginTradeDetailInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMarginTradeDetailInfoResult ApiResponseResultOfMarginTradeDetailInfoResult - -// NewApiResponseResultOfMarginTradeDetailInfoResult instantiates a new ApiResponseResultOfMarginTradeDetailInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMarginTradeDetailInfoResult() *ApiResponseResultOfMarginTradeDetailInfoResult { - this := ApiResponseResultOfMarginTradeDetailInfoResult{} - return &this -} - -// NewApiResponseResultOfMarginTradeDetailInfoResultWithDefaults instantiates a new ApiResponseResultOfMarginTradeDetailInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMarginTradeDetailInfoResultWithDefaults() *ApiResponseResultOfMarginTradeDetailInfoResult { - this := ApiResponseResultOfMarginTradeDetailInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetData() MarginTradeDetailInfoResult { - if o == nil || isNil(o.Data) { - var ret MarginTradeDetailInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetDataOk() (*MarginTradeDetailInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MarginTradeDetailInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetData(v MarginTradeDetailInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMarginTradeDetailInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMarginTradeDetailInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMarginTradeDetailInfoResult := _ApiResponseResultOfMarginTradeDetailInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMarginTradeDetailInfoResult); err == nil { - *o = ApiResponseResultOfMarginTradeDetailInfoResult(varApiResponseResultOfMarginTradeDetailInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMarginTradeDetailInfoResult struct { - value *ApiResponseResultOfMarginTradeDetailInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMarginTradeDetailInfoResult) Get() *ApiResponseResultOfMarginTradeDetailInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMarginTradeDetailInfoResult) Set(val *ApiResponseResultOfMarginTradeDetailInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMarginTradeDetailInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMarginTradeDetailInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMarginTradeDetailInfoResult(val *ApiResponseResultOfMarginTradeDetailInfoResult) *NullableApiResponseResultOfMarginTradeDetailInfoResult { - return &NullableApiResponseResultOfMarginTradeDetailInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMarginTradeDetailInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMarginTradeDetailInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_adv_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_adv_result.go deleted file mode 100644 index 96dcb063..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_adv_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMerchantAdvResult struct for ApiResponseResultOfMerchantAdvResult -type ApiResponseResultOfMerchantAdvResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MerchantAdvResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMerchantAdvResult ApiResponseResultOfMerchantAdvResult - -// NewApiResponseResultOfMerchantAdvResult instantiates a new ApiResponseResultOfMerchantAdvResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMerchantAdvResult() *ApiResponseResultOfMerchantAdvResult { - this := ApiResponseResultOfMerchantAdvResult{} - return &this -} - -// NewApiResponseResultOfMerchantAdvResultWithDefaults instantiates a new ApiResponseResultOfMerchantAdvResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMerchantAdvResultWithDefaults() *ApiResponseResultOfMerchantAdvResult { - this := ApiResponseResultOfMerchantAdvResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantAdvResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantAdvResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantAdvResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMerchantAdvResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantAdvResult) GetData() MerchantAdvResult { - if o == nil || isNil(o.Data) { - var ret MerchantAdvResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantAdvResult) GetDataOk() (*MerchantAdvResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantAdvResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MerchantAdvResult and assigns it to the Data field. -func (o *ApiResponseResultOfMerchantAdvResult) SetData(v MerchantAdvResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantAdvResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantAdvResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantAdvResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMerchantAdvResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantAdvResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantAdvResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantAdvResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMerchantAdvResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMerchantAdvResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMerchantAdvResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMerchantAdvResult := _ApiResponseResultOfMerchantAdvResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMerchantAdvResult); err == nil { - *o = ApiResponseResultOfMerchantAdvResult(varApiResponseResultOfMerchantAdvResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMerchantAdvResult struct { - value *ApiResponseResultOfMerchantAdvResult - isSet bool -} - -func (v NullableApiResponseResultOfMerchantAdvResult) Get() *ApiResponseResultOfMerchantAdvResult { - return v.value -} - -func (v *NullableApiResponseResultOfMerchantAdvResult) Set(val *ApiResponseResultOfMerchantAdvResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMerchantAdvResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMerchantAdvResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMerchantAdvResult(val *ApiResponseResultOfMerchantAdvResult) *NullableApiResponseResultOfMerchantAdvResult { - return &NullableApiResponseResultOfMerchantAdvResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMerchantAdvResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMerchantAdvResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_info_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_info_result.go deleted file mode 100644 index 0f038ac6..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_info_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMerchantInfoResult struct for ApiResponseResultOfMerchantInfoResult -type ApiResponseResultOfMerchantInfoResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MerchantInfoResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMerchantInfoResult ApiResponseResultOfMerchantInfoResult - -// NewApiResponseResultOfMerchantInfoResult instantiates a new ApiResponseResultOfMerchantInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMerchantInfoResult() *ApiResponseResultOfMerchantInfoResult { - this := ApiResponseResultOfMerchantInfoResult{} - return &this -} - -// NewApiResponseResultOfMerchantInfoResultWithDefaults instantiates a new ApiResponseResultOfMerchantInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMerchantInfoResultWithDefaults() *ApiResponseResultOfMerchantInfoResult { - this := ApiResponseResultOfMerchantInfoResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantInfoResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantInfoResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantInfoResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMerchantInfoResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantInfoResult) GetData() MerchantInfoResult { - if o == nil || isNil(o.Data) { - var ret MerchantInfoResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantInfoResult) GetDataOk() (*MerchantInfoResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantInfoResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MerchantInfoResult and assigns it to the Data field. -func (o *ApiResponseResultOfMerchantInfoResult) SetData(v MerchantInfoResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantInfoResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantInfoResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantInfoResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMerchantInfoResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantInfoResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantInfoResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantInfoResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMerchantInfoResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMerchantInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMerchantInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMerchantInfoResult := _ApiResponseResultOfMerchantInfoResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMerchantInfoResult); err == nil { - *o = ApiResponseResultOfMerchantInfoResult(varApiResponseResultOfMerchantInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMerchantInfoResult struct { - value *ApiResponseResultOfMerchantInfoResult - isSet bool -} - -func (v NullableApiResponseResultOfMerchantInfoResult) Get() *ApiResponseResultOfMerchantInfoResult { - return v.value -} - -func (v *NullableApiResponseResultOfMerchantInfoResult) Set(val *ApiResponseResultOfMerchantInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMerchantInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMerchantInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMerchantInfoResult(val *ApiResponseResultOfMerchantInfoResult) *NullableApiResponseResultOfMerchantInfoResult { - return &NullableApiResponseResultOfMerchantInfoResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMerchantInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMerchantInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_order_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_order_result.go deleted file mode 100644 index 0a5abf98..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_order_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMerchantOrderResult struct for ApiResponseResultOfMerchantOrderResult -type ApiResponseResultOfMerchantOrderResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MerchantOrderResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMerchantOrderResult ApiResponseResultOfMerchantOrderResult - -// NewApiResponseResultOfMerchantOrderResult instantiates a new ApiResponseResultOfMerchantOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMerchantOrderResult() *ApiResponseResultOfMerchantOrderResult { - this := ApiResponseResultOfMerchantOrderResult{} - return &this -} - -// NewApiResponseResultOfMerchantOrderResultWithDefaults instantiates a new ApiResponseResultOfMerchantOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMerchantOrderResultWithDefaults() *ApiResponseResultOfMerchantOrderResult { - this := ApiResponseResultOfMerchantOrderResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantOrderResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantOrderResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantOrderResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMerchantOrderResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantOrderResult) GetData() MerchantOrderResult { - if o == nil || isNil(o.Data) { - var ret MerchantOrderResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantOrderResult) GetDataOk() (*MerchantOrderResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantOrderResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MerchantOrderResult and assigns it to the Data field. -func (o *ApiResponseResultOfMerchantOrderResult) SetData(v MerchantOrderResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantOrderResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantOrderResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantOrderResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMerchantOrderResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantOrderResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantOrderResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantOrderResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMerchantOrderResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMerchantOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMerchantOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMerchantOrderResult := _ApiResponseResultOfMerchantOrderResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMerchantOrderResult); err == nil { - *o = ApiResponseResultOfMerchantOrderResult(varApiResponseResultOfMerchantOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMerchantOrderResult struct { - value *ApiResponseResultOfMerchantOrderResult - isSet bool -} - -func (v NullableApiResponseResultOfMerchantOrderResult) Get() *ApiResponseResultOfMerchantOrderResult { - return v.value -} - -func (v *NullableApiResponseResultOfMerchantOrderResult) Set(val *ApiResponseResultOfMerchantOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMerchantOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMerchantOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMerchantOrderResult(val *ApiResponseResultOfMerchantOrderResult) *NullableApiResponseResultOfMerchantOrderResult { - return &NullableApiResponseResultOfMerchantOrderResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMerchantOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMerchantOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_person_info.go b/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_person_info.go deleted file mode 100644 index c7279f0b..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_merchant_person_info.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMerchantPersonInfo struct for ApiResponseResultOfMerchantPersonInfo -type ApiResponseResultOfMerchantPersonInfo struct { - // code - Code *string `json:"code,omitempty"` - Data *MerchantPersonInfo `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMerchantPersonInfo ApiResponseResultOfMerchantPersonInfo - -// NewApiResponseResultOfMerchantPersonInfo instantiates a new ApiResponseResultOfMerchantPersonInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMerchantPersonInfo() *ApiResponseResultOfMerchantPersonInfo { - this := ApiResponseResultOfMerchantPersonInfo{} - return &this -} - -// NewApiResponseResultOfMerchantPersonInfoWithDefaults instantiates a new ApiResponseResultOfMerchantPersonInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMerchantPersonInfoWithDefaults() *ApiResponseResultOfMerchantPersonInfo { - this := ApiResponseResultOfMerchantPersonInfo{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantPersonInfo) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMerchantPersonInfo) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantPersonInfo) GetData() MerchantPersonInfo { - if o == nil || isNil(o.Data) { - var ret MerchantPersonInfo - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) GetDataOk() (*MerchantPersonInfo, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MerchantPersonInfo and assigns it to the Data field. -func (o *ApiResponseResultOfMerchantPersonInfo) SetData(v MerchantPersonInfo) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantPersonInfo) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMerchantPersonInfo) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMerchantPersonInfo) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMerchantPersonInfo) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMerchantPersonInfo) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMerchantPersonInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMerchantPersonInfo) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMerchantPersonInfo := _ApiResponseResultOfMerchantPersonInfo{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMerchantPersonInfo); err == nil { - *o = ApiResponseResultOfMerchantPersonInfo(varApiResponseResultOfMerchantPersonInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMerchantPersonInfo struct { - value *ApiResponseResultOfMerchantPersonInfo - isSet bool -} - -func (v NullableApiResponseResultOfMerchantPersonInfo) Get() *ApiResponseResultOfMerchantPersonInfo { - return v.value -} - -func (v *NullableApiResponseResultOfMerchantPersonInfo) Set(val *ApiResponseResultOfMerchantPersonInfo) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMerchantPersonInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMerchantPersonInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMerchantPersonInfo(val *ApiResponseResultOfMerchantPersonInfo) *NullableApiResponseResultOfMerchantPersonInfo { - return &NullableApiResponseResultOfMerchantPersonInfo{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMerchantPersonInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMerchantPersonInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_my_tracers_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_my_tracers_result.go deleted file mode 100644 index b3ff63db..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_my_tracers_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMyTracersResult struct for ApiResponseResultOfMyTracersResult -type ApiResponseResultOfMyTracersResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MyTracersResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMyTracersResult ApiResponseResultOfMyTracersResult - -// NewApiResponseResultOfMyTracersResult instantiates a new ApiResponseResultOfMyTracersResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMyTracersResult() *ApiResponseResultOfMyTracersResult { - this := ApiResponseResultOfMyTracersResult{} - return &this -} - -// NewApiResponseResultOfMyTracersResultWithDefaults instantiates a new ApiResponseResultOfMyTracersResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMyTracersResultWithDefaults() *ApiResponseResultOfMyTracersResult { - this := ApiResponseResultOfMyTracersResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTracersResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTracersResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTracersResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMyTracersResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTracersResult) GetData() MyTracersResult { - if o == nil || isNil(o.Data) { - var ret MyTracersResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTracersResult) GetDataOk() (*MyTracersResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTracersResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MyTracersResult and assigns it to the Data field. -func (o *ApiResponseResultOfMyTracersResult) SetData(v MyTracersResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTracersResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTracersResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTracersResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMyTracersResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTracersResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTracersResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTracersResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMyTracersResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMyTracersResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMyTracersResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMyTracersResult := _ApiResponseResultOfMyTracersResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMyTracersResult); err == nil { - *o = ApiResponseResultOfMyTracersResult(varApiResponseResultOfMyTracersResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMyTracersResult struct { - value *ApiResponseResultOfMyTracersResult - isSet bool -} - -func (v NullableApiResponseResultOfMyTracersResult) Get() *ApiResponseResultOfMyTracersResult { - return v.value -} - -func (v *NullableApiResponseResultOfMyTracersResult) Set(val *ApiResponseResultOfMyTracersResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMyTracersResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMyTracersResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMyTracersResult(val *ApiResponseResultOfMyTracersResult) *NullableApiResponseResultOfMyTracersResult { - return &NullableApiResponseResultOfMyTracersResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMyTracersResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMyTracersResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_my_traders_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_my_traders_result.go deleted file mode 100644 index d1734d9d..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_my_traders_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfMyTradersResult struct for ApiResponseResultOfMyTradersResult -type ApiResponseResultOfMyTradersResult struct { - // code - Code *string `json:"code,omitempty"` - Data *MyTradersResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfMyTradersResult ApiResponseResultOfMyTradersResult - -// NewApiResponseResultOfMyTradersResult instantiates a new ApiResponseResultOfMyTradersResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfMyTradersResult() *ApiResponseResultOfMyTradersResult { - this := ApiResponseResultOfMyTradersResult{} - return &this -} - -// NewApiResponseResultOfMyTradersResultWithDefaults instantiates a new ApiResponseResultOfMyTradersResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfMyTradersResultWithDefaults() *ApiResponseResultOfMyTradersResult { - this := ApiResponseResultOfMyTradersResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTradersResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTradersResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTradersResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfMyTradersResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTradersResult) GetData() MyTradersResult { - if o == nil || isNil(o.Data) { - var ret MyTradersResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTradersResult) GetDataOk() (*MyTradersResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTradersResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given MyTradersResult and assigns it to the Data field. -func (o *ApiResponseResultOfMyTradersResult) SetData(v MyTradersResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTradersResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTradersResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTradersResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfMyTradersResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfMyTradersResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfMyTradersResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfMyTradersResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfMyTradersResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfMyTradersResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfMyTradersResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfMyTradersResult := _ApiResponseResultOfMyTradersResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfMyTradersResult); err == nil { - *o = ApiResponseResultOfMyTradersResult(varApiResponseResultOfMyTradersResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfMyTradersResult struct { - value *ApiResponseResultOfMyTradersResult - isSet bool -} - -func (v NullableApiResponseResultOfMyTradersResult) Get() *ApiResponseResultOfMyTradersResult { - return v.value -} - -func (v *NullableApiResponseResultOfMyTradersResult) Set(val *ApiResponseResultOfMyTradersResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfMyTradersResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfMyTradersResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfMyTradersResult(val *ApiResponseResultOfMyTradersResult) *NullableApiResponseResultOfMyTradersResult { - return &NullableApiResponseResultOfMyTradersResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfMyTradersResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfMyTradersResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_order_current_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_order_current_list_result.go deleted file mode 100644 index da0dd867..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_order_current_list_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfOrderCurrentListResult struct for ApiResponseResultOfOrderCurrentListResult -type ApiResponseResultOfOrderCurrentListResult struct { - // code - Code *string `json:"code,omitempty"` - Data *OrderCurrentListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfOrderCurrentListResult ApiResponseResultOfOrderCurrentListResult - -// NewApiResponseResultOfOrderCurrentListResult instantiates a new ApiResponseResultOfOrderCurrentListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfOrderCurrentListResult() *ApiResponseResultOfOrderCurrentListResult { - this := ApiResponseResultOfOrderCurrentListResult{} - return &this -} - -// NewApiResponseResultOfOrderCurrentListResultWithDefaults instantiates a new ApiResponseResultOfOrderCurrentListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfOrderCurrentListResultWithDefaults() *ApiResponseResultOfOrderCurrentListResult { - this := ApiResponseResultOfOrderCurrentListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderCurrentListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfOrderCurrentListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderCurrentListResult) GetData() OrderCurrentListResult { - if o == nil || isNil(o.Data) { - var ret OrderCurrentListResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) GetDataOk() (*OrderCurrentListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given OrderCurrentListResult and assigns it to the Data field. -func (o *ApiResponseResultOfOrderCurrentListResult) SetData(v OrderCurrentListResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderCurrentListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfOrderCurrentListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderCurrentListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderCurrentListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfOrderCurrentListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfOrderCurrentListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfOrderCurrentListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfOrderCurrentListResult := _ApiResponseResultOfOrderCurrentListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfOrderCurrentListResult); err == nil { - *o = ApiResponseResultOfOrderCurrentListResult(varApiResponseResultOfOrderCurrentListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfOrderCurrentListResult struct { - value *ApiResponseResultOfOrderCurrentListResult - isSet bool -} - -func (v NullableApiResponseResultOfOrderCurrentListResult) Get() *ApiResponseResultOfOrderCurrentListResult { - return v.value -} - -func (v *NullableApiResponseResultOfOrderCurrentListResult) Set(val *ApiResponseResultOfOrderCurrentListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfOrderCurrentListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfOrderCurrentListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfOrderCurrentListResult(val *ApiResponseResultOfOrderCurrentListResult) *NullableApiResponseResultOfOrderCurrentListResult { - return &NullableApiResponseResultOfOrderCurrentListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfOrderCurrentListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfOrderCurrentListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_order_history_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_order_history_list_result.go deleted file mode 100644 index e03b82ab..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_order_history_list_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfOrderHistoryListResult struct for ApiResponseResultOfOrderHistoryListResult -type ApiResponseResultOfOrderHistoryListResult struct { - // code - Code *string `json:"code,omitempty"` - Data *OrderHistoryListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfOrderHistoryListResult ApiResponseResultOfOrderHistoryListResult - -// NewApiResponseResultOfOrderHistoryListResult instantiates a new ApiResponseResultOfOrderHistoryListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfOrderHistoryListResult() *ApiResponseResultOfOrderHistoryListResult { - this := ApiResponseResultOfOrderHistoryListResult{} - return &this -} - -// NewApiResponseResultOfOrderHistoryListResultWithDefaults instantiates a new ApiResponseResultOfOrderHistoryListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfOrderHistoryListResultWithDefaults() *ApiResponseResultOfOrderHistoryListResult { - this := ApiResponseResultOfOrderHistoryListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderHistoryListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfOrderHistoryListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderHistoryListResult) GetData() OrderHistoryListResult { - if o == nil || isNil(o.Data) { - var ret OrderHistoryListResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) GetDataOk() (*OrderHistoryListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given OrderHistoryListResult and assigns it to the Data field. -func (o *ApiResponseResultOfOrderHistoryListResult) SetData(v OrderHistoryListResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderHistoryListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfOrderHistoryListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfOrderHistoryListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfOrderHistoryListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfOrderHistoryListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfOrderHistoryListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfOrderHistoryListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfOrderHistoryListResult := _ApiResponseResultOfOrderHistoryListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfOrderHistoryListResult); err == nil { - *o = ApiResponseResultOfOrderHistoryListResult(varApiResponseResultOfOrderHistoryListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfOrderHistoryListResult struct { - value *ApiResponseResultOfOrderHistoryListResult - isSet bool -} - -func (v NullableApiResponseResultOfOrderHistoryListResult) Get() *ApiResponseResultOfOrderHistoryListResult { - return v.value -} - -func (v *NullableApiResponseResultOfOrderHistoryListResult) Set(val *ApiResponseResultOfOrderHistoryListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfOrderHistoryListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfOrderHistoryListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfOrderHistoryListResult(val *ApiResponseResultOfOrderHistoryListResult) *NullableApiResponseResultOfOrderHistoryListResult { - return &NullableApiResponseResultOfOrderHistoryListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfOrderHistoryListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfOrderHistoryListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trace_setting_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trace_setting_result.go deleted file mode 100644 index d0b976f8..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trace_setting_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraceSettingResult struct for ApiResponseResultOfTraceSettingResult -type ApiResponseResultOfTraceSettingResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraceSettingResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraceSettingResult ApiResponseResultOfTraceSettingResult - -// NewApiResponseResultOfTraceSettingResult instantiates a new ApiResponseResultOfTraceSettingResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraceSettingResult() *ApiResponseResultOfTraceSettingResult { - this := ApiResponseResultOfTraceSettingResult{} - return &this -} - -// NewApiResponseResultOfTraceSettingResultWithDefaults instantiates a new ApiResponseResultOfTraceSettingResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraceSettingResultWithDefaults() *ApiResponseResultOfTraceSettingResult { - this := ApiResponseResultOfTraceSettingResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraceSettingResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraceSettingResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraceSettingResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraceSettingResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraceSettingResult) GetData() TraceSettingResult { - if o == nil || isNil(o.Data) { - var ret TraceSettingResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraceSettingResult) GetDataOk() (*TraceSettingResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraceSettingResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraceSettingResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraceSettingResult) SetData(v TraceSettingResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraceSettingResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraceSettingResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraceSettingResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraceSettingResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraceSettingResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraceSettingResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraceSettingResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraceSettingResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraceSettingResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraceSettingResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraceSettingResult := _ApiResponseResultOfTraceSettingResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraceSettingResult); err == nil { - *o = ApiResponseResultOfTraceSettingResult(varApiResponseResultOfTraceSettingResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraceSettingResult struct { - value *ApiResponseResultOfTraceSettingResult - isSet bool -} - -func (v NullableApiResponseResultOfTraceSettingResult) Get() *ApiResponseResultOfTraceSettingResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraceSettingResult) Set(val *ApiResponseResultOfTraceSettingResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraceSettingResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraceSettingResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraceSettingResult(val *ApiResponseResultOfTraceSettingResult) *NullableApiResponseResultOfTraceSettingResult { - return &NullableApiResponseResultOfTraceSettingResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraceSettingResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraceSettingResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_detail_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_detail_list_result.go deleted file mode 100644 index 825a02e6..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_detail_list_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraderProfitHisDetailListResult struct for ApiResponseResultOfTraderProfitHisDetailListResult -type ApiResponseResultOfTraderProfitHisDetailListResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraderProfitHisDetailListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraderProfitHisDetailListResult ApiResponseResultOfTraderProfitHisDetailListResult - -// NewApiResponseResultOfTraderProfitHisDetailListResult instantiates a new ApiResponseResultOfTraderProfitHisDetailListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraderProfitHisDetailListResult() *ApiResponseResultOfTraderProfitHisDetailListResult { - this := ApiResponseResultOfTraderProfitHisDetailListResult{} - return &this -} - -// NewApiResponseResultOfTraderProfitHisDetailListResultWithDefaults instantiates a new ApiResponseResultOfTraderProfitHisDetailListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraderProfitHisDetailListResultWithDefaults() *ApiResponseResultOfTraderProfitHisDetailListResult { - this := ApiResponseResultOfTraderProfitHisDetailListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetData() TraderProfitHisDetailListResult { - if o == nil || isNil(o.Data) { - var ret TraderProfitHisDetailListResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetDataOk() (*TraderProfitHisDetailListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraderProfitHisDetailListResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetData(v TraderProfitHisDetailListResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraderProfitHisDetailListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraderProfitHisDetailListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraderProfitHisDetailListResult := _ApiResponseResultOfTraderProfitHisDetailListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraderProfitHisDetailListResult); err == nil { - *o = ApiResponseResultOfTraderProfitHisDetailListResult(varApiResponseResultOfTraderProfitHisDetailListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraderProfitHisDetailListResult struct { - value *ApiResponseResultOfTraderProfitHisDetailListResult - isSet bool -} - -func (v NullableApiResponseResultOfTraderProfitHisDetailListResult) Get() *ApiResponseResultOfTraderProfitHisDetailListResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraderProfitHisDetailListResult) Set(val *ApiResponseResultOfTraderProfitHisDetailListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraderProfitHisDetailListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraderProfitHisDetailListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraderProfitHisDetailListResult(val *ApiResponseResultOfTraderProfitHisDetailListResult) *NullableApiResponseResultOfTraderProfitHisDetailListResult { - return &NullableApiResponseResultOfTraderProfitHisDetailListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraderProfitHisDetailListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraderProfitHisDetailListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_list_result.go deleted file mode 100644 index cb4233d5..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_profit_his_list_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraderProfitHisListResult struct for ApiResponseResultOfTraderProfitHisListResult -type ApiResponseResultOfTraderProfitHisListResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraderProfitHisListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraderProfitHisListResult ApiResponseResultOfTraderProfitHisListResult - -// NewApiResponseResultOfTraderProfitHisListResult instantiates a new ApiResponseResultOfTraderProfitHisListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraderProfitHisListResult() *ApiResponseResultOfTraderProfitHisListResult { - this := ApiResponseResultOfTraderProfitHisListResult{} - return &this -} - -// NewApiResponseResultOfTraderProfitHisListResultWithDefaults instantiates a new ApiResponseResultOfTraderProfitHisListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraderProfitHisListResultWithDefaults() *ApiResponseResultOfTraderProfitHisListResult { - this := ApiResponseResultOfTraderProfitHisListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraderProfitHisListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetData() TraderProfitHisListResult { - if o == nil || isNil(o.Data) { - var ret TraderProfitHisListResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetDataOk() (*TraderProfitHisListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraderProfitHisListResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraderProfitHisListResult) SetData(v TraderProfitHisListResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraderProfitHisListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderProfitHisListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraderProfitHisListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraderProfitHisListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraderProfitHisListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraderProfitHisListResult := _ApiResponseResultOfTraderProfitHisListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraderProfitHisListResult); err == nil { - *o = ApiResponseResultOfTraderProfitHisListResult(varApiResponseResultOfTraderProfitHisListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraderProfitHisListResult struct { - value *ApiResponseResultOfTraderProfitHisListResult - isSet bool -} - -func (v NullableApiResponseResultOfTraderProfitHisListResult) Get() *ApiResponseResultOfTraderProfitHisListResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraderProfitHisListResult) Set(val *ApiResponseResultOfTraderProfitHisListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraderProfitHisListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraderProfitHisListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraderProfitHisListResult(val *ApiResponseResultOfTraderProfitHisListResult) *NullableApiResponseResultOfTraderProfitHisListResult { - return &NullableApiResponseResultOfTraderProfitHisListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraderProfitHisListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraderProfitHisListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_setting_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trader_setting_result.go deleted file mode 100644 index 70234189..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_setting_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraderSettingResult struct for ApiResponseResultOfTraderSettingResult -type ApiResponseResultOfTraderSettingResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraderSettingResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraderSettingResult ApiResponseResultOfTraderSettingResult - -// NewApiResponseResultOfTraderSettingResult instantiates a new ApiResponseResultOfTraderSettingResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraderSettingResult() *ApiResponseResultOfTraderSettingResult { - this := ApiResponseResultOfTraderSettingResult{} - return &this -} - -// NewApiResponseResultOfTraderSettingResultWithDefaults instantiates a new ApiResponseResultOfTraderSettingResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraderSettingResultWithDefaults() *ApiResponseResultOfTraderSettingResult { - this := ApiResponseResultOfTraderSettingResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderSettingResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderSettingResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderSettingResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraderSettingResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderSettingResult) GetData() TraderSettingResult { - if o == nil || isNil(o.Data) { - var ret TraderSettingResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderSettingResult) GetDataOk() (*TraderSettingResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderSettingResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraderSettingResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraderSettingResult) SetData(v TraderSettingResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderSettingResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderSettingResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderSettingResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraderSettingResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderSettingResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderSettingResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderSettingResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraderSettingResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraderSettingResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraderSettingResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraderSettingResult := _ApiResponseResultOfTraderSettingResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraderSettingResult); err == nil { - *o = ApiResponseResultOfTraderSettingResult(varApiResponseResultOfTraderSettingResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraderSettingResult struct { - value *ApiResponseResultOfTraderSettingResult - isSet bool -} - -func (v NullableApiResponseResultOfTraderSettingResult) Get() *ApiResponseResultOfTraderSettingResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraderSettingResult) Set(val *ApiResponseResultOfTraderSettingResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraderSettingResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraderSettingResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraderSettingResult(val *ApiResponseResultOfTraderSettingResult) *NullableApiResponseResultOfTraderSettingResult { - return &NullableApiResponseResultOfTraderSettingResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraderSettingResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraderSettingResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_total_profit_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trader_total_profit_result.go deleted file mode 100644 index 5e1a0409..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_total_profit_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraderTotalProfitResult struct for ApiResponseResultOfTraderTotalProfitResult -type ApiResponseResultOfTraderTotalProfitResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraderTotalProfitResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraderTotalProfitResult ApiResponseResultOfTraderTotalProfitResult - -// NewApiResponseResultOfTraderTotalProfitResult instantiates a new ApiResponseResultOfTraderTotalProfitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraderTotalProfitResult() *ApiResponseResultOfTraderTotalProfitResult { - this := ApiResponseResultOfTraderTotalProfitResult{} - return &this -} - -// NewApiResponseResultOfTraderTotalProfitResultWithDefaults instantiates a new ApiResponseResultOfTraderTotalProfitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraderTotalProfitResultWithDefaults() *ApiResponseResultOfTraderTotalProfitResult { - this := ApiResponseResultOfTraderTotalProfitResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraderTotalProfitResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetData() TraderTotalProfitResult { - if o == nil || isNil(o.Data) { - var ret TraderTotalProfitResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetDataOk() (*TraderTotalProfitResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraderTotalProfitResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraderTotalProfitResult) SetData(v TraderTotalProfitResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraderTotalProfitResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderTotalProfitResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraderTotalProfitResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraderTotalProfitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraderTotalProfitResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraderTotalProfitResult := _ApiResponseResultOfTraderTotalProfitResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraderTotalProfitResult); err == nil { - *o = ApiResponseResultOfTraderTotalProfitResult(varApiResponseResultOfTraderTotalProfitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraderTotalProfitResult struct { - value *ApiResponseResultOfTraderTotalProfitResult - isSet bool -} - -func (v NullableApiResponseResultOfTraderTotalProfitResult) Get() *ApiResponseResultOfTraderTotalProfitResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraderTotalProfitResult) Set(val *ApiResponseResultOfTraderTotalProfitResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraderTotalProfitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraderTotalProfitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraderTotalProfitResult(val *ApiResponseResultOfTraderTotalProfitResult) *NullableApiResponseResultOfTraderTotalProfitResult { - return &NullableApiResponseResultOfTraderTotalProfitResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraderTotalProfitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraderTotalProfitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_wait_profit_detail_list_result.go b/bitget-goland-sdk-open-api/model_api_response_result_of_trader_wait_profit_detail_list_result.go deleted file mode 100644 index 1d5df3cd..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_trader_wait_profit_detail_list_result.go +++ /dev/null @@ -1,252 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfTraderWaitProfitDetailListResult struct for ApiResponseResultOfTraderWaitProfitDetailListResult -type ApiResponseResultOfTraderWaitProfitDetailListResult struct { - // code - Code *string `json:"code,omitempty"` - Data *TraderWaitProfitDetailListResult `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfTraderWaitProfitDetailListResult ApiResponseResultOfTraderWaitProfitDetailListResult - -// NewApiResponseResultOfTraderWaitProfitDetailListResult instantiates a new ApiResponseResultOfTraderWaitProfitDetailListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfTraderWaitProfitDetailListResult() *ApiResponseResultOfTraderWaitProfitDetailListResult { - this := ApiResponseResultOfTraderWaitProfitDetailListResult{} - return &this -} - -// NewApiResponseResultOfTraderWaitProfitDetailListResultWithDefaults instantiates a new ApiResponseResultOfTraderWaitProfitDetailListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfTraderWaitProfitDetailListResultWithDefaults() *ApiResponseResultOfTraderWaitProfitDetailListResult { - this := ApiResponseResultOfTraderWaitProfitDetailListResult{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetData() TraderWaitProfitDetailListResult { - if o == nil || isNil(o.Data) { - var ret TraderWaitProfitDetailListResult - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetDataOk() (*TraderWaitProfitDetailListResult, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TraderWaitProfitDetailListResult and assigns it to the Data field. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetData(v TraderWaitProfitDetailListResult) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfTraderWaitProfitDetailListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfTraderWaitProfitDetailListResult) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfTraderWaitProfitDetailListResult := _ApiResponseResultOfTraderWaitProfitDetailListResult{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfTraderWaitProfitDetailListResult); err == nil { - *o = ApiResponseResultOfTraderWaitProfitDetailListResult(varApiResponseResultOfTraderWaitProfitDetailListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfTraderWaitProfitDetailListResult struct { - value *ApiResponseResultOfTraderWaitProfitDetailListResult - isSet bool -} - -func (v NullableApiResponseResultOfTraderWaitProfitDetailListResult) Get() *ApiResponseResultOfTraderWaitProfitDetailListResult { - return v.value -} - -func (v *NullableApiResponseResultOfTraderWaitProfitDetailListResult) Set(val *ApiResponseResultOfTraderWaitProfitDetailListResult) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfTraderWaitProfitDetailListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfTraderWaitProfitDetailListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfTraderWaitProfitDetailListResult(val *ApiResponseResultOfTraderWaitProfitDetailListResult) *NullableApiResponseResultOfTraderWaitProfitDetailListResult { - return &NullableApiResponseResultOfTraderWaitProfitDetailListResult{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfTraderWaitProfitDetailListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfTraderWaitProfitDetailListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_of_void.go b/bitget-goland-sdk-open-api/model_api_response_result_of_void.go deleted file mode 100644 index 655abf66..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_of_void.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfVoid struct for ApiResponseResultOfVoid -type ApiResponseResultOfVoid struct { - // code - Code *string `json:"code,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfVoid ApiResponseResultOfVoid - -// NewApiResponseResultOfVoid instantiates a new ApiResponseResultOfVoid object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfVoid() *ApiResponseResultOfVoid { - this := ApiResponseResultOfVoid{} - return &this -} - -// NewApiResponseResultOfVoidWithDefaults instantiates a new ApiResponseResultOfVoid object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfVoidWithDefaults() *ApiResponseResultOfVoid { - this := ApiResponseResultOfVoid{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfVoid) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfVoid) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfVoid) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfVoid) SetCode(v string) { - o.Code = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfVoid) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfVoid) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfVoid) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfVoid) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfVoid) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfVoid) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfVoid) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfVoid) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfVoid) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfVoid) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfVoid := _ApiResponseResultOfVoid{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfVoid); err == nil { - *o = ApiResponseResultOfVoid(varApiResponseResultOfVoid) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfVoid struct { - value *ApiResponseResultOfVoid - isSet bool -} - -func (v NullableApiResponseResultOfVoid) Get() *ApiResponseResultOfVoid { - return v.value -} - -func (v *NullableApiResponseResultOfVoid) Set(val *ApiResponseResultOfVoid) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfVoid) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfVoid) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfVoid(val *ApiResponseResultOfVoid) *NullableApiResponseResultOfVoid { - return &NullableApiResponseResultOfVoid{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfVoid) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfVoid) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_api_response_result_ofboolean.go b/bitget-goland-sdk-open-api/model_api_response_result_ofboolean.go deleted file mode 100644 index eb2bd152..00000000 --- a/bitget-goland-sdk-open-api/model_api_response_result_ofboolean.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ApiResponseResultOfboolean struct for ApiResponseResultOfboolean -type ApiResponseResultOfboolean struct { - // code - Code *string `json:"code,omitempty"` - // data - Data *bool `json:"data,omitempty"` - // msg - Msg *string `json:"msg,omitempty"` - // requestTime - RequestTime *int64 `json:"requestTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiResponseResultOfboolean ApiResponseResultOfboolean - -// NewApiResponseResultOfboolean instantiates a new ApiResponseResultOfboolean object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiResponseResultOfboolean() *ApiResponseResultOfboolean { - this := ApiResponseResultOfboolean{} - return &this -} - -// NewApiResponseResultOfbooleanWithDefaults instantiates a new ApiResponseResultOfboolean object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiResponseResultOfbooleanWithDefaults() *ApiResponseResultOfboolean { - this := ApiResponseResultOfboolean{} - return &this -} - -// GetCode returns the Code field value if set, zero value otherwise. -func (o *ApiResponseResultOfboolean) GetCode() string { - if o == nil || isNil(o.Code) { - var ret string - return ret - } - return *o.Code -} - -// GetCodeOk returns a tuple with the Code field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfboolean) GetCodeOk() (*string, bool) { - if o == nil || isNil(o.Code) { - return nil, false - } - return o.Code, true -} - -// HasCode returns a boolean if a field has been set. -func (o *ApiResponseResultOfboolean) HasCode() bool { - if o != nil && !isNil(o.Code) { - return true - } - - return false -} - -// SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ApiResponseResultOfboolean) SetCode(v string) { - o.Code = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ApiResponseResultOfboolean) GetData() bool { - if o == nil || isNil(o.Data) { - var ret bool - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfboolean) GetDataOk() (*bool, bool) { - if o == nil || isNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ApiResponseResultOfboolean) HasData() bool { - if o != nil && !isNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given bool and assigns it to the Data field. -func (o *ApiResponseResultOfboolean) SetData(v bool) { - o.Data = &v -} - -// GetMsg returns the Msg field value if set, zero value otherwise. -func (o *ApiResponseResultOfboolean) GetMsg() string { - if o == nil || isNil(o.Msg) { - var ret string - return ret - } - return *o.Msg -} - -// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfboolean) GetMsgOk() (*string, bool) { - if o == nil || isNil(o.Msg) { - return nil, false - } - return o.Msg, true -} - -// HasMsg returns a boolean if a field has been set. -func (o *ApiResponseResultOfboolean) HasMsg() bool { - if o != nil && !isNil(o.Msg) { - return true - } - - return false -} - -// SetMsg gets a reference to the given string and assigns it to the Msg field. -func (o *ApiResponseResultOfboolean) SetMsg(v string) { - o.Msg = &v -} - -// GetRequestTime returns the RequestTime field value if set, zero value otherwise. -func (o *ApiResponseResultOfboolean) GetRequestTime() int64 { - if o == nil || isNil(o.RequestTime) { - var ret int64 - return ret - } - return *o.RequestTime -} - -// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiResponseResultOfboolean) GetRequestTimeOk() (*int64, bool) { - if o == nil || isNil(o.RequestTime) { - return nil, false - } - return o.RequestTime, true -} - -// HasRequestTime returns a boolean if a field has been set. -func (o *ApiResponseResultOfboolean) HasRequestTime() bool { - if o != nil && !isNil(o.RequestTime) { - return true - } - - return false -} - -// SetRequestTime gets a reference to the given int64 and assigns it to the RequestTime field. -func (o *ApiResponseResultOfboolean) SetRequestTime(v int64) { - o.RequestTime = &v -} - -func (o ApiResponseResultOfboolean) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Code) { - toSerialize["code"] = o.Code - } - if !isNil(o.Data) { - toSerialize["data"] = o.Data - } - if !isNil(o.Msg) { - toSerialize["msg"] = o.Msg - } - if !isNil(o.RequestTime) { - toSerialize["requestTime"] = o.RequestTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ApiResponseResultOfboolean) UnmarshalJSON(bytes []byte) (err error) { - varApiResponseResultOfboolean := _ApiResponseResultOfboolean{} - - if err = json.Unmarshal(bytes, &varApiResponseResultOfboolean); err == nil { - *o = ApiResponseResultOfboolean(varApiResponseResultOfboolean) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "code") - delete(additionalProperties, "data") - delete(additionalProperties, "msg") - delete(additionalProperties, "requestTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiResponseResultOfboolean struct { - value *ApiResponseResultOfboolean - isSet bool -} - -func (v NullableApiResponseResultOfboolean) Get() *ApiResponseResultOfboolean { - return v.value -} - -func (v *NullableApiResponseResultOfboolean) Set(val *ApiResponseResultOfboolean) { - v.value = val - v.isSet = true -} - -func (v NullableApiResponseResultOfboolean) IsSet() bool { - return v.isSet -} - -func (v *NullableApiResponseResultOfboolean) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiResponseResultOfboolean(val *ApiResponseResultOfboolean) *NullableApiResponseResultOfboolean { - return &NullableApiResponseResultOfboolean{value: val, isSet: true} -} - -func (v NullableApiResponseResultOfboolean) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiResponseResultOfboolean) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_close_tracking_order_request.go b/bitget-goland-sdk-open-api/model_close_tracking_order_request.go deleted file mode 100644 index cccc06da..00000000 --- a/bitget-goland-sdk-open-api/model_close_tracking_order_request.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// CloseTrackingOrderRequest struct for CloseTrackingOrderRequest -type CloseTrackingOrderRequest struct { - // symbolId - SymbolId string `json:"symbolId"` - // trackingOrderNos - TrackingOrderNos []string `json:"trackingOrderNos"` - AdditionalProperties map[string]interface{} -} - -type _CloseTrackingOrderRequest CloseTrackingOrderRequest - -// NewCloseTrackingOrderRequest instantiates a new CloseTrackingOrderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCloseTrackingOrderRequest(symbolId string, trackingOrderNos []string) *CloseTrackingOrderRequest { - this := CloseTrackingOrderRequest{} - this.SymbolId = symbolId - this.TrackingOrderNos = trackingOrderNos - return &this -} - -// NewCloseTrackingOrderRequestWithDefaults instantiates a new CloseTrackingOrderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCloseTrackingOrderRequestWithDefaults() *CloseTrackingOrderRequest { - this := CloseTrackingOrderRequest{} - return &this -} - -// GetSymbolId returns the SymbolId field value -func (o *CloseTrackingOrderRequest) GetSymbolId() string { - if o == nil { - var ret string - return ret - } - - return o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value -// and a boolean to check if the value has been set. -func (o *CloseTrackingOrderRequest) GetSymbolIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SymbolId, true -} - -// SetSymbolId sets field value -func (o *CloseTrackingOrderRequest) SetSymbolId(v string) { - o.SymbolId = v -} - -// GetTrackingOrderNos returns the TrackingOrderNos field value -func (o *CloseTrackingOrderRequest) GetTrackingOrderNos() []string { - if o == nil { - var ret []string - return ret - } - - return o.TrackingOrderNos -} - -// GetTrackingOrderNosOk returns a tuple with the TrackingOrderNos field value -// and a boolean to check if the value has been set. -func (o *CloseTrackingOrderRequest) GetTrackingOrderNosOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.TrackingOrderNos, true -} - -// SetTrackingOrderNos sets field value -func (o *CloseTrackingOrderRequest) SetTrackingOrderNos(v []string) { - o.TrackingOrderNos = v -} - -func (o CloseTrackingOrderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["symbolId"] = o.SymbolId - } - if true { - toSerialize["trackingOrderNos"] = o.TrackingOrderNos - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *CloseTrackingOrderRequest) UnmarshalJSON(bytes []byte) (err error) { - varCloseTrackingOrderRequest := _CloseTrackingOrderRequest{} - - if err = json.Unmarshal(bytes, &varCloseTrackingOrderRequest); err == nil { - *o = CloseTrackingOrderRequest(varCloseTrackingOrderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "symbolId") - delete(additionalProperties, "trackingOrderNos") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCloseTrackingOrderRequest struct { - value *CloseTrackingOrderRequest - isSet bool -} - -func (v NullableCloseTrackingOrderRequest) Get() *CloseTrackingOrderRequest { - return v.value -} - -func (v *NullableCloseTrackingOrderRequest) Set(val *CloseTrackingOrderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCloseTrackingOrderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCloseTrackingOrderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloseTrackingOrderRequest(val *CloseTrackingOrderRequest) *NullableCloseTrackingOrderRequest { - return &NullableCloseTrackingOrderRequest{value: val, isSet: true} -} - -func (v NullableCloseTrackingOrderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloseTrackingOrderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_current_order_list_request.go b/bitget-goland-sdk-open-api/model_current_order_list_request.go deleted file mode 100644 index c3e3eede..00000000 --- a/bitget-goland-sdk-open-api/model_current_order_list_request.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// CurrentOrderListRequest struct for CurrentOrderListRequest -type CurrentOrderListRequest struct { - // mixId - MixId *string `json:"mixId,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - // trackingNo - TrackingNo *string `json:"trackingNo,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CurrentOrderListRequest CurrentOrderListRequest - -// NewCurrentOrderListRequest instantiates a new CurrentOrderListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCurrentOrderListRequest() *CurrentOrderListRequest { - this := CurrentOrderListRequest{} - return &this -} - -// NewCurrentOrderListRequestWithDefaults instantiates a new CurrentOrderListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCurrentOrderListRequestWithDefaults() *CurrentOrderListRequest { - this := CurrentOrderListRequest{} - return &this -} - -// GetMixId returns the MixId field value if set, zero value otherwise. -func (o *CurrentOrderListRequest) GetMixId() string { - if o == nil || isNil(o.MixId) { - var ret string - return ret - } - return *o.MixId -} - -// GetMixIdOk returns a tuple with the MixId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CurrentOrderListRequest) GetMixIdOk() (*string, bool) { - if o == nil || isNil(o.MixId) { - return nil, false - } - return o.MixId, true -} - -// HasMixId returns a boolean if a field has been set. -func (o *CurrentOrderListRequest) HasMixId() bool { - if o != nil && !isNil(o.MixId) { - return true - } - - return false -} - -// SetMixId gets a reference to the given string and assigns it to the MixId field. -func (o *CurrentOrderListRequest) SetMixId(v string) { - o.MixId = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *CurrentOrderListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CurrentOrderListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *CurrentOrderListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *CurrentOrderListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -// GetTrackingNo returns the TrackingNo field value if set, zero value otherwise. -func (o *CurrentOrderListRequest) GetTrackingNo() string { - if o == nil || isNil(o.TrackingNo) { - var ret string - return ret - } - return *o.TrackingNo -} - -// GetTrackingNoOk returns a tuple with the TrackingNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CurrentOrderListRequest) GetTrackingNoOk() (*string, bool) { - if o == nil || isNil(o.TrackingNo) { - return nil, false - } - return o.TrackingNo, true -} - -// HasTrackingNo returns a boolean if a field has been set. -func (o *CurrentOrderListRequest) HasTrackingNo() bool { - if o != nil && !isNil(o.TrackingNo) { - return true - } - - return false -} - -// SetTrackingNo gets a reference to the given string and assigns it to the TrackingNo field. -func (o *CurrentOrderListRequest) SetTrackingNo(v string) { - o.TrackingNo = &v -} - -func (o CurrentOrderListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MixId) { - toSerialize["mixId"] = o.MixId - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - if !isNil(o.TrackingNo) { - toSerialize["trackingNo"] = o.TrackingNo - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *CurrentOrderListRequest) UnmarshalJSON(bytes []byte) (err error) { - varCurrentOrderListRequest := _CurrentOrderListRequest{} - - if err = json.Unmarshal(bytes, &varCurrentOrderListRequest); err == nil { - *o = CurrentOrderListRequest(varCurrentOrderListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "mixId") - delete(additionalProperties, "pageSize") - delete(additionalProperties, "trackingNo") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCurrentOrderListRequest struct { - value *CurrentOrderListRequest - isSet bool -} - -func (v NullableCurrentOrderListRequest) Get() *CurrentOrderListRequest { - return v.value -} - -func (v *NullableCurrentOrderListRequest) Set(val *CurrentOrderListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCurrentOrderListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCurrentOrderListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCurrentOrderListRequest(val *CurrentOrderListRequest) *NullableCurrentOrderListRequest { - return &NullableCurrentOrderListRequest{value: val, isSet: true} -} - -func (v NullableCurrentOrderListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCurrentOrderListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_end_order_request.go b/bitget-goland-sdk-open-api/model_end_order_request.go deleted file mode 100644 index 118ced4d..00000000 --- a/bitget-goland-sdk-open-api/model_end_order_request.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// EndOrderRequest struct for EndOrderRequest -type EndOrderRequest struct { - // trackingOrderNos - TrackingOrderNos []string `json:"trackingOrderNos"` - AdditionalProperties map[string]interface{} -} - -type _EndOrderRequest EndOrderRequest - -// NewEndOrderRequest instantiates a new EndOrderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewEndOrderRequest(trackingOrderNos []string) *EndOrderRequest { - this := EndOrderRequest{} - this.TrackingOrderNos = trackingOrderNos - return &this -} - -// NewEndOrderRequestWithDefaults instantiates a new EndOrderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewEndOrderRequestWithDefaults() *EndOrderRequest { - this := EndOrderRequest{} - return &this -} - -// GetTrackingOrderNos returns the TrackingOrderNos field value -func (o *EndOrderRequest) GetTrackingOrderNos() []string { - if o == nil { - var ret []string - return ret - } - - return o.TrackingOrderNos -} - -// GetTrackingOrderNosOk returns a tuple with the TrackingOrderNos field value -// and a boolean to check if the value has been set. -func (o *EndOrderRequest) GetTrackingOrderNosOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.TrackingOrderNos, true -} - -// SetTrackingOrderNos sets field value -func (o *EndOrderRequest) SetTrackingOrderNos(v []string) { - o.TrackingOrderNos = v -} - -func (o EndOrderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["trackingOrderNos"] = o.TrackingOrderNos - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *EndOrderRequest) UnmarshalJSON(bytes []byte) (err error) { - varEndOrderRequest := _EndOrderRequest{} - - if err = json.Unmarshal(bytes, &varEndOrderRequest); err == nil { - *o = EndOrderRequest(varEndOrderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "trackingOrderNos") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableEndOrderRequest struct { - value *EndOrderRequest - isSet bool -} - -func (v NullableEndOrderRequest) Get() *EndOrderRequest { - return v.value -} - -func (v *NullableEndOrderRequest) Set(val *EndOrderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableEndOrderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableEndOrderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableEndOrderRequest(val *EndOrderRequest) *NullableEndOrderRequest { - return &NullableEndOrderRequest{value: val, isSet: true} -} - -func (v NullableEndOrderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableEndOrderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_fiat_payment_detail_info.go b/bitget-goland-sdk-open-api/model_fiat_payment_detail_info.go deleted file mode 100644 index bd3b992c..00000000 --- a/bitget-goland-sdk-open-api/model_fiat_payment_detail_info.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// FiatPaymentDetailInfo struct for FiatPaymentDetailInfo -type FiatPaymentDetailInfo struct { - Name *string `json:"name,omitempty"` - Required *bool `json:"required,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FiatPaymentDetailInfo FiatPaymentDetailInfo - -// NewFiatPaymentDetailInfo instantiates a new FiatPaymentDetailInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFiatPaymentDetailInfo() *FiatPaymentDetailInfo { - this := FiatPaymentDetailInfo{} - return &this -} - -// NewFiatPaymentDetailInfoWithDefaults instantiates a new FiatPaymentDetailInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFiatPaymentDetailInfoWithDefaults() *FiatPaymentDetailInfo { - this := FiatPaymentDetailInfo{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *FiatPaymentDetailInfo) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentDetailInfo) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *FiatPaymentDetailInfo) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *FiatPaymentDetailInfo) SetName(v string) { - o.Name = &v -} - -// GetRequired returns the Required field value if set, zero value otherwise. -func (o *FiatPaymentDetailInfo) GetRequired() bool { - if o == nil || isNil(o.Required) { - var ret bool - return ret - } - return *o.Required -} - -// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentDetailInfo) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { - return nil, false - } - return o.Required, true -} - -// HasRequired returns a boolean if a field has been set. -func (o *FiatPaymentDetailInfo) HasRequired() bool { - if o != nil && !isNil(o.Required) { - return true - } - - return false -} - -// SetRequired gets a reference to the given bool and assigns it to the Required field. -func (o *FiatPaymentDetailInfo) SetRequired(v bool) { - o.Required = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *FiatPaymentDetailInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentDetailInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *FiatPaymentDetailInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *FiatPaymentDetailInfo) SetType(v string) { - o.Type = &v -} - -func (o FiatPaymentDetailInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Required) { - toSerialize["required"] = o.Required - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *FiatPaymentDetailInfo) UnmarshalJSON(bytes []byte) (err error) { - varFiatPaymentDetailInfo := _FiatPaymentDetailInfo{} - - if err = json.Unmarshal(bytes, &varFiatPaymentDetailInfo); err == nil { - *o = FiatPaymentDetailInfo(varFiatPaymentDetailInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "required") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFiatPaymentDetailInfo struct { - value *FiatPaymentDetailInfo - isSet bool -} - -func (v NullableFiatPaymentDetailInfo) Get() *FiatPaymentDetailInfo { - return v.value -} - -func (v *NullableFiatPaymentDetailInfo) Set(val *FiatPaymentDetailInfo) { - v.value = val - v.isSet = true -} - -func (v NullableFiatPaymentDetailInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableFiatPaymentDetailInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFiatPaymentDetailInfo(val *FiatPaymentDetailInfo) *NullableFiatPaymentDetailInfo { - return &NullableFiatPaymentDetailInfo{value: val, isSet: true} -} - -func (v NullableFiatPaymentDetailInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFiatPaymentDetailInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_fiat_payment_info.go b/bitget-goland-sdk-open-api/model_fiat_payment_info.go deleted file mode 100644 index 381b26af..00000000 --- a/bitget-goland-sdk-open-api/model_fiat_payment_info.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// FiatPaymentInfo struct for FiatPaymentInfo -type FiatPaymentInfo struct { - PaymentId *string `json:"paymentId,omitempty"` - PaymentInfo []FiatPaymentDetailInfo `json:"paymentInfo,omitempty"` - PaymentMethod *string `json:"paymentMethod,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FiatPaymentInfo FiatPaymentInfo - -// NewFiatPaymentInfo instantiates a new FiatPaymentInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFiatPaymentInfo() *FiatPaymentInfo { - this := FiatPaymentInfo{} - return &this -} - -// NewFiatPaymentInfoWithDefaults instantiates a new FiatPaymentInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFiatPaymentInfoWithDefaults() *FiatPaymentInfo { - this := FiatPaymentInfo{} - return &this -} - -// GetPaymentId returns the PaymentId field value if set, zero value otherwise. -func (o *FiatPaymentInfo) GetPaymentId() string { - if o == nil || isNil(o.PaymentId) { - var ret string - return ret - } - return *o.PaymentId -} - -// GetPaymentIdOk returns a tuple with the PaymentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentInfo) GetPaymentIdOk() (*string, bool) { - if o == nil || isNil(o.PaymentId) { - return nil, false - } - return o.PaymentId, true -} - -// HasPaymentId returns a boolean if a field has been set. -func (o *FiatPaymentInfo) HasPaymentId() bool { - if o != nil && !isNil(o.PaymentId) { - return true - } - - return false -} - -// SetPaymentId gets a reference to the given string and assigns it to the PaymentId field. -func (o *FiatPaymentInfo) SetPaymentId(v string) { - o.PaymentId = &v -} - -// GetPaymentInfo returns the PaymentInfo field value if set, zero value otherwise. -func (o *FiatPaymentInfo) GetPaymentInfo() []FiatPaymentDetailInfo { - if o == nil || isNil(o.PaymentInfo) { - var ret []FiatPaymentDetailInfo - return ret - } - return o.PaymentInfo -} - -// GetPaymentInfoOk returns a tuple with the PaymentInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentInfo) GetPaymentInfoOk() ([]FiatPaymentDetailInfo, bool) { - if o == nil || isNil(o.PaymentInfo) { - return nil, false - } - return o.PaymentInfo, true -} - -// HasPaymentInfo returns a boolean if a field has been set. -func (o *FiatPaymentInfo) HasPaymentInfo() bool { - if o != nil && !isNil(o.PaymentInfo) { - return true - } - - return false -} - -// SetPaymentInfo gets a reference to the given []FiatPaymentDetailInfo and assigns it to the PaymentInfo field. -func (o *FiatPaymentInfo) SetPaymentInfo(v []FiatPaymentDetailInfo) { - o.PaymentInfo = v -} - -// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. -func (o *FiatPaymentInfo) GetPaymentMethod() string { - if o == nil || isNil(o.PaymentMethod) { - var ret string - return ret - } - return *o.PaymentMethod -} - -// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FiatPaymentInfo) GetPaymentMethodOk() (*string, bool) { - if o == nil || isNil(o.PaymentMethod) { - return nil, false - } - return o.PaymentMethod, true -} - -// HasPaymentMethod returns a boolean if a field has been set. -func (o *FiatPaymentInfo) HasPaymentMethod() bool { - if o != nil && !isNil(o.PaymentMethod) { - return true - } - - return false -} - -// SetPaymentMethod gets a reference to the given string and assigns it to the PaymentMethod field. -func (o *FiatPaymentInfo) SetPaymentMethod(v string) { - o.PaymentMethod = &v -} - -func (o FiatPaymentInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PaymentId) { - toSerialize["paymentId"] = o.PaymentId - } - if !isNil(o.PaymentInfo) { - toSerialize["paymentInfo"] = o.PaymentInfo - } - if !isNil(o.PaymentMethod) { - toSerialize["paymentMethod"] = o.PaymentMethod - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *FiatPaymentInfo) UnmarshalJSON(bytes []byte) (err error) { - varFiatPaymentInfo := _FiatPaymentInfo{} - - if err = json.Unmarshal(bytes, &varFiatPaymentInfo); err == nil { - *o = FiatPaymentInfo(varFiatPaymentInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "paymentId") - delete(additionalProperties, "paymentInfo") - delete(additionalProperties, "paymentMethod") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFiatPaymentInfo struct { - value *FiatPaymentInfo - isSet bool -} - -func (v NullableFiatPaymentInfo) Get() *FiatPaymentInfo { - return v.value -} - -func (v *NullableFiatPaymentInfo) Set(val *FiatPaymentInfo) { - v.value = val - v.isSet = true -} - -func (v NullableFiatPaymentInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableFiatPaymentInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFiatPaymentInfo(val *FiatPaymentInfo) *NullableFiatPaymentInfo { - return &NullableFiatPaymentInfo{value: val, isSet: true} -} - -func (v NullableFiatPaymentInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFiatPaymentInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_history_order_list_request.go b/bitget-goland-sdk-open-api/model_history_order_list_request.go deleted file mode 100644 index f7b81e98..00000000 --- a/bitget-goland-sdk-open-api/model_history_order_list_request.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// HistoryOrderListRequest struct for HistoryOrderListRequest -type HistoryOrderListRequest struct { - // mixId - MixId *string `json:"mixId,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - // trackingNo - TrackingNo *string `json:"trackingNo,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _HistoryOrderListRequest HistoryOrderListRequest - -// NewHistoryOrderListRequest instantiates a new HistoryOrderListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHistoryOrderListRequest() *HistoryOrderListRequest { - this := HistoryOrderListRequest{} - return &this -} - -// NewHistoryOrderListRequestWithDefaults instantiates a new HistoryOrderListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHistoryOrderListRequestWithDefaults() *HistoryOrderListRequest { - this := HistoryOrderListRequest{} - return &this -} - -// GetMixId returns the MixId field value if set, zero value otherwise. -func (o *HistoryOrderListRequest) GetMixId() string { - if o == nil || isNil(o.MixId) { - var ret string - return ret - } - return *o.MixId -} - -// GetMixIdOk returns a tuple with the MixId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HistoryOrderListRequest) GetMixIdOk() (*string, bool) { - if o == nil || isNil(o.MixId) { - return nil, false - } - return o.MixId, true -} - -// HasMixId returns a boolean if a field has been set. -func (o *HistoryOrderListRequest) HasMixId() bool { - if o != nil && !isNil(o.MixId) { - return true - } - - return false -} - -// SetMixId gets a reference to the given string and assigns it to the MixId field. -func (o *HistoryOrderListRequest) SetMixId(v string) { - o.MixId = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *HistoryOrderListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HistoryOrderListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *HistoryOrderListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *HistoryOrderListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -// GetTrackingNo returns the TrackingNo field value if set, zero value otherwise. -func (o *HistoryOrderListRequest) GetTrackingNo() string { - if o == nil || isNil(o.TrackingNo) { - var ret string - return ret - } - return *o.TrackingNo -} - -// GetTrackingNoOk returns a tuple with the TrackingNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *HistoryOrderListRequest) GetTrackingNoOk() (*string, bool) { - if o == nil || isNil(o.TrackingNo) { - return nil, false - } - return o.TrackingNo, true -} - -// HasTrackingNo returns a boolean if a field has been set. -func (o *HistoryOrderListRequest) HasTrackingNo() bool { - if o != nil && !isNil(o.TrackingNo) { - return true - } - - return false -} - -// SetTrackingNo gets a reference to the given string and assigns it to the TrackingNo field. -func (o *HistoryOrderListRequest) SetTrackingNo(v string) { - o.TrackingNo = &v -} - -func (o HistoryOrderListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MixId) { - toSerialize["mixId"] = o.MixId - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - if !isNil(o.TrackingNo) { - toSerialize["trackingNo"] = o.TrackingNo - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *HistoryOrderListRequest) UnmarshalJSON(bytes []byte) (err error) { - varHistoryOrderListRequest := _HistoryOrderListRequest{} - - if err = json.Unmarshal(bytes, &varHistoryOrderListRequest); err == nil { - *o = HistoryOrderListRequest(varHistoryOrderListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "mixId") - delete(additionalProperties, "pageSize") - delete(additionalProperties, "trackingNo") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableHistoryOrderListRequest struct { - value *HistoryOrderListRequest - isSet bool -} - -func (v NullableHistoryOrderListRequest) Get() *HistoryOrderListRequest { - return v.value -} - -func (v *NullableHistoryOrderListRequest) Set(val *HistoryOrderListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableHistoryOrderListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableHistoryOrderListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHistoryOrderListRequest(val *HistoryOrderListRequest) *NullableHistoryOrderListRequest { - return &NullableHistoryOrderListRequest{value: val, isSet: true} -} - -func (v NullableHistoryOrderListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHistoryOrderListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_request.go b/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_request.go deleted file mode 100644 index 234e5d5c..00000000 --- a/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_request.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginBatchCancelOrderRequest struct for MarginBatchCancelOrderRequest -type MarginBatchCancelOrderRequest struct { - // clientOids - ClientOids []string `json:"clientOids,omitempty"` - // orderIds - OrderIds []string `json:"orderIds,omitempty"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginBatchCancelOrderRequest MarginBatchCancelOrderRequest - -// NewMarginBatchCancelOrderRequest instantiates a new MarginBatchCancelOrderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginBatchCancelOrderRequest(symbol string) *MarginBatchCancelOrderRequest { - this := MarginBatchCancelOrderRequest{} - this.Symbol = symbol - return &this -} - -// NewMarginBatchCancelOrderRequestWithDefaults instantiates a new MarginBatchCancelOrderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginBatchCancelOrderRequestWithDefaults() *MarginBatchCancelOrderRequest { - this := MarginBatchCancelOrderRequest{} - return &this -} - -// GetClientOids returns the ClientOids field value if set, zero value otherwise. -func (o *MarginBatchCancelOrderRequest) GetClientOids() []string { - if o == nil || isNil(o.ClientOids) { - var ret []string - return ret - } - return o.ClientOids -} - -// GetClientOidsOk returns a tuple with the ClientOids field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchCancelOrderRequest) GetClientOidsOk() ([]string, bool) { - if o == nil || isNil(o.ClientOids) { - return nil, false - } - return o.ClientOids, true -} - -// HasClientOids returns a boolean if a field has been set. -func (o *MarginBatchCancelOrderRequest) HasClientOids() bool { - if o != nil && !isNil(o.ClientOids) { - return true - } - - return false -} - -// SetClientOids gets a reference to the given []string and assigns it to the ClientOids field. -func (o *MarginBatchCancelOrderRequest) SetClientOids(v []string) { - o.ClientOids = v -} - -// GetOrderIds returns the OrderIds field value if set, zero value otherwise. -func (o *MarginBatchCancelOrderRequest) GetOrderIds() []string { - if o == nil || isNil(o.OrderIds) { - var ret []string - return ret - } - return o.OrderIds -} - -// GetOrderIdsOk returns a tuple with the OrderIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchCancelOrderRequest) GetOrderIdsOk() ([]string, bool) { - if o == nil || isNil(o.OrderIds) { - return nil, false - } - return o.OrderIds, true -} - -// HasOrderIds returns a boolean if a field has been set. -func (o *MarginBatchCancelOrderRequest) HasOrderIds() bool { - if o != nil && !isNil(o.OrderIds) { - return true - } - - return false -} - -// SetOrderIds gets a reference to the given []string and assigns it to the OrderIds field. -func (o *MarginBatchCancelOrderRequest) SetOrderIds(v []string) { - o.OrderIds = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginBatchCancelOrderRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginBatchCancelOrderRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginBatchCancelOrderRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginBatchCancelOrderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOids) { - toSerialize["clientOids"] = o.ClientOids - } - if !isNil(o.OrderIds) { - toSerialize["orderIds"] = o.OrderIds - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginBatchCancelOrderRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginBatchCancelOrderRequest := _MarginBatchCancelOrderRequest{} - - if err = json.Unmarshal(bytes, &varMarginBatchCancelOrderRequest); err == nil { - *o = MarginBatchCancelOrderRequest(varMarginBatchCancelOrderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOids") - delete(additionalProperties, "orderIds") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginBatchCancelOrderRequest struct { - value *MarginBatchCancelOrderRequest - isSet bool -} - -func (v NullableMarginBatchCancelOrderRequest) Get() *MarginBatchCancelOrderRequest { - return v.value -} - -func (v *NullableMarginBatchCancelOrderRequest) Set(val *MarginBatchCancelOrderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginBatchCancelOrderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginBatchCancelOrderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginBatchCancelOrderRequest(val *MarginBatchCancelOrderRequest) *NullableMarginBatchCancelOrderRequest { - return &NullableMarginBatchCancelOrderRequest{value: val, isSet: true} -} - -func (v NullableMarginBatchCancelOrderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginBatchCancelOrderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_result.go b/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_result.go deleted file mode 100644 index 5e931181..00000000 --- a/bitget-goland-sdk-open-api/model_margin_batch_cancel_order_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginBatchCancelOrderResult struct for MarginBatchCancelOrderResult -type MarginBatchCancelOrderResult struct { - Failure []MarginCancelOrderFailureResult `json:"failure,omitempty"` - ResultList []MarginCancelOrderResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginBatchCancelOrderResult MarginBatchCancelOrderResult - -// NewMarginBatchCancelOrderResult instantiates a new MarginBatchCancelOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginBatchCancelOrderResult() *MarginBatchCancelOrderResult { - this := MarginBatchCancelOrderResult{} - return &this -} - -// NewMarginBatchCancelOrderResultWithDefaults instantiates a new MarginBatchCancelOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginBatchCancelOrderResultWithDefaults() *MarginBatchCancelOrderResult { - this := MarginBatchCancelOrderResult{} - return &this -} - -// GetFailure returns the Failure field value if set, zero value otherwise. -func (o *MarginBatchCancelOrderResult) GetFailure() []MarginCancelOrderFailureResult { - if o == nil || isNil(o.Failure) { - var ret []MarginCancelOrderFailureResult - return ret - } - return o.Failure -} - -// GetFailureOk returns a tuple with the Failure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchCancelOrderResult) GetFailureOk() ([]MarginCancelOrderFailureResult, bool) { - if o == nil || isNil(o.Failure) { - return nil, false - } - return o.Failure, true -} - -// HasFailure returns a boolean if a field has been set. -func (o *MarginBatchCancelOrderResult) HasFailure() bool { - if o != nil && !isNil(o.Failure) { - return true - } - - return false -} - -// SetFailure gets a reference to the given []MarginCancelOrderFailureResult and assigns it to the Failure field. -func (o *MarginBatchCancelOrderResult) SetFailure(v []MarginCancelOrderFailureResult) { - o.Failure = v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginBatchCancelOrderResult) GetResultList() []MarginCancelOrderResult { - if o == nil || isNil(o.ResultList) { - var ret []MarginCancelOrderResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchCancelOrderResult) GetResultListOk() ([]MarginCancelOrderResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginBatchCancelOrderResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginCancelOrderResult and assigns it to the ResultList field. -func (o *MarginBatchCancelOrderResult) SetResultList(v []MarginCancelOrderResult) { - o.ResultList = v -} - -func (o MarginBatchCancelOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Failure) { - toSerialize["failure"] = o.Failure - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginBatchCancelOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginBatchCancelOrderResult := _MarginBatchCancelOrderResult{} - - if err = json.Unmarshal(bytes, &varMarginBatchCancelOrderResult); err == nil { - *o = MarginBatchCancelOrderResult(varMarginBatchCancelOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "failure") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginBatchCancelOrderResult struct { - value *MarginBatchCancelOrderResult - isSet bool -} - -func (v NullableMarginBatchCancelOrderResult) Get() *MarginBatchCancelOrderResult { - return v.value -} - -func (v *NullableMarginBatchCancelOrderResult) Set(val *MarginBatchCancelOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginBatchCancelOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginBatchCancelOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginBatchCancelOrderResult(val *MarginBatchCancelOrderResult) *NullableMarginBatchCancelOrderResult { - return &NullableMarginBatchCancelOrderResult{value: val, isSet: true} -} - -func (v NullableMarginBatchCancelOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginBatchCancelOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_batch_orders_request.go b/bitget-goland-sdk-open-api/model_margin_batch_orders_request.go deleted file mode 100644 index 5733ee6f..00000000 --- a/bitget-goland-sdk-open-api/model_margin_batch_orders_request.go +++ /dev/null @@ -1,243 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginBatchOrdersRequest struct for MarginBatchOrdersRequest -type MarginBatchOrdersRequest struct { - ChannelApiCode *string `json:"channelApiCode,omitempty"` - Ip *string `json:"ip,omitempty"` - OrderList []MarginOrderRequest `json:"orderList,omitempty"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginBatchOrdersRequest MarginBatchOrdersRequest - -// NewMarginBatchOrdersRequest instantiates a new MarginBatchOrdersRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginBatchOrdersRequest(symbol string) *MarginBatchOrdersRequest { - this := MarginBatchOrdersRequest{} - this.Symbol = symbol - return &this -} - -// NewMarginBatchOrdersRequestWithDefaults instantiates a new MarginBatchOrdersRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginBatchOrdersRequestWithDefaults() *MarginBatchOrdersRequest { - this := MarginBatchOrdersRequest{} - return &this -} - -// GetChannelApiCode returns the ChannelApiCode field value if set, zero value otherwise. -func (o *MarginBatchOrdersRequest) GetChannelApiCode() string { - if o == nil || isNil(o.ChannelApiCode) { - var ret string - return ret - } - return *o.ChannelApiCode -} - -// GetChannelApiCodeOk returns a tuple with the ChannelApiCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchOrdersRequest) GetChannelApiCodeOk() (*string, bool) { - if o == nil || isNil(o.ChannelApiCode) { - return nil, false - } - return o.ChannelApiCode, true -} - -// HasChannelApiCode returns a boolean if a field has been set. -func (o *MarginBatchOrdersRequest) HasChannelApiCode() bool { - if o != nil && !isNil(o.ChannelApiCode) { - return true - } - - return false -} - -// SetChannelApiCode gets a reference to the given string and assigns it to the ChannelApiCode field. -func (o *MarginBatchOrdersRequest) SetChannelApiCode(v string) { - o.ChannelApiCode = &v -} - -// GetIp returns the Ip field value if set, zero value otherwise. -func (o *MarginBatchOrdersRequest) GetIp() string { - if o == nil || isNil(o.Ip) { - var ret string - return ret - } - return *o.Ip -} - -// GetIpOk returns a tuple with the Ip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchOrdersRequest) GetIpOk() (*string, bool) { - if o == nil || isNil(o.Ip) { - return nil, false - } - return o.Ip, true -} - -// HasIp returns a boolean if a field has been set. -func (o *MarginBatchOrdersRequest) HasIp() bool { - if o != nil && !isNil(o.Ip) { - return true - } - - return false -} - -// SetIp gets a reference to the given string and assigns it to the Ip field. -func (o *MarginBatchOrdersRequest) SetIp(v string) { - o.Ip = &v -} - -// GetOrderList returns the OrderList field value if set, zero value otherwise. -func (o *MarginBatchOrdersRequest) GetOrderList() []MarginOrderRequest { - if o == nil || isNil(o.OrderList) { - var ret []MarginOrderRequest - return ret - } - return o.OrderList -} - -// GetOrderListOk returns a tuple with the OrderList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchOrdersRequest) GetOrderListOk() ([]MarginOrderRequest, bool) { - if o == nil || isNil(o.OrderList) { - return nil, false - } - return o.OrderList, true -} - -// HasOrderList returns a boolean if a field has been set. -func (o *MarginBatchOrdersRequest) HasOrderList() bool { - if o != nil && !isNil(o.OrderList) { - return true - } - - return false -} - -// SetOrderList gets a reference to the given []MarginOrderRequest and assigns it to the OrderList field. -func (o *MarginBatchOrdersRequest) SetOrderList(v []MarginOrderRequest) { - o.OrderList = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginBatchOrdersRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginBatchOrdersRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginBatchOrdersRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginBatchOrdersRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ChannelApiCode) { - toSerialize["channelApiCode"] = o.ChannelApiCode - } - if !isNil(o.Ip) { - toSerialize["ip"] = o.Ip - } - if !isNil(o.OrderList) { - toSerialize["orderList"] = o.OrderList - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginBatchOrdersRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginBatchOrdersRequest := _MarginBatchOrdersRequest{} - - if err = json.Unmarshal(bytes, &varMarginBatchOrdersRequest); err == nil { - *o = MarginBatchOrdersRequest(varMarginBatchOrdersRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "channelApiCode") - delete(additionalProperties, "ip") - delete(additionalProperties, "orderList") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginBatchOrdersRequest struct { - value *MarginBatchOrdersRequest - isSet bool -} - -func (v NullableMarginBatchOrdersRequest) Get() *MarginBatchOrdersRequest { - return v.value -} - -func (v *NullableMarginBatchOrdersRequest) Set(val *MarginBatchOrdersRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginBatchOrdersRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginBatchOrdersRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginBatchOrdersRequest(val *MarginBatchOrdersRequest) *NullableMarginBatchOrdersRequest { - return &NullableMarginBatchOrdersRequest{value: val, isSet: true} -} - -func (v NullableMarginBatchOrdersRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginBatchOrdersRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_batch_place_order_failure_result.go b/bitget-goland-sdk-open-api/model_margin_batch_place_order_failure_result.go deleted file mode 100644 index 6ccb9067..00000000 --- a/bitget-goland-sdk-open-api/model_margin_batch_place_order_failure_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginBatchPlaceOrderFailureResult struct for MarginBatchPlaceOrderFailureResult -type MarginBatchPlaceOrderFailureResult struct { - ClientOid *string `json:"clientOid,omitempty"` - ErrorMsg *string `json:"errorMsg,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginBatchPlaceOrderFailureResult MarginBatchPlaceOrderFailureResult - -// NewMarginBatchPlaceOrderFailureResult instantiates a new MarginBatchPlaceOrderFailureResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginBatchPlaceOrderFailureResult() *MarginBatchPlaceOrderFailureResult { - this := MarginBatchPlaceOrderFailureResult{} - return &this -} - -// NewMarginBatchPlaceOrderFailureResultWithDefaults instantiates a new MarginBatchPlaceOrderFailureResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginBatchPlaceOrderFailureResultWithDefaults() *MarginBatchPlaceOrderFailureResult { - this := MarginBatchPlaceOrderFailureResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginBatchPlaceOrderFailureResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchPlaceOrderFailureResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginBatchPlaceOrderFailureResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginBatchPlaceOrderFailureResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetErrorMsg returns the ErrorMsg field value if set, zero value otherwise. -func (o *MarginBatchPlaceOrderFailureResult) GetErrorMsg() string { - if o == nil || isNil(o.ErrorMsg) { - var ret string - return ret - } - return *o.ErrorMsg -} - -// GetErrorMsgOk returns a tuple with the ErrorMsg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchPlaceOrderFailureResult) GetErrorMsgOk() (*string, bool) { - if o == nil || isNil(o.ErrorMsg) { - return nil, false - } - return o.ErrorMsg, true -} - -// HasErrorMsg returns a boolean if a field has been set. -func (o *MarginBatchPlaceOrderFailureResult) HasErrorMsg() bool { - if o != nil && !isNil(o.ErrorMsg) { - return true - } - - return false -} - -// SetErrorMsg gets a reference to the given string and assigns it to the ErrorMsg field. -func (o *MarginBatchPlaceOrderFailureResult) SetErrorMsg(v string) { - o.ErrorMsg = &v -} - -func (o MarginBatchPlaceOrderFailureResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.ErrorMsg) { - toSerialize["errorMsg"] = o.ErrorMsg - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginBatchPlaceOrderFailureResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginBatchPlaceOrderFailureResult := _MarginBatchPlaceOrderFailureResult{} - - if err = json.Unmarshal(bytes, &varMarginBatchPlaceOrderFailureResult); err == nil { - *o = MarginBatchPlaceOrderFailureResult(varMarginBatchPlaceOrderFailureResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "errorMsg") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginBatchPlaceOrderFailureResult struct { - value *MarginBatchPlaceOrderFailureResult - isSet bool -} - -func (v NullableMarginBatchPlaceOrderFailureResult) Get() *MarginBatchPlaceOrderFailureResult { - return v.value -} - -func (v *NullableMarginBatchPlaceOrderFailureResult) Set(val *MarginBatchPlaceOrderFailureResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginBatchPlaceOrderFailureResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginBatchPlaceOrderFailureResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginBatchPlaceOrderFailureResult(val *MarginBatchPlaceOrderFailureResult) *NullableMarginBatchPlaceOrderFailureResult { - return &NullableMarginBatchPlaceOrderFailureResult{value: val, isSet: true} -} - -func (v NullableMarginBatchPlaceOrderFailureResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginBatchPlaceOrderFailureResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_batch_place_order_result.go b/bitget-goland-sdk-open-api/model_margin_batch_place_order_result.go deleted file mode 100644 index aa4b56ba..00000000 --- a/bitget-goland-sdk-open-api/model_margin_batch_place_order_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginBatchPlaceOrderResult struct for MarginBatchPlaceOrderResult -type MarginBatchPlaceOrderResult struct { - Failure []MarginBatchPlaceOrderFailureResult `json:"failure,omitempty"` - ResultList []MarginCancelOrderResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginBatchPlaceOrderResult MarginBatchPlaceOrderResult - -// NewMarginBatchPlaceOrderResult instantiates a new MarginBatchPlaceOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginBatchPlaceOrderResult() *MarginBatchPlaceOrderResult { - this := MarginBatchPlaceOrderResult{} - return &this -} - -// NewMarginBatchPlaceOrderResultWithDefaults instantiates a new MarginBatchPlaceOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginBatchPlaceOrderResultWithDefaults() *MarginBatchPlaceOrderResult { - this := MarginBatchPlaceOrderResult{} - return &this -} - -// GetFailure returns the Failure field value if set, zero value otherwise. -func (o *MarginBatchPlaceOrderResult) GetFailure() []MarginBatchPlaceOrderFailureResult { - if o == nil || isNil(o.Failure) { - var ret []MarginBatchPlaceOrderFailureResult - return ret - } - return o.Failure -} - -// GetFailureOk returns a tuple with the Failure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchPlaceOrderResult) GetFailureOk() ([]MarginBatchPlaceOrderFailureResult, bool) { - if o == nil || isNil(o.Failure) { - return nil, false - } - return o.Failure, true -} - -// HasFailure returns a boolean if a field has been set. -func (o *MarginBatchPlaceOrderResult) HasFailure() bool { - if o != nil && !isNil(o.Failure) { - return true - } - - return false -} - -// SetFailure gets a reference to the given []MarginBatchPlaceOrderFailureResult and assigns it to the Failure field. -func (o *MarginBatchPlaceOrderResult) SetFailure(v []MarginBatchPlaceOrderFailureResult) { - o.Failure = v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginBatchPlaceOrderResult) GetResultList() []MarginCancelOrderResult { - if o == nil || isNil(o.ResultList) { - var ret []MarginCancelOrderResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginBatchPlaceOrderResult) GetResultListOk() ([]MarginCancelOrderResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginBatchPlaceOrderResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginCancelOrderResult and assigns it to the ResultList field. -func (o *MarginBatchPlaceOrderResult) SetResultList(v []MarginCancelOrderResult) { - o.ResultList = v -} - -func (o MarginBatchPlaceOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Failure) { - toSerialize["failure"] = o.Failure - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginBatchPlaceOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginBatchPlaceOrderResult := _MarginBatchPlaceOrderResult{} - - if err = json.Unmarshal(bytes, &varMarginBatchPlaceOrderResult); err == nil { - *o = MarginBatchPlaceOrderResult(varMarginBatchPlaceOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "failure") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginBatchPlaceOrderResult struct { - value *MarginBatchPlaceOrderResult - isSet bool -} - -func (v NullableMarginBatchPlaceOrderResult) Get() *MarginBatchPlaceOrderResult { - return v.value -} - -func (v *NullableMarginBatchPlaceOrderResult) Set(val *MarginBatchPlaceOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginBatchPlaceOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginBatchPlaceOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginBatchPlaceOrderResult(val *MarginBatchPlaceOrderResult) *NullableMarginBatchPlaceOrderResult { - return &NullableMarginBatchPlaceOrderResult{value: val, isSet: true} -} - -func (v NullableMarginBatchPlaceOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginBatchPlaceOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cancel_order_failure_result.go b/bitget-goland-sdk-open-api/model_margin_cancel_order_failure_result.go deleted file mode 100644 index 5ed2518d..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cancel_order_failure_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCancelOrderFailureResult struct for MarginCancelOrderFailureResult -type MarginCancelOrderFailureResult struct { - ClientOid *string `json:"clientOid,omitempty"` - ErrorMsg *string `json:"errorMsg,omitempty"` - OrderId *string `json:"orderId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCancelOrderFailureResult MarginCancelOrderFailureResult - -// NewMarginCancelOrderFailureResult instantiates a new MarginCancelOrderFailureResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCancelOrderFailureResult() *MarginCancelOrderFailureResult { - this := MarginCancelOrderFailureResult{} - return &this -} - -// NewMarginCancelOrderFailureResultWithDefaults instantiates a new MarginCancelOrderFailureResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCancelOrderFailureResultWithDefaults() *MarginCancelOrderFailureResult { - this := MarginCancelOrderFailureResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginCancelOrderFailureResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderFailureResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginCancelOrderFailureResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginCancelOrderFailureResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetErrorMsg returns the ErrorMsg field value if set, zero value otherwise. -func (o *MarginCancelOrderFailureResult) GetErrorMsg() string { - if o == nil || isNil(o.ErrorMsg) { - var ret string - return ret - } - return *o.ErrorMsg -} - -// GetErrorMsgOk returns a tuple with the ErrorMsg field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderFailureResult) GetErrorMsgOk() (*string, bool) { - if o == nil || isNil(o.ErrorMsg) { - return nil, false - } - return o.ErrorMsg, true -} - -// HasErrorMsg returns a boolean if a field has been set. -func (o *MarginCancelOrderFailureResult) HasErrorMsg() bool { - if o != nil && !isNil(o.ErrorMsg) { - return true - } - - return false -} - -// SetErrorMsg gets a reference to the given string and assigns it to the ErrorMsg field. -func (o *MarginCancelOrderFailureResult) SetErrorMsg(v string) { - o.ErrorMsg = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginCancelOrderFailureResult) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderFailureResult) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginCancelOrderFailureResult) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginCancelOrderFailureResult) SetOrderId(v string) { - o.OrderId = &v -} - -func (o MarginCancelOrderFailureResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.ErrorMsg) { - toSerialize["errorMsg"] = o.ErrorMsg - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCancelOrderFailureResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCancelOrderFailureResult := _MarginCancelOrderFailureResult{} - - if err = json.Unmarshal(bytes, &varMarginCancelOrderFailureResult); err == nil { - *o = MarginCancelOrderFailureResult(varMarginCancelOrderFailureResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "errorMsg") - delete(additionalProperties, "orderId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCancelOrderFailureResult struct { - value *MarginCancelOrderFailureResult - isSet bool -} - -func (v NullableMarginCancelOrderFailureResult) Get() *MarginCancelOrderFailureResult { - return v.value -} - -func (v *NullableMarginCancelOrderFailureResult) Set(val *MarginCancelOrderFailureResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCancelOrderFailureResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCancelOrderFailureResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCancelOrderFailureResult(val *MarginCancelOrderFailureResult) *NullableMarginCancelOrderFailureResult { - return &NullableMarginCancelOrderFailureResult{value: val, isSet: true} -} - -func (v NullableMarginCancelOrderFailureResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCancelOrderFailureResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cancel_order_request.go b/bitget-goland-sdk-open-api/model_margin_cancel_order_request.go deleted file mode 100644 index 5271240d..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cancel_order_request.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCancelOrderRequest struct for MarginCancelOrderRequest -type MarginCancelOrderRequest struct { - // clientOid - ClientOid *string `json:"clientOid,omitempty"` - // orderId - OrderId *string `json:"orderId,omitempty"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginCancelOrderRequest MarginCancelOrderRequest - -// NewMarginCancelOrderRequest instantiates a new MarginCancelOrderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCancelOrderRequest(symbol string) *MarginCancelOrderRequest { - this := MarginCancelOrderRequest{} - this.Symbol = symbol - return &this -} - -// NewMarginCancelOrderRequestWithDefaults instantiates a new MarginCancelOrderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCancelOrderRequestWithDefaults() *MarginCancelOrderRequest { - this := MarginCancelOrderRequest{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginCancelOrderRequest) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderRequest) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginCancelOrderRequest) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginCancelOrderRequest) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginCancelOrderRequest) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderRequest) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginCancelOrderRequest) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginCancelOrderRequest) SetOrderId(v string) { - o.OrderId = &v -} - -// GetSymbol returns the Symbol field value -func (o *MarginCancelOrderRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginCancelOrderRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginCancelOrderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCancelOrderRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginCancelOrderRequest := _MarginCancelOrderRequest{} - - if err = json.Unmarshal(bytes, &varMarginCancelOrderRequest); err == nil { - *o = MarginCancelOrderRequest(varMarginCancelOrderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "orderId") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCancelOrderRequest struct { - value *MarginCancelOrderRequest - isSet bool -} - -func (v NullableMarginCancelOrderRequest) Get() *MarginCancelOrderRequest { - return v.value -} - -func (v *NullableMarginCancelOrderRequest) Set(val *MarginCancelOrderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCancelOrderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCancelOrderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCancelOrderRequest(val *MarginCancelOrderRequest) *NullableMarginCancelOrderRequest { - return &NullableMarginCancelOrderRequest{value: val, isSet: true} -} - -func (v NullableMarginCancelOrderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCancelOrderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cancel_order_result.go b/bitget-goland-sdk-open-api/model_margin_cancel_order_result.go deleted file mode 100644 index c6bf0372..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cancel_order_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCancelOrderResult struct for MarginCancelOrderResult -type MarginCancelOrderResult struct { - ClientOid *string `json:"clientOid,omitempty"` - OrderId *string `json:"orderId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCancelOrderResult MarginCancelOrderResult - -// NewMarginCancelOrderResult instantiates a new MarginCancelOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCancelOrderResult() *MarginCancelOrderResult { - this := MarginCancelOrderResult{} - return &this -} - -// NewMarginCancelOrderResultWithDefaults instantiates a new MarginCancelOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCancelOrderResultWithDefaults() *MarginCancelOrderResult { - this := MarginCancelOrderResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginCancelOrderResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginCancelOrderResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginCancelOrderResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginCancelOrderResult) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCancelOrderResult) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginCancelOrderResult) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginCancelOrderResult) SetOrderId(v string) { - o.OrderId = &v -} - -func (o MarginCancelOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCancelOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCancelOrderResult := _MarginCancelOrderResult{} - - if err = json.Unmarshal(bytes, &varMarginCancelOrderResult); err == nil { - *o = MarginCancelOrderResult(varMarginCancelOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "orderId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCancelOrderResult struct { - value *MarginCancelOrderResult - isSet bool -} - -func (v NullableMarginCancelOrderResult) Get() *MarginCancelOrderResult { - return v.value -} - -func (v *NullableMarginCancelOrderResult) Set(val *MarginCancelOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCancelOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCancelOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCancelOrderResult(val *MarginCancelOrderResult) *NullableMarginCancelOrderResult { - return &NullableMarginCancelOrderResult{value: val, isSet: true} -} - -func (v NullableMarginCancelOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCancelOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_assets_population_result.go b/bitget-goland-sdk-open-api/model_margin_cross_assets_population_result.go deleted file mode 100644 index 123974a0..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_assets_population_result.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossAssetsPopulationResult struct for MarginCrossAssetsPopulationResult -type MarginCrossAssetsPopulationResult struct { - Available *string `json:"available,omitempty"` - Borrow *string `json:"borrow,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Frozen *string `json:"frozen,omitempty"` - Interest *string `json:"interest,omitempty"` - Net *string `json:"net,omitempty"` - TotalAmount *string `json:"totalAmount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossAssetsPopulationResult MarginCrossAssetsPopulationResult - -// NewMarginCrossAssetsPopulationResult instantiates a new MarginCrossAssetsPopulationResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossAssetsPopulationResult() *MarginCrossAssetsPopulationResult { - this := MarginCrossAssetsPopulationResult{} - return &this -} - -// NewMarginCrossAssetsPopulationResultWithDefaults instantiates a new MarginCrossAssetsPopulationResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossAssetsPopulationResultWithDefaults() *MarginCrossAssetsPopulationResult { - this := MarginCrossAssetsPopulationResult{} - return &this -} - -// GetAvailable returns the Available field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetAvailable() string { - if o == nil || isNil(o.Available) { - var ret string - return ret - } - return *o.Available -} - -// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetAvailableOk() (*string, bool) { - if o == nil || isNil(o.Available) { - return nil, false - } - return o.Available, true -} - -// HasAvailable returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasAvailable() bool { - if o != nil && !isNil(o.Available) { - return true - } - - return false -} - -// SetAvailable gets a reference to the given string and assigns it to the Available field. -func (o *MarginCrossAssetsPopulationResult) SetAvailable(v string) { - o.Available = &v -} - -// GetBorrow returns the Borrow field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetBorrow() string { - if o == nil || isNil(o.Borrow) { - var ret string - return ret - } - return *o.Borrow -} - -// GetBorrowOk returns a tuple with the Borrow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetBorrowOk() (*string, bool) { - if o == nil || isNil(o.Borrow) { - return nil, false - } - return o.Borrow, true -} - -// HasBorrow returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasBorrow() bool { - if o != nil && !isNil(o.Borrow) { - return true - } - - return false -} - -// SetBorrow gets a reference to the given string and assigns it to the Borrow field. -func (o *MarginCrossAssetsPopulationResult) SetBorrow(v string) { - o.Borrow = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossAssetsPopulationResult) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginCrossAssetsPopulationResult) SetCtime(v string) { - o.Ctime = &v -} - -// GetFrozen returns the Frozen field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetFrozen() string { - if o == nil || isNil(o.Frozen) { - var ret string - return ret - } - return *o.Frozen -} - -// GetFrozenOk returns a tuple with the Frozen field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetFrozenOk() (*string, bool) { - if o == nil || isNil(o.Frozen) { - return nil, false - } - return o.Frozen, true -} - -// HasFrozen returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasFrozen() bool { - if o != nil && !isNil(o.Frozen) { - return true - } - - return false -} - -// SetFrozen gets a reference to the given string and assigns it to the Frozen field. -func (o *MarginCrossAssetsPopulationResult) SetFrozen(v string) { - o.Frozen = &v -} - -// GetInterest returns the Interest field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetInterest() string { - if o == nil || isNil(o.Interest) { - var ret string - return ret - } - return *o.Interest -} - -// GetInterestOk returns a tuple with the Interest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetInterestOk() (*string, bool) { - if o == nil || isNil(o.Interest) { - return nil, false - } - return o.Interest, true -} - -// HasInterest returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasInterest() bool { - if o != nil && !isNil(o.Interest) { - return true - } - - return false -} - -// SetInterest gets a reference to the given string and assigns it to the Interest field. -func (o *MarginCrossAssetsPopulationResult) SetInterest(v string) { - o.Interest = &v -} - -// GetNet returns the Net field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetNet() string { - if o == nil || isNil(o.Net) { - var ret string - return ret - } - return *o.Net -} - -// GetNetOk returns a tuple with the Net field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetNetOk() (*string, bool) { - if o == nil || isNil(o.Net) { - return nil, false - } - return o.Net, true -} - -// HasNet returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasNet() bool { - if o != nil && !isNil(o.Net) { - return true - } - - return false -} - -// SetNet gets a reference to the given string and assigns it to the Net field. -func (o *MarginCrossAssetsPopulationResult) SetNet(v string) { - o.Net = &v -} - -// GetTotalAmount returns the TotalAmount field value if set, zero value otherwise. -func (o *MarginCrossAssetsPopulationResult) GetTotalAmount() string { - if o == nil || isNil(o.TotalAmount) { - var ret string - return ret - } - return *o.TotalAmount -} - -// GetTotalAmountOk returns a tuple with the TotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsPopulationResult) GetTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.TotalAmount) { - return nil, false - } - return o.TotalAmount, true -} - -// HasTotalAmount returns a boolean if a field has been set. -func (o *MarginCrossAssetsPopulationResult) HasTotalAmount() bool { - if o != nil && !isNil(o.TotalAmount) { - return true - } - - return false -} - -// SetTotalAmount gets a reference to the given string and assigns it to the TotalAmount field. -func (o *MarginCrossAssetsPopulationResult) SetTotalAmount(v string) { - o.TotalAmount = &v -} - -func (o MarginCrossAssetsPopulationResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Available) { - toSerialize["available"] = o.Available - } - if !isNil(o.Borrow) { - toSerialize["borrow"] = o.Borrow - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Frozen) { - toSerialize["frozen"] = o.Frozen - } - if !isNil(o.Interest) { - toSerialize["interest"] = o.Interest - } - if !isNil(o.Net) { - toSerialize["net"] = o.Net - } - if !isNil(o.TotalAmount) { - toSerialize["totalAmount"] = o.TotalAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossAssetsPopulationResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossAssetsPopulationResult := _MarginCrossAssetsPopulationResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossAssetsPopulationResult); err == nil { - *o = MarginCrossAssetsPopulationResult(varMarginCrossAssetsPopulationResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "available") - delete(additionalProperties, "borrow") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "frozen") - delete(additionalProperties, "interest") - delete(additionalProperties, "net") - delete(additionalProperties, "totalAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossAssetsPopulationResult struct { - value *MarginCrossAssetsPopulationResult - isSet bool -} - -func (v NullableMarginCrossAssetsPopulationResult) Get() *MarginCrossAssetsPopulationResult { - return v.value -} - -func (v *NullableMarginCrossAssetsPopulationResult) Set(val *MarginCrossAssetsPopulationResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossAssetsPopulationResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossAssetsPopulationResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossAssetsPopulationResult(val *MarginCrossAssetsPopulationResult) *NullableMarginCrossAssetsPopulationResult { - return &NullableMarginCrossAssetsPopulationResult{value: val, isSet: true} -} - -func (v NullableMarginCrossAssetsPopulationResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossAssetsPopulationResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_assets_result.go b/bitget-goland-sdk-open-api/model_margin_cross_assets_result.go deleted file mode 100644 index 2d3dbbc2..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_assets_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossAssetsResult struct for MarginCrossAssetsResult -type MarginCrossAssetsResult struct { - Coin *string `json:"coin,omitempty"` - MaxTransferOutAmount *string `json:"maxTransferOutAmount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossAssetsResult MarginCrossAssetsResult - -// NewMarginCrossAssetsResult instantiates a new MarginCrossAssetsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossAssetsResult() *MarginCrossAssetsResult { - this := MarginCrossAssetsResult{} - return &this -} - -// NewMarginCrossAssetsResultWithDefaults instantiates a new MarginCrossAssetsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossAssetsResultWithDefaults() *MarginCrossAssetsResult { - this := MarginCrossAssetsResult{} - return &this -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossAssetsResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossAssetsResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossAssetsResult) SetCoin(v string) { - o.Coin = &v -} - -// GetMaxTransferOutAmount returns the MaxTransferOutAmount field value if set, zero value otherwise. -func (o *MarginCrossAssetsResult) GetMaxTransferOutAmount() string { - if o == nil || isNil(o.MaxTransferOutAmount) { - var ret string - return ret - } - return *o.MaxTransferOutAmount -} - -// GetMaxTransferOutAmountOk returns a tuple with the MaxTransferOutAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsResult) GetMaxTransferOutAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxTransferOutAmount) { - return nil, false - } - return o.MaxTransferOutAmount, true -} - -// HasMaxTransferOutAmount returns a boolean if a field has been set. -func (o *MarginCrossAssetsResult) HasMaxTransferOutAmount() bool { - if o != nil && !isNil(o.MaxTransferOutAmount) { - return true - } - - return false -} - -// SetMaxTransferOutAmount gets a reference to the given string and assigns it to the MaxTransferOutAmount field. -func (o *MarginCrossAssetsResult) SetMaxTransferOutAmount(v string) { - o.MaxTransferOutAmount = &v -} - -func (o MarginCrossAssetsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.MaxTransferOutAmount) { - toSerialize["maxTransferOutAmount"] = o.MaxTransferOutAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossAssetsResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossAssetsResult := _MarginCrossAssetsResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossAssetsResult); err == nil { - *o = MarginCrossAssetsResult(varMarginCrossAssetsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "maxTransferOutAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossAssetsResult struct { - value *MarginCrossAssetsResult - isSet bool -} - -func (v NullableMarginCrossAssetsResult) Get() *MarginCrossAssetsResult { - return v.value -} - -func (v *NullableMarginCrossAssetsResult) Set(val *MarginCrossAssetsResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossAssetsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossAssetsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossAssetsResult(val *MarginCrossAssetsResult) *NullableMarginCrossAssetsResult { - return &NullableMarginCrossAssetsResult{value: val, isSet: true} -} - -func (v NullableMarginCrossAssetsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossAssetsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_assets_risk_result.go b/bitget-goland-sdk-open-api/model_margin_cross_assets_risk_result.go deleted file mode 100644 index 6058641c..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_assets_risk_result.go +++ /dev/null @@ -1,138 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossAssetsRiskResult struct for MarginCrossAssetsRiskResult -type MarginCrossAssetsRiskResult struct { - RiskRate *string `json:"riskRate,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossAssetsRiskResult MarginCrossAssetsRiskResult - -// NewMarginCrossAssetsRiskResult instantiates a new MarginCrossAssetsRiskResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossAssetsRiskResult() *MarginCrossAssetsRiskResult { - this := MarginCrossAssetsRiskResult{} - return &this -} - -// NewMarginCrossAssetsRiskResultWithDefaults instantiates a new MarginCrossAssetsRiskResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossAssetsRiskResultWithDefaults() *MarginCrossAssetsRiskResult { - this := MarginCrossAssetsRiskResult{} - return &this -} - -// GetRiskRate returns the RiskRate field value if set, zero value otherwise. -func (o *MarginCrossAssetsRiskResult) GetRiskRate() string { - if o == nil || isNil(o.RiskRate) { - var ret string - return ret - } - return *o.RiskRate -} - -// GetRiskRateOk returns a tuple with the RiskRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossAssetsRiskResult) GetRiskRateOk() (*string, bool) { - if o == nil || isNil(o.RiskRate) { - return nil, false - } - return o.RiskRate, true -} - -// HasRiskRate returns a boolean if a field has been set. -func (o *MarginCrossAssetsRiskResult) HasRiskRate() bool { - if o != nil && !isNil(o.RiskRate) { - return true - } - - return false -} - -// SetRiskRate gets a reference to the given string and assigns it to the RiskRate field. -func (o *MarginCrossAssetsRiskResult) SetRiskRate(v string) { - o.RiskRate = &v -} - -func (o MarginCrossAssetsRiskResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.RiskRate) { - toSerialize["riskRate"] = o.RiskRate - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossAssetsRiskResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossAssetsRiskResult := _MarginCrossAssetsRiskResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossAssetsRiskResult); err == nil { - *o = MarginCrossAssetsRiskResult(varMarginCrossAssetsRiskResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "riskRate") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossAssetsRiskResult struct { - value *MarginCrossAssetsRiskResult - isSet bool -} - -func (v NullableMarginCrossAssetsRiskResult) Get() *MarginCrossAssetsRiskResult { - return v.value -} - -func (v *NullableMarginCrossAssetsRiskResult) Set(val *MarginCrossAssetsRiskResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossAssetsRiskResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossAssetsRiskResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossAssetsRiskResult(val *MarginCrossAssetsRiskResult) *NullableMarginCrossAssetsRiskResult { - return &NullableMarginCrossAssetsRiskResult{value: val, isSet: true} -} - -func (v NullableMarginCrossAssetsRiskResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossAssetsRiskResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_borrow_limit_result.go b/bitget-goland-sdk-open-api/model_margin_cross_borrow_limit_result.go deleted file mode 100644 index 35eff90b..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_borrow_limit_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossBorrowLimitResult struct for MarginCrossBorrowLimitResult -type MarginCrossBorrowLimitResult struct { - BorrowAmount *string `json:"borrowAmount,omitempty"` - ClientOid *string `json:"clientOid,omitempty"` - Coin *string `json:"coin,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossBorrowLimitResult MarginCrossBorrowLimitResult - -// NewMarginCrossBorrowLimitResult instantiates a new MarginCrossBorrowLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossBorrowLimitResult() *MarginCrossBorrowLimitResult { - this := MarginCrossBorrowLimitResult{} - return &this -} - -// NewMarginCrossBorrowLimitResultWithDefaults instantiates a new MarginCrossBorrowLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossBorrowLimitResultWithDefaults() *MarginCrossBorrowLimitResult { - this := MarginCrossBorrowLimitResult{} - return &this -} - -// GetBorrowAmount returns the BorrowAmount field value if set, zero value otherwise. -func (o *MarginCrossBorrowLimitResult) GetBorrowAmount() string { - if o == nil || isNil(o.BorrowAmount) { - var ret string - return ret - } - return *o.BorrowAmount -} - -// GetBorrowAmountOk returns a tuple with the BorrowAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossBorrowLimitResult) GetBorrowAmountOk() (*string, bool) { - if o == nil || isNil(o.BorrowAmount) { - return nil, false - } - return o.BorrowAmount, true -} - -// HasBorrowAmount returns a boolean if a field has been set. -func (o *MarginCrossBorrowLimitResult) HasBorrowAmount() bool { - if o != nil && !isNil(o.BorrowAmount) { - return true - } - - return false -} - -// SetBorrowAmount gets a reference to the given string and assigns it to the BorrowAmount field. -func (o *MarginCrossBorrowLimitResult) SetBorrowAmount(v string) { - o.BorrowAmount = &v -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginCrossBorrowLimitResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossBorrowLimitResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginCrossBorrowLimitResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginCrossBorrowLimitResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossBorrowLimitResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossBorrowLimitResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossBorrowLimitResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossBorrowLimitResult) SetCoin(v string) { - o.Coin = &v -} - -func (o MarginCrossBorrowLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BorrowAmount) { - toSerialize["borrowAmount"] = o.BorrowAmount - } - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossBorrowLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossBorrowLimitResult := _MarginCrossBorrowLimitResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossBorrowLimitResult); err == nil { - *o = MarginCrossBorrowLimitResult(varMarginCrossBorrowLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "borrowAmount") - delete(additionalProperties, "clientOid") - delete(additionalProperties, "coin") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossBorrowLimitResult struct { - value *MarginCrossBorrowLimitResult - isSet bool -} - -func (v NullableMarginCrossBorrowLimitResult) Get() *MarginCrossBorrowLimitResult { - return v.value -} - -func (v *NullableMarginCrossBorrowLimitResult) Set(val *MarginCrossBorrowLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossBorrowLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossBorrowLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossBorrowLimitResult(val *MarginCrossBorrowLimitResult) *NullableMarginCrossBorrowLimitResult { - return &NullableMarginCrossBorrowLimitResult{value: val, isSet: true} -} - -func (v NullableMarginCrossBorrowLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossBorrowLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_info.go b/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_info.go deleted file mode 100644 index c28e0832..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_info.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossFinFlowInfo struct for MarginCrossFinFlowInfo -type MarginCrossFinFlowInfo struct { - Amount *string `json:"amount,omitempty"` - Balance *string `json:"balance,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Fee *string `json:"fee,omitempty"` - MarginId *string `json:"marginId,omitempty"` - MarginType *string `json:"marginType,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossFinFlowInfo MarginCrossFinFlowInfo - -// NewMarginCrossFinFlowInfo instantiates a new MarginCrossFinFlowInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossFinFlowInfo() *MarginCrossFinFlowInfo { - this := MarginCrossFinFlowInfo{} - return &this -} - -// NewMarginCrossFinFlowInfoWithDefaults instantiates a new MarginCrossFinFlowInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossFinFlowInfoWithDefaults() *MarginCrossFinFlowInfo { - this := MarginCrossFinFlowInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginCrossFinFlowInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetBalance returns the Balance field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetBalance() string { - if o == nil || isNil(o.Balance) { - var ret string - return ret - } - return *o.Balance -} - -// GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetBalanceOk() (*string, bool) { - if o == nil || isNil(o.Balance) { - return nil, false - } - return o.Balance, true -} - -// HasBalance returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasBalance() bool { - if o != nil && !isNil(o.Balance) { - return true - } - - return false -} - -// SetBalance gets a reference to the given string and assigns it to the Balance field. -func (o *MarginCrossFinFlowInfo) SetBalance(v string) { - o.Balance = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossFinFlowInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginCrossFinFlowInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetFee returns the Fee field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetFee() string { - if o == nil || isNil(o.Fee) { - var ret string - return ret - } - return *o.Fee -} - -// GetFeeOk returns a tuple with the Fee field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetFeeOk() (*string, bool) { - if o == nil || isNil(o.Fee) { - return nil, false - } - return o.Fee, true -} - -// HasFee returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasFee() bool { - if o != nil && !isNil(o.Fee) { - return true - } - - return false -} - -// SetFee gets a reference to the given string and assigns it to the Fee field. -func (o *MarginCrossFinFlowInfo) SetFee(v string) { - o.Fee = &v -} - -// GetMarginId returns the MarginId field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetMarginId() string { - if o == nil || isNil(o.MarginId) { - var ret string - return ret - } - return *o.MarginId -} - -// GetMarginIdOk returns a tuple with the MarginId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetMarginIdOk() (*string, bool) { - if o == nil || isNil(o.MarginId) { - return nil, false - } - return o.MarginId, true -} - -// HasMarginId returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasMarginId() bool { - if o != nil && !isNil(o.MarginId) { - return true - } - - return false -} - -// SetMarginId gets a reference to the given string and assigns it to the MarginId field. -func (o *MarginCrossFinFlowInfo) SetMarginId(v string) { - o.MarginId = &v -} - -// GetMarginType returns the MarginType field value if set, zero value otherwise. -func (o *MarginCrossFinFlowInfo) GetMarginType() string { - if o == nil || isNil(o.MarginType) { - var ret string - return ret - } - return *o.MarginType -} - -// GetMarginTypeOk returns a tuple with the MarginType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowInfo) GetMarginTypeOk() (*string, bool) { - if o == nil || isNil(o.MarginType) { - return nil, false - } - return o.MarginType, true -} - -// HasMarginType returns a boolean if a field has been set. -func (o *MarginCrossFinFlowInfo) HasMarginType() bool { - if o != nil && !isNil(o.MarginType) { - return true - } - - return false -} - -// SetMarginType gets a reference to the given string and assigns it to the MarginType field. -func (o *MarginCrossFinFlowInfo) SetMarginType(v string) { - o.MarginType = &v -} - -func (o MarginCrossFinFlowInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Balance) { - toSerialize["balance"] = o.Balance - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Fee) { - toSerialize["fee"] = o.Fee - } - if !isNil(o.MarginId) { - toSerialize["marginId"] = o.MarginId - } - if !isNil(o.MarginType) { - toSerialize["marginType"] = o.MarginType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossFinFlowInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossFinFlowInfo := _MarginCrossFinFlowInfo{} - - if err = json.Unmarshal(bytes, &varMarginCrossFinFlowInfo); err == nil { - *o = MarginCrossFinFlowInfo(varMarginCrossFinFlowInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "balance") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "fee") - delete(additionalProperties, "marginId") - delete(additionalProperties, "marginType") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossFinFlowInfo struct { - value *MarginCrossFinFlowInfo - isSet bool -} - -func (v NullableMarginCrossFinFlowInfo) Get() *MarginCrossFinFlowInfo { - return v.value -} - -func (v *NullableMarginCrossFinFlowInfo) Set(val *MarginCrossFinFlowInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossFinFlowInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossFinFlowInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossFinFlowInfo(val *MarginCrossFinFlowInfo) *NullableMarginCrossFinFlowInfo { - return &NullableMarginCrossFinFlowInfo{value: val, isSet: true} -} - -func (v NullableMarginCrossFinFlowInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossFinFlowInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_result.go b/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_result.go deleted file mode 100644 index 689f03e3..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_fin_flow_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossFinFlowResult struct for MarginCrossFinFlowResult -type MarginCrossFinFlowResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginCrossFinFlowInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossFinFlowResult MarginCrossFinFlowResult - -// NewMarginCrossFinFlowResult instantiates a new MarginCrossFinFlowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossFinFlowResult() *MarginCrossFinFlowResult { - this := MarginCrossFinFlowResult{} - return &this -} - -// NewMarginCrossFinFlowResultWithDefaults instantiates a new MarginCrossFinFlowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossFinFlowResultWithDefaults() *MarginCrossFinFlowResult { - this := MarginCrossFinFlowResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginCrossFinFlowResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginCrossFinFlowResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginCrossFinFlowResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginCrossFinFlowResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginCrossFinFlowResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginCrossFinFlowResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginCrossFinFlowResult) GetResultList() []MarginCrossFinFlowInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginCrossFinFlowInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossFinFlowResult) GetResultListOk() ([]MarginCrossFinFlowInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginCrossFinFlowResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginCrossFinFlowInfo and assigns it to the ResultList field. -func (o *MarginCrossFinFlowResult) SetResultList(v []MarginCrossFinFlowInfo) { - o.ResultList = v -} - -func (o MarginCrossFinFlowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossFinFlowResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossFinFlowResult := _MarginCrossFinFlowResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossFinFlowResult); err == nil { - *o = MarginCrossFinFlowResult(varMarginCrossFinFlowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossFinFlowResult struct { - value *MarginCrossFinFlowResult - isSet bool -} - -func (v NullableMarginCrossFinFlowResult) Get() *MarginCrossFinFlowResult { - return v.value -} - -func (v *NullableMarginCrossFinFlowResult) Set(val *MarginCrossFinFlowResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossFinFlowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossFinFlowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossFinFlowResult(val *MarginCrossFinFlowResult) *NullableMarginCrossFinFlowResult { - return &NullableMarginCrossFinFlowResult{value: val, isSet: true} -} - -func (v NullableMarginCrossFinFlowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossFinFlowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_level_result.go b/bitget-goland-sdk-open-api/model_margin_cross_level_result.go deleted file mode 100644 index ff79b690..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_level_result.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossLevelResult struct for MarginCrossLevelResult -type MarginCrossLevelResult struct { - Coin *string `json:"coin,omitempty"` - Leverage *string `json:"leverage,omitempty"` - MaintainMarginRate *string `json:"maintainMarginRate,omitempty"` - MaxBorrowableAmount *string `json:"maxBorrowableAmount,omitempty"` - Tier *string `json:"tier,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossLevelResult MarginCrossLevelResult - -// NewMarginCrossLevelResult instantiates a new MarginCrossLevelResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossLevelResult() *MarginCrossLevelResult { - this := MarginCrossLevelResult{} - return &this -} - -// NewMarginCrossLevelResultWithDefaults instantiates a new MarginCrossLevelResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossLevelResultWithDefaults() *MarginCrossLevelResult { - this := MarginCrossLevelResult{} - return &this -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossLevelResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossLevelResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossLevelResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossLevelResult) SetCoin(v string) { - o.Coin = &v -} - -// GetLeverage returns the Leverage field value if set, zero value otherwise. -func (o *MarginCrossLevelResult) GetLeverage() string { - if o == nil || isNil(o.Leverage) { - var ret string - return ret - } - return *o.Leverage -} - -// GetLeverageOk returns a tuple with the Leverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossLevelResult) GetLeverageOk() (*string, bool) { - if o == nil || isNil(o.Leverage) { - return nil, false - } - return o.Leverage, true -} - -// HasLeverage returns a boolean if a field has been set. -func (o *MarginCrossLevelResult) HasLeverage() bool { - if o != nil && !isNil(o.Leverage) { - return true - } - - return false -} - -// SetLeverage gets a reference to the given string and assigns it to the Leverage field. -func (o *MarginCrossLevelResult) SetLeverage(v string) { - o.Leverage = &v -} - -// GetMaintainMarginRate returns the MaintainMarginRate field value if set, zero value otherwise. -func (o *MarginCrossLevelResult) GetMaintainMarginRate() string { - if o == nil || isNil(o.MaintainMarginRate) { - var ret string - return ret - } - return *o.MaintainMarginRate -} - -// GetMaintainMarginRateOk returns a tuple with the MaintainMarginRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossLevelResult) GetMaintainMarginRateOk() (*string, bool) { - if o == nil || isNil(o.MaintainMarginRate) { - return nil, false - } - return o.MaintainMarginRate, true -} - -// HasMaintainMarginRate returns a boolean if a field has been set. -func (o *MarginCrossLevelResult) HasMaintainMarginRate() bool { - if o != nil && !isNil(o.MaintainMarginRate) { - return true - } - - return false -} - -// SetMaintainMarginRate gets a reference to the given string and assigns it to the MaintainMarginRate field. -func (o *MarginCrossLevelResult) SetMaintainMarginRate(v string) { - o.MaintainMarginRate = &v -} - -// GetMaxBorrowableAmount returns the MaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginCrossLevelResult) GetMaxBorrowableAmount() string { - if o == nil || isNil(o.MaxBorrowableAmount) { - var ret string - return ret - } - return *o.MaxBorrowableAmount -} - -// GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossLevelResult) GetMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxBorrowableAmount) { - return nil, false - } - return o.MaxBorrowableAmount, true -} - -// HasMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginCrossLevelResult) HasMaxBorrowableAmount() bool { - if o != nil && !isNil(o.MaxBorrowableAmount) { - return true - } - - return false -} - -// SetMaxBorrowableAmount gets a reference to the given string and assigns it to the MaxBorrowableAmount field. -func (o *MarginCrossLevelResult) SetMaxBorrowableAmount(v string) { - o.MaxBorrowableAmount = &v -} - -// GetTier returns the Tier field value if set, zero value otherwise. -func (o *MarginCrossLevelResult) GetTier() string { - if o == nil || isNil(o.Tier) { - var ret string - return ret - } - return *o.Tier -} - -// GetTierOk returns a tuple with the Tier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossLevelResult) GetTierOk() (*string, bool) { - if o == nil || isNil(o.Tier) { - return nil, false - } - return o.Tier, true -} - -// HasTier returns a boolean if a field has been set. -func (o *MarginCrossLevelResult) HasTier() bool { - if o != nil && !isNil(o.Tier) { - return true - } - - return false -} - -// SetTier gets a reference to the given string and assigns it to the Tier field. -func (o *MarginCrossLevelResult) SetTier(v string) { - o.Tier = &v -} - -func (o MarginCrossLevelResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Leverage) { - toSerialize["leverage"] = o.Leverage - } - if !isNil(o.MaintainMarginRate) { - toSerialize["maintainMarginRate"] = o.MaintainMarginRate - } - if !isNil(o.MaxBorrowableAmount) { - toSerialize["maxBorrowableAmount"] = o.MaxBorrowableAmount - } - if !isNil(o.Tier) { - toSerialize["tier"] = o.Tier - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossLevelResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossLevelResult := _MarginCrossLevelResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossLevelResult); err == nil { - *o = MarginCrossLevelResult(varMarginCrossLevelResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "leverage") - delete(additionalProperties, "maintainMarginRate") - delete(additionalProperties, "maxBorrowableAmount") - delete(additionalProperties, "tier") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossLevelResult struct { - value *MarginCrossLevelResult - isSet bool -} - -func (v NullableMarginCrossLevelResult) Get() *MarginCrossLevelResult { - return v.value -} - -func (v *NullableMarginCrossLevelResult) Set(val *MarginCrossLevelResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossLevelResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossLevelResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossLevelResult(val *MarginCrossLevelResult) *NullableMarginCrossLevelResult { - return &NullableMarginCrossLevelResult{value: val, isSet: true} -} - -func (v NullableMarginCrossLevelResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossLevelResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_limit_request.go b/bitget-goland-sdk-open-api/model_margin_cross_limit_request.go deleted file mode 100644 index 81180c45..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_limit_request.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossLimitRequest struct for MarginCrossLimitRequest -type MarginCrossLimitRequest struct { - // borrowAmount - BorrowAmount string `json:"borrowAmount"` - // coin - Coin string `json:"coin"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossLimitRequest MarginCrossLimitRequest - -// NewMarginCrossLimitRequest instantiates a new MarginCrossLimitRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossLimitRequest(borrowAmount string, coin string) *MarginCrossLimitRequest { - this := MarginCrossLimitRequest{} - this.BorrowAmount = borrowAmount - this.Coin = coin - return &this -} - -// NewMarginCrossLimitRequestWithDefaults instantiates a new MarginCrossLimitRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossLimitRequestWithDefaults() *MarginCrossLimitRequest { - this := MarginCrossLimitRequest{} - return &this -} - -// GetBorrowAmount returns the BorrowAmount field value -func (o *MarginCrossLimitRequest) GetBorrowAmount() string { - if o == nil { - var ret string - return ret - } - - return o.BorrowAmount -} - -// GetBorrowAmountOk returns a tuple with the BorrowAmount field value -// and a boolean to check if the value has been set. -func (o *MarginCrossLimitRequest) GetBorrowAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BorrowAmount, true -} - -// SetBorrowAmount sets field value -func (o *MarginCrossLimitRequest) SetBorrowAmount(v string) { - o.BorrowAmount = v -} - -// GetCoin returns the Coin field value -func (o *MarginCrossLimitRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginCrossLimitRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginCrossLimitRequest) SetCoin(v string) { - o.Coin = v -} - -func (o MarginCrossLimitRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["borrowAmount"] = o.BorrowAmount - } - if true { - toSerialize["coin"] = o.Coin - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossLimitRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossLimitRequest := _MarginCrossLimitRequest{} - - if err = json.Unmarshal(bytes, &varMarginCrossLimitRequest); err == nil { - *o = MarginCrossLimitRequest(varMarginCrossLimitRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "borrowAmount") - delete(additionalProperties, "coin") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossLimitRequest struct { - value *MarginCrossLimitRequest - isSet bool -} - -func (v NullableMarginCrossLimitRequest) Get() *MarginCrossLimitRequest { - return v.value -} - -func (v *NullableMarginCrossLimitRequest) Set(val *MarginCrossLimitRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossLimitRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossLimitRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossLimitRequest(val *MarginCrossLimitRequest) *NullableMarginCrossLimitRequest { - return &NullableMarginCrossLimitRequest{value: val, isSet: true} -} - -func (v NullableMarginCrossLimitRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossLimitRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_request.go b/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_request.go deleted file mode 100644 index 42987d30..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_request.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossMaxBorrowRequest struct for MarginCrossMaxBorrowRequest -type MarginCrossMaxBorrowRequest struct { - // coin - Coin string `json:"coin"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossMaxBorrowRequest MarginCrossMaxBorrowRequest - -// NewMarginCrossMaxBorrowRequest instantiates a new MarginCrossMaxBorrowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossMaxBorrowRequest(coin string) *MarginCrossMaxBorrowRequest { - this := MarginCrossMaxBorrowRequest{} - this.Coin = coin - return &this -} - -// NewMarginCrossMaxBorrowRequestWithDefaults instantiates a new MarginCrossMaxBorrowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossMaxBorrowRequestWithDefaults() *MarginCrossMaxBorrowRequest { - this := MarginCrossMaxBorrowRequest{} - return &this -} - -// GetCoin returns the Coin field value -func (o *MarginCrossMaxBorrowRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginCrossMaxBorrowRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginCrossMaxBorrowRequest) SetCoin(v string) { - o.Coin = v -} - -func (o MarginCrossMaxBorrowRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["coin"] = o.Coin - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossMaxBorrowRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossMaxBorrowRequest := _MarginCrossMaxBorrowRequest{} - - if err = json.Unmarshal(bytes, &varMarginCrossMaxBorrowRequest); err == nil { - *o = MarginCrossMaxBorrowRequest(varMarginCrossMaxBorrowRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossMaxBorrowRequest struct { - value *MarginCrossMaxBorrowRequest - isSet bool -} - -func (v NullableMarginCrossMaxBorrowRequest) Get() *MarginCrossMaxBorrowRequest { - return v.value -} - -func (v *NullableMarginCrossMaxBorrowRequest) Set(val *MarginCrossMaxBorrowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossMaxBorrowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossMaxBorrowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossMaxBorrowRequest(val *MarginCrossMaxBorrowRequest) *NullableMarginCrossMaxBorrowRequest { - return &NullableMarginCrossMaxBorrowRequest{value: val, isSet: true} -} - -func (v NullableMarginCrossMaxBorrowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossMaxBorrowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_result.go b/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_result.go deleted file mode 100644 index 24407eeb..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_max_borrow_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossMaxBorrowResult struct for MarginCrossMaxBorrowResult -type MarginCrossMaxBorrowResult struct { - Coin *string `json:"coin,omitempty"` - MaxBorrowableAmount *string `json:"maxBorrowableAmount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossMaxBorrowResult MarginCrossMaxBorrowResult - -// NewMarginCrossMaxBorrowResult instantiates a new MarginCrossMaxBorrowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossMaxBorrowResult() *MarginCrossMaxBorrowResult { - this := MarginCrossMaxBorrowResult{} - return &this -} - -// NewMarginCrossMaxBorrowResultWithDefaults instantiates a new MarginCrossMaxBorrowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossMaxBorrowResultWithDefaults() *MarginCrossMaxBorrowResult { - this := MarginCrossMaxBorrowResult{} - return &this -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossMaxBorrowResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossMaxBorrowResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossMaxBorrowResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossMaxBorrowResult) SetCoin(v string) { - o.Coin = &v -} - -// GetMaxBorrowableAmount returns the MaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginCrossMaxBorrowResult) GetMaxBorrowableAmount() string { - if o == nil || isNil(o.MaxBorrowableAmount) { - var ret string - return ret - } - return *o.MaxBorrowableAmount -} - -// GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossMaxBorrowResult) GetMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxBorrowableAmount) { - return nil, false - } - return o.MaxBorrowableAmount, true -} - -// HasMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginCrossMaxBorrowResult) HasMaxBorrowableAmount() bool { - if o != nil && !isNil(o.MaxBorrowableAmount) { - return true - } - - return false -} - -// SetMaxBorrowableAmount gets a reference to the given string and assigns it to the MaxBorrowableAmount field. -func (o *MarginCrossMaxBorrowResult) SetMaxBorrowableAmount(v string) { - o.MaxBorrowableAmount = &v -} - -func (o MarginCrossMaxBorrowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.MaxBorrowableAmount) { - toSerialize["maxBorrowableAmount"] = o.MaxBorrowableAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossMaxBorrowResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossMaxBorrowResult := _MarginCrossMaxBorrowResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossMaxBorrowResult); err == nil { - *o = MarginCrossMaxBorrowResult(varMarginCrossMaxBorrowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "maxBorrowableAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossMaxBorrowResult struct { - value *MarginCrossMaxBorrowResult - isSet bool -} - -func (v NullableMarginCrossMaxBorrowResult) Get() *MarginCrossMaxBorrowResult { - return v.value -} - -func (v *NullableMarginCrossMaxBorrowResult) Set(val *MarginCrossMaxBorrowResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossMaxBorrowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossMaxBorrowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossMaxBorrowResult(val *MarginCrossMaxBorrowResult) *NullableMarginCrossMaxBorrowResult { - return &NullableMarginCrossMaxBorrowResult{value: val, isSet: true} -} - -func (v NullableMarginCrossMaxBorrowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossMaxBorrowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_rate_and_limit_result.go b/bitget-goland-sdk-open-api/model_margin_cross_rate_and_limit_result.go deleted file mode 100644 index 9f36bb5f..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_rate_and_limit_result.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossRateAndLimitResult struct for MarginCrossRateAndLimitResult -type MarginCrossRateAndLimitResult struct { - BorrowAble *bool `json:"borrowAble,omitempty"` - Coin *string `json:"coin,omitempty"` - DailyInterestRate *string `json:"dailyInterestRate,omitempty"` - Leverage *string `json:"leverage,omitempty"` - MaxBorrowableAmount *string `json:"maxBorrowableAmount,omitempty"` - TransferInAble *bool `json:"transferInAble,omitempty"` - Vips []MarginCrossVipResult `json:"vips,omitempty"` - YearlyInterestRate *string `json:"yearlyInterestRate,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossRateAndLimitResult MarginCrossRateAndLimitResult - -// NewMarginCrossRateAndLimitResult instantiates a new MarginCrossRateAndLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossRateAndLimitResult() *MarginCrossRateAndLimitResult { - this := MarginCrossRateAndLimitResult{} - return &this -} - -// NewMarginCrossRateAndLimitResultWithDefaults instantiates a new MarginCrossRateAndLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossRateAndLimitResultWithDefaults() *MarginCrossRateAndLimitResult { - this := MarginCrossRateAndLimitResult{} - return &this -} - -// GetBorrowAble returns the BorrowAble field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetBorrowAble() bool { - if o == nil || isNil(o.BorrowAble) { - var ret bool - return ret - } - return *o.BorrowAble -} - -// GetBorrowAbleOk returns a tuple with the BorrowAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetBorrowAbleOk() (*bool, bool) { - if o == nil || isNil(o.BorrowAble) { - return nil, false - } - return o.BorrowAble, true -} - -// HasBorrowAble returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasBorrowAble() bool { - if o != nil && !isNil(o.BorrowAble) { - return true - } - - return false -} - -// SetBorrowAble gets a reference to the given bool and assigns it to the BorrowAble field. -func (o *MarginCrossRateAndLimitResult) SetBorrowAble(v bool) { - o.BorrowAble = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossRateAndLimitResult) SetCoin(v string) { - o.Coin = &v -} - -// GetDailyInterestRate returns the DailyInterestRate field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetDailyInterestRate() string { - if o == nil || isNil(o.DailyInterestRate) { - var ret string - return ret - } - return *o.DailyInterestRate -} - -// GetDailyInterestRateOk returns a tuple with the DailyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetDailyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.DailyInterestRate) { - return nil, false - } - return o.DailyInterestRate, true -} - -// HasDailyInterestRate returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasDailyInterestRate() bool { - if o != nil && !isNil(o.DailyInterestRate) { - return true - } - - return false -} - -// SetDailyInterestRate gets a reference to the given string and assigns it to the DailyInterestRate field. -func (o *MarginCrossRateAndLimitResult) SetDailyInterestRate(v string) { - o.DailyInterestRate = &v -} - -// GetLeverage returns the Leverage field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetLeverage() string { - if o == nil || isNil(o.Leverage) { - var ret string - return ret - } - return *o.Leverage -} - -// GetLeverageOk returns a tuple with the Leverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetLeverageOk() (*string, bool) { - if o == nil || isNil(o.Leverage) { - return nil, false - } - return o.Leverage, true -} - -// HasLeverage returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasLeverage() bool { - if o != nil && !isNil(o.Leverage) { - return true - } - - return false -} - -// SetLeverage gets a reference to the given string and assigns it to the Leverage field. -func (o *MarginCrossRateAndLimitResult) SetLeverage(v string) { - o.Leverage = &v -} - -// GetMaxBorrowableAmount returns the MaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetMaxBorrowableAmount() string { - if o == nil || isNil(o.MaxBorrowableAmount) { - var ret string - return ret - } - return *o.MaxBorrowableAmount -} - -// GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxBorrowableAmount) { - return nil, false - } - return o.MaxBorrowableAmount, true -} - -// HasMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasMaxBorrowableAmount() bool { - if o != nil && !isNil(o.MaxBorrowableAmount) { - return true - } - - return false -} - -// SetMaxBorrowableAmount gets a reference to the given string and assigns it to the MaxBorrowableAmount field. -func (o *MarginCrossRateAndLimitResult) SetMaxBorrowableAmount(v string) { - o.MaxBorrowableAmount = &v -} - -// GetTransferInAble returns the TransferInAble field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetTransferInAble() bool { - if o == nil || isNil(o.TransferInAble) { - var ret bool - return ret - } - return *o.TransferInAble -} - -// GetTransferInAbleOk returns a tuple with the TransferInAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetTransferInAbleOk() (*bool, bool) { - if o == nil || isNil(o.TransferInAble) { - return nil, false - } - return o.TransferInAble, true -} - -// HasTransferInAble returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasTransferInAble() bool { - if o != nil && !isNil(o.TransferInAble) { - return true - } - - return false -} - -// SetTransferInAble gets a reference to the given bool and assigns it to the TransferInAble field. -func (o *MarginCrossRateAndLimitResult) SetTransferInAble(v bool) { - o.TransferInAble = &v -} - -// GetVips returns the Vips field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetVips() []MarginCrossVipResult { - if o == nil || isNil(o.Vips) { - var ret []MarginCrossVipResult - return ret - } - return o.Vips -} - -// GetVipsOk returns a tuple with the Vips field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetVipsOk() ([]MarginCrossVipResult, bool) { - if o == nil || isNil(o.Vips) { - return nil, false - } - return o.Vips, true -} - -// HasVips returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasVips() bool { - if o != nil && !isNil(o.Vips) { - return true - } - - return false -} - -// SetVips gets a reference to the given []MarginCrossVipResult and assigns it to the Vips field. -func (o *MarginCrossRateAndLimitResult) SetVips(v []MarginCrossVipResult) { - o.Vips = v -} - -// GetYearlyInterestRate returns the YearlyInterestRate field value if set, zero value otherwise. -func (o *MarginCrossRateAndLimitResult) GetYearlyInterestRate() string { - if o == nil || isNil(o.YearlyInterestRate) { - var ret string - return ret - } - return *o.YearlyInterestRate -} - -// GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRateAndLimitResult) GetYearlyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.YearlyInterestRate) { - return nil, false - } - return o.YearlyInterestRate, true -} - -// HasYearlyInterestRate returns a boolean if a field has been set. -func (o *MarginCrossRateAndLimitResult) HasYearlyInterestRate() bool { - if o != nil && !isNil(o.YearlyInterestRate) { - return true - } - - return false -} - -// SetYearlyInterestRate gets a reference to the given string and assigns it to the YearlyInterestRate field. -func (o *MarginCrossRateAndLimitResult) SetYearlyInterestRate(v string) { - o.YearlyInterestRate = &v -} - -func (o MarginCrossRateAndLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BorrowAble) { - toSerialize["borrowAble"] = o.BorrowAble - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.DailyInterestRate) { - toSerialize["dailyInterestRate"] = o.DailyInterestRate - } - if !isNil(o.Leverage) { - toSerialize["leverage"] = o.Leverage - } - if !isNil(o.MaxBorrowableAmount) { - toSerialize["maxBorrowableAmount"] = o.MaxBorrowableAmount - } - if !isNil(o.TransferInAble) { - toSerialize["transferInAble"] = o.TransferInAble - } - if !isNil(o.Vips) { - toSerialize["vips"] = o.Vips - } - if !isNil(o.YearlyInterestRate) { - toSerialize["yearlyInterestRate"] = o.YearlyInterestRate - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossRateAndLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossRateAndLimitResult := _MarginCrossRateAndLimitResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossRateAndLimitResult); err == nil { - *o = MarginCrossRateAndLimitResult(varMarginCrossRateAndLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "borrowAble") - delete(additionalProperties, "coin") - delete(additionalProperties, "dailyInterestRate") - delete(additionalProperties, "leverage") - delete(additionalProperties, "maxBorrowableAmount") - delete(additionalProperties, "transferInAble") - delete(additionalProperties, "vips") - delete(additionalProperties, "yearlyInterestRate") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossRateAndLimitResult struct { - value *MarginCrossRateAndLimitResult - isSet bool -} - -func (v NullableMarginCrossRateAndLimitResult) Get() *MarginCrossRateAndLimitResult { - return v.value -} - -func (v *NullableMarginCrossRateAndLimitResult) Set(val *MarginCrossRateAndLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossRateAndLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossRateAndLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossRateAndLimitResult(val *MarginCrossRateAndLimitResult) *NullableMarginCrossRateAndLimitResult { - return &NullableMarginCrossRateAndLimitResult{value: val, isSet: true} -} - -func (v NullableMarginCrossRateAndLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossRateAndLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_repay_request.go b/bitget-goland-sdk-open-api/model_margin_cross_repay_request.go deleted file mode 100644 index a6d3ed04..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_repay_request.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossRepayRequest struct for MarginCrossRepayRequest -type MarginCrossRepayRequest struct { - // coin - Coin string `json:"coin"` - // repayAmount - RepayAmount string `json:"repayAmount"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossRepayRequest MarginCrossRepayRequest - -// NewMarginCrossRepayRequest instantiates a new MarginCrossRepayRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossRepayRequest(coin string, repayAmount string) *MarginCrossRepayRequest { - this := MarginCrossRepayRequest{} - this.Coin = coin - this.RepayAmount = repayAmount - return &this -} - -// NewMarginCrossRepayRequestWithDefaults instantiates a new MarginCrossRepayRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossRepayRequestWithDefaults() *MarginCrossRepayRequest { - this := MarginCrossRepayRequest{} - return &this -} - -// GetCoin returns the Coin field value -func (o *MarginCrossRepayRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginCrossRepayRequest) SetCoin(v string) { - o.Coin = v -} - -// GetRepayAmount returns the RepayAmount field value -func (o *MarginCrossRepayRequest) GetRepayAmount() string { - if o == nil { - var ret string - return ret - } - - return o.RepayAmount -} - -// GetRepayAmountOk returns a tuple with the RepayAmount field value -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayRequest) GetRepayAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RepayAmount, true -} - -// SetRepayAmount sets field value -func (o *MarginCrossRepayRequest) SetRepayAmount(v string) { - o.RepayAmount = v -} - -func (o MarginCrossRepayRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["coin"] = o.Coin - } - if true { - toSerialize["repayAmount"] = o.RepayAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossRepayRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossRepayRequest := _MarginCrossRepayRequest{} - - if err = json.Unmarshal(bytes, &varMarginCrossRepayRequest); err == nil { - *o = MarginCrossRepayRequest(varMarginCrossRepayRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "repayAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossRepayRequest struct { - value *MarginCrossRepayRequest - isSet bool -} - -func (v NullableMarginCrossRepayRequest) Get() *MarginCrossRepayRequest { - return v.value -} - -func (v *NullableMarginCrossRepayRequest) Set(val *MarginCrossRepayRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossRepayRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossRepayRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossRepayRequest(val *MarginCrossRepayRequest) *NullableMarginCrossRepayRequest { - return &NullableMarginCrossRepayRequest{value: val, isSet: true} -} - -func (v NullableMarginCrossRepayRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossRepayRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_repay_result.go b/bitget-goland-sdk-open-api/model_margin_cross_repay_result.go deleted file mode 100644 index 38d701bf..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_repay_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossRepayResult struct for MarginCrossRepayResult -type MarginCrossRepayResult struct { - ClientOid *string `json:"clientOid,omitempty"` - Coin *string `json:"coin,omitempty"` - RemainDebtAmount *string `json:"remainDebtAmount,omitempty"` - RepayAmount *string `json:"repayAmount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossRepayResult MarginCrossRepayResult - -// NewMarginCrossRepayResult instantiates a new MarginCrossRepayResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossRepayResult() *MarginCrossRepayResult { - this := MarginCrossRepayResult{} - return &this -} - -// NewMarginCrossRepayResultWithDefaults instantiates a new MarginCrossRepayResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossRepayResultWithDefaults() *MarginCrossRepayResult { - this := MarginCrossRepayResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginCrossRepayResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginCrossRepayResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginCrossRepayResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginCrossRepayResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginCrossRepayResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginCrossRepayResult) SetCoin(v string) { - o.Coin = &v -} - -// GetRemainDebtAmount returns the RemainDebtAmount field value if set, zero value otherwise. -func (o *MarginCrossRepayResult) GetRemainDebtAmount() string { - if o == nil || isNil(o.RemainDebtAmount) { - var ret string - return ret - } - return *o.RemainDebtAmount -} - -// GetRemainDebtAmountOk returns a tuple with the RemainDebtAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayResult) GetRemainDebtAmountOk() (*string, bool) { - if o == nil || isNil(o.RemainDebtAmount) { - return nil, false - } - return o.RemainDebtAmount, true -} - -// HasRemainDebtAmount returns a boolean if a field has been set. -func (o *MarginCrossRepayResult) HasRemainDebtAmount() bool { - if o != nil && !isNil(o.RemainDebtAmount) { - return true - } - - return false -} - -// SetRemainDebtAmount gets a reference to the given string and assigns it to the RemainDebtAmount field. -func (o *MarginCrossRepayResult) SetRemainDebtAmount(v string) { - o.RemainDebtAmount = &v -} - -// GetRepayAmount returns the RepayAmount field value if set, zero value otherwise. -func (o *MarginCrossRepayResult) GetRepayAmount() string { - if o == nil || isNil(o.RepayAmount) { - var ret string - return ret - } - return *o.RepayAmount -} - -// GetRepayAmountOk returns a tuple with the RepayAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossRepayResult) GetRepayAmountOk() (*string, bool) { - if o == nil || isNil(o.RepayAmount) { - return nil, false - } - return o.RepayAmount, true -} - -// HasRepayAmount returns a boolean if a field has been set. -func (o *MarginCrossRepayResult) HasRepayAmount() bool { - if o != nil && !isNil(o.RepayAmount) { - return true - } - - return false -} - -// SetRepayAmount gets a reference to the given string and assigns it to the RepayAmount field. -func (o *MarginCrossRepayResult) SetRepayAmount(v string) { - o.RepayAmount = &v -} - -func (o MarginCrossRepayResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.RemainDebtAmount) { - toSerialize["remainDebtAmount"] = o.RemainDebtAmount - } - if !isNil(o.RepayAmount) { - toSerialize["repayAmount"] = o.RepayAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossRepayResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossRepayResult := _MarginCrossRepayResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossRepayResult); err == nil { - *o = MarginCrossRepayResult(varMarginCrossRepayResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "coin") - delete(additionalProperties, "remainDebtAmount") - delete(additionalProperties, "repayAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossRepayResult struct { - value *MarginCrossRepayResult - isSet bool -} - -func (v NullableMarginCrossRepayResult) Get() *MarginCrossRepayResult { - return v.value -} - -func (v *NullableMarginCrossRepayResult) Set(val *MarginCrossRepayResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossRepayResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossRepayResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossRepayResult(val *MarginCrossRepayResult) *NullableMarginCrossRepayResult { - return &NullableMarginCrossRepayResult{value: val, isSet: true} -} - -func (v NullableMarginCrossRepayResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossRepayResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_cross_vip_result.go b/bitget-goland-sdk-open-api/model_margin_cross_vip_result.go deleted file mode 100644 index 5ede75aa..00000000 --- a/bitget-goland-sdk-open-api/model_margin_cross_vip_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginCrossVipResult struct for MarginCrossVipResult -type MarginCrossVipResult struct { - DailyInterestRate *string `json:"dailyInterestRate,omitempty"` - DiscountRate *string `json:"discountRate,omitempty"` - Level *string `json:"level,omitempty"` - YearlyInterestRate *string `json:"yearlyInterestRate,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginCrossVipResult MarginCrossVipResult - -// NewMarginCrossVipResult instantiates a new MarginCrossVipResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginCrossVipResult() *MarginCrossVipResult { - this := MarginCrossVipResult{} - return &this -} - -// NewMarginCrossVipResultWithDefaults instantiates a new MarginCrossVipResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginCrossVipResultWithDefaults() *MarginCrossVipResult { - this := MarginCrossVipResult{} - return &this -} - -// GetDailyInterestRate returns the DailyInterestRate field value if set, zero value otherwise. -func (o *MarginCrossVipResult) GetDailyInterestRate() string { - if o == nil || isNil(o.DailyInterestRate) { - var ret string - return ret - } - return *o.DailyInterestRate -} - -// GetDailyInterestRateOk returns a tuple with the DailyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossVipResult) GetDailyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.DailyInterestRate) { - return nil, false - } - return o.DailyInterestRate, true -} - -// HasDailyInterestRate returns a boolean if a field has been set. -func (o *MarginCrossVipResult) HasDailyInterestRate() bool { - if o != nil && !isNil(o.DailyInterestRate) { - return true - } - - return false -} - -// SetDailyInterestRate gets a reference to the given string and assigns it to the DailyInterestRate field. -func (o *MarginCrossVipResult) SetDailyInterestRate(v string) { - o.DailyInterestRate = &v -} - -// GetDiscountRate returns the DiscountRate field value if set, zero value otherwise. -func (o *MarginCrossVipResult) GetDiscountRate() string { - if o == nil || isNil(o.DiscountRate) { - var ret string - return ret - } - return *o.DiscountRate -} - -// GetDiscountRateOk returns a tuple with the DiscountRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossVipResult) GetDiscountRateOk() (*string, bool) { - if o == nil || isNil(o.DiscountRate) { - return nil, false - } - return o.DiscountRate, true -} - -// HasDiscountRate returns a boolean if a field has been set. -func (o *MarginCrossVipResult) HasDiscountRate() bool { - if o != nil && !isNil(o.DiscountRate) { - return true - } - - return false -} - -// SetDiscountRate gets a reference to the given string and assigns it to the DiscountRate field. -func (o *MarginCrossVipResult) SetDiscountRate(v string) { - o.DiscountRate = &v -} - -// GetLevel returns the Level field value if set, zero value otherwise. -func (o *MarginCrossVipResult) GetLevel() string { - if o == nil || isNil(o.Level) { - var ret string - return ret - } - return *o.Level -} - -// GetLevelOk returns a tuple with the Level field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossVipResult) GetLevelOk() (*string, bool) { - if o == nil || isNil(o.Level) { - return nil, false - } - return o.Level, true -} - -// HasLevel returns a boolean if a field has been set. -func (o *MarginCrossVipResult) HasLevel() bool { - if o != nil && !isNil(o.Level) { - return true - } - - return false -} - -// SetLevel gets a reference to the given string and assigns it to the Level field. -func (o *MarginCrossVipResult) SetLevel(v string) { - o.Level = &v -} - -// GetYearlyInterestRate returns the YearlyInterestRate field value if set, zero value otherwise. -func (o *MarginCrossVipResult) GetYearlyInterestRate() string { - if o == nil || isNil(o.YearlyInterestRate) { - var ret string - return ret - } - return *o.YearlyInterestRate -} - -// GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginCrossVipResult) GetYearlyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.YearlyInterestRate) { - return nil, false - } - return o.YearlyInterestRate, true -} - -// HasYearlyInterestRate returns a boolean if a field has been set. -func (o *MarginCrossVipResult) HasYearlyInterestRate() bool { - if o != nil && !isNil(o.YearlyInterestRate) { - return true - } - - return false -} - -// SetYearlyInterestRate gets a reference to the given string and assigns it to the YearlyInterestRate field. -func (o *MarginCrossVipResult) SetYearlyInterestRate(v string) { - o.YearlyInterestRate = &v -} - -func (o MarginCrossVipResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.DailyInterestRate) { - toSerialize["dailyInterestRate"] = o.DailyInterestRate - } - if !isNil(o.DiscountRate) { - toSerialize["discountRate"] = o.DiscountRate - } - if !isNil(o.Level) { - toSerialize["level"] = o.Level - } - if !isNil(o.YearlyInterestRate) { - toSerialize["yearlyInterestRate"] = o.YearlyInterestRate - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginCrossVipResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginCrossVipResult := _MarginCrossVipResult{} - - if err = json.Unmarshal(bytes, &varMarginCrossVipResult); err == nil { - *o = MarginCrossVipResult(varMarginCrossVipResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "dailyInterestRate") - delete(additionalProperties, "discountRate") - delete(additionalProperties, "level") - delete(additionalProperties, "yearlyInterestRate") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginCrossVipResult struct { - value *MarginCrossVipResult - isSet bool -} - -func (v NullableMarginCrossVipResult) Get() *MarginCrossVipResult { - return v.value -} - -func (v *NullableMarginCrossVipResult) Set(val *MarginCrossVipResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginCrossVipResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginCrossVipResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginCrossVipResult(val *MarginCrossVipResult) *NullableMarginCrossVipResult { - return &NullableMarginCrossVipResult{value: val, isSet: true} -} - -func (v NullableMarginCrossVipResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginCrossVipResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_interest_info.go b/bitget-goland-sdk-open-api/model_margin_interest_info.go deleted file mode 100644 index 13132ab5..00000000 --- a/bitget-goland-sdk-open-api/model_margin_interest_info.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginInterestInfo struct for MarginInterestInfo -type MarginInterestInfo struct { - Amount *string `json:"amount,omitempty"` - Ctime *string `json:"ctime,omitempty"` - InterestCoin *string `json:"interestCoin,omitempty"` - InterestId *string `json:"interestId,omitempty"` - InterestRate *string `json:"interestRate,omitempty"` - LoanCoin *string `json:"loanCoin,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginInterestInfo MarginInterestInfo - -// NewMarginInterestInfo instantiates a new MarginInterestInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginInterestInfo() *MarginInterestInfo { - this := MarginInterestInfo{} - return &this -} - -// NewMarginInterestInfoWithDefaults instantiates a new MarginInterestInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginInterestInfoWithDefaults() *MarginInterestInfo { - this := MarginInterestInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginInterestInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginInterestInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetInterestCoin returns the InterestCoin field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetInterestCoin() string { - if o == nil || isNil(o.InterestCoin) { - var ret string - return ret - } - return *o.InterestCoin -} - -// GetInterestCoinOk returns a tuple with the InterestCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetInterestCoinOk() (*string, bool) { - if o == nil || isNil(o.InterestCoin) { - return nil, false - } - return o.InterestCoin, true -} - -// HasInterestCoin returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasInterestCoin() bool { - if o != nil && !isNil(o.InterestCoin) { - return true - } - - return false -} - -// SetInterestCoin gets a reference to the given string and assigns it to the InterestCoin field. -func (o *MarginInterestInfo) SetInterestCoin(v string) { - o.InterestCoin = &v -} - -// GetInterestId returns the InterestId field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetInterestId() string { - if o == nil || isNil(o.InterestId) { - var ret string - return ret - } - return *o.InterestId -} - -// GetInterestIdOk returns a tuple with the InterestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetInterestIdOk() (*string, bool) { - if o == nil || isNil(o.InterestId) { - return nil, false - } - return o.InterestId, true -} - -// HasInterestId returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasInterestId() bool { - if o != nil && !isNil(o.InterestId) { - return true - } - - return false -} - -// SetInterestId gets a reference to the given string and assigns it to the InterestId field. -func (o *MarginInterestInfo) SetInterestId(v string) { - o.InterestId = &v -} - -// GetInterestRate returns the InterestRate field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetInterestRate() string { - if o == nil || isNil(o.InterestRate) { - var ret string - return ret - } - return *o.InterestRate -} - -// GetInterestRateOk returns a tuple with the InterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetInterestRateOk() (*string, bool) { - if o == nil || isNil(o.InterestRate) { - return nil, false - } - return o.InterestRate, true -} - -// HasInterestRate returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasInterestRate() bool { - if o != nil && !isNil(o.InterestRate) { - return true - } - - return false -} - -// SetInterestRate gets a reference to the given string and assigns it to the InterestRate field. -func (o *MarginInterestInfo) SetInterestRate(v string) { - o.InterestRate = &v -} - -// GetLoanCoin returns the LoanCoin field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetLoanCoin() string { - if o == nil || isNil(o.LoanCoin) { - var ret string - return ret - } - return *o.LoanCoin -} - -// GetLoanCoinOk returns a tuple with the LoanCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetLoanCoinOk() (*string, bool) { - if o == nil || isNil(o.LoanCoin) { - return nil, false - } - return o.LoanCoin, true -} - -// HasLoanCoin returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasLoanCoin() bool { - if o != nil && !isNil(o.LoanCoin) { - return true - } - - return false -} - -// SetLoanCoin gets a reference to the given string and assigns it to the LoanCoin field. -func (o *MarginInterestInfo) SetLoanCoin(v string) { - o.LoanCoin = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginInterestInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginInterestInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginInterestInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginInterestInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.InterestCoin) { - toSerialize["interestCoin"] = o.InterestCoin - } - if !isNil(o.InterestId) { - toSerialize["interestId"] = o.InterestId - } - if !isNil(o.InterestRate) { - toSerialize["interestRate"] = o.InterestRate - } - if !isNil(o.LoanCoin) { - toSerialize["loanCoin"] = o.LoanCoin - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginInterestInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginInterestInfo := _MarginInterestInfo{} - - if err = json.Unmarshal(bytes, &varMarginInterestInfo); err == nil { - *o = MarginInterestInfo(varMarginInterestInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "ctime") - delete(additionalProperties, "interestCoin") - delete(additionalProperties, "interestId") - delete(additionalProperties, "interestRate") - delete(additionalProperties, "loanCoin") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginInterestInfo struct { - value *MarginInterestInfo - isSet bool -} - -func (v NullableMarginInterestInfo) Get() *MarginInterestInfo { - return v.value -} - -func (v *NullableMarginInterestInfo) Set(val *MarginInterestInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginInterestInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginInterestInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginInterestInfo(val *MarginInterestInfo) *NullableMarginInterestInfo { - return &NullableMarginInterestInfo{value: val, isSet: true} -} - -func (v NullableMarginInterestInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginInterestInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_interest_info_result.go b/bitget-goland-sdk-open-api/model_margin_interest_info_result.go deleted file mode 100644 index d9dfcf99..00000000 --- a/bitget-goland-sdk-open-api/model_margin_interest_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginInterestInfoResult struct for MarginInterestInfoResult -type MarginInterestInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginInterestInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginInterestInfoResult MarginInterestInfoResult - -// NewMarginInterestInfoResult instantiates a new MarginInterestInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginInterestInfoResult() *MarginInterestInfoResult { - this := MarginInterestInfoResult{} - return &this -} - -// NewMarginInterestInfoResultWithDefaults instantiates a new MarginInterestInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginInterestInfoResultWithDefaults() *MarginInterestInfoResult { - this := MarginInterestInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginInterestInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginInterestInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginInterestInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginInterestInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginInterestInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginInterestInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginInterestInfoResult) GetResultList() []MarginInterestInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginInterestInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginInterestInfoResult) GetResultListOk() ([]MarginInterestInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginInterestInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginInterestInfo and assigns it to the ResultList field. -func (o *MarginInterestInfoResult) SetResultList(v []MarginInterestInfo) { - o.ResultList = v -} - -func (o MarginInterestInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginInterestInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginInterestInfoResult := _MarginInterestInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginInterestInfoResult); err == nil { - *o = MarginInterestInfoResult(varMarginInterestInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginInterestInfoResult struct { - value *MarginInterestInfoResult - isSet bool -} - -func (v NullableMarginInterestInfoResult) Get() *MarginInterestInfoResult { - return v.value -} - -func (v *NullableMarginInterestInfoResult) Set(val *MarginInterestInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginInterestInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginInterestInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginInterestInfoResult(val *MarginInterestInfoResult) *NullableMarginInterestInfoResult { - return &NullableMarginInterestInfoResult{value: val, isSet: true} -} - -func (v NullableMarginInterestInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginInterestInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_assets_population_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_assets_population_result.go deleted file mode 100644 index da9b77f4..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_assets_population_result.go +++ /dev/null @@ -1,434 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedAssetsPopulationResult struct for MarginIsolatedAssetsPopulationResult -type MarginIsolatedAssetsPopulationResult struct { - Available *string `json:"available,omitempty"` - Borrow *string `json:"borrow,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Frozen *string `json:"frozen,omitempty"` - Interest *string `json:"interest,omitempty"` - Net *string `json:"net,omitempty"` - Symbol *string `json:"symbol,omitempty"` - TotalAmount *string `json:"totalAmount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedAssetsPopulationResult MarginIsolatedAssetsPopulationResult - -// NewMarginIsolatedAssetsPopulationResult instantiates a new MarginIsolatedAssetsPopulationResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedAssetsPopulationResult() *MarginIsolatedAssetsPopulationResult { - this := MarginIsolatedAssetsPopulationResult{} - return &this -} - -// NewMarginIsolatedAssetsPopulationResultWithDefaults instantiates a new MarginIsolatedAssetsPopulationResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedAssetsPopulationResultWithDefaults() *MarginIsolatedAssetsPopulationResult { - this := MarginIsolatedAssetsPopulationResult{} - return &this -} - -// GetAvailable returns the Available field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetAvailable() string { - if o == nil || isNil(o.Available) { - var ret string - return ret - } - return *o.Available -} - -// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetAvailableOk() (*string, bool) { - if o == nil || isNil(o.Available) { - return nil, false - } - return o.Available, true -} - -// HasAvailable returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasAvailable() bool { - if o != nil && !isNil(o.Available) { - return true - } - - return false -} - -// SetAvailable gets a reference to the given string and assigns it to the Available field. -func (o *MarginIsolatedAssetsPopulationResult) SetAvailable(v string) { - o.Available = &v -} - -// GetBorrow returns the Borrow field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetBorrow() string { - if o == nil || isNil(o.Borrow) { - var ret string - return ret - } - return *o.Borrow -} - -// GetBorrowOk returns a tuple with the Borrow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetBorrowOk() (*string, bool) { - if o == nil || isNil(o.Borrow) { - return nil, false - } - return o.Borrow, true -} - -// HasBorrow returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasBorrow() bool { - if o != nil && !isNil(o.Borrow) { - return true - } - - return false -} - -// SetBorrow gets a reference to the given string and assigns it to the Borrow field. -func (o *MarginIsolatedAssetsPopulationResult) SetBorrow(v string) { - o.Borrow = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedAssetsPopulationResult) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedAssetsPopulationResult) SetCtime(v string) { - o.Ctime = &v -} - -// GetFrozen returns the Frozen field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetFrozen() string { - if o == nil || isNil(o.Frozen) { - var ret string - return ret - } - return *o.Frozen -} - -// GetFrozenOk returns a tuple with the Frozen field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetFrozenOk() (*string, bool) { - if o == nil || isNil(o.Frozen) { - return nil, false - } - return o.Frozen, true -} - -// HasFrozen returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasFrozen() bool { - if o != nil && !isNil(o.Frozen) { - return true - } - - return false -} - -// SetFrozen gets a reference to the given string and assigns it to the Frozen field. -func (o *MarginIsolatedAssetsPopulationResult) SetFrozen(v string) { - o.Frozen = &v -} - -// GetInterest returns the Interest field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetInterest() string { - if o == nil || isNil(o.Interest) { - var ret string - return ret - } - return *o.Interest -} - -// GetInterestOk returns a tuple with the Interest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetInterestOk() (*string, bool) { - if o == nil || isNil(o.Interest) { - return nil, false - } - return o.Interest, true -} - -// HasInterest returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasInterest() bool { - if o != nil && !isNil(o.Interest) { - return true - } - - return false -} - -// SetInterest gets a reference to the given string and assigns it to the Interest field. -func (o *MarginIsolatedAssetsPopulationResult) SetInterest(v string) { - o.Interest = &v -} - -// GetNet returns the Net field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetNet() string { - if o == nil || isNil(o.Net) { - var ret string - return ret - } - return *o.Net -} - -// GetNetOk returns a tuple with the Net field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetNetOk() (*string, bool) { - if o == nil || isNil(o.Net) { - return nil, false - } - return o.Net, true -} - -// HasNet returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasNet() bool { - if o != nil && !isNil(o.Net) { - return true - } - - return false -} - -// SetNet gets a reference to the given string and assigns it to the Net field. -func (o *MarginIsolatedAssetsPopulationResult) SetNet(v string) { - o.Net = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedAssetsPopulationResult) SetSymbol(v string) { - o.Symbol = &v -} - -// GetTotalAmount returns the TotalAmount field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsPopulationResult) GetTotalAmount() string { - if o == nil || isNil(o.TotalAmount) { - var ret string - return ret - } - return *o.TotalAmount -} - -// GetTotalAmountOk returns a tuple with the TotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsPopulationResult) GetTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.TotalAmount) { - return nil, false - } - return o.TotalAmount, true -} - -// HasTotalAmount returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsPopulationResult) HasTotalAmount() bool { - if o != nil && !isNil(o.TotalAmount) { - return true - } - - return false -} - -// SetTotalAmount gets a reference to the given string and assigns it to the TotalAmount field. -func (o *MarginIsolatedAssetsPopulationResult) SetTotalAmount(v string) { - o.TotalAmount = &v -} - -func (o MarginIsolatedAssetsPopulationResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Available) { - toSerialize["available"] = o.Available - } - if !isNil(o.Borrow) { - toSerialize["borrow"] = o.Borrow - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Frozen) { - toSerialize["frozen"] = o.Frozen - } - if !isNil(o.Interest) { - toSerialize["interest"] = o.Interest - } - if !isNil(o.Net) { - toSerialize["net"] = o.Net - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.TotalAmount) { - toSerialize["totalAmount"] = o.TotalAmount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedAssetsPopulationResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedAssetsPopulationResult := _MarginIsolatedAssetsPopulationResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedAssetsPopulationResult); err == nil { - *o = MarginIsolatedAssetsPopulationResult(varMarginIsolatedAssetsPopulationResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "available") - delete(additionalProperties, "borrow") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "frozen") - delete(additionalProperties, "interest") - delete(additionalProperties, "net") - delete(additionalProperties, "symbol") - delete(additionalProperties, "totalAmount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedAssetsPopulationResult struct { - value *MarginIsolatedAssetsPopulationResult - isSet bool -} - -func (v NullableMarginIsolatedAssetsPopulationResult) Get() *MarginIsolatedAssetsPopulationResult { - return v.value -} - -func (v *NullableMarginIsolatedAssetsPopulationResult) Set(val *MarginIsolatedAssetsPopulationResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedAssetsPopulationResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedAssetsPopulationResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedAssetsPopulationResult(val *MarginIsolatedAssetsPopulationResult) *NullableMarginIsolatedAssetsPopulationResult { - return &NullableMarginIsolatedAssetsPopulationResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedAssetsPopulationResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedAssetsPopulationResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_assets_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_assets_result.go deleted file mode 100644 index 98e54b58..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_assets_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedAssetsResult struct for MarginIsolatedAssetsResult -type MarginIsolatedAssetsResult struct { - Coin *string `json:"coin,omitempty"` - MaxTransferOutAmount *string `json:"maxTransferOutAmount,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedAssetsResult MarginIsolatedAssetsResult - -// NewMarginIsolatedAssetsResult instantiates a new MarginIsolatedAssetsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedAssetsResult() *MarginIsolatedAssetsResult { - this := MarginIsolatedAssetsResult{} - return &this -} - -// NewMarginIsolatedAssetsResultWithDefaults instantiates a new MarginIsolatedAssetsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedAssetsResultWithDefaults() *MarginIsolatedAssetsResult { - this := MarginIsolatedAssetsResult{} - return &this -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedAssetsResult) SetCoin(v string) { - o.Coin = &v -} - -// GetMaxTransferOutAmount returns the MaxTransferOutAmount field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsResult) GetMaxTransferOutAmount() string { - if o == nil || isNil(o.MaxTransferOutAmount) { - var ret string - return ret - } - return *o.MaxTransferOutAmount -} - -// GetMaxTransferOutAmountOk returns a tuple with the MaxTransferOutAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsResult) GetMaxTransferOutAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxTransferOutAmount) { - return nil, false - } - return o.MaxTransferOutAmount, true -} - -// HasMaxTransferOutAmount returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsResult) HasMaxTransferOutAmount() bool { - if o != nil && !isNil(o.MaxTransferOutAmount) { - return true - } - - return false -} - -// SetMaxTransferOutAmount gets a reference to the given string and assigns it to the MaxTransferOutAmount field. -func (o *MarginIsolatedAssetsResult) SetMaxTransferOutAmount(v string) { - o.MaxTransferOutAmount = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedAssetsResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedAssetsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.MaxTransferOutAmount) { - toSerialize["maxTransferOutAmount"] = o.MaxTransferOutAmount - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedAssetsResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedAssetsResult := _MarginIsolatedAssetsResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedAssetsResult); err == nil { - *o = MarginIsolatedAssetsResult(varMarginIsolatedAssetsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "maxTransferOutAmount") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedAssetsResult struct { - value *MarginIsolatedAssetsResult - isSet bool -} - -func (v NullableMarginIsolatedAssetsResult) Get() *MarginIsolatedAssetsResult { - return v.value -} - -func (v *NullableMarginIsolatedAssetsResult) Set(val *MarginIsolatedAssetsResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedAssetsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedAssetsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedAssetsResult(val *MarginIsolatedAssetsResult) *NullableMarginIsolatedAssetsResult { - return &NullableMarginIsolatedAssetsResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedAssetsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedAssetsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_request.go b/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_request.go deleted file mode 100644 index c0cd7435..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_request.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedAssetsRiskRequest struct for MarginIsolatedAssetsRiskRequest -type MarginIsolatedAssetsRiskRequest struct { - // pageNum - PageNum *string `json:"pageNum,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedAssetsRiskRequest MarginIsolatedAssetsRiskRequest - -// NewMarginIsolatedAssetsRiskRequest instantiates a new MarginIsolatedAssetsRiskRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedAssetsRiskRequest(symbol string) *MarginIsolatedAssetsRiskRequest { - this := MarginIsolatedAssetsRiskRequest{} - this.Symbol = symbol - return &this -} - -// NewMarginIsolatedAssetsRiskRequestWithDefaults instantiates a new MarginIsolatedAssetsRiskRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedAssetsRiskRequestWithDefaults() *MarginIsolatedAssetsRiskRequest { - this := MarginIsolatedAssetsRiskRequest{} - return &this -} - -// GetPageNum returns the PageNum field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsRiskRequest) GetPageNum() string { - if o == nil || isNil(o.PageNum) { - var ret string - return ret - } - return *o.PageNum -} - -// GetPageNumOk returns a tuple with the PageNum field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsRiskRequest) GetPageNumOk() (*string, bool) { - if o == nil || isNil(o.PageNum) { - return nil, false - } - return o.PageNum, true -} - -// HasPageNum returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsRiskRequest) HasPageNum() bool { - if o != nil && !isNil(o.PageNum) { - return true - } - - return false -} - -// SetPageNum gets a reference to the given string and assigns it to the PageNum field. -func (o *MarginIsolatedAssetsRiskRequest) SetPageNum(v string) { - o.PageNum = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsRiskRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsRiskRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsRiskRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *MarginIsolatedAssetsRiskRequest) SetPageSize(v string) { - o.PageSize = &v -} - -// GetSymbol returns the Symbol field value -func (o *MarginIsolatedAssetsRiskRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsRiskRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginIsolatedAssetsRiskRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginIsolatedAssetsRiskRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNum) { - toSerialize["pageNum"] = o.PageNum - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedAssetsRiskRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedAssetsRiskRequest := _MarginIsolatedAssetsRiskRequest{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedAssetsRiskRequest); err == nil { - *o = MarginIsolatedAssetsRiskRequest(varMarginIsolatedAssetsRiskRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNum") - delete(additionalProperties, "pageSize") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedAssetsRiskRequest struct { - value *MarginIsolatedAssetsRiskRequest - isSet bool -} - -func (v NullableMarginIsolatedAssetsRiskRequest) Get() *MarginIsolatedAssetsRiskRequest { - return v.value -} - -func (v *NullableMarginIsolatedAssetsRiskRequest) Set(val *MarginIsolatedAssetsRiskRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedAssetsRiskRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedAssetsRiskRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedAssetsRiskRequest(val *MarginIsolatedAssetsRiskRequest) *NullableMarginIsolatedAssetsRiskRequest { - return &NullableMarginIsolatedAssetsRiskRequest{value: val, isSet: true} -} - -func (v NullableMarginIsolatedAssetsRiskRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedAssetsRiskRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_result.go deleted file mode 100644 index 98b46cf0..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_assets_risk_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedAssetsRiskResult struct for MarginIsolatedAssetsRiskResult -type MarginIsolatedAssetsRiskResult struct { - RiskRate *string `json:"riskRate,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedAssetsRiskResult MarginIsolatedAssetsRiskResult - -// NewMarginIsolatedAssetsRiskResult instantiates a new MarginIsolatedAssetsRiskResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedAssetsRiskResult() *MarginIsolatedAssetsRiskResult { - this := MarginIsolatedAssetsRiskResult{} - return &this -} - -// NewMarginIsolatedAssetsRiskResultWithDefaults instantiates a new MarginIsolatedAssetsRiskResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedAssetsRiskResultWithDefaults() *MarginIsolatedAssetsRiskResult { - this := MarginIsolatedAssetsRiskResult{} - return &this -} - -// GetRiskRate returns the RiskRate field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsRiskResult) GetRiskRate() string { - if o == nil || isNil(o.RiskRate) { - var ret string - return ret - } - return *o.RiskRate -} - -// GetRiskRateOk returns a tuple with the RiskRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsRiskResult) GetRiskRateOk() (*string, bool) { - if o == nil || isNil(o.RiskRate) { - return nil, false - } - return o.RiskRate, true -} - -// HasRiskRate returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsRiskResult) HasRiskRate() bool { - if o != nil && !isNil(o.RiskRate) { - return true - } - - return false -} - -// SetRiskRate gets a reference to the given string and assigns it to the RiskRate field. -func (o *MarginIsolatedAssetsRiskResult) SetRiskRate(v string) { - o.RiskRate = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedAssetsRiskResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedAssetsRiskResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedAssetsRiskResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedAssetsRiskResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedAssetsRiskResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.RiskRate) { - toSerialize["riskRate"] = o.RiskRate - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedAssetsRiskResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedAssetsRiskResult := _MarginIsolatedAssetsRiskResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedAssetsRiskResult); err == nil { - *o = MarginIsolatedAssetsRiskResult(varMarginIsolatedAssetsRiskResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "riskRate") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedAssetsRiskResult struct { - value *MarginIsolatedAssetsRiskResult - isSet bool -} - -func (v NullableMarginIsolatedAssetsRiskResult) Get() *MarginIsolatedAssetsRiskResult { - return v.value -} - -func (v *NullableMarginIsolatedAssetsRiskResult) Set(val *MarginIsolatedAssetsRiskResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedAssetsRiskResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedAssetsRiskResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedAssetsRiskResult(val *MarginIsolatedAssetsRiskResult) *NullableMarginIsolatedAssetsRiskResult { - return &NullableMarginIsolatedAssetsRiskResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedAssetsRiskResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedAssetsRiskResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_borrow_limit_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_borrow_limit_result.go deleted file mode 100644 index 554fe542..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_borrow_limit_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedBorrowLimitResult struct for MarginIsolatedBorrowLimitResult -type MarginIsolatedBorrowLimitResult struct { - BorrowAmount *string `json:"borrowAmount,omitempty"` - ClientOid *string `json:"clientOid,omitempty"` - Coin *string `json:"coin,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedBorrowLimitResult MarginIsolatedBorrowLimitResult - -// NewMarginIsolatedBorrowLimitResult instantiates a new MarginIsolatedBorrowLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedBorrowLimitResult() *MarginIsolatedBorrowLimitResult { - this := MarginIsolatedBorrowLimitResult{} - return &this -} - -// NewMarginIsolatedBorrowLimitResultWithDefaults instantiates a new MarginIsolatedBorrowLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedBorrowLimitResultWithDefaults() *MarginIsolatedBorrowLimitResult { - this := MarginIsolatedBorrowLimitResult{} - return &this -} - -// GetBorrowAmount returns the BorrowAmount field value if set, zero value otherwise. -func (o *MarginIsolatedBorrowLimitResult) GetBorrowAmount() string { - if o == nil || isNil(o.BorrowAmount) { - var ret string - return ret - } - return *o.BorrowAmount -} - -// GetBorrowAmountOk returns a tuple with the BorrowAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedBorrowLimitResult) GetBorrowAmountOk() (*string, bool) { - if o == nil || isNil(o.BorrowAmount) { - return nil, false - } - return o.BorrowAmount, true -} - -// HasBorrowAmount returns a boolean if a field has been set. -func (o *MarginIsolatedBorrowLimitResult) HasBorrowAmount() bool { - if o != nil && !isNil(o.BorrowAmount) { - return true - } - - return false -} - -// SetBorrowAmount gets a reference to the given string and assigns it to the BorrowAmount field. -func (o *MarginIsolatedBorrowLimitResult) SetBorrowAmount(v string) { - o.BorrowAmount = &v -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginIsolatedBorrowLimitResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedBorrowLimitResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginIsolatedBorrowLimitResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginIsolatedBorrowLimitResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedBorrowLimitResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedBorrowLimitResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedBorrowLimitResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedBorrowLimitResult) SetCoin(v string) { - o.Coin = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedBorrowLimitResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedBorrowLimitResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedBorrowLimitResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedBorrowLimitResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedBorrowLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BorrowAmount) { - toSerialize["borrowAmount"] = o.BorrowAmount - } - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedBorrowLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedBorrowLimitResult := _MarginIsolatedBorrowLimitResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedBorrowLimitResult); err == nil { - *o = MarginIsolatedBorrowLimitResult(varMarginIsolatedBorrowLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "borrowAmount") - delete(additionalProperties, "clientOid") - delete(additionalProperties, "coin") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedBorrowLimitResult struct { - value *MarginIsolatedBorrowLimitResult - isSet bool -} - -func (v NullableMarginIsolatedBorrowLimitResult) Get() *MarginIsolatedBorrowLimitResult { - return v.value -} - -func (v *NullableMarginIsolatedBorrowLimitResult) Set(val *MarginIsolatedBorrowLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedBorrowLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedBorrowLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedBorrowLimitResult(val *MarginIsolatedBorrowLimitResult) *NullableMarginIsolatedBorrowLimitResult { - return &NullableMarginIsolatedBorrowLimitResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedBorrowLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedBorrowLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_info.go b/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_info.go deleted file mode 100644 index 72ca40a7..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_info.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedFinFlowInfo struct for MarginIsolatedFinFlowInfo -type MarginIsolatedFinFlowInfo struct { - Amount *string `json:"amount,omitempty"` - Balance *string `json:"balance,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Fee *string `json:"fee,omitempty"` - MarginId *string `json:"marginId,omitempty"` - MarginType *string `json:"marginType,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedFinFlowInfo MarginIsolatedFinFlowInfo - -// NewMarginIsolatedFinFlowInfo instantiates a new MarginIsolatedFinFlowInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedFinFlowInfo() *MarginIsolatedFinFlowInfo { - this := MarginIsolatedFinFlowInfo{} - return &this -} - -// NewMarginIsolatedFinFlowInfoWithDefaults instantiates a new MarginIsolatedFinFlowInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedFinFlowInfoWithDefaults() *MarginIsolatedFinFlowInfo { - this := MarginIsolatedFinFlowInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginIsolatedFinFlowInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetBalance returns the Balance field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetBalance() string { - if o == nil || isNil(o.Balance) { - var ret string - return ret - } - return *o.Balance -} - -// GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetBalanceOk() (*string, bool) { - if o == nil || isNil(o.Balance) { - return nil, false - } - return o.Balance, true -} - -// HasBalance returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasBalance() bool { - if o != nil && !isNil(o.Balance) { - return true - } - - return false -} - -// SetBalance gets a reference to the given string and assigns it to the Balance field. -func (o *MarginIsolatedFinFlowInfo) SetBalance(v string) { - o.Balance = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedFinFlowInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedFinFlowInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetFee returns the Fee field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetFee() string { - if o == nil || isNil(o.Fee) { - var ret string - return ret - } - return *o.Fee -} - -// GetFeeOk returns a tuple with the Fee field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetFeeOk() (*string, bool) { - if o == nil || isNil(o.Fee) { - return nil, false - } - return o.Fee, true -} - -// HasFee returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasFee() bool { - if o != nil && !isNil(o.Fee) { - return true - } - - return false -} - -// SetFee gets a reference to the given string and assigns it to the Fee field. -func (o *MarginIsolatedFinFlowInfo) SetFee(v string) { - o.Fee = &v -} - -// GetMarginId returns the MarginId field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetMarginId() string { - if o == nil || isNil(o.MarginId) { - var ret string - return ret - } - return *o.MarginId -} - -// GetMarginIdOk returns a tuple with the MarginId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetMarginIdOk() (*string, bool) { - if o == nil || isNil(o.MarginId) { - return nil, false - } - return o.MarginId, true -} - -// HasMarginId returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasMarginId() bool { - if o != nil && !isNil(o.MarginId) { - return true - } - - return false -} - -// SetMarginId gets a reference to the given string and assigns it to the MarginId field. -func (o *MarginIsolatedFinFlowInfo) SetMarginId(v string) { - o.MarginId = &v -} - -// GetMarginType returns the MarginType field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetMarginType() string { - if o == nil || isNil(o.MarginType) { - var ret string - return ret - } - return *o.MarginType -} - -// GetMarginTypeOk returns a tuple with the MarginType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetMarginTypeOk() (*string, bool) { - if o == nil || isNil(o.MarginType) { - return nil, false - } - return o.MarginType, true -} - -// HasMarginType returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasMarginType() bool { - if o != nil && !isNil(o.MarginType) { - return true - } - - return false -} - -// SetMarginType gets a reference to the given string and assigns it to the MarginType field. -func (o *MarginIsolatedFinFlowInfo) SetMarginType(v string) { - o.MarginType = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedFinFlowInfo) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedFinFlowInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Balance) { - toSerialize["balance"] = o.Balance - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Fee) { - toSerialize["fee"] = o.Fee - } - if !isNil(o.MarginId) { - toSerialize["marginId"] = o.MarginId - } - if !isNil(o.MarginType) { - toSerialize["marginType"] = o.MarginType - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedFinFlowInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedFinFlowInfo := _MarginIsolatedFinFlowInfo{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedFinFlowInfo); err == nil { - *o = MarginIsolatedFinFlowInfo(varMarginIsolatedFinFlowInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "balance") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "fee") - delete(additionalProperties, "marginId") - delete(additionalProperties, "marginType") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedFinFlowInfo struct { - value *MarginIsolatedFinFlowInfo - isSet bool -} - -func (v NullableMarginIsolatedFinFlowInfo) Get() *MarginIsolatedFinFlowInfo { - return v.value -} - -func (v *NullableMarginIsolatedFinFlowInfo) Set(val *MarginIsolatedFinFlowInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedFinFlowInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedFinFlowInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedFinFlowInfo(val *MarginIsolatedFinFlowInfo) *NullableMarginIsolatedFinFlowInfo { - return &NullableMarginIsolatedFinFlowInfo{value: val, isSet: true} -} - -func (v NullableMarginIsolatedFinFlowInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedFinFlowInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_result.go deleted file mode 100644 index 202b05ae..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_fin_flow_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedFinFlowResult struct for MarginIsolatedFinFlowResult -type MarginIsolatedFinFlowResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginIsolatedFinFlowInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedFinFlowResult MarginIsolatedFinFlowResult - -// NewMarginIsolatedFinFlowResult instantiates a new MarginIsolatedFinFlowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedFinFlowResult() *MarginIsolatedFinFlowResult { - this := MarginIsolatedFinFlowResult{} - return &this -} - -// NewMarginIsolatedFinFlowResultWithDefaults instantiates a new MarginIsolatedFinFlowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedFinFlowResultWithDefaults() *MarginIsolatedFinFlowResult { - this := MarginIsolatedFinFlowResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginIsolatedFinFlowResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginIsolatedFinFlowResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginIsolatedFinFlowResult) GetResultList() []MarginIsolatedFinFlowInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginIsolatedFinFlowInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedFinFlowResult) GetResultListOk() ([]MarginIsolatedFinFlowInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginIsolatedFinFlowResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginIsolatedFinFlowInfo and assigns it to the ResultList field. -func (o *MarginIsolatedFinFlowResult) SetResultList(v []MarginIsolatedFinFlowInfo) { - o.ResultList = v -} - -func (o MarginIsolatedFinFlowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedFinFlowResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedFinFlowResult := _MarginIsolatedFinFlowResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedFinFlowResult); err == nil { - *o = MarginIsolatedFinFlowResult(varMarginIsolatedFinFlowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedFinFlowResult struct { - value *MarginIsolatedFinFlowResult - isSet bool -} - -func (v NullableMarginIsolatedFinFlowResult) Get() *MarginIsolatedFinFlowResult { - return v.value -} - -func (v *NullableMarginIsolatedFinFlowResult) Set(val *MarginIsolatedFinFlowResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedFinFlowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedFinFlowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedFinFlowResult(val *MarginIsolatedFinFlowResult) *NullableMarginIsolatedFinFlowResult { - return &NullableMarginIsolatedFinFlowResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedFinFlowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedFinFlowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_interest_info.go b/bitget-goland-sdk-open-api/model_margin_isolated_interest_info.go deleted file mode 100644 index a0acac50..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_interest_info.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedInterestInfo struct for MarginIsolatedInterestInfo -type MarginIsolatedInterestInfo struct { - Amount *string `json:"amount,omitempty"` - Ctime *string `json:"ctime,omitempty"` - InterestCoin *string `json:"interestCoin,omitempty"` - InterestId *string `json:"interestId,omitempty"` - InterestRate *string `json:"interestRate,omitempty"` - LoanCoin *string `json:"loanCoin,omitempty"` - Symbol *string `json:"symbol,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedInterestInfo MarginIsolatedInterestInfo - -// NewMarginIsolatedInterestInfo instantiates a new MarginIsolatedInterestInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedInterestInfo() *MarginIsolatedInterestInfo { - this := MarginIsolatedInterestInfo{} - return &this -} - -// NewMarginIsolatedInterestInfoWithDefaults instantiates a new MarginIsolatedInterestInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedInterestInfoWithDefaults() *MarginIsolatedInterestInfo { - this := MarginIsolatedInterestInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginIsolatedInterestInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedInterestInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetInterestCoin returns the InterestCoin field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetInterestCoin() string { - if o == nil || isNil(o.InterestCoin) { - var ret string - return ret - } - return *o.InterestCoin -} - -// GetInterestCoinOk returns a tuple with the InterestCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetInterestCoinOk() (*string, bool) { - if o == nil || isNil(o.InterestCoin) { - return nil, false - } - return o.InterestCoin, true -} - -// HasInterestCoin returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasInterestCoin() bool { - if o != nil && !isNil(o.InterestCoin) { - return true - } - - return false -} - -// SetInterestCoin gets a reference to the given string and assigns it to the InterestCoin field. -func (o *MarginIsolatedInterestInfo) SetInterestCoin(v string) { - o.InterestCoin = &v -} - -// GetInterestId returns the InterestId field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetInterestId() string { - if o == nil || isNil(o.InterestId) { - var ret string - return ret - } - return *o.InterestId -} - -// GetInterestIdOk returns a tuple with the InterestId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetInterestIdOk() (*string, bool) { - if o == nil || isNil(o.InterestId) { - return nil, false - } - return o.InterestId, true -} - -// HasInterestId returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasInterestId() bool { - if o != nil && !isNil(o.InterestId) { - return true - } - - return false -} - -// SetInterestId gets a reference to the given string and assigns it to the InterestId field. -func (o *MarginIsolatedInterestInfo) SetInterestId(v string) { - o.InterestId = &v -} - -// GetInterestRate returns the InterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetInterestRate() string { - if o == nil || isNil(o.InterestRate) { - var ret string - return ret - } - return *o.InterestRate -} - -// GetInterestRateOk returns a tuple with the InterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetInterestRateOk() (*string, bool) { - if o == nil || isNil(o.InterestRate) { - return nil, false - } - return o.InterestRate, true -} - -// HasInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasInterestRate() bool { - if o != nil && !isNil(o.InterestRate) { - return true - } - - return false -} - -// SetInterestRate gets a reference to the given string and assigns it to the InterestRate field. -func (o *MarginIsolatedInterestInfo) SetInterestRate(v string) { - o.InterestRate = &v -} - -// GetLoanCoin returns the LoanCoin field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetLoanCoin() string { - if o == nil || isNil(o.LoanCoin) { - var ret string - return ret - } - return *o.LoanCoin -} - -// GetLoanCoinOk returns a tuple with the LoanCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetLoanCoinOk() (*string, bool) { - if o == nil || isNil(o.LoanCoin) { - return nil, false - } - return o.LoanCoin, true -} - -// HasLoanCoin returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasLoanCoin() bool { - if o != nil && !isNil(o.LoanCoin) { - return true - } - - return false -} - -// SetLoanCoin gets a reference to the given string and assigns it to the LoanCoin field. -func (o *MarginIsolatedInterestInfo) SetLoanCoin(v string) { - o.LoanCoin = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedInterestInfo) SetSymbol(v string) { - o.Symbol = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginIsolatedInterestInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginIsolatedInterestInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.InterestCoin) { - toSerialize["interestCoin"] = o.InterestCoin - } - if !isNil(o.InterestId) { - toSerialize["interestId"] = o.InterestId - } - if !isNil(o.InterestRate) { - toSerialize["interestRate"] = o.InterestRate - } - if !isNil(o.LoanCoin) { - toSerialize["loanCoin"] = o.LoanCoin - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedInterestInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedInterestInfo := _MarginIsolatedInterestInfo{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedInterestInfo); err == nil { - *o = MarginIsolatedInterestInfo(varMarginIsolatedInterestInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "ctime") - delete(additionalProperties, "interestCoin") - delete(additionalProperties, "interestId") - delete(additionalProperties, "interestRate") - delete(additionalProperties, "loanCoin") - delete(additionalProperties, "symbol") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedInterestInfo struct { - value *MarginIsolatedInterestInfo - isSet bool -} - -func (v NullableMarginIsolatedInterestInfo) Get() *MarginIsolatedInterestInfo { - return v.value -} - -func (v *NullableMarginIsolatedInterestInfo) Set(val *MarginIsolatedInterestInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedInterestInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedInterestInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedInterestInfo(val *MarginIsolatedInterestInfo) *NullableMarginIsolatedInterestInfo { - return &NullableMarginIsolatedInterestInfo{value: val, isSet: true} -} - -func (v NullableMarginIsolatedInterestInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedInterestInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_interest_info_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_interest_info_result.go deleted file mode 100644 index 1861d0b9..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_interest_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedInterestInfoResult struct for MarginIsolatedInterestInfoResult -type MarginIsolatedInterestInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginIsolatedInterestInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedInterestInfoResult MarginIsolatedInterestInfoResult - -// NewMarginIsolatedInterestInfoResult instantiates a new MarginIsolatedInterestInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedInterestInfoResult() *MarginIsolatedInterestInfoResult { - this := MarginIsolatedInterestInfoResult{} - return &this -} - -// NewMarginIsolatedInterestInfoResultWithDefaults instantiates a new MarginIsolatedInterestInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedInterestInfoResultWithDefaults() *MarginIsolatedInterestInfoResult { - this := MarginIsolatedInterestInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginIsolatedInterestInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginIsolatedInterestInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginIsolatedInterestInfoResult) GetResultList() []MarginIsolatedInterestInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginIsolatedInterestInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedInterestInfoResult) GetResultListOk() ([]MarginIsolatedInterestInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginIsolatedInterestInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginIsolatedInterestInfo and assigns it to the ResultList field. -func (o *MarginIsolatedInterestInfoResult) SetResultList(v []MarginIsolatedInterestInfo) { - o.ResultList = v -} - -func (o MarginIsolatedInterestInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedInterestInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedInterestInfoResult := _MarginIsolatedInterestInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedInterestInfoResult); err == nil { - *o = MarginIsolatedInterestInfoResult(varMarginIsolatedInterestInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedInterestInfoResult struct { - value *MarginIsolatedInterestInfoResult - isSet bool -} - -func (v NullableMarginIsolatedInterestInfoResult) Get() *MarginIsolatedInterestInfoResult { - return v.value -} - -func (v *NullableMarginIsolatedInterestInfoResult) Set(val *MarginIsolatedInterestInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedInterestInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedInterestInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedInterestInfoResult(val *MarginIsolatedInterestInfoResult) *NullableMarginIsolatedInterestInfoResult { - return &NullableMarginIsolatedInterestInfoResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedInterestInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedInterestInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_level_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_level_result.go deleted file mode 100644 index 1c64a136..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_level_result.go +++ /dev/null @@ -1,434 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLevelResult struct for MarginIsolatedLevelResult -type MarginIsolatedLevelResult struct { - BaseCoin *string `json:"baseCoin,omitempty"` - BaseMaxBorrowableAmount *string `json:"baseMaxBorrowableAmount,omitempty"` - InitRate *string `json:"initRate,omitempty"` - Leverage *string `json:"leverage,omitempty"` - MaintainMarginRate *string `json:"maintainMarginRate,omitempty"` - QuoteCoin *string `json:"quoteCoin,omitempty"` - QuoteMaxBorrowableAmount *string `json:"quoteMaxBorrowableAmount,omitempty"` - Symbol *string `json:"symbol,omitempty"` - Tier *string `json:"tier,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLevelResult MarginIsolatedLevelResult - -// NewMarginIsolatedLevelResult instantiates a new MarginIsolatedLevelResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLevelResult() *MarginIsolatedLevelResult { - this := MarginIsolatedLevelResult{} - return &this -} - -// NewMarginIsolatedLevelResultWithDefaults instantiates a new MarginIsolatedLevelResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLevelResultWithDefaults() *MarginIsolatedLevelResult { - this := MarginIsolatedLevelResult{} - return &this -} - -// GetBaseCoin returns the BaseCoin field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetBaseCoin() string { - if o == nil || isNil(o.BaseCoin) { - var ret string - return ret - } - return *o.BaseCoin -} - -// GetBaseCoinOk returns a tuple with the BaseCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetBaseCoinOk() (*string, bool) { - if o == nil || isNil(o.BaseCoin) { - return nil, false - } - return o.BaseCoin, true -} - -// HasBaseCoin returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasBaseCoin() bool { - if o != nil && !isNil(o.BaseCoin) { - return true - } - - return false -} - -// SetBaseCoin gets a reference to the given string and assigns it to the BaseCoin field. -func (o *MarginIsolatedLevelResult) SetBaseCoin(v string) { - o.BaseCoin = &v -} - -// GetBaseMaxBorrowableAmount returns the BaseMaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetBaseMaxBorrowableAmount() string { - if o == nil || isNil(o.BaseMaxBorrowableAmount) { - var ret string - return ret - } - return *o.BaseMaxBorrowableAmount -} - -// GetBaseMaxBorrowableAmountOk returns a tuple with the BaseMaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetBaseMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.BaseMaxBorrowableAmount) { - return nil, false - } - return o.BaseMaxBorrowableAmount, true -} - -// HasBaseMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasBaseMaxBorrowableAmount() bool { - if o != nil && !isNil(o.BaseMaxBorrowableAmount) { - return true - } - - return false -} - -// SetBaseMaxBorrowableAmount gets a reference to the given string and assigns it to the BaseMaxBorrowableAmount field. -func (o *MarginIsolatedLevelResult) SetBaseMaxBorrowableAmount(v string) { - o.BaseMaxBorrowableAmount = &v -} - -// GetInitRate returns the InitRate field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetInitRate() string { - if o == nil || isNil(o.InitRate) { - var ret string - return ret - } - return *o.InitRate -} - -// GetInitRateOk returns a tuple with the InitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetInitRateOk() (*string, bool) { - if o == nil || isNil(o.InitRate) { - return nil, false - } - return o.InitRate, true -} - -// HasInitRate returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasInitRate() bool { - if o != nil && !isNil(o.InitRate) { - return true - } - - return false -} - -// SetInitRate gets a reference to the given string and assigns it to the InitRate field. -func (o *MarginIsolatedLevelResult) SetInitRate(v string) { - o.InitRate = &v -} - -// GetLeverage returns the Leverage field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetLeverage() string { - if o == nil || isNil(o.Leverage) { - var ret string - return ret - } - return *o.Leverage -} - -// GetLeverageOk returns a tuple with the Leverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetLeverageOk() (*string, bool) { - if o == nil || isNil(o.Leverage) { - return nil, false - } - return o.Leverage, true -} - -// HasLeverage returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasLeverage() bool { - if o != nil && !isNil(o.Leverage) { - return true - } - - return false -} - -// SetLeverage gets a reference to the given string and assigns it to the Leverage field. -func (o *MarginIsolatedLevelResult) SetLeverage(v string) { - o.Leverage = &v -} - -// GetMaintainMarginRate returns the MaintainMarginRate field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetMaintainMarginRate() string { - if o == nil || isNil(o.MaintainMarginRate) { - var ret string - return ret - } - return *o.MaintainMarginRate -} - -// GetMaintainMarginRateOk returns a tuple with the MaintainMarginRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetMaintainMarginRateOk() (*string, bool) { - if o == nil || isNil(o.MaintainMarginRate) { - return nil, false - } - return o.MaintainMarginRate, true -} - -// HasMaintainMarginRate returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasMaintainMarginRate() bool { - if o != nil && !isNil(o.MaintainMarginRate) { - return true - } - - return false -} - -// SetMaintainMarginRate gets a reference to the given string and assigns it to the MaintainMarginRate field. -func (o *MarginIsolatedLevelResult) SetMaintainMarginRate(v string) { - o.MaintainMarginRate = &v -} - -// GetQuoteCoin returns the QuoteCoin field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetQuoteCoin() string { - if o == nil || isNil(o.QuoteCoin) { - var ret string - return ret - } - return *o.QuoteCoin -} - -// GetQuoteCoinOk returns a tuple with the QuoteCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetQuoteCoinOk() (*string, bool) { - if o == nil || isNil(o.QuoteCoin) { - return nil, false - } - return o.QuoteCoin, true -} - -// HasQuoteCoin returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasQuoteCoin() bool { - if o != nil && !isNil(o.QuoteCoin) { - return true - } - - return false -} - -// SetQuoteCoin gets a reference to the given string and assigns it to the QuoteCoin field. -func (o *MarginIsolatedLevelResult) SetQuoteCoin(v string) { - o.QuoteCoin = &v -} - -// GetQuoteMaxBorrowableAmount returns the QuoteMaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetQuoteMaxBorrowableAmount() string { - if o == nil || isNil(o.QuoteMaxBorrowableAmount) { - var ret string - return ret - } - return *o.QuoteMaxBorrowableAmount -} - -// GetQuoteMaxBorrowableAmountOk returns a tuple with the QuoteMaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetQuoteMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.QuoteMaxBorrowableAmount) { - return nil, false - } - return o.QuoteMaxBorrowableAmount, true -} - -// HasQuoteMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasQuoteMaxBorrowableAmount() bool { - if o != nil && !isNil(o.QuoteMaxBorrowableAmount) { - return true - } - - return false -} - -// SetQuoteMaxBorrowableAmount gets a reference to the given string and assigns it to the QuoteMaxBorrowableAmount field. -func (o *MarginIsolatedLevelResult) SetQuoteMaxBorrowableAmount(v string) { - o.QuoteMaxBorrowableAmount = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedLevelResult) SetSymbol(v string) { - o.Symbol = &v -} - -// GetTier returns the Tier field value if set, zero value otherwise. -func (o *MarginIsolatedLevelResult) GetTier() string { - if o == nil || isNil(o.Tier) { - var ret string - return ret - } - return *o.Tier -} - -// GetTierOk returns a tuple with the Tier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLevelResult) GetTierOk() (*string, bool) { - if o == nil || isNil(o.Tier) { - return nil, false - } - return o.Tier, true -} - -// HasTier returns a boolean if a field has been set. -func (o *MarginIsolatedLevelResult) HasTier() bool { - if o != nil && !isNil(o.Tier) { - return true - } - - return false -} - -// SetTier gets a reference to the given string and assigns it to the Tier field. -func (o *MarginIsolatedLevelResult) SetTier(v string) { - o.Tier = &v -} - -func (o MarginIsolatedLevelResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BaseCoin) { - toSerialize["baseCoin"] = o.BaseCoin - } - if !isNil(o.BaseMaxBorrowableAmount) { - toSerialize["baseMaxBorrowableAmount"] = o.BaseMaxBorrowableAmount - } - if !isNil(o.InitRate) { - toSerialize["initRate"] = o.InitRate - } - if !isNil(o.Leverage) { - toSerialize["leverage"] = o.Leverage - } - if !isNil(o.MaintainMarginRate) { - toSerialize["maintainMarginRate"] = o.MaintainMarginRate - } - if !isNil(o.QuoteCoin) { - toSerialize["quoteCoin"] = o.QuoteCoin - } - if !isNil(o.QuoteMaxBorrowableAmount) { - toSerialize["quoteMaxBorrowableAmount"] = o.QuoteMaxBorrowableAmount - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.Tier) { - toSerialize["tier"] = o.Tier - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLevelResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLevelResult := _MarginIsolatedLevelResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLevelResult); err == nil { - *o = MarginIsolatedLevelResult(varMarginIsolatedLevelResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "baseCoin") - delete(additionalProperties, "baseMaxBorrowableAmount") - delete(additionalProperties, "initRate") - delete(additionalProperties, "leverage") - delete(additionalProperties, "maintainMarginRate") - delete(additionalProperties, "quoteCoin") - delete(additionalProperties, "quoteMaxBorrowableAmount") - delete(additionalProperties, "symbol") - delete(additionalProperties, "tier") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLevelResult struct { - value *MarginIsolatedLevelResult - isSet bool -} - -func (v NullableMarginIsolatedLevelResult) Get() *MarginIsolatedLevelResult { - return v.value -} - -func (v *NullableMarginIsolatedLevelResult) Set(val *MarginIsolatedLevelResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLevelResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLevelResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLevelResult(val *MarginIsolatedLevelResult) *NullableMarginIsolatedLevelResult { - return &NullableMarginIsolatedLevelResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLevelResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLevelResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_limit_request.go b/bitget-goland-sdk-open-api/model_margin_isolated_limit_request.go deleted file mode 100644 index 4f3f4293..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_limit_request.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLimitRequest struct for MarginIsolatedLimitRequest -type MarginIsolatedLimitRequest struct { - // borrowAmount - BorrowAmount string `json:"borrowAmount"` - // coin - Coin string `json:"coin"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLimitRequest MarginIsolatedLimitRequest - -// NewMarginIsolatedLimitRequest instantiates a new MarginIsolatedLimitRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLimitRequest(borrowAmount string, coin string, symbol string) *MarginIsolatedLimitRequest { - this := MarginIsolatedLimitRequest{} - this.BorrowAmount = borrowAmount - this.Coin = coin - this.Symbol = symbol - return &this -} - -// NewMarginIsolatedLimitRequestWithDefaults instantiates a new MarginIsolatedLimitRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLimitRequestWithDefaults() *MarginIsolatedLimitRequest { - this := MarginIsolatedLimitRequest{} - return &this -} - -// GetBorrowAmount returns the BorrowAmount field value -func (o *MarginIsolatedLimitRequest) GetBorrowAmount() string { - if o == nil { - var ret string - return ret - } - - return o.BorrowAmount -} - -// GetBorrowAmountOk returns a tuple with the BorrowAmount field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLimitRequest) GetBorrowAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BorrowAmount, true -} - -// SetBorrowAmount sets field value -func (o *MarginIsolatedLimitRequest) SetBorrowAmount(v string) { - o.BorrowAmount = v -} - -// GetCoin returns the Coin field value -func (o *MarginIsolatedLimitRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLimitRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginIsolatedLimitRequest) SetCoin(v string) { - o.Coin = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginIsolatedLimitRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLimitRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginIsolatedLimitRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginIsolatedLimitRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["borrowAmount"] = o.BorrowAmount - } - if true { - toSerialize["coin"] = o.Coin - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLimitRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLimitRequest := _MarginIsolatedLimitRequest{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLimitRequest); err == nil { - *o = MarginIsolatedLimitRequest(varMarginIsolatedLimitRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "borrowAmount") - delete(additionalProperties, "coin") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLimitRequest struct { - value *MarginIsolatedLimitRequest - isSet bool -} - -func (v NullableMarginIsolatedLimitRequest) Get() *MarginIsolatedLimitRequest { - return v.value -} - -func (v *NullableMarginIsolatedLimitRequest) Set(val *MarginIsolatedLimitRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLimitRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLimitRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLimitRequest(val *MarginIsolatedLimitRequest) *NullableMarginIsolatedLimitRequest { - return &NullableMarginIsolatedLimitRequest{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLimitRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLimitRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info.go b/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info.go deleted file mode 100644 index 6121c642..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info.go +++ /dev/null @@ -1,434 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLiquidationInfo struct for MarginIsolatedLiquidationInfo -type MarginIsolatedLiquidationInfo struct { - Ctime *string `json:"ctime,omitempty"` - LiqEndTime *string `json:"liqEndTime,omitempty"` - LiqFee *string `json:"liqFee,omitempty"` - LiqId *string `json:"liqId,omitempty"` - LiqRisk *string `json:"liqRisk,omitempty"` - LiqStartTime *string `json:"liqStartTime,omitempty"` - Symbol *string `json:"symbol,omitempty"` - TotalAssets *string `json:"totalAssets,omitempty"` - TotalDebt *string `json:"totalDebt,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLiquidationInfo MarginIsolatedLiquidationInfo - -// NewMarginIsolatedLiquidationInfo instantiates a new MarginIsolatedLiquidationInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLiquidationInfo() *MarginIsolatedLiquidationInfo { - this := MarginIsolatedLiquidationInfo{} - return &this -} - -// NewMarginIsolatedLiquidationInfoWithDefaults instantiates a new MarginIsolatedLiquidationInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLiquidationInfoWithDefaults() *MarginIsolatedLiquidationInfo { - this := MarginIsolatedLiquidationInfo{} - return &this -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedLiquidationInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetLiqEndTime returns the LiqEndTime field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetLiqEndTime() string { - if o == nil || isNil(o.LiqEndTime) { - var ret string - return ret - } - return *o.LiqEndTime -} - -// GetLiqEndTimeOk returns a tuple with the LiqEndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetLiqEndTimeOk() (*string, bool) { - if o == nil || isNil(o.LiqEndTime) { - return nil, false - } - return o.LiqEndTime, true -} - -// HasLiqEndTime returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasLiqEndTime() bool { - if o != nil && !isNil(o.LiqEndTime) { - return true - } - - return false -} - -// SetLiqEndTime gets a reference to the given string and assigns it to the LiqEndTime field. -func (o *MarginIsolatedLiquidationInfo) SetLiqEndTime(v string) { - o.LiqEndTime = &v -} - -// GetLiqFee returns the LiqFee field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetLiqFee() string { - if o == nil || isNil(o.LiqFee) { - var ret string - return ret - } - return *o.LiqFee -} - -// GetLiqFeeOk returns a tuple with the LiqFee field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetLiqFeeOk() (*string, bool) { - if o == nil || isNil(o.LiqFee) { - return nil, false - } - return o.LiqFee, true -} - -// HasLiqFee returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasLiqFee() bool { - if o != nil && !isNil(o.LiqFee) { - return true - } - - return false -} - -// SetLiqFee gets a reference to the given string and assigns it to the LiqFee field. -func (o *MarginIsolatedLiquidationInfo) SetLiqFee(v string) { - o.LiqFee = &v -} - -// GetLiqId returns the LiqId field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetLiqId() string { - if o == nil || isNil(o.LiqId) { - var ret string - return ret - } - return *o.LiqId -} - -// GetLiqIdOk returns a tuple with the LiqId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetLiqIdOk() (*string, bool) { - if o == nil || isNil(o.LiqId) { - return nil, false - } - return o.LiqId, true -} - -// HasLiqId returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasLiqId() bool { - if o != nil && !isNil(o.LiqId) { - return true - } - - return false -} - -// SetLiqId gets a reference to the given string and assigns it to the LiqId field. -func (o *MarginIsolatedLiquidationInfo) SetLiqId(v string) { - o.LiqId = &v -} - -// GetLiqRisk returns the LiqRisk field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetLiqRisk() string { - if o == nil || isNil(o.LiqRisk) { - var ret string - return ret - } - return *o.LiqRisk -} - -// GetLiqRiskOk returns a tuple with the LiqRisk field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetLiqRiskOk() (*string, bool) { - if o == nil || isNil(o.LiqRisk) { - return nil, false - } - return o.LiqRisk, true -} - -// HasLiqRisk returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasLiqRisk() bool { - if o != nil && !isNil(o.LiqRisk) { - return true - } - - return false -} - -// SetLiqRisk gets a reference to the given string and assigns it to the LiqRisk field. -func (o *MarginIsolatedLiquidationInfo) SetLiqRisk(v string) { - o.LiqRisk = &v -} - -// GetLiqStartTime returns the LiqStartTime field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetLiqStartTime() string { - if o == nil || isNil(o.LiqStartTime) { - var ret string - return ret - } - return *o.LiqStartTime -} - -// GetLiqStartTimeOk returns a tuple with the LiqStartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetLiqStartTimeOk() (*string, bool) { - if o == nil || isNil(o.LiqStartTime) { - return nil, false - } - return o.LiqStartTime, true -} - -// HasLiqStartTime returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasLiqStartTime() bool { - if o != nil && !isNil(o.LiqStartTime) { - return true - } - - return false -} - -// SetLiqStartTime gets a reference to the given string and assigns it to the LiqStartTime field. -func (o *MarginIsolatedLiquidationInfo) SetLiqStartTime(v string) { - o.LiqStartTime = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedLiquidationInfo) SetSymbol(v string) { - o.Symbol = &v -} - -// GetTotalAssets returns the TotalAssets field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetTotalAssets() string { - if o == nil || isNil(o.TotalAssets) { - var ret string - return ret - } - return *o.TotalAssets -} - -// GetTotalAssetsOk returns a tuple with the TotalAssets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetTotalAssetsOk() (*string, bool) { - if o == nil || isNil(o.TotalAssets) { - return nil, false - } - return o.TotalAssets, true -} - -// HasTotalAssets returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasTotalAssets() bool { - if o != nil && !isNil(o.TotalAssets) { - return true - } - - return false -} - -// SetTotalAssets gets a reference to the given string and assigns it to the TotalAssets field. -func (o *MarginIsolatedLiquidationInfo) SetTotalAssets(v string) { - o.TotalAssets = &v -} - -// GetTotalDebt returns the TotalDebt field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfo) GetTotalDebt() string { - if o == nil || isNil(o.TotalDebt) { - var ret string - return ret - } - return *o.TotalDebt -} - -// GetTotalDebtOk returns a tuple with the TotalDebt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfo) GetTotalDebtOk() (*string, bool) { - if o == nil || isNil(o.TotalDebt) { - return nil, false - } - return o.TotalDebt, true -} - -// HasTotalDebt returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfo) HasTotalDebt() bool { - if o != nil && !isNil(o.TotalDebt) { - return true - } - - return false -} - -// SetTotalDebt gets a reference to the given string and assigns it to the TotalDebt field. -func (o *MarginIsolatedLiquidationInfo) SetTotalDebt(v string) { - o.TotalDebt = &v -} - -func (o MarginIsolatedLiquidationInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.LiqEndTime) { - toSerialize["liqEndTime"] = o.LiqEndTime - } - if !isNil(o.LiqFee) { - toSerialize["liqFee"] = o.LiqFee - } - if !isNil(o.LiqId) { - toSerialize["liqId"] = o.LiqId - } - if !isNil(o.LiqRisk) { - toSerialize["liqRisk"] = o.LiqRisk - } - if !isNil(o.LiqStartTime) { - toSerialize["liqStartTime"] = o.LiqStartTime - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.TotalAssets) { - toSerialize["totalAssets"] = o.TotalAssets - } - if !isNil(o.TotalDebt) { - toSerialize["totalDebt"] = o.TotalDebt - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLiquidationInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLiquidationInfo := _MarginIsolatedLiquidationInfo{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLiquidationInfo); err == nil { - *o = MarginIsolatedLiquidationInfo(varMarginIsolatedLiquidationInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ctime") - delete(additionalProperties, "liqEndTime") - delete(additionalProperties, "liqFee") - delete(additionalProperties, "liqId") - delete(additionalProperties, "liqRisk") - delete(additionalProperties, "liqStartTime") - delete(additionalProperties, "symbol") - delete(additionalProperties, "totalAssets") - delete(additionalProperties, "totalDebt") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLiquidationInfo struct { - value *MarginIsolatedLiquidationInfo - isSet bool -} - -func (v NullableMarginIsolatedLiquidationInfo) Get() *MarginIsolatedLiquidationInfo { - return v.value -} - -func (v *NullableMarginIsolatedLiquidationInfo) Set(val *MarginIsolatedLiquidationInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLiquidationInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLiquidationInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLiquidationInfo(val *MarginIsolatedLiquidationInfo) *NullableMarginIsolatedLiquidationInfo { - return &NullableMarginIsolatedLiquidationInfo{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLiquidationInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLiquidationInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info_result.go deleted file mode 100644 index 71356107..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_liquidation_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLiquidationInfoResult struct for MarginIsolatedLiquidationInfoResult -type MarginIsolatedLiquidationInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginIsolatedLiquidationInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLiquidationInfoResult MarginIsolatedLiquidationInfoResult - -// NewMarginIsolatedLiquidationInfoResult instantiates a new MarginIsolatedLiquidationInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLiquidationInfoResult() *MarginIsolatedLiquidationInfoResult { - this := MarginIsolatedLiquidationInfoResult{} - return &this -} - -// NewMarginIsolatedLiquidationInfoResultWithDefaults instantiates a new MarginIsolatedLiquidationInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLiquidationInfoResultWithDefaults() *MarginIsolatedLiquidationInfoResult { - this := MarginIsolatedLiquidationInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginIsolatedLiquidationInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginIsolatedLiquidationInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginIsolatedLiquidationInfoResult) GetResultList() []MarginIsolatedLiquidationInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginIsolatedLiquidationInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLiquidationInfoResult) GetResultListOk() ([]MarginIsolatedLiquidationInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginIsolatedLiquidationInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginIsolatedLiquidationInfo and assigns it to the ResultList field. -func (o *MarginIsolatedLiquidationInfoResult) SetResultList(v []MarginIsolatedLiquidationInfo) { - o.ResultList = v -} - -func (o MarginIsolatedLiquidationInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLiquidationInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLiquidationInfoResult := _MarginIsolatedLiquidationInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLiquidationInfoResult); err == nil { - *o = MarginIsolatedLiquidationInfoResult(varMarginIsolatedLiquidationInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLiquidationInfoResult struct { - value *MarginIsolatedLiquidationInfoResult - isSet bool -} - -func (v NullableMarginIsolatedLiquidationInfoResult) Get() *MarginIsolatedLiquidationInfoResult { - return v.value -} - -func (v *NullableMarginIsolatedLiquidationInfoResult) Set(val *MarginIsolatedLiquidationInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLiquidationInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLiquidationInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLiquidationInfoResult(val *MarginIsolatedLiquidationInfoResult) *NullableMarginIsolatedLiquidationInfoResult { - return &NullableMarginIsolatedLiquidationInfoResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLiquidationInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLiquidationInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_loan_info.go b/bitget-goland-sdk-open-api/model_margin_isolated_loan_info.go deleted file mode 100644 index 2d3ffa05..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_loan_info.go +++ /dev/null @@ -1,323 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLoanInfo struct for MarginIsolatedLoanInfo -type MarginIsolatedLoanInfo struct { - Amount *string `json:"amount,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - LoanId *string `json:"loanId,omitempty"` - Symbol *string `json:"symbol,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLoanInfo MarginIsolatedLoanInfo - -// NewMarginIsolatedLoanInfo instantiates a new MarginIsolatedLoanInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLoanInfo() *MarginIsolatedLoanInfo { - this := MarginIsolatedLoanInfo{} - return &this -} - -// NewMarginIsolatedLoanInfoWithDefaults instantiates a new MarginIsolatedLoanInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLoanInfoWithDefaults() *MarginIsolatedLoanInfo { - this := MarginIsolatedLoanInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginIsolatedLoanInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedLoanInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedLoanInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetLoanId returns the LoanId field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetLoanId() string { - if o == nil || isNil(o.LoanId) { - var ret string - return ret - } - return *o.LoanId -} - -// GetLoanIdOk returns a tuple with the LoanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetLoanIdOk() (*string, bool) { - if o == nil || isNil(o.LoanId) { - return nil, false - } - return o.LoanId, true -} - -// HasLoanId returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasLoanId() bool { - if o != nil && !isNil(o.LoanId) { - return true - } - - return false -} - -// SetLoanId gets a reference to the given string and assigns it to the LoanId field. -func (o *MarginIsolatedLoanInfo) SetLoanId(v string) { - o.LoanId = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedLoanInfo) SetSymbol(v string) { - o.Symbol = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginIsolatedLoanInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginIsolatedLoanInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.LoanId) { - toSerialize["loanId"] = o.LoanId - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLoanInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLoanInfo := _MarginIsolatedLoanInfo{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLoanInfo); err == nil { - *o = MarginIsolatedLoanInfo(varMarginIsolatedLoanInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "loanId") - delete(additionalProperties, "symbol") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLoanInfo struct { - value *MarginIsolatedLoanInfo - isSet bool -} - -func (v NullableMarginIsolatedLoanInfo) Get() *MarginIsolatedLoanInfo { - return v.value -} - -func (v *NullableMarginIsolatedLoanInfo) Set(val *MarginIsolatedLoanInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLoanInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLoanInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLoanInfo(val *MarginIsolatedLoanInfo) *NullableMarginIsolatedLoanInfo { - return &NullableMarginIsolatedLoanInfo{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLoanInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLoanInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_loan_info_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_loan_info_result.go deleted file mode 100644 index 496079b8..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_loan_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedLoanInfoResult struct for MarginIsolatedLoanInfoResult -type MarginIsolatedLoanInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginIsolatedLoanInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedLoanInfoResult MarginIsolatedLoanInfoResult - -// NewMarginIsolatedLoanInfoResult instantiates a new MarginIsolatedLoanInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedLoanInfoResult() *MarginIsolatedLoanInfoResult { - this := MarginIsolatedLoanInfoResult{} - return &this -} - -// NewMarginIsolatedLoanInfoResultWithDefaults instantiates a new MarginIsolatedLoanInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedLoanInfoResultWithDefaults() *MarginIsolatedLoanInfoResult { - this := MarginIsolatedLoanInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginIsolatedLoanInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginIsolatedLoanInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginIsolatedLoanInfoResult) GetResultList() []MarginIsolatedLoanInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginIsolatedLoanInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedLoanInfoResult) GetResultListOk() ([]MarginIsolatedLoanInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginIsolatedLoanInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginIsolatedLoanInfo and assigns it to the ResultList field. -func (o *MarginIsolatedLoanInfoResult) SetResultList(v []MarginIsolatedLoanInfo) { - o.ResultList = v -} - -func (o MarginIsolatedLoanInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedLoanInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedLoanInfoResult := _MarginIsolatedLoanInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedLoanInfoResult); err == nil { - *o = MarginIsolatedLoanInfoResult(varMarginIsolatedLoanInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedLoanInfoResult struct { - value *MarginIsolatedLoanInfoResult - isSet bool -} - -func (v NullableMarginIsolatedLoanInfoResult) Get() *MarginIsolatedLoanInfoResult { - return v.value -} - -func (v *NullableMarginIsolatedLoanInfoResult) Set(val *MarginIsolatedLoanInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedLoanInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedLoanInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedLoanInfoResult(val *MarginIsolatedLoanInfoResult) *NullableMarginIsolatedLoanInfoResult { - return &NullableMarginIsolatedLoanInfoResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedLoanInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedLoanInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_request.go b/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_request.go deleted file mode 100644 index ef646aee..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_request.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedMaxBorrowRequest struct for MarginIsolatedMaxBorrowRequest -type MarginIsolatedMaxBorrowRequest struct { - // coin - Coin string `json:"coin"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedMaxBorrowRequest MarginIsolatedMaxBorrowRequest - -// NewMarginIsolatedMaxBorrowRequest instantiates a new MarginIsolatedMaxBorrowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedMaxBorrowRequest(coin string, symbol string) *MarginIsolatedMaxBorrowRequest { - this := MarginIsolatedMaxBorrowRequest{} - this.Coin = coin - this.Symbol = symbol - return &this -} - -// NewMarginIsolatedMaxBorrowRequestWithDefaults instantiates a new MarginIsolatedMaxBorrowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedMaxBorrowRequestWithDefaults() *MarginIsolatedMaxBorrowRequest { - this := MarginIsolatedMaxBorrowRequest{} - return &this -} - -// GetCoin returns the Coin field value -func (o *MarginIsolatedMaxBorrowRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedMaxBorrowRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginIsolatedMaxBorrowRequest) SetCoin(v string) { - o.Coin = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginIsolatedMaxBorrowRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedMaxBorrowRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginIsolatedMaxBorrowRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginIsolatedMaxBorrowRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["coin"] = o.Coin - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedMaxBorrowRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedMaxBorrowRequest := _MarginIsolatedMaxBorrowRequest{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedMaxBorrowRequest); err == nil { - *o = MarginIsolatedMaxBorrowRequest(varMarginIsolatedMaxBorrowRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedMaxBorrowRequest struct { - value *MarginIsolatedMaxBorrowRequest - isSet bool -} - -func (v NullableMarginIsolatedMaxBorrowRequest) Get() *MarginIsolatedMaxBorrowRequest { - return v.value -} - -func (v *NullableMarginIsolatedMaxBorrowRequest) Set(val *MarginIsolatedMaxBorrowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedMaxBorrowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedMaxBorrowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedMaxBorrowRequest(val *MarginIsolatedMaxBorrowRequest) *NullableMarginIsolatedMaxBorrowRequest { - return &NullableMarginIsolatedMaxBorrowRequest{value: val, isSet: true} -} - -func (v NullableMarginIsolatedMaxBorrowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedMaxBorrowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_result.go deleted file mode 100644 index f03602c1..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_max_borrow_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedMaxBorrowResult struct for MarginIsolatedMaxBorrowResult -type MarginIsolatedMaxBorrowResult struct { - Coin *string `json:"coin,omitempty"` - MaxBorrowableAmount *string `json:"maxBorrowableAmount,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedMaxBorrowResult MarginIsolatedMaxBorrowResult - -// NewMarginIsolatedMaxBorrowResult instantiates a new MarginIsolatedMaxBorrowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedMaxBorrowResult() *MarginIsolatedMaxBorrowResult { - this := MarginIsolatedMaxBorrowResult{} - return &this -} - -// NewMarginIsolatedMaxBorrowResultWithDefaults instantiates a new MarginIsolatedMaxBorrowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedMaxBorrowResultWithDefaults() *MarginIsolatedMaxBorrowResult { - this := MarginIsolatedMaxBorrowResult{} - return &this -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedMaxBorrowResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedMaxBorrowResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedMaxBorrowResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedMaxBorrowResult) SetCoin(v string) { - o.Coin = &v -} - -// GetMaxBorrowableAmount returns the MaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginIsolatedMaxBorrowResult) GetMaxBorrowableAmount() string { - if o == nil || isNil(o.MaxBorrowableAmount) { - var ret string - return ret - } - return *o.MaxBorrowableAmount -} - -// GetMaxBorrowableAmountOk returns a tuple with the MaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedMaxBorrowResult) GetMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxBorrowableAmount) { - return nil, false - } - return o.MaxBorrowableAmount, true -} - -// HasMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginIsolatedMaxBorrowResult) HasMaxBorrowableAmount() bool { - if o != nil && !isNil(o.MaxBorrowableAmount) { - return true - } - - return false -} - -// SetMaxBorrowableAmount gets a reference to the given string and assigns it to the MaxBorrowableAmount field. -func (o *MarginIsolatedMaxBorrowResult) SetMaxBorrowableAmount(v string) { - o.MaxBorrowableAmount = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedMaxBorrowResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedMaxBorrowResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedMaxBorrowResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedMaxBorrowResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedMaxBorrowResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.MaxBorrowableAmount) { - toSerialize["maxBorrowableAmount"] = o.MaxBorrowableAmount - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedMaxBorrowResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedMaxBorrowResult := _MarginIsolatedMaxBorrowResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedMaxBorrowResult); err == nil { - *o = MarginIsolatedMaxBorrowResult(varMarginIsolatedMaxBorrowResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "maxBorrowableAmount") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedMaxBorrowResult struct { - value *MarginIsolatedMaxBorrowResult - isSet bool -} - -func (v NullableMarginIsolatedMaxBorrowResult) Get() *MarginIsolatedMaxBorrowResult { - return v.value -} - -func (v *NullableMarginIsolatedMaxBorrowResult) Set(val *MarginIsolatedMaxBorrowResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedMaxBorrowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedMaxBorrowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedMaxBorrowResult(val *MarginIsolatedMaxBorrowResult) *NullableMarginIsolatedMaxBorrowResult { - return &NullableMarginIsolatedMaxBorrowResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedMaxBorrowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedMaxBorrowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_rate_and_limit_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_rate_and_limit_result.go deleted file mode 100644 index 358d87e1..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_rate_and_limit_result.go +++ /dev/null @@ -1,693 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedRateAndLimitResult struct for MarginIsolatedRateAndLimitResult -type MarginIsolatedRateAndLimitResult struct { - BaseBorrowAble *bool `json:"baseBorrowAble,omitempty"` - BaseCoin *string `json:"baseCoin,omitempty"` - BaseDailyInterestRate *string `json:"baseDailyInterestRate,omitempty"` - BaseMaxBorrowableAmount *string `json:"baseMaxBorrowableAmount,omitempty"` - BaseTransferInAble *bool `json:"baseTransferInAble,omitempty"` - BaseVips []MarginIsolatedVipResult `json:"baseVips,omitempty"` - BaseYearlyInterestRate *string `json:"baseYearlyInterestRate,omitempty"` - Leverage *string `json:"leverage,omitempty"` - QuoteBorrowAble *bool `json:"quoteBorrowAble,omitempty"` - QuoteCoin *string `json:"quoteCoin,omitempty"` - QuoteDailyInterestRate *string `json:"quoteDailyInterestRate,omitempty"` - QuoteMaxBorrowableAmount *string `json:"quoteMaxBorrowableAmount,omitempty"` - QuoteTransferInAble *bool `json:"quoteTransferInAble,omitempty"` - QuoteVips []MarginIsolatedVipResult `json:"quoteVips,omitempty"` - QuoteYearlyInterestRate *string `json:"quoteYearlyInterestRate,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedRateAndLimitResult MarginIsolatedRateAndLimitResult - -// NewMarginIsolatedRateAndLimitResult instantiates a new MarginIsolatedRateAndLimitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedRateAndLimitResult() *MarginIsolatedRateAndLimitResult { - this := MarginIsolatedRateAndLimitResult{} - return &this -} - -// NewMarginIsolatedRateAndLimitResultWithDefaults instantiates a new MarginIsolatedRateAndLimitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedRateAndLimitResultWithDefaults() *MarginIsolatedRateAndLimitResult { - this := MarginIsolatedRateAndLimitResult{} - return &this -} - -// GetBaseBorrowAble returns the BaseBorrowAble field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseBorrowAble() bool { - if o == nil || isNil(o.BaseBorrowAble) { - var ret bool - return ret - } - return *o.BaseBorrowAble -} - -// GetBaseBorrowAbleOk returns a tuple with the BaseBorrowAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseBorrowAbleOk() (*bool, bool) { - if o == nil || isNil(o.BaseBorrowAble) { - return nil, false - } - return o.BaseBorrowAble, true -} - -// HasBaseBorrowAble returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseBorrowAble() bool { - if o != nil && !isNil(o.BaseBorrowAble) { - return true - } - - return false -} - -// SetBaseBorrowAble gets a reference to the given bool and assigns it to the BaseBorrowAble field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseBorrowAble(v bool) { - o.BaseBorrowAble = &v -} - -// GetBaseCoin returns the BaseCoin field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseCoin() string { - if o == nil || isNil(o.BaseCoin) { - var ret string - return ret - } - return *o.BaseCoin -} - -// GetBaseCoinOk returns a tuple with the BaseCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseCoinOk() (*string, bool) { - if o == nil || isNil(o.BaseCoin) { - return nil, false - } - return o.BaseCoin, true -} - -// HasBaseCoin returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseCoin() bool { - if o != nil && !isNil(o.BaseCoin) { - return true - } - - return false -} - -// SetBaseCoin gets a reference to the given string and assigns it to the BaseCoin field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseCoin(v string) { - o.BaseCoin = &v -} - -// GetBaseDailyInterestRate returns the BaseDailyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseDailyInterestRate() string { - if o == nil || isNil(o.BaseDailyInterestRate) { - var ret string - return ret - } - return *o.BaseDailyInterestRate -} - -// GetBaseDailyInterestRateOk returns a tuple with the BaseDailyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseDailyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.BaseDailyInterestRate) { - return nil, false - } - return o.BaseDailyInterestRate, true -} - -// HasBaseDailyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseDailyInterestRate() bool { - if o != nil && !isNil(o.BaseDailyInterestRate) { - return true - } - - return false -} - -// SetBaseDailyInterestRate gets a reference to the given string and assigns it to the BaseDailyInterestRate field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseDailyInterestRate(v string) { - o.BaseDailyInterestRate = &v -} - -// GetBaseMaxBorrowableAmount returns the BaseMaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseMaxBorrowableAmount() string { - if o == nil || isNil(o.BaseMaxBorrowableAmount) { - var ret string - return ret - } - return *o.BaseMaxBorrowableAmount -} - -// GetBaseMaxBorrowableAmountOk returns a tuple with the BaseMaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.BaseMaxBorrowableAmount) { - return nil, false - } - return o.BaseMaxBorrowableAmount, true -} - -// HasBaseMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseMaxBorrowableAmount() bool { - if o != nil && !isNil(o.BaseMaxBorrowableAmount) { - return true - } - - return false -} - -// SetBaseMaxBorrowableAmount gets a reference to the given string and assigns it to the BaseMaxBorrowableAmount field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseMaxBorrowableAmount(v string) { - o.BaseMaxBorrowableAmount = &v -} - -// GetBaseTransferInAble returns the BaseTransferInAble field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseTransferInAble() bool { - if o == nil || isNil(o.BaseTransferInAble) { - var ret bool - return ret - } - return *o.BaseTransferInAble -} - -// GetBaseTransferInAbleOk returns a tuple with the BaseTransferInAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseTransferInAbleOk() (*bool, bool) { - if o == nil || isNil(o.BaseTransferInAble) { - return nil, false - } - return o.BaseTransferInAble, true -} - -// HasBaseTransferInAble returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseTransferInAble() bool { - if o != nil && !isNil(o.BaseTransferInAble) { - return true - } - - return false -} - -// SetBaseTransferInAble gets a reference to the given bool and assigns it to the BaseTransferInAble field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseTransferInAble(v bool) { - o.BaseTransferInAble = &v -} - -// GetBaseVips returns the BaseVips field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseVips() []MarginIsolatedVipResult { - if o == nil || isNil(o.BaseVips) { - var ret []MarginIsolatedVipResult - return ret - } - return o.BaseVips -} - -// GetBaseVipsOk returns a tuple with the BaseVips field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseVipsOk() ([]MarginIsolatedVipResult, bool) { - if o == nil || isNil(o.BaseVips) { - return nil, false - } - return o.BaseVips, true -} - -// HasBaseVips returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseVips() bool { - if o != nil && !isNil(o.BaseVips) { - return true - } - - return false -} - -// SetBaseVips gets a reference to the given []MarginIsolatedVipResult and assigns it to the BaseVips field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseVips(v []MarginIsolatedVipResult) { - o.BaseVips = v -} - -// GetBaseYearlyInterestRate returns the BaseYearlyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetBaseYearlyInterestRate() string { - if o == nil || isNil(o.BaseYearlyInterestRate) { - var ret string - return ret - } - return *o.BaseYearlyInterestRate -} - -// GetBaseYearlyInterestRateOk returns a tuple with the BaseYearlyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetBaseYearlyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.BaseYearlyInterestRate) { - return nil, false - } - return o.BaseYearlyInterestRate, true -} - -// HasBaseYearlyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasBaseYearlyInterestRate() bool { - if o != nil && !isNil(o.BaseYearlyInterestRate) { - return true - } - - return false -} - -// SetBaseYearlyInterestRate gets a reference to the given string and assigns it to the BaseYearlyInterestRate field. -func (o *MarginIsolatedRateAndLimitResult) SetBaseYearlyInterestRate(v string) { - o.BaseYearlyInterestRate = &v -} - -// GetLeverage returns the Leverage field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetLeverage() string { - if o == nil || isNil(o.Leverage) { - var ret string - return ret - } - return *o.Leverage -} - -// GetLeverageOk returns a tuple with the Leverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetLeverageOk() (*string, bool) { - if o == nil || isNil(o.Leverage) { - return nil, false - } - return o.Leverage, true -} - -// HasLeverage returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasLeverage() bool { - if o != nil && !isNil(o.Leverage) { - return true - } - - return false -} - -// SetLeverage gets a reference to the given string and assigns it to the Leverage field. -func (o *MarginIsolatedRateAndLimitResult) SetLeverage(v string) { - o.Leverage = &v -} - -// GetQuoteBorrowAble returns the QuoteBorrowAble field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteBorrowAble() bool { - if o == nil || isNil(o.QuoteBorrowAble) { - var ret bool - return ret - } - return *o.QuoteBorrowAble -} - -// GetQuoteBorrowAbleOk returns a tuple with the QuoteBorrowAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteBorrowAbleOk() (*bool, bool) { - if o == nil || isNil(o.QuoteBorrowAble) { - return nil, false - } - return o.QuoteBorrowAble, true -} - -// HasQuoteBorrowAble returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteBorrowAble() bool { - if o != nil && !isNil(o.QuoteBorrowAble) { - return true - } - - return false -} - -// SetQuoteBorrowAble gets a reference to the given bool and assigns it to the QuoteBorrowAble field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteBorrowAble(v bool) { - o.QuoteBorrowAble = &v -} - -// GetQuoteCoin returns the QuoteCoin field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteCoin() string { - if o == nil || isNil(o.QuoteCoin) { - var ret string - return ret - } - return *o.QuoteCoin -} - -// GetQuoteCoinOk returns a tuple with the QuoteCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteCoinOk() (*string, bool) { - if o == nil || isNil(o.QuoteCoin) { - return nil, false - } - return o.QuoteCoin, true -} - -// HasQuoteCoin returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteCoin() bool { - if o != nil && !isNil(o.QuoteCoin) { - return true - } - - return false -} - -// SetQuoteCoin gets a reference to the given string and assigns it to the QuoteCoin field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteCoin(v string) { - o.QuoteCoin = &v -} - -// GetQuoteDailyInterestRate returns the QuoteDailyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteDailyInterestRate() string { - if o == nil || isNil(o.QuoteDailyInterestRate) { - var ret string - return ret - } - return *o.QuoteDailyInterestRate -} - -// GetQuoteDailyInterestRateOk returns a tuple with the QuoteDailyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteDailyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.QuoteDailyInterestRate) { - return nil, false - } - return o.QuoteDailyInterestRate, true -} - -// HasQuoteDailyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteDailyInterestRate() bool { - if o != nil && !isNil(o.QuoteDailyInterestRate) { - return true - } - - return false -} - -// SetQuoteDailyInterestRate gets a reference to the given string and assigns it to the QuoteDailyInterestRate field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteDailyInterestRate(v string) { - o.QuoteDailyInterestRate = &v -} - -// GetQuoteMaxBorrowableAmount returns the QuoteMaxBorrowableAmount field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteMaxBorrowableAmount() string { - if o == nil || isNil(o.QuoteMaxBorrowableAmount) { - var ret string - return ret - } - return *o.QuoteMaxBorrowableAmount -} - -// GetQuoteMaxBorrowableAmountOk returns a tuple with the QuoteMaxBorrowableAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteMaxBorrowableAmountOk() (*string, bool) { - if o == nil || isNil(o.QuoteMaxBorrowableAmount) { - return nil, false - } - return o.QuoteMaxBorrowableAmount, true -} - -// HasQuoteMaxBorrowableAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteMaxBorrowableAmount() bool { - if o != nil && !isNil(o.QuoteMaxBorrowableAmount) { - return true - } - - return false -} - -// SetQuoteMaxBorrowableAmount gets a reference to the given string and assigns it to the QuoteMaxBorrowableAmount field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteMaxBorrowableAmount(v string) { - o.QuoteMaxBorrowableAmount = &v -} - -// GetQuoteTransferInAble returns the QuoteTransferInAble field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteTransferInAble() bool { - if o == nil || isNil(o.QuoteTransferInAble) { - var ret bool - return ret - } - return *o.QuoteTransferInAble -} - -// GetQuoteTransferInAbleOk returns a tuple with the QuoteTransferInAble field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteTransferInAbleOk() (*bool, bool) { - if o == nil || isNil(o.QuoteTransferInAble) { - return nil, false - } - return o.QuoteTransferInAble, true -} - -// HasQuoteTransferInAble returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteTransferInAble() bool { - if o != nil && !isNil(o.QuoteTransferInAble) { - return true - } - - return false -} - -// SetQuoteTransferInAble gets a reference to the given bool and assigns it to the QuoteTransferInAble field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteTransferInAble(v bool) { - o.QuoteTransferInAble = &v -} - -// GetQuoteVips returns the QuoteVips field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteVips() []MarginIsolatedVipResult { - if o == nil || isNil(o.QuoteVips) { - var ret []MarginIsolatedVipResult - return ret - } - return o.QuoteVips -} - -// GetQuoteVipsOk returns a tuple with the QuoteVips field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteVipsOk() ([]MarginIsolatedVipResult, bool) { - if o == nil || isNil(o.QuoteVips) { - return nil, false - } - return o.QuoteVips, true -} - -// HasQuoteVips returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteVips() bool { - if o != nil && !isNil(o.QuoteVips) { - return true - } - - return false -} - -// SetQuoteVips gets a reference to the given []MarginIsolatedVipResult and assigns it to the QuoteVips field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteVips(v []MarginIsolatedVipResult) { - o.QuoteVips = v -} - -// GetQuoteYearlyInterestRate returns the QuoteYearlyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteYearlyInterestRate() string { - if o == nil || isNil(o.QuoteYearlyInterestRate) { - var ret string - return ret - } - return *o.QuoteYearlyInterestRate -} - -// GetQuoteYearlyInterestRateOk returns a tuple with the QuoteYearlyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetQuoteYearlyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.QuoteYearlyInterestRate) { - return nil, false - } - return o.QuoteYearlyInterestRate, true -} - -// HasQuoteYearlyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasQuoteYearlyInterestRate() bool { - if o != nil && !isNil(o.QuoteYearlyInterestRate) { - return true - } - - return false -} - -// SetQuoteYearlyInterestRate gets a reference to the given string and assigns it to the QuoteYearlyInterestRate field. -func (o *MarginIsolatedRateAndLimitResult) SetQuoteYearlyInterestRate(v string) { - o.QuoteYearlyInterestRate = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedRateAndLimitResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRateAndLimitResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedRateAndLimitResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedRateAndLimitResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedRateAndLimitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BaseBorrowAble) { - toSerialize["baseBorrowAble"] = o.BaseBorrowAble - } - if !isNil(o.BaseCoin) { - toSerialize["baseCoin"] = o.BaseCoin - } - if !isNil(o.BaseDailyInterestRate) { - toSerialize["baseDailyInterestRate"] = o.BaseDailyInterestRate - } - if !isNil(o.BaseMaxBorrowableAmount) { - toSerialize["baseMaxBorrowableAmount"] = o.BaseMaxBorrowableAmount - } - if !isNil(o.BaseTransferInAble) { - toSerialize["baseTransferInAble"] = o.BaseTransferInAble - } - if !isNil(o.BaseVips) { - toSerialize["baseVips"] = o.BaseVips - } - if !isNil(o.BaseYearlyInterestRate) { - toSerialize["baseYearlyInterestRate"] = o.BaseYearlyInterestRate - } - if !isNil(o.Leverage) { - toSerialize["leverage"] = o.Leverage - } - if !isNil(o.QuoteBorrowAble) { - toSerialize["quoteBorrowAble"] = o.QuoteBorrowAble - } - if !isNil(o.QuoteCoin) { - toSerialize["quoteCoin"] = o.QuoteCoin - } - if !isNil(o.QuoteDailyInterestRate) { - toSerialize["quoteDailyInterestRate"] = o.QuoteDailyInterestRate - } - if !isNil(o.QuoteMaxBorrowableAmount) { - toSerialize["quoteMaxBorrowableAmount"] = o.QuoteMaxBorrowableAmount - } - if !isNil(o.QuoteTransferInAble) { - toSerialize["quoteTransferInAble"] = o.QuoteTransferInAble - } - if !isNil(o.QuoteVips) { - toSerialize["quoteVips"] = o.QuoteVips - } - if !isNil(o.QuoteYearlyInterestRate) { - toSerialize["quoteYearlyInterestRate"] = o.QuoteYearlyInterestRate - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedRateAndLimitResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedRateAndLimitResult := _MarginIsolatedRateAndLimitResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedRateAndLimitResult); err == nil { - *o = MarginIsolatedRateAndLimitResult(varMarginIsolatedRateAndLimitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "baseBorrowAble") - delete(additionalProperties, "baseCoin") - delete(additionalProperties, "baseDailyInterestRate") - delete(additionalProperties, "baseMaxBorrowableAmount") - delete(additionalProperties, "baseTransferInAble") - delete(additionalProperties, "baseVips") - delete(additionalProperties, "baseYearlyInterestRate") - delete(additionalProperties, "leverage") - delete(additionalProperties, "quoteBorrowAble") - delete(additionalProperties, "quoteCoin") - delete(additionalProperties, "quoteDailyInterestRate") - delete(additionalProperties, "quoteMaxBorrowableAmount") - delete(additionalProperties, "quoteTransferInAble") - delete(additionalProperties, "quoteVips") - delete(additionalProperties, "quoteYearlyInterestRate") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedRateAndLimitResult struct { - value *MarginIsolatedRateAndLimitResult - isSet bool -} - -func (v NullableMarginIsolatedRateAndLimitResult) Get() *MarginIsolatedRateAndLimitResult { - return v.value -} - -func (v *NullableMarginIsolatedRateAndLimitResult) Set(val *MarginIsolatedRateAndLimitResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedRateAndLimitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedRateAndLimitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedRateAndLimitResult(val *MarginIsolatedRateAndLimitResult) *NullableMarginIsolatedRateAndLimitResult { - return &NullableMarginIsolatedRateAndLimitResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedRateAndLimitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedRateAndLimitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_repay_info.go b/bitget-goland-sdk-open-api/model_margin_isolated_repay_info.go deleted file mode 100644 index 7de2dfe8..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_repay_info.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedRepayInfo struct for MarginIsolatedRepayInfo -type MarginIsolatedRepayInfo struct { - Amount *string `json:"amount,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Interest *string `json:"interest,omitempty"` - RepayId *string `json:"repayId,omitempty"` - Symbol *string `json:"symbol,omitempty"` - TotalAmount *string `json:"totalAmount,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedRepayInfo MarginIsolatedRepayInfo - -// NewMarginIsolatedRepayInfo instantiates a new MarginIsolatedRepayInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedRepayInfo() *MarginIsolatedRepayInfo { - this := MarginIsolatedRepayInfo{} - return &this -} - -// NewMarginIsolatedRepayInfoWithDefaults instantiates a new MarginIsolatedRepayInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedRepayInfoWithDefaults() *MarginIsolatedRepayInfo { - this := MarginIsolatedRepayInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginIsolatedRepayInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedRepayInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginIsolatedRepayInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetInterest returns the Interest field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetInterest() string { - if o == nil || isNil(o.Interest) { - var ret string - return ret - } - return *o.Interest -} - -// GetInterestOk returns a tuple with the Interest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetInterestOk() (*string, bool) { - if o == nil || isNil(o.Interest) { - return nil, false - } - return o.Interest, true -} - -// HasInterest returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasInterest() bool { - if o != nil && !isNil(o.Interest) { - return true - } - - return false -} - -// SetInterest gets a reference to the given string and assigns it to the Interest field. -func (o *MarginIsolatedRepayInfo) SetInterest(v string) { - o.Interest = &v -} - -// GetRepayId returns the RepayId field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetRepayId() string { - if o == nil || isNil(o.RepayId) { - var ret string - return ret - } - return *o.RepayId -} - -// GetRepayIdOk returns a tuple with the RepayId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetRepayIdOk() (*string, bool) { - if o == nil || isNil(o.RepayId) { - return nil, false - } - return o.RepayId, true -} - -// HasRepayId returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasRepayId() bool { - if o != nil && !isNil(o.RepayId) { - return true - } - - return false -} - -// SetRepayId gets a reference to the given string and assigns it to the RepayId field. -func (o *MarginIsolatedRepayInfo) SetRepayId(v string) { - o.RepayId = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedRepayInfo) SetSymbol(v string) { - o.Symbol = &v -} - -// GetTotalAmount returns the TotalAmount field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetTotalAmount() string { - if o == nil || isNil(o.TotalAmount) { - var ret string - return ret - } - return *o.TotalAmount -} - -// GetTotalAmountOk returns a tuple with the TotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.TotalAmount) { - return nil, false - } - return o.TotalAmount, true -} - -// HasTotalAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasTotalAmount() bool { - if o != nil && !isNil(o.TotalAmount) { - return true - } - - return false -} - -// SetTotalAmount gets a reference to the given string and assigns it to the TotalAmount field. -func (o *MarginIsolatedRepayInfo) SetTotalAmount(v string) { - o.TotalAmount = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginIsolatedRepayInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginIsolatedRepayInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Interest) { - toSerialize["interest"] = o.Interest - } - if !isNil(o.RepayId) { - toSerialize["repayId"] = o.RepayId - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.TotalAmount) { - toSerialize["totalAmount"] = o.TotalAmount - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedRepayInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedRepayInfo := _MarginIsolatedRepayInfo{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedRepayInfo); err == nil { - *o = MarginIsolatedRepayInfo(varMarginIsolatedRepayInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "interest") - delete(additionalProperties, "repayId") - delete(additionalProperties, "symbol") - delete(additionalProperties, "totalAmount") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedRepayInfo struct { - value *MarginIsolatedRepayInfo - isSet bool -} - -func (v NullableMarginIsolatedRepayInfo) Get() *MarginIsolatedRepayInfo { - return v.value -} - -func (v *NullableMarginIsolatedRepayInfo) Set(val *MarginIsolatedRepayInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedRepayInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedRepayInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedRepayInfo(val *MarginIsolatedRepayInfo) *NullableMarginIsolatedRepayInfo { - return &NullableMarginIsolatedRepayInfo{value: val, isSet: true} -} - -func (v NullableMarginIsolatedRepayInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedRepayInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_repay_info_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_repay_info_result.go deleted file mode 100644 index d9f562ef..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_repay_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedRepayInfoResult struct for MarginIsolatedRepayInfoResult -type MarginIsolatedRepayInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginIsolatedRepayInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedRepayInfoResult MarginIsolatedRepayInfoResult - -// NewMarginIsolatedRepayInfoResult instantiates a new MarginIsolatedRepayInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedRepayInfoResult() *MarginIsolatedRepayInfoResult { - this := MarginIsolatedRepayInfoResult{} - return &this -} - -// NewMarginIsolatedRepayInfoResultWithDefaults instantiates a new MarginIsolatedRepayInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedRepayInfoResultWithDefaults() *MarginIsolatedRepayInfoResult { - this := MarginIsolatedRepayInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginIsolatedRepayInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginIsolatedRepayInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginIsolatedRepayInfoResult) GetResultList() []MarginIsolatedRepayInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginIsolatedRepayInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayInfoResult) GetResultListOk() ([]MarginIsolatedRepayInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginIsolatedRepayInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginIsolatedRepayInfo and assigns it to the ResultList field. -func (o *MarginIsolatedRepayInfoResult) SetResultList(v []MarginIsolatedRepayInfo) { - o.ResultList = v -} - -func (o MarginIsolatedRepayInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedRepayInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedRepayInfoResult := _MarginIsolatedRepayInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedRepayInfoResult); err == nil { - *o = MarginIsolatedRepayInfoResult(varMarginIsolatedRepayInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedRepayInfoResult struct { - value *MarginIsolatedRepayInfoResult - isSet bool -} - -func (v NullableMarginIsolatedRepayInfoResult) Get() *MarginIsolatedRepayInfoResult { - return v.value -} - -func (v *NullableMarginIsolatedRepayInfoResult) Set(val *MarginIsolatedRepayInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedRepayInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedRepayInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedRepayInfoResult(val *MarginIsolatedRepayInfoResult) *NullableMarginIsolatedRepayInfoResult { - return &NullableMarginIsolatedRepayInfoResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedRepayInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedRepayInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_repay_request.go b/bitget-goland-sdk-open-api/model_margin_isolated_repay_request.go deleted file mode 100644 index 558f4713..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_repay_request.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedRepayRequest struct for MarginIsolatedRepayRequest -type MarginIsolatedRepayRequest struct { - // coin - Coin string `json:"coin"` - // repayAmount - RepayAmount string `json:"repayAmount"` - // symbol - Symbol string `json:"symbol"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedRepayRequest MarginIsolatedRepayRequest - -// NewMarginIsolatedRepayRequest instantiates a new MarginIsolatedRepayRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedRepayRequest(coin string, repayAmount string, symbol string) *MarginIsolatedRepayRequest { - this := MarginIsolatedRepayRequest{} - this.Coin = coin - this.RepayAmount = repayAmount - this.Symbol = symbol - return &this -} - -// NewMarginIsolatedRepayRequestWithDefaults instantiates a new MarginIsolatedRepayRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedRepayRequestWithDefaults() *MarginIsolatedRepayRequest { - this := MarginIsolatedRepayRequest{} - return &this -} - -// GetCoin returns the Coin field value -func (o *MarginIsolatedRepayRequest) GetCoin() string { - if o == nil { - var ret string - return ret - } - - return o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayRequest) GetCoinOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Coin, true -} - -// SetCoin sets field value -func (o *MarginIsolatedRepayRequest) SetCoin(v string) { - o.Coin = v -} - -// GetRepayAmount returns the RepayAmount field value -func (o *MarginIsolatedRepayRequest) GetRepayAmount() string { - if o == nil { - var ret string - return ret - } - - return o.RepayAmount -} - -// GetRepayAmountOk returns a tuple with the RepayAmount field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayRequest) GetRepayAmountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RepayAmount, true -} - -// SetRepayAmount sets field value -func (o *MarginIsolatedRepayRequest) SetRepayAmount(v string) { - o.RepayAmount = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginIsolatedRepayRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginIsolatedRepayRequest) SetSymbol(v string) { - o.Symbol = v -} - -func (o MarginIsolatedRepayRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["coin"] = o.Coin - } - if true { - toSerialize["repayAmount"] = o.RepayAmount - } - if true { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedRepayRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedRepayRequest := _MarginIsolatedRepayRequest{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedRepayRequest); err == nil { - *o = MarginIsolatedRepayRequest(varMarginIsolatedRepayRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coin") - delete(additionalProperties, "repayAmount") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedRepayRequest struct { - value *MarginIsolatedRepayRequest - isSet bool -} - -func (v NullableMarginIsolatedRepayRequest) Get() *MarginIsolatedRepayRequest { - return v.value -} - -func (v *NullableMarginIsolatedRepayRequest) Set(val *MarginIsolatedRepayRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedRepayRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedRepayRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedRepayRequest(val *MarginIsolatedRepayRequest) *NullableMarginIsolatedRepayRequest { - return &NullableMarginIsolatedRepayRequest{value: val, isSet: true} -} - -func (v NullableMarginIsolatedRepayRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedRepayRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_repay_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_repay_result.go deleted file mode 100644 index c0a46e1d..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_repay_result.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedRepayResult struct for MarginIsolatedRepayResult -type MarginIsolatedRepayResult struct { - ClientOid *string `json:"clientOid,omitempty"` - Coin *string `json:"coin,omitempty"` - RemainDebtAmount *string `json:"remainDebtAmount,omitempty"` - RepayAmount *string `json:"repayAmount,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedRepayResult MarginIsolatedRepayResult - -// NewMarginIsolatedRepayResult instantiates a new MarginIsolatedRepayResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedRepayResult() *MarginIsolatedRepayResult { - this := MarginIsolatedRepayResult{} - return &this -} - -// NewMarginIsolatedRepayResultWithDefaults instantiates a new MarginIsolatedRepayResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedRepayResultWithDefaults() *MarginIsolatedRepayResult { - this := MarginIsolatedRepayResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginIsolatedRepayResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginIsolatedRepayResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginIsolatedRepayResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginIsolatedRepayResult) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayResult) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginIsolatedRepayResult) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginIsolatedRepayResult) SetCoin(v string) { - o.Coin = &v -} - -// GetRemainDebtAmount returns the RemainDebtAmount field value if set, zero value otherwise. -func (o *MarginIsolatedRepayResult) GetRemainDebtAmount() string { - if o == nil || isNil(o.RemainDebtAmount) { - var ret string - return ret - } - return *o.RemainDebtAmount -} - -// GetRemainDebtAmountOk returns a tuple with the RemainDebtAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayResult) GetRemainDebtAmountOk() (*string, bool) { - if o == nil || isNil(o.RemainDebtAmount) { - return nil, false - } - return o.RemainDebtAmount, true -} - -// HasRemainDebtAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRepayResult) HasRemainDebtAmount() bool { - if o != nil && !isNil(o.RemainDebtAmount) { - return true - } - - return false -} - -// SetRemainDebtAmount gets a reference to the given string and assigns it to the RemainDebtAmount field. -func (o *MarginIsolatedRepayResult) SetRemainDebtAmount(v string) { - o.RemainDebtAmount = &v -} - -// GetRepayAmount returns the RepayAmount field value if set, zero value otherwise. -func (o *MarginIsolatedRepayResult) GetRepayAmount() string { - if o == nil || isNil(o.RepayAmount) { - var ret string - return ret - } - return *o.RepayAmount -} - -// GetRepayAmountOk returns a tuple with the RepayAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayResult) GetRepayAmountOk() (*string, bool) { - if o == nil || isNil(o.RepayAmount) { - return nil, false - } - return o.RepayAmount, true -} - -// HasRepayAmount returns a boolean if a field has been set. -func (o *MarginIsolatedRepayResult) HasRepayAmount() bool { - if o != nil && !isNil(o.RepayAmount) { - return true - } - - return false -} - -// SetRepayAmount gets a reference to the given string and assigns it to the RepayAmount field. -func (o *MarginIsolatedRepayResult) SetRepayAmount(v string) { - o.RepayAmount = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginIsolatedRepayResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedRepayResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginIsolatedRepayResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginIsolatedRepayResult) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginIsolatedRepayResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.RemainDebtAmount) { - toSerialize["remainDebtAmount"] = o.RemainDebtAmount - } - if !isNil(o.RepayAmount) { - toSerialize["repayAmount"] = o.RepayAmount - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedRepayResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedRepayResult := _MarginIsolatedRepayResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedRepayResult); err == nil { - *o = MarginIsolatedRepayResult(varMarginIsolatedRepayResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "coin") - delete(additionalProperties, "remainDebtAmount") - delete(additionalProperties, "repayAmount") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedRepayResult struct { - value *MarginIsolatedRepayResult - isSet bool -} - -func (v NullableMarginIsolatedRepayResult) Get() *MarginIsolatedRepayResult { - return v.value -} - -func (v *NullableMarginIsolatedRepayResult) Set(val *MarginIsolatedRepayResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedRepayResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedRepayResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedRepayResult(val *MarginIsolatedRepayResult) *NullableMarginIsolatedRepayResult { - return &NullableMarginIsolatedRepayResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedRepayResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedRepayResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_isolated_vip_result.go b/bitget-goland-sdk-open-api/model_margin_isolated_vip_result.go deleted file mode 100644 index 50e856b7..00000000 --- a/bitget-goland-sdk-open-api/model_margin_isolated_vip_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginIsolatedVipResult struct for MarginIsolatedVipResult -type MarginIsolatedVipResult struct { - DailyInterestRate *string `json:"dailyInterestRate,omitempty"` - DiscountRate *string `json:"discountRate,omitempty"` - Level *string `json:"level,omitempty"` - YearlyInterestRate *string `json:"yearlyInterestRate,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginIsolatedVipResult MarginIsolatedVipResult - -// NewMarginIsolatedVipResult instantiates a new MarginIsolatedVipResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginIsolatedVipResult() *MarginIsolatedVipResult { - this := MarginIsolatedVipResult{} - return &this -} - -// NewMarginIsolatedVipResultWithDefaults instantiates a new MarginIsolatedVipResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginIsolatedVipResultWithDefaults() *MarginIsolatedVipResult { - this := MarginIsolatedVipResult{} - return &this -} - -// GetDailyInterestRate returns the DailyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedVipResult) GetDailyInterestRate() string { - if o == nil || isNil(o.DailyInterestRate) { - var ret string - return ret - } - return *o.DailyInterestRate -} - -// GetDailyInterestRateOk returns a tuple with the DailyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedVipResult) GetDailyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.DailyInterestRate) { - return nil, false - } - return o.DailyInterestRate, true -} - -// HasDailyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedVipResult) HasDailyInterestRate() bool { - if o != nil && !isNil(o.DailyInterestRate) { - return true - } - - return false -} - -// SetDailyInterestRate gets a reference to the given string and assigns it to the DailyInterestRate field. -func (o *MarginIsolatedVipResult) SetDailyInterestRate(v string) { - o.DailyInterestRate = &v -} - -// GetDiscountRate returns the DiscountRate field value if set, zero value otherwise. -func (o *MarginIsolatedVipResult) GetDiscountRate() string { - if o == nil || isNil(o.DiscountRate) { - var ret string - return ret - } - return *o.DiscountRate -} - -// GetDiscountRateOk returns a tuple with the DiscountRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedVipResult) GetDiscountRateOk() (*string, bool) { - if o == nil || isNil(o.DiscountRate) { - return nil, false - } - return o.DiscountRate, true -} - -// HasDiscountRate returns a boolean if a field has been set. -func (o *MarginIsolatedVipResult) HasDiscountRate() bool { - if o != nil && !isNil(o.DiscountRate) { - return true - } - - return false -} - -// SetDiscountRate gets a reference to the given string and assigns it to the DiscountRate field. -func (o *MarginIsolatedVipResult) SetDiscountRate(v string) { - o.DiscountRate = &v -} - -// GetLevel returns the Level field value if set, zero value otherwise. -func (o *MarginIsolatedVipResult) GetLevel() string { - if o == nil || isNil(o.Level) { - var ret string - return ret - } - return *o.Level -} - -// GetLevelOk returns a tuple with the Level field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedVipResult) GetLevelOk() (*string, bool) { - if o == nil || isNil(o.Level) { - return nil, false - } - return o.Level, true -} - -// HasLevel returns a boolean if a field has been set. -func (o *MarginIsolatedVipResult) HasLevel() bool { - if o != nil && !isNil(o.Level) { - return true - } - - return false -} - -// SetLevel gets a reference to the given string and assigns it to the Level field. -func (o *MarginIsolatedVipResult) SetLevel(v string) { - o.Level = &v -} - -// GetYearlyInterestRate returns the YearlyInterestRate field value if set, zero value otherwise. -func (o *MarginIsolatedVipResult) GetYearlyInterestRate() string { - if o == nil || isNil(o.YearlyInterestRate) { - var ret string - return ret - } - return *o.YearlyInterestRate -} - -// GetYearlyInterestRateOk returns a tuple with the YearlyInterestRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginIsolatedVipResult) GetYearlyInterestRateOk() (*string, bool) { - if o == nil || isNil(o.YearlyInterestRate) { - return nil, false - } - return o.YearlyInterestRate, true -} - -// HasYearlyInterestRate returns a boolean if a field has been set. -func (o *MarginIsolatedVipResult) HasYearlyInterestRate() bool { - if o != nil && !isNil(o.YearlyInterestRate) { - return true - } - - return false -} - -// SetYearlyInterestRate gets a reference to the given string and assigns it to the YearlyInterestRate field. -func (o *MarginIsolatedVipResult) SetYearlyInterestRate(v string) { - o.YearlyInterestRate = &v -} - -func (o MarginIsolatedVipResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.DailyInterestRate) { - toSerialize["dailyInterestRate"] = o.DailyInterestRate - } - if !isNil(o.DiscountRate) { - toSerialize["discountRate"] = o.DiscountRate - } - if !isNil(o.Level) { - toSerialize["level"] = o.Level - } - if !isNil(o.YearlyInterestRate) { - toSerialize["yearlyInterestRate"] = o.YearlyInterestRate - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginIsolatedVipResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginIsolatedVipResult := _MarginIsolatedVipResult{} - - if err = json.Unmarshal(bytes, &varMarginIsolatedVipResult); err == nil { - *o = MarginIsolatedVipResult(varMarginIsolatedVipResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "dailyInterestRate") - delete(additionalProperties, "discountRate") - delete(additionalProperties, "level") - delete(additionalProperties, "yearlyInterestRate") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginIsolatedVipResult struct { - value *MarginIsolatedVipResult - isSet bool -} - -func (v NullableMarginIsolatedVipResult) Get() *MarginIsolatedVipResult { - return v.value -} - -func (v *NullableMarginIsolatedVipResult) Set(val *MarginIsolatedVipResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginIsolatedVipResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginIsolatedVipResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginIsolatedVipResult(val *MarginIsolatedVipResult) *NullableMarginIsolatedVipResult { - return &NullableMarginIsolatedVipResult{value: val, isSet: true} -} - -func (v NullableMarginIsolatedVipResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginIsolatedVipResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_liquidation_info.go b/bitget-goland-sdk-open-api/model_margin_liquidation_info.go deleted file mode 100644 index e2f42c47..00000000 --- a/bitget-goland-sdk-open-api/model_margin_liquidation_info.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginLiquidationInfo struct for MarginLiquidationInfo -type MarginLiquidationInfo struct { - Ctime *string `json:"ctime,omitempty"` - LiqEndTime *string `json:"liqEndTime,omitempty"` - LiqFee *string `json:"liqFee,omitempty"` - LiqId *string `json:"liqId,omitempty"` - LiqRisk *string `json:"liqRisk,omitempty"` - LiqStartTime *string `json:"liqStartTime,omitempty"` - TotalAssets *string `json:"totalAssets,omitempty"` - TotalDebt *string `json:"totalDebt,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginLiquidationInfo MarginLiquidationInfo - -// NewMarginLiquidationInfo instantiates a new MarginLiquidationInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginLiquidationInfo() *MarginLiquidationInfo { - this := MarginLiquidationInfo{} - return &this -} - -// NewMarginLiquidationInfoWithDefaults instantiates a new MarginLiquidationInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginLiquidationInfoWithDefaults() *MarginLiquidationInfo { - this := MarginLiquidationInfo{} - return &this -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginLiquidationInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetLiqEndTime returns the LiqEndTime field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetLiqEndTime() string { - if o == nil || isNil(o.LiqEndTime) { - var ret string - return ret - } - return *o.LiqEndTime -} - -// GetLiqEndTimeOk returns a tuple with the LiqEndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetLiqEndTimeOk() (*string, bool) { - if o == nil || isNil(o.LiqEndTime) { - return nil, false - } - return o.LiqEndTime, true -} - -// HasLiqEndTime returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasLiqEndTime() bool { - if o != nil && !isNil(o.LiqEndTime) { - return true - } - - return false -} - -// SetLiqEndTime gets a reference to the given string and assigns it to the LiqEndTime field. -func (o *MarginLiquidationInfo) SetLiqEndTime(v string) { - o.LiqEndTime = &v -} - -// GetLiqFee returns the LiqFee field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetLiqFee() string { - if o == nil || isNil(o.LiqFee) { - var ret string - return ret - } - return *o.LiqFee -} - -// GetLiqFeeOk returns a tuple with the LiqFee field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetLiqFeeOk() (*string, bool) { - if o == nil || isNil(o.LiqFee) { - return nil, false - } - return o.LiqFee, true -} - -// HasLiqFee returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasLiqFee() bool { - if o != nil && !isNil(o.LiqFee) { - return true - } - - return false -} - -// SetLiqFee gets a reference to the given string and assigns it to the LiqFee field. -func (o *MarginLiquidationInfo) SetLiqFee(v string) { - o.LiqFee = &v -} - -// GetLiqId returns the LiqId field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetLiqId() string { - if o == nil || isNil(o.LiqId) { - var ret string - return ret - } - return *o.LiqId -} - -// GetLiqIdOk returns a tuple with the LiqId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetLiqIdOk() (*string, bool) { - if o == nil || isNil(o.LiqId) { - return nil, false - } - return o.LiqId, true -} - -// HasLiqId returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasLiqId() bool { - if o != nil && !isNil(o.LiqId) { - return true - } - - return false -} - -// SetLiqId gets a reference to the given string and assigns it to the LiqId field. -func (o *MarginLiquidationInfo) SetLiqId(v string) { - o.LiqId = &v -} - -// GetLiqRisk returns the LiqRisk field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetLiqRisk() string { - if o == nil || isNil(o.LiqRisk) { - var ret string - return ret - } - return *o.LiqRisk -} - -// GetLiqRiskOk returns a tuple with the LiqRisk field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetLiqRiskOk() (*string, bool) { - if o == nil || isNil(o.LiqRisk) { - return nil, false - } - return o.LiqRisk, true -} - -// HasLiqRisk returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasLiqRisk() bool { - if o != nil && !isNil(o.LiqRisk) { - return true - } - - return false -} - -// SetLiqRisk gets a reference to the given string and assigns it to the LiqRisk field. -func (o *MarginLiquidationInfo) SetLiqRisk(v string) { - o.LiqRisk = &v -} - -// GetLiqStartTime returns the LiqStartTime field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetLiqStartTime() string { - if o == nil || isNil(o.LiqStartTime) { - var ret string - return ret - } - return *o.LiqStartTime -} - -// GetLiqStartTimeOk returns a tuple with the LiqStartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetLiqStartTimeOk() (*string, bool) { - if o == nil || isNil(o.LiqStartTime) { - return nil, false - } - return o.LiqStartTime, true -} - -// HasLiqStartTime returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasLiqStartTime() bool { - if o != nil && !isNil(o.LiqStartTime) { - return true - } - - return false -} - -// SetLiqStartTime gets a reference to the given string and assigns it to the LiqStartTime field. -func (o *MarginLiquidationInfo) SetLiqStartTime(v string) { - o.LiqStartTime = &v -} - -// GetTotalAssets returns the TotalAssets field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetTotalAssets() string { - if o == nil || isNil(o.TotalAssets) { - var ret string - return ret - } - return *o.TotalAssets -} - -// GetTotalAssetsOk returns a tuple with the TotalAssets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetTotalAssetsOk() (*string, bool) { - if o == nil || isNil(o.TotalAssets) { - return nil, false - } - return o.TotalAssets, true -} - -// HasTotalAssets returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasTotalAssets() bool { - if o != nil && !isNil(o.TotalAssets) { - return true - } - - return false -} - -// SetTotalAssets gets a reference to the given string and assigns it to the TotalAssets field. -func (o *MarginLiquidationInfo) SetTotalAssets(v string) { - o.TotalAssets = &v -} - -// GetTotalDebt returns the TotalDebt field value if set, zero value otherwise. -func (o *MarginLiquidationInfo) GetTotalDebt() string { - if o == nil || isNil(o.TotalDebt) { - var ret string - return ret - } - return *o.TotalDebt -} - -// GetTotalDebtOk returns a tuple with the TotalDebt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfo) GetTotalDebtOk() (*string, bool) { - if o == nil || isNil(o.TotalDebt) { - return nil, false - } - return o.TotalDebt, true -} - -// HasTotalDebt returns a boolean if a field has been set. -func (o *MarginLiquidationInfo) HasTotalDebt() bool { - if o != nil && !isNil(o.TotalDebt) { - return true - } - - return false -} - -// SetTotalDebt gets a reference to the given string and assigns it to the TotalDebt field. -func (o *MarginLiquidationInfo) SetTotalDebt(v string) { - o.TotalDebt = &v -} - -func (o MarginLiquidationInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.LiqEndTime) { - toSerialize["liqEndTime"] = o.LiqEndTime - } - if !isNil(o.LiqFee) { - toSerialize["liqFee"] = o.LiqFee - } - if !isNil(o.LiqId) { - toSerialize["liqId"] = o.LiqId - } - if !isNil(o.LiqRisk) { - toSerialize["liqRisk"] = o.LiqRisk - } - if !isNil(o.LiqStartTime) { - toSerialize["liqStartTime"] = o.LiqStartTime - } - if !isNil(o.TotalAssets) { - toSerialize["totalAssets"] = o.TotalAssets - } - if !isNil(o.TotalDebt) { - toSerialize["totalDebt"] = o.TotalDebt - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginLiquidationInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginLiquidationInfo := _MarginLiquidationInfo{} - - if err = json.Unmarshal(bytes, &varMarginLiquidationInfo); err == nil { - *o = MarginLiquidationInfo(varMarginLiquidationInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ctime") - delete(additionalProperties, "liqEndTime") - delete(additionalProperties, "liqFee") - delete(additionalProperties, "liqId") - delete(additionalProperties, "liqRisk") - delete(additionalProperties, "liqStartTime") - delete(additionalProperties, "totalAssets") - delete(additionalProperties, "totalDebt") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginLiquidationInfo struct { - value *MarginLiquidationInfo - isSet bool -} - -func (v NullableMarginLiquidationInfo) Get() *MarginLiquidationInfo { - return v.value -} - -func (v *NullableMarginLiquidationInfo) Set(val *MarginLiquidationInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginLiquidationInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginLiquidationInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginLiquidationInfo(val *MarginLiquidationInfo) *NullableMarginLiquidationInfo { - return &NullableMarginLiquidationInfo{value: val, isSet: true} -} - -func (v NullableMarginLiquidationInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginLiquidationInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_liquidation_info_result.go b/bitget-goland-sdk-open-api/model_margin_liquidation_info_result.go deleted file mode 100644 index 6f78bbe6..00000000 --- a/bitget-goland-sdk-open-api/model_margin_liquidation_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginLiquidationInfoResult struct for MarginLiquidationInfoResult -type MarginLiquidationInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginLiquidationInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginLiquidationInfoResult MarginLiquidationInfoResult - -// NewMarginLiquidationInfoResult instantiates a new MarginLiquidationInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginLiquidationInfoResult() *MarginLiquidationInfoResult { - this := MarginLiquidationInfoResult{} - return &this -} - -// NewMarginLiquidationInfoResultWithDefaults instantiates a new MarginLiquidationInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginLiquidationInfoResultWithDefaults() *MarginLiquidationInfoResult { - this := MarginLiquidationInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginLiquidationInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginLiquidationInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginLiquidationInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginLiquidationInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginLiquidationInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginLiquidationInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginLiquidationInfoResult) GetResultList() []MarginLiquidationInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginLiquidationInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLiquidationInfoResult) GetResultListOk() ([]MarginLiquidationInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginLiquidationInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginLiquidationInfo and assigns it to the ResultList field. -func (o *MarginLiquidationInfoResult) SetResultList(v []MarginLiquidationInfo) { - o.ResultList = v -} - -func (o MarginLiquidationInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginLiquidationInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginLiquidationInfoResult := _MarginLiquidationInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginLiquidationInfoResult); err == nil { - *o = MarginLiquidationInfoResult(varMarginLiquidationInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginLiquidationInfoResult struct { - value *MarginLiquidationInfoResult - isSet bool -} - -func (v NullableMarginLiquidationInfoResult) Get() *MarginLiquidationInfoResult { - return v.value -} - -func (v *NullableMarginLiquidationInfoResult) Set(val *MarginLiquidationInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginLiquidationInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginLiquidationInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginLiquidationInfoResult(val *MarginLiquidationInfoResult) *NullableMarginLiquidationInfoResult { - return &NullableMarginLiquidationInfoResult{value: val, isSet: true} -} - -func (v NullableMarginLiquidationInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginLiquidationInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_loan_info.go b/bitget-goland-sdk-open-api/model_margin_loan_info.go deleted file mode 100644 index 59f06550..00000000 --- a/bitget-goland-sdk-open-api/model_margin_loan_info.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginLoanInfo struct for MarginLoanInfo -type MarginLoanInfo struct { - Amount *string `json:"amount,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - LoanId *string `json:"loanId,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginLoanInfo MarginLoanInfo - -// NewMarginLoanInfo instantiates a new MarginLoanInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginLoanInfo() *MarginLoanInfo { - this := MarginLoanInfo{} - return &this -} - -// NewMarginLoanInfoWithDefaults instantiates a new MarginLoanInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginLoanInfoWithDefaults() *MarginLoanInfo { - this := MarginLoanInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginLoanInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginLoanInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginLoanInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginLoanInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginLoanInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginLoanInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginLoanInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginLoanInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginLoanInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetLoanId returns the LoanId field value if set, zero value otherwise. -func (o *MarginLoanInfo) GetLoanId() string { - if o == nil || isNil(o.LoanId) { - var ret string - return ret - } - return *o.LoanId -} - -// GetLoanIdOk returns a tuple with the LoanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfo) GetLoanIdOk() (*string, bool) { - if o == nil || isNil(o.LoanId) { - return nil, false - } - return o.LoanId, true -} - -// HasLoanId returns a boolean if a field has been set. -func (o *MarginLoanInfo) HasLoanId() bool { - if o != nil && !isNil(o.LoanId) { - return true - } - - return false -} - -// SetLoanId gets a reference to the given string and assigns it to the LoanId field. -func (o *MarginLoanInfo) SetLoanId(v string) { - o.LoanId = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginLoanInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginLoanInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginLoanInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginLoanInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.LoanId) { - toSerialize["loanId"] = o.LoanId - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginLoanInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginLoanInfo := _MarginLoanInfo{} - - if err = json.Unmarshal(bytes, &varMarginLoanInfo); err == nil { - *o = MarginLoanInfo(varMarginLoanInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "loanId") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginLoanInfo struct { - value *MarginLoanInfo - isSet bool -} - -func (v NullableMarginLoanInfo) Get() *MarginLoanInfo { - return v.value -} - -func (v *NullableMarginLoanInfo) Set(val *MarginLoanInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginLoanInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginLoanInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginLoanInfo(val *MarginLoanInfo) *NullableMarginLoanInfo { - return &NullableMarginLoanInfo{value: val, isSet: true} -} - -func (v NullableMarginLoanInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginLoanInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_loan_info_result.go b/bitget-goland-sdk-open-api/model_margin_loan_info_result.go deleted file mode 100644 index b7dafa89..00000000 --- a/bitget-goland-sdk-open-api/model_margin_loan_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginLoanInfoResult struct for MarginLoanInfoResult -type MarginLoanInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginLoanInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginLoanInfoResult MarginLoanInfoResult - -// NewMarginLoanInfoResult instantiates a new MarginLoanInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginLoanInfoResult() *MarginLoanInfoResult { - this := MarginLoanInfoResult{} - return &this -} - -// NewMarginLoanInfoResultWithDefaults instantiates a new MarginLoanInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginLoanInfoResultWithDefaults() *MarginLoanInfoResult { - this := MarginLoanInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginLoanInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginLoanInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginLoanInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginLoanInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginLoanInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginLoanInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginLoanInfoResult) GetResultList() []MarginLoanInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginLoanInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginLoanInfoResult) GetResultListOk() ([]MarginLoanInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginLoanInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginLoanInfo and assigns it to the ResultList field. -func (o *MarginLoanInfoResult) SetResultList(v []MarginLoanInfo) { - o.ResultList = v -} - -func (o MarginLoanInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginLoanInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginLoanInfoResult := _MarginLoanInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginLoanInfoResult); err == nil { - *o = MarginLoanInfoResult(varMarginLoanInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginLoanInfoResult struct { - value *MarginLoanInfoResult - isSet bool -} - -func (v NullableMarginLoanInfoResult) Get() *MarginLoanInfoResult { - return v.value -} - -func (v *NullableMarginLoanInfoResult) Set(val *MarginLoanInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginLoanInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginLoanInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginLoanInfoResult(val *MarginLoanInfoResult) *NullableMarginLoanInfoResult { - return &NullableMarginLoanInfoResult{value: val, isSet: true} -} - -func (v NullableMarginLoanInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginLoanInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_open_order_info_result.go b/bitget-goland-sdk-open-api/model_margin_open_order_info_result.go deleted file mode 100644 index 43814643..00000000 --- a/bitget-goland-sdk-open-api/model_margin_open_order_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginOpenOrderInfoResult struct for MarginOpenOrderInfoResult -type MarginOpenOrderInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - OrderList []MarginOrderInfo `json:"orderList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginOpenOrderInfoResult MarginOpenOrderInfoResult - -// NewMarginOpenOrderInfoResult instantiates a new MarginOpenOrderInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginOpenOrderInfoResult() *MarginOpenOrderInfoResult { - this := MarginOpenOrderInfoResult{} - return &this -} - -// NewMarginOpenOrderInfoResultWithDefaults instantiates a new MarginOpenOrderInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginOpenOrderInfoResultWithDefaults() *MarginOpenOrderInfoResult { - this := MarginOpenOrderInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginOpenOrderInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOpenOrderInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginOpenOrderInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginOpenOrderInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginOpenOrderInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOpenOrderInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginOpenOrderInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginOpenOrderInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetOrderList returns the OrderList field value if set, zero value otherwise. -func (o *MarginOpenOrderInfoResult) GetOrderList() []MarginOrderInfo { - if o == nil || isNil(o.OrderList) { - var ret []MarginOrderInfo - return ret - } - return o.OrderList -} - -// GetOrderListOk returns a tuple with the OrderList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOpenOrderInfoResult) GetOrderListOk() ([]MarginOrderInfo, bool) { - if o == nil || isNil(o.OrderList) { - return nil, false - } - return o.OrderList, true -} - -// HasOrderList returns a boolean if a field has been set. -func (o *MarginOpenOrderInfoResult) HasOrderList() bool { - if o != nil && !isNil(o.OrderList) { - return true - } - - return false -} - -// SetOrderList gets a reference to the given []MarginOrderInfo and assigns it to the OrderList field. -func (o *MarginOpenOrderInfoResult) SetOrderList(v []MarginOrderInfo) { - o.OrderList = v -} - -func (o MarginOpenOrderInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.OrderList) { - toSerialize["orderList"] = o.OrderList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginOpenOrderInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginOpenOrderInfoResult := _MarginOpenOrderInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginOpenOrderInfoResult); err == nil { - *o = MarginOpenOrderInfoResult(varMarginOpenOrderInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "orderList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginOpenOrderInfoResult struct { - value *MarginOpenOrderInfoResult - isSet bool -} - -func (v NullableMarginOpenOrderInfoResult) Get() *MarginOpenOrderInfoResult { - return v.value -} - -func (v *NullableMarginOpenOrderInfoResult) Set(val *MarginOpenOrderInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginOpenOrderInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginOpenOrderInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginOpenOrderInfoResult(val *MarginOpenOrderInfoResult) *NullableMarginOpenOrderInfoResult { - return &NullableMarginOpenOrderInfoResult{value: val, isSet: true} -} - -func (v NullableMarginOpenOrderInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginOpenOrderInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_order_info.go b/bitget-goland-sdk-open-api/model_margin_order_info.go deleted file mode 100644 index 371e758b..00000000 --- a/bitget-goland-sdk-open-api/model_margin_order_info.go +++ /dev/null @@ -1,656 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginOrderInfo struct for MarginOrderInfo -type MarginOrderInfo struct { - BaseQuantity *string `json:"baseQuantity,omitempty"` - ClientOid *string `json:"clientOid,omitempty"` - Ctime *string `json:"ctime,omitempty"` - FillPrice *string `json:"fillPrice,omitempty"` - FillQuantity *string `json:"fillQuantity,omitempty"` - FillTotalAmount *string `json:"fillTotalAmount,omitempty"` - LoanType *string `json:"loanType,omitempty"` - OrderId *string `json:"orderId,omitempty"` - OrderType *string `json:"orderType,omitempty"` - Price *string `json:"price,omitempty"` - QuoteAmount *string `json:"quoteAmount,omitempty"` - Side *string `json:"side,omitempty"` - Source *string `json:"source,omitempty"` - Status *string `json:"status,omitempty"` - Symbol *string `json:"symbol,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginOrderInfo MarginOrderInfo - -// NewMarginOrderInfo instantiates a new MarginOrderInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginOrderInfo() *MarginOrderInfo { - this := MarginOrderInfo{} - return &this -} - -// NewMarginOrderInfoWithDefaults instantiates a new MarginOrderInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginOrderInfoWithDefaults() *MarginOrderInfo { - this := MarginOrderInfo{} - return &this -} - -// GetBaseQuantity returns the BaseQuantity field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetBaseQuantity() string { - if o == nil || isNil(o.BaseQuantity) { - var ret string - return ret - } - return *o.BaseQuantity -} - -// GetBaseQuantityOk returns a tuple with the BaseQuantity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetBaseQuantityOk() (*string, bool) { - if o == nil || isNil(o.BaseQuantity) { - return nil, false - } - return o.BaseQuantity, true -} - -// HasBaseQuantity returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasBaseQuantity() bool { - if o != nil && !isNil(o.BaseQuantity) { - return true - } - - return false -} - -// SetBaseQuantity gets a reference to the given string and assigns it to the BaseQuantity field. -func (o *MarginOrderInfo) SetBaseQuantity(v string) { - o.BaseQuantity = &v -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginOrderInfo) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginOrderInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetFillPrice returns the FillPrice field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetFillPrice() string { - if o == nil || isNil(o.FillPrice) { - var ret string - return ret - } - return *o.FillPrice -} - -// GetFillPriceOk returns a tuple with the FillPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetFillPriceOk() (*string, bool) { - if o == nil || isNil(o.FillPrice) { - return nil, false - } - return o.FillPrice, true -} - -// HasFillPrice returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasFillPrice() bool { - if o != nil && !isNil(o.FillPrice) { - return true - } - - return false -} - -// SetFillPrice gets a reference to the given string and assigns it to the FillPrice field. -func (o *MarginOrderInfo) SetFillPrice(v string) { - o.FillPrice = &v -} - -// GetFillQuantity returns the FillQuantity field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetFillQuantity() string { - if o == nil || isNil(o.FillQuantity) { - var ret string - return ret - } - return *o.FillQuantity -} - -// GetFillQuantityOk returns a tuple with the FillQuantity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetFillQuantityOk() (*string, bool) { - if o == nil || isNil(o.FillQuantity) { - return nil, false - } - return o.FillQuantity, true -} - -// HasFillQuantity returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasFillQuantity() bool { - if o != nil && !isNil(o.FillQuantity) { - return true - } - - return false -} - -// SetFillQuantity gets a reference to the given string and assigns it to the FillQuantity field. -func (o *MarginOrderInfo) SetFillQuantity(v string) { - o.FillQuantity = &v -} - -// GetFillTotalAmount returns the FillTotalAmount field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetFillTotalAmount() string { - if o == nil || isNil(o.FillTotalAmount) { - var ret string - return ret - } - return *o.FillTotalAmount -} - -// GetFillTotalAmountOk returns a tuple with the FillTotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetFillTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.FillTotalAmount) { - return nil, false - } - return o.FillTotalAmount, true -} - -// HasFillTotalAmount returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasFillTotalAmount() bool { - if o != nil && !isNil(o.FillTotalAmount) { - return true - } - - return false -} - -// SetFillTotalAmount gets a reference to the given string and assigns it to the FillTotalAmount field. -func (o *MarginOrderInfo) SetFillTotalAmount(v string) { - o.FillTotalAmount = &v -} - -// GetLoanType returns the LoanType field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetLoanType() string { - if o == nil || isNil(o.LoanType) { - var ret string - return ret - } - return *o.LoanType -} - -// GetLoanTypeOk returns a tuple with the LoanType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetLoanTypeOk() (*string, bool) { - if o == nil || isNil(o.LoanType) { - return nil, false - } - return o.LoanType, true -} - -// HasLoanType returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasLoanType() bool { - if o != nil && !isNil(o.LoanType) { - return true - } - - return false -} - -// SetLoanType gets a reference to the given string and assigns it to the LoanType field. -func (o *MarginOrderInfo) SetLoanType(v string) { - o.LoanType = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginOrderInfo) SetOrderId(v string) { - o.OrderId = &v -} - -// GetOrderType returns the OrderType field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetOrderType() string { - if o == nil || isNil(o.OrderType) { - var ret string - return ret - } - return *o.OrderType -} - -// GetOrderTypeOk returns a tuple with the OrderType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetOrderTypeOk() (*string, bool) { - if o == nil || isNil(o.OrderType) { - return nil, false - } - return o.OrderType, true -} - -// HasOrderType returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasOrderType() bool { - if o != nil && !isNil(o.OrderType) { - return true - } - - return false -} - -// SetOrderType gets a reference to the given string and assigns it to the OrderType field. -func (o *MarginOrderInfo) SetOrderType(v string) { - o.OrderType = &v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetPrice() string { - if o == nil || isNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetPriceOk() (*string, bool) { - if o == nil || isNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasPrice() bool { - if o != nil && !isNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *MarginOrderInfo) SetPrice(v string) { - o.Price = &v -} - -// GetQuoteAmount returns the QuoteAmount field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetQuoteAmount() string { - if o == nil || isNil(o.QuoteAmount) { - var ret string - return ret - } - return *o.QuoteAmount -} - -// GetQuoteAmountOk returns a tuple with the QuoteAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetQuoteAmountOk() (*string, bool) { - if o == nil || isNil(o.QuoteAmount) { - return nil, false - } - return o.QuoteAmount, true -} - -// HasQuoteAmount returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasQuoteAmount() bool { - if o != nil && !isNil(o.QuoteAmount) { - return true - } - - return false -} - -// SetQuoteAmount gets a reference to the given string and assigns it to the QuoteAmount field. -func (o *MarginOrderInfo) SetQuoteAmount(v string) { - o.QuoteAmount = &v -} - -// GetSide returns the Side field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetSide() string { - if o == nil || isNil(o.Side) { - var ret string - return ret - } - return *o.Side -} - -// GetSideOk returns a tuple with the Side field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetSideOk() (*string, bool) { - if o == nil || isNil(o.Side) { - return nil, false - } - return o.Side, true -} - -// HasSide returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasSide() bool { - if o != nil && !isNil(o.Side) { - return true - } - - return false -} - -// SetSide gets a reference to the given string and assigns it to the Side field. -func (o *MarginOrderInfo) SetSide(v string) { - o.Side = &v -} - -// GetSource returns the Source field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetSource() string { - if o == nil || isNil(o.Source) { - var ret string - return ret - } - return *o.Source -} - -// GetSourceOk returns a tuple with the Source field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetSourceOk() (*string, bool) { - if o == nil || isNil(o.Source) { - return nil, false - } - return o.Source, true -} - -// HasSource returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasSource() bool { - if o != nil && !isNil(o.Source) { - return true - } - - return false -} - -// SetSource gets a reference to the given string and assigns it to the Source field. -func (o *MarginOrderInfo) SetSource(v string) { - o.Source = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *MarginOrderInfo) SetStatus(v string) { - o.Status = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginOrderInfo) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderInfo) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginOrderInfo) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginOrderInfo) SetSymbol(v string) { - o.Symbol = &v -} - -func (o MarginOrderInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BaseQuantity) { - toSerialize["baseQuantity"] = o.BaseQuantity - } - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.FillPrice) { - toSerialize["fillPrice"] = o.FillPrice - } - if !isNil(o.FillQuantity) { - toSerialize["fillQuantity"] = o.FillQuantity - } - if !isNil(o.FillTotalAmount) { - toSerialize["fillTotalAmount"] = o.FillTotalAmount - } - if !isNil(o.LoanType) { - toSerialize["loanType"] = o.LoanType - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - if !isNil(o.OrderType) { - toSerialize["orderType"] = o.OrderType - } - if !isNil(o.Price) { - toSerialize["price"] = o.Price - } - if !isNil(o.QuoteAmount) { - toSerialize["quoteAmount"] = o.QuoteAmount - } - if !isNil(o.Side) { - toSerialize["side"] = o.Side - } - if !isNil(o.Source) { - toSerialize["source"] = o.Source - } - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginOrderInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginOrderInfo := _MarginOrderInfo{} - - if err = json.Unmarshal(bytes, &varMarginOrderInfo); err == nil { - *o = MarginOrderInfo(varMarginOrderInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "baseQuantity") - delete(additionalProperties, "clientOid") - delete(additionalProperties, "ctime") - delete(additionalProperties, "fillPrice") - delete(additionalProperties, "fillQuantity") - delete(additionalProperties, "fillTotalAmount") - delete(additionalProperties, "loanType") - delete(additionalProperties, "orderId") - delete(additionalProperties, "orderType") - delete(additionalProperties, "price") - delete(additionalProperties, "quoteAmount") - delete(additionalProperties, "side") - delete(additionalProperties, "source") - delete(additionalProperties, "status") - delete(additionalProperties, "symbol") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginOrderInfo struct { - value *MarginOrderInfo - isSet bool -} - -func (v NullableMarginOrderInfo) Get() *MarginOrderInfo { - return v.value -} - -func (v *NullableMarginOrderInfo) Set(val *MarginOrderInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginOrderInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginOrderInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginOrderInfo(val *MarginOrderInfo) *NullableMarginOrderInfo { - return &NullableMarginOrderInfo{value: val, isSet: true} -} - -func (v NullableMarginOrderInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginOrderInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_order_request.go b/bitget-goland-sdk-open-api/model_margin_order_request.go deleted file mode 100644 index 6021754d..00000000 --- a/bitget-goland-sdk-open-api/model_margin_order_request.go +++ /dev/null @@ -1,489 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginOrderRequest struct for MarginOrderRequest -type MarginOrderRequest struct { - // baseQuantity - BaseQuantity *string `json:"baseQuantity,omitempty"` - ChannelApiCode *string `json:"channelApiCode,omitempty"` - // clientOid - ClientOid *string `json:"clientOid,omitempty"` - Ip *string `json:"ip,omitempty"` - // loanType - LoanType string `json:"loanType"` - // orderType - OrderType string `json:"orderType"` - // price - Price *string `json:"price,omitempty"` - // quoteAmount - QuoteAmount *string `json:"quoteAmount,omitempty"` - // side - Side string `json:"side"` - // symbol - Symbol string `json:"symbol"` - // timeInForce - TimeInForce *string `json:"timeInForce,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginOrderRequest MarginOrderRequest - -// NewMarginOrderRequest instantiates a new MarginOrderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginOrderRequest(loanType string, orderType string, side string, symbol string) *MarginOrderRequest { - this := MarginOrderRequest{} - this.LoanType = loanType - this.OrderType = orderType - this.Side = side - this.Symbol = symbol - return &this -} - -// NewMarginOrderRequestWithDefaults instantiates a new MarginOrderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginOrderRequestWithDefaults() *MarginOrderRequest { - this := MarginOrderRequest{} - return &this -} - -// GetBaseQuantity returns the BaseQuantity field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetBaseQuantity() string { - if o == nil || isNil(o.BaseQuantity) { - var ret string - return ret - } - return *o.BaseQuantity -} - -// GetBaseQuantityOk returns a tuple with the BaseQuantity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetBaseQuantityOk() (*string, bool) { - if o == nil || isNil(o.BaseQuantity) { - return nil, false - } - return o.BaseQuantity, true -} - -// HasBaseQuantity returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasBaseQuantity() bool { - if o != nil && !isNil(o.BaseQuantity) { - return true - } - - return false -} - -// SetBaseQuantity gets a reference to the given string and assigns it to the BaseQuantity field. -func (o *MarginOrderRequest) SetBaseQuantity(v string) { - o.BaseQuantity = &v -} - -// GetChannelApiCode returns the ChannelApiCode field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetChannelApiCode() string { - if o == nil || isNil(o.ChannelApiCode) { - var ret string - return ret - } - return *o.ChannelApiCode -} - -// GetChannelApiCodeOk returns a tuple with the ChannelApiCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetChannelApiCodeOk() (*string, bool) { - if o == nil || isNil(o.ChannelApiCode) { - return nil, false - } - return o.ChannelApiCode, true -} - -// HasChannelApiCode returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasChannelApiCode() bool { - if o != nil && !isNil(o.ChannelApiCode) { - return true - } - - return false -} - -// SetChannelApiCode gets a reference to the given string and assigns it to the ChannelApiCode field. -func (o *MarginOrderRequest) SetChannelApiCode(v string) { - o.ChannelApiCode = &v -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginOrderRequest) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetIp returns the Ip field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetIp() string { - if o == nil || isNil(o.Ip) { - var ret string - return ret - } - return *o.Ip -} - -// GetIpOk returns a tuple with the Ip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetIpOk() (*string, bool) { - if o == nil || isNil(o.Ip) { - return nil, false - } - return o.Ip, true -} - -// HasIp returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasIp() bool { - if o != nil && !isNil(o.Ip) { - return true - } - - return false -} - -// SetIp gets a reference to the given string and assigns it to the Ip field. -func (o *MarginOrderRequest) SetIp(v string) { - o.Ip = &v -} - -// GetLoanType returns the LoanType field value -func (o *MarginOrderRequest) GetLoanType() string { - if o == nil { - var ret string - return ret - } - - return o.LoanType -} - -// GetLoanTypeOk returns a tuple with the LoanType field value -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetLoanTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoanType, true -} - -// SetLoanType sets field value -func (o *MarginOrderRequest) SetLoanType(v string) { - o.LoanType = v -} - -// GetOrderType returns the OrderType field value -func (o *MarginOrderRequest) GetOrderType() string { - if o == nil { - var ret string - return ret - } - - return o.OrderType -} - -// GetOrderTypeOk returns a tuple with the OrderType field value -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetOrderTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.OrderType, true -} - -// SetOrderType sets field value -func (o *MarginOrderRequest) SetOrderType(v string) { - o.OrderType = v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetPrice() string { - if o == nil || isNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetPriceOk() (*string, bool) { - if o == nil || isNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasPrice() bool { - if o != nil && !isNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *MarginOrderRequest) SetPrice(v string) { - o.Price = &v -} - -// GetQuoteAmount returns the QuoteAmount field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetQuoteAmount() string { - if o == nil || isNil(o.QuoteAmount) { - var ret string - return ret - } - return *o.QuoteAmount -} - -// GetQuoteAmountOk returns a tuple with the QuoteAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetQuoteAmountOk() (*string, bool) { - if o == nil || isNil(o.QuoteAmount) { - return nil, false - } - return o.QuoteAmount, true -} - -// HasQuoteAmount returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasQuoteAmount() bool { - if o != nil && !isNil(o.QuoteAmount) { - return true - } - - return false -} - -// SetQuoteAmount gets a reference to the given string and assigns it to the QuoteAmount field. -func (o *MarginOrderRequest) SetQuoteAmount(v string) { - o.QuoteAmount = &v -} - -// GetSide returns the Side field value -func (o *MarginOrderRequest) GetSide() string { - if o == nil { - var ret string - return ret - } - - return o.Side -} - -// GetSideOk returns a tuple with the Side field value -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetSideOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Side, true -} - -// SetSide sets field value -func (o *MarginOrderRequest) SetSide(v string) { - o.Side = v -} - -// GetSymbol returns the Symbol field value -func (o *MarginOrderRequest) GetSymbol() string { - if o == nil { - var ret string - return ret - } - - return o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetSymbolOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Symbol, true -} - -// SetSymbol sets field value -func (o *MarginOrderRequest) SetSymbol(v string) { - o.Symbol = v -} - -// GetTimeInForce returns the TimeInForce field value if set, zero value otherwise. -func (o *MarginOrderRequest) GetTimeInForce() string { - if o == nil || isNil(o.TimeInForce) { - var ret string - return ret - } - return *o.TimeInForce -} - -// GetTimeInForceOk returns a tuple with the TimeInForce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginOrderRequest) GetTimeInForceOk() (*string, bool) { - if o == nil || isNil(o.TimeInForce) { - return nil, false - } - return o.TimeInForce, true -} - -// HasTimeInForce returns a boolean if a field has been set. -func (o *MarginOrderRequest) HasTimeInForce() bool { - if o != nil && !isNil(o.TimeInForce) { - return true - } - - return false -} - -// SetTimeInForce gets a reference to the given string and assigns it to the TimeInForce field. -func (o *MarginOrderRequest) SetTimeInForce(v string) { - o.TimeInForce = &v -} - -func (o MarginOrderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BaseQuantity) { - toSerialize["baseQuantity"] = o.BaseQuantity - } - if !isNil(o.ChannelApiCode) { - toSerialize["channelApiCode"] = o.ChannelApiCode - } - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.Ip) { - toSerialize["ip"] = o.Ip - } - if true { - toSerialize["loanType"] = o.LoanType - } - if true { - toSerialize["orderType"] = o.OrderType - } - if !isNil(o.Price) { - toSerialize["price"] = o.Price - } - if !isNil(o.QuoteAmount) { - toSerialize["quoteAmount"] = o.QuoteAmount - } - if true { - toSerialize["side"] = o.Side - } - if true { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.TimeInForce) { - toSerialize["timeInForce"] = o.TimeInForce - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginOrderRequest) UnmarshalJSON(bytes []byte) (err error) { - varMarginOrderRequest := _MarginOrderRequest{} - - if err = json.Unmarshal(bytes, &varMarginOrderRequest); err == nil { - *o = MarginOrderRequest(varMarginOrderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "baseQuantity") - delete(additionalProperties, "channelApiCode") - delete(additionalProperties, "clientOid") - delete(additionalProperties, "ip") - delete(additionalProperties, "loanType") - delete(additionalProperties, "orderType") - delete(additionalProperties, "price") - delete(additionalProperties, "quoteAmount") - delete(additionalProperties, "side") - delete(additionalProperties, "symbol") - delete(additionalProperties, "timeInForce") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginOrderRequest struct { - value *MarginOrderRequest - isSet bool -} - -func (v NullableMarginOrderRequest) Get() *MarginOrderRequest { - return v.value -} - -func (v *NullableMarginOrderRequest) Set(val *MarginOrderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMarginOrderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginOrderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginOrderRequest(val *MarginOrderRequest) *NullableMarginOrderRequest { - return &NullableMarginOrderRequest{value: val, isSet: true} -} - -func (v NullableMarginOrderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginOrderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_place_order_result.go b/bitget-goland-sdk-open-api/model_margin_place_order_result.go deleted file mode 100644 index e527e053..00000000 --- a/bitget-goland-sdk-open-api/model_margin_place_order_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginPlaceOrderResult struct for MarginPlaceOrderResult -type MarginPlaceOrderResult struct { - ClientOid *string `json:"clientOid,omitempty"` - OrderId *string `json:"orderId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginPlaceOrderResult MarginPlaceOrderResult - -// NewMarginPlaceOrderResult instantiates a new MarginPlaceOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginPlaceOrderResult() *MarginPlaceOrderResult { - this := MarginPlaceOrderResult{} - return &this -} - -// NewMarginPlaceOrderResultWithDefaults instantiates a new MarginPlaceOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginPlaceOrderResultWithDefaults() *MarginPlaceOrderResult { - this := MarginPlaceOrderResult{} - return &this -} - -// GetClientOid returns the ClientOid field value if set, zero value otherwise. -func (o *MarginPlaceOrderResult) GetClientOid() string { - if o == nil || isNil(o.ClientOid) { - var ret string - return ret - } - return *o.ClientOid -} - -// GetClientOidOk returns a tuple with the ClientOid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginPlaceOrderResult) GetClientOidOk() (*string, bool) { - if o == nil || isNil(o.ClientOid) { - return nil, false - } - return o.ClientOid, true -} - -// HasClientOid returns a boolean if a field has been set. -func (o *MarginPlaceOrderResult) HasClientOid() bool { - if o != nil && !isNil(o.ClientOid) { - return true - } - - return false -} - -// SetClientOid gets a reference to the given string and assigns it to the ClientOid field. -func (o *MarginPlaceOrderResult) SetClientOid(v string) { - o.ClientOid = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginPlaceOrderResult) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginPlaceOrderResult) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginPlaceOrderResult) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginPlaceOrderResult) SetOrderId(v string) { - o.OrderId = &v -} - -func (o MarginPlaceOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ClientOid) { - toSerialize["clientOid"] = o.ClientOid - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginPlaceOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginPlaceOrderResult := _MarginPlaceOrderResult{} - - if err = json.Unmarshal(bytes, &varMarginPlaceOrderResult); err == nil { - *o = MarginPlaceOrderResult(varMarginPlaceOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "clientOid") - delete(additionalProperties, "orderId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginPlaceOrderResult struct { - value *MarginPlaceOrderResult - isSet bool -} - -func (v NullableMarginPlaceOrderResult) Get() *MarginPlaceOrderResult { - return v.value -} - -func (v *NullableMarginPlaceOrderResult) Set(val *MarginPlaceOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginPlaceOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginPlaceOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginPlaceOrderResult(val *MarginPlaceOrderResult) *NullableMarginPlaceOrderResult { - return &NullableMarginPlaceOrderResult{value: val, isSet: true} -} - -func (v NullableMarginPlaceOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginPlaceOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_repay_info.go b/bitget-goland-sdk-open-api/model_margin_repay_info.go deleted file mode 100644 index 12693fea..00000000 --- a/bitget-goland-sdk-open-api/model_margin_repay_info.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginRepayInfo struct for MarginRepayInfo -type MarginRepayInfo struct { - Amount *string `json:"amount,omitempty"` - Coin *string `json:"coin,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Interest *string `json:"interest,omitempty"` - RepayId *string `json:"repayId,omitempty"` - TotalAmount *string `json:"totalAmount,omitempty"` - Type *string `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginRepayInfo MarginRepayInfo - -// NewMarginRepayInfo instantiates a new MarginRepayInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginRepayInfo() *MarginRepayInfo { - this := MarginRepayInfo{} - return &this -} - -// NewMarginRepayInfoWithDefaults instantiates a new MarginRepayInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginRepayInfoWithDefaults() *MarginRepayInfo { - this := MarginRepayInfo{} - return &this -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MarginRepayInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MarginRepayInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginRepayInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetInterest returns the Interest field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetInterest() string { - if o == nil || isNil(o.Interest) { - var ret string - return ret - } - return *o.Interest -} - -// GetInterestOk returns a tuple with the Interest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetInterestOk() (*string, bool) { - if o == nil || isNil(o.Interest) { - return nil, false - } - return o.Interest, true -} - -// HasInterest returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasInterest() bool { - if o != nil && !isNil(o.Interest) { - return true - } - - return false -} - -// SetInterest gets a reference to the given string and assigns it to the Interest field. -func (o *MarginRepayInfo) SetInterest(v string) { - o.Interest = &v -} - -// GetRepayId returns the RepayId field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetRepayId() string { - if o == nil || isNil(o.RepayId) { - var ret string - return ret - } - return *o.RepayId -} - -// GetRepayIdOk returns a tuple with the RepayId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetRepayIdOk() (*string, bool) { - if o == nil || isNil(o.RepayId) { - return nil, false - } - return o.RepayId, true -} - -// HasRepayId returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasRepayId() bool { - if o != nil && !isNil(o.RepayId) { - return true - } - - return false -} - -// SetRepayId gets a reference to the given string and assigns it to the RepayId field. -func (o *MarginRepayInfo) SetRepayId(v string) { - o.RepayId = &v -} - -// GetTotalAmount returns the TotalAmount field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetTotalAmount() string { - if o == nil || isNil(o.TotalAmount) { - var ret string - return ret - } - return *o.TotalAmount -} - -// GetTotalAmountOk returns a tuple with the TotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.TotalAmount) { - return nil, false - } - return o.TotalAmount, true -} - -// HasTotalAmount returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasTotalAmount() bool { - if o != nil && !isNil(o.TotalAmount) { - return true - } - - return false -} - -// SetTotalAmount gets a reference to the given string and assigns it to the TotalAmount field. -func (o *MarginRepayInfo) SetTotalAmount(v string) { - o.TotalAmount = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MarginRepayInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MarginRepayInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MarginRepayInfo) SetType(v string) { - o.Type = &v -} - -func (o MarginRepayInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Interest) { - toSerialize["interest"] = o.Interest - } - if !isNil(o.RepayId) { - toSerialize["repayId"] = o.RepayId - } - if !isNil(o.TotalAmount) { - toSerialize["totalAmount"] = o.TotalAmount - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginRepayInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginRepayInfo := _MarginRepayInfo{} - - if err = json.Unmarshal(bytes, &varMarginRepayInfo); err == nil { - *o = MarginRepayInfo(varMarginRepayInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "amount") - delete(additionalProperties, "coin") - delete(additionalProperties, "ctime") - delete(additionalProperties, "interest") - delete(additionalProperties, "repayId") - delete(additionalProperties, "totalAmount") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginRepayInfo struct { - value *MarginRepayInfo - isSet bool -} - -func (v NullableMarginRepayInfo) Get() *MarginRepayInfo { - return v.value -} - -func (v *NullableMarginRepayInfo) Set(val *MarginRepayInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginRepayInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginRepayInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginRepayInfo(val *MarginRepayInfo) *NullableMarginRepayInfo { - return &NullableMarginRepayInfo{value: val, isSet: true} -} - -func (v NullableMarginRepayInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginRepayInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_repay_info_result.go b/bitget-goland-sdk-open-api/model_margin_repay_info_result.go deleted file mode 100644 index 23b5eeb3..00000000 --- a/bitget-goland-sdk-open-api/model_margin_repay_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginRepayInfoResult struct for MarginRepayInfoResult -type MarginRepayInfoResult struct { - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - ResultList []MarginRepayInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginRepayInfoResult MarginRepayInfoResult - -// NewMarginRepayInfoResult instantiates a new MarginRepayInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginRepayInfoResult() *MarginRepayInfoResult { - this := MarginRepayInfoResult{} - return &this -} - -// NewMarginRepayInfoResultWithDefaults instantiates a new MarginRepayInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginRepayInfoResultWithDefaults() *MarginRepayInfoResult { - this := MarginRepayInfoResult{} - return &this -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginRepayInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginRepayInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginRepayInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginRepayInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginRepayInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginRepayInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MarginRepayInfoResult) GetResultList() []MarginRepayInfo { - if o == nil || isNil(o.ResultList) { - var ret []MarginRepayInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginRepayInfoResult) GetResultListOk() ([]MarginRepayInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MarginRepayInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MarginRepayInfo and assigns it to the ResultList field. -func (o *MarginRepayInfoResult) SetResultList(v []MarginRepayInfo) { - o.ResultList = v -} - -func (o MarginRepayInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginRepayInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginRepayInfoResult := _MarginRepayInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginRepayInfoResult); err == nil { - *o = MarginRepayInfoResult(varMarginRepayInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginRepayInfoResult struct { - value *MarginRepayInfoResult - isSet bool -} - -func (v NullableMarginRepayInfoResult) Get() *MarginRepayInfoResult { - return v.value -} - -func (v *NullableMarginRepayInfoResult) Set(val *MarginRepayInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginRepayInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginRepayInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginRepayInfoResult(val *MarginRepayInfoResult) *NullableMarginRepayInfoResult { - return &NullableMarginRepayInfoResult{value: val, isSet: true} -} - -func (v NullableMarginRepayInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginRepayInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_system_result.go b/bitget-goland-sdk-open-api/model_margin_system_result.go deleted file mode 100644 index 3da2d915..00000000 --- a/bitget-goland-sdk-open-api/model_margin_system_result.go +++ /dev/null @@ -1,730 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginSystemResult struct for MarginSystemResult -type MarginSystemResult struct { - BaseCoin *string `json:"baseCoin,omitempty"` - IsBorrowable *bool `json:"isBorrowable,omitempty"` - LiquidationRiskRatio *string `json:"liquidationRiskRatio,omitempty"` - MakerFeeRate *string `json:"makerFeeRate,omitempty"` - MaxCrossLeverage *string `json:"maxCrossLeverage,omitempty"` - MaxIsolatedLeverage *string `json:"maxIsolatedLeverage,omitempty"` - MaxTradeAmount *string `json:"maxTradeAmount,omitempty"` - MinTradeAmount *string `json:"minTradeAmount,omitempty"` - MinTradeUSDT *string `json:"minTradeUSDT,omitempty"` - PriceScale *string `json:"priceScale,omitempty"` - QuantityScale *string `json:"quantityScale,omitempty"` - QuoteCoin *string `json:"quoteCoin,omitempty"` - Status *string `json:"status,omitempty"` - Symbol *string `json:"symbol,omitempty"` - TakerFeeRate *string `json:"takerFeeRate,omitempty"` - UserMinBorrow *string `json:"userMinBorrow,omitempty"` - WarningRiskRatio *string `json:"warningRiskRatio,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginSystemResult MarginSystemResult - -// NewMarginSystemResult instantiates a new MarginSystemResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginSystemResult() *MarginSystemResult { - this := MarginSystemResult{} - return &this -} - -// NewMarginSystemResultWithDefaults instantiates a new MarginSystemResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginSystemResultWithDefaults() *MarginSystemResult { - this := MarginSystemResult{} - return &this -} - -// GetBaseCoin returns the BaseCoin field value if set, zero value otherwise. -func (o *MarginSystemResult) GetBaseCoin() string { - if o == nil || isNil(o.BaseCoin) { - var ret string - return ret - } - return *o.BaseCoin -} - -// GetBaseCoinOk returns a tuple with the BaseCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetBaseCoinOk() (*string, bool) { - if o == nil || isNil(o.BaseCoin) { - return nil, false - } - return o.BaseCoin, true -} - -// HasBaseCoin returns a boolean if a field has been set. -func (o *MarginSystemResult) HasBaseCoin() bool { - if o != nil && !isNil(o.BaseCoin) { - return true - } - - return false -} - -// SetBaseCoin gets a reference to the given string and assigns it to the BaseCoin field. -func (o *MarginSystemResult) SetBaseCoin(v string) { - o.BaseCoin = &v -} - -// GetIsBorrowable returns the IsBorrowable field value if set, zero value otherwise. -func (o *MarginSystemResult) GetIsBorrowable() bool { - if o == nil || isNil(o.IsBorrowable) { - var ret bool - return ret - } - return *o.IsBorrowable -} - -// GetIsBorrowableOk returns a tuple with the IsBorrowable field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetIsBorrowableOk() (*bool, bool) { - if o == nil || isNil(o.IsBorrowable) { - return nil, false - } - return o.IsBorrowable, true -} - -// HasIsBorrowable returns a boolean if a field has been set. -func (o *MarginSystemResult) HasIsBorrowable() bool { - if o != nil && !isNil(o.IsBorrowable) { - return true - } - - return false -} - -// SetIsBorrowable gets a reference to the given bool and assigns it to the IsBorrowable field. -func (o *MarginSystemResult) SetIsBorrowable(v bool) { - o.IsBorrowable = &v -} - -// GetLiquidationRiskRatio returns the LiquidationRiskRatio field value if set, zero value otherwise. -func (o *MarginSystemResult) GetLiquidationRiskRatio() string { - if o == nil || isNil(o.LiquidationRiskRatio) { - var ret string - return ret - } - return *o.LiquidationRiskRatio -} - -// GetLiquidationRiskRatioOk returns a tuple with the LiquidationRiskRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetLiquidationRiskRatioOk() (*string, bool) { - if o == nil || isNil(o.LiquidationRiskRatio) { - return nil, false - } - return o.LiquidationRiskRatio, true -} - -// HasLiquidationRiskRatio returns a boolean if a field has been set. -func (o *MarginSystemResult) HasLiquidationRiskRatio() bool { - if o != nil && !isNil(o.LiquidationRiskRatio) { - return true - } - - return false -} - -// SetLiquidationRiskRatio gets a reference to the given string and assigns it to the LiquidationRiskRatio field. -func (o *MarginSystemResult) SetLiquidationRiskRatio(v string) { - o.LiquidationRiskRatio = &v -} - -// GetMakerFeeRate returns the MakerFeeRate field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMakerFeeRate() string { - if o == nil || isNil(o.MakerFeeRate) { - var ret string - return ret - } - return *o.MakerFeeRate -} - -// GetMakerFeeRateOk returns a tuple with the MakerFeeRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMakerFeeRateOk() (*string, bool) { - if o == nil || isNil(o.MakerFeeRate) { - return nil, false - } - return o.MakerFeeRate, true -} - -// HasMakerFeeRate returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMakerFeeRate() bool { - if o != nil && !isNil(o.MakerFeeRate) { - return true - } - - return false -} - -// SetMakerFeeRate gets a reference to the given string and assigns it to the MakerFeeRate field. -func (o *MarginSystemResult) SetMakerFeeRate(v string) { - o.MakerFeeRate = &v -} - -// GetMaxCrossLeverage returns the MaxCrossLeverage field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMaxCrossLeverage() string { - if o == nil || isNil(o.MaxCrossLeverage) { - var ret string - return ret - } - return *o.MaxCrossLeverage -} - -// GetMaxCrossLeverageOk returns a tuple with the MaxCrossLeverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMaxCrossLeverageOk() (*string, bool) { - if o == nil || isNil(o.MaxCrossLeverage) { - return nil, false - } - return o.MaxCrossLeverage, true -} - -// HasMaxCrossLeverage returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMaxCrossLeverage() bool { - if o != nil && !isNil(o.MaxCrossLeverage) { - return true - } - - return false -} - -// SetMaxCrossLeverage gets a reference to the given string and assigns it to the MaxCrossLeverage field. -func (o *MarginSystemResult) SetMaxCrossLeverage(v string) { - o.MaxCrossLeverage = &v -} - -// GetMaxIsolatedLeverage returns the MaxIsolatedLeverage field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMaxIsolatedLeverage() string { - if o == nil || isNil(o.MaxIsolatedLeverage) { - var ret string - return ret - } - return *o.MaxIsolatedLeverage -} - -// GetMaxIsolatedLeverageOk returns a tuple with the MaxIsolatedLeverage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMaxIsolatedLeverageOk() (*string, bool) { - if o == nil || isNil(o.MaxIsolatedLeverage) { - return nil, false - } - return o.MaxIsolatedLeverage, true -} - -// HasMaxIsolatedLeverage returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMaxIsolatedLeverage() bool { - if o != nil && !isNil(o.MaxIsolatedLeverage) { - return true - } - - return false -} - -// SetMaxIsolatedLeverage gets a reference to the given string and assigns it to the MaxIsolatedLeverage field. -func (o *MarginSystemResult) SetMaxIsolatedLeverage(v string) { - o.MaxIsolatedLeverage = &v -} - -// GetMaxTradeAmount returns the MaxTradeAmount field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMaxTradeAmount() string { - if o == nil || isNil(o.MaxTradeAmount) { - var ret string - return ret - } - return *o.MaxTradeAmount -} - -// GetMaxTradeAmountOk returns a tuple with the MaxTradeAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMaxTradeAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxTradeAmount) { - return nil, false - } - return o.MaxTradeAmount, true -} - -// HasMaxTradeAmount returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMaxTradeAmount() bool { - if o != nil && !isNil(o.MaxTradeAmount) { - return true - } - - return false -} - -// SetMaxTradeAmount gets a reference to the given string and assigns it to the MaxTradeAmount field. -func (o *MarginSystemResult) SetMaxTradeAmount(v string) { - o.MaxTradeAmount = &v -} - -// GetMinTradeAmount returns the MinTradeAmount field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMinTradeAmount() string { - if o == nil || isNil(o.MinTradeAmount) { - var ret string - return ret - } - return *o.MinTradeAmount -} - -// GetMinTradeAmountOk returns a tuple with the MinTradeAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMinTradeAmountOk() (*string, bool) { - if o == nil || isNil(o.MinTradeAmount) { - return nil, false - } - return o.MinTradeAmount, true -} - -// HasMinTradeAmount returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMinTradeAmount() bool { - if o != nil && !isNil(o.MinTradeAmount) { - return true - } - - return false -} - -// SetMinTradeAmount gets a reference to the given string and assigns it to the MinTradeAmount field. -func (o *MarginSystemResult) SetMinTradeAmount(v string) { - o.MinTradeAmount = &v -} - -// GetMinTradeUSDT returns the MinTradeUSDT field value if set, zero value otherwise. -func (o *MarginSystemResult) GetMinTradeUSDT() string { - if o == nil || isNil(o.MinTradeUSDT) { - var ret string - return ret - } - return *o.MinTradeUSDT -} - -// GetMinTradeUSDTOk returns a tuple with the MinTradeUSDT field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetMinTradeUSDTOk() (*string, bool) { - if o == nil || isNil(o.MinTradeUSDT) { - return nil, false - } - return o.MinTradeUSDT, true -} - -// HasMinTradeUSDT returns a boolean if a field has been set. -func (o *MarginSystemResult) HasMinTradeUSDT() bool { - if o != nil && !isNil(o.MinTradeUSDT) { - return true - } - - return false -} - -// SetMinTradeUSDT gets a reference to the given string and assigns it to the MinTradeUSDT field. -func (o *MarginSystemResult) SetMinTradeUSDT(v string) { - o.MinTradeUSDT = &v -} - -// GetPriceScale returns the PriceScale field value if set, zero value otherwise. -func (o *MarginSystemResult) GetPriceScale() string { - if o == nil || isNil(o.PriceScale) { - var ret string - return ret - } - return *o.PriceScale -} - -// GetPriceScaleOk returns a tuple with the PriceScale field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetPriceScaleOk() (*string, bool) { - if o == nil || isNil(o.PriceScale) { - return nil, false - } - return o.PriceScale, true -} - -// HasPriceScale returns a boolean if a field has been set. -func (o *MarginSystemResult) HasPriceScale() bool { - if o != nil && !isNil(o.PriceScale) { - return true - } - - return false -} - -// SetPriceScale gets a reference to the given string and assigns it to the PriceScale field. -func (o *MarginSystemResult) SetPriceScale(v string) { - o.PriceScale = &v -} - -// GetQuantityScale returns the QuantityScale field value if set, zero value otherwise. -func (o *MarginSystemResult) GetQuantityScale() string { - if o == nil || isNil(o.QuantityScale) { - var ret string - return ret - } - return *o.QuantityScale -} - -// GetQuantityScaleOk returns a tuple with the QuantityScale field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetQuantityScaleOk() (*string, bool) { - if o == nil || isNil(o.QuantityScale) { - return nil, false - } - return o.QuantityScale, true -} - -// HasQuantityScale returns a boolean if a field has been set. -func (o *MarginSystemResult) HasQuantityScale() bool { - if o != nil && !isNil(o.QuantityScale) { - return true - } - - return false -} - -// SetQuantityScale gets a reference to the given string and assigns it to the QuantityScale field. -func (o *MarginSystemResult) SetQuantityScale(v string) { - o.QuantityScale = &v -} - -// GetQuoteCoin returns the QuoteCoin field value if set, zero value otherwise. -func (o *MarginSystemResult) GetQuoteCoin() string { - if o == nil || isNil(o.QuoteCoin) { - var ret string - return ret - } - return *o.QuoteCoin -} - -// GetQuoteCoinOk returns a tuple with the QuoteCoin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetQuoteCoinOk() (*string, bool) { - if o == nil || isNil(o.QuoteCoin) { - return nil, false - } - return o.QuoteCoin, true -} - -// HasQuoteCoin returns a boolean if a field has been set. -func (o *MarginSystemResult) HasQuoteCoin() bool { - if o != nil && !isNil(o.QuoteCoin) { - return true - } - - return false -} - -// SetQuoteCoin gets a reference to the given string and assigns it to the QuoteCoin field. -func (o *MarginSystemResult) SetQuoteCoin(v string) { - o.QuoteCoin = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *MarginSystemResult) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *MarginSystemResult) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *MarginSystemResult) SetStatus(v string) { - o.Status = &v -} - -// GetSymbol returns the Symbol field value if set, zero value otherwise. -func (o *MarginSystemResult) GetSymbol() string { - if o == nil || isNil(o.Symbol) { - var ret string - return ret - } - return *o.Symbol -} - -// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetSymbolOk() (*string, bool) { - if o == nil || isNil(o.Symbol) { - return nil, false - } - return o.Symbol, true -} - -// HasSymbol returns a boolean if a field has been set. -func (o *MarginSystemResult) HasSymbol() bool { - if o != nil && !isNil(o.Symbol) { - return true - } - - return false -} - -// SetSymbol gets a reference to the given string and assigns it to the Symbol field. -func (o *MarginSystemResult) SetSymbol(v string) { - o.Symbol = &v -} - -// GetTakerFeeRate returns the TakerFeeRate field value if set, zero value otherwise. -func (o *MarginSystemResult) GetTakerFeeRate() string { - if o == nil || isNil(o.TakerFeeRate) { - var ret string - return ret - } - return *o.TakerFeeRate -} - -// GetTakerFeeRateOk returns a tuple with the TakerFeeRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetTakerFeeRateOk() (*string, bool) { - if o == nil || isNil(o.TakerFeeRate) { - return nil, false - } - return o.TakerFeeRate, true -} - -// HasTakerFeeRate returns a boolean if a field has been set. -func (o *MarginSystemResult) HasTakerFeeRate() bool { - if o != nil && !isNil(o.TakerFeeRate) { - return true - } - - return false -} - -// SetTakerFeeRate gets a reference to the given string and assigns it to the TakerFeeRate field. -func (o *MarginSystemResult) SetTakerFeeRate(v string) { - o.TakerFeeRate = &v -} - -// GetUserMinBorrow returns the UserMinBorrow field value if set, zero value otherwise. -func (o *MarginSystemResult) GetUserMinBorrow() string { - if o == nil || isNil(o.UserMinBorrow) { - var ret string - return ret - } - return *o.UserMinBorrow -} - -// GetUserMinBorrowOk returns a tuple with the UserMinBorrow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetUserMinBorrowOk() (*string, bool) { - if o == nil || isNil(o.UserMinBorrow) { - return nil, false - } - return o.UserMinBorrow, true -} - -// HasUserMinBorrow returns a boolean if a field has been set. -func (o *MarginSystemResult) HasUserMinBorrow() bool { - if o != nil && !isNil(o.UserMinBorrow) { - return true - } - - return false -} - -// SetUserMinBorrow gets a reference to the given string and assigns it to the UserMinBorrow field. -func (o *MarginSystemResult) SetUserMinBorrow(v string) { - o.UserMinBorrow = &v -} - -// GetWarningRiskRatio returns the WarningRiskRatio field value if set, zero value otherwise. -func (o *MarginSystemResult) GetWarningRiskRatio() string { - if o == nil || isNil(o.WarningRiskRatio) { - var ret string - return ret - } - return *o.WarningRiskRatio -} - -// GetWarningRiskRatioOk returns a tuple with the WarningRiskRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginSystemResult) GetWarningRiskRatioOk() (*string, bool) { - if o == nil || isNil(o.WarningRiskRatio) { - return nil, false - } - return o.WarningRiskRatio, true -} - -// HasWarningRiskRatio returns a boolean if a field has been set. -func (o *MarginSystemResult) HasWarningRiskRatio() bool { - if o != nil && !isNil(o.WarningRiskRatio) { - return true - } - - return false -} - -// SetWarningRiskRatio gets a reference to the given string and assigns it to the WarningRiskRatio field. -func (o *MarginSystemResult) SetWarningRiskRatio(v string) { - o.WarningRiskRatio = &v -} - -func (o MarginSystemResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BaseCoin) { - toSerialize["baseCoin"] = o.BaseCoin - } - if !isNil(o.IsBorrowable) { - toSerialize["isBorrowable"] = o.IsBorrowable - } - if !isNil(o.LiquidationRiskRatio) { - toSerialize["liquidationRiskRatio"] = o.LiquidationRiskRatio - } - if !isNil(o.MakerFeeRate) { - toSerialize["makerFeeRate"] = o.MakerFeeRate - } - if !isNil(o.MaxCrossLeverage) { - toSerialize["maxCrossLeverage"] = o.MaxCrossLeverage - } - if !isNil(o.MaxIsolatedLeverage) { - toSerialize["maxIsolatedLeverage"] = o.MaxIsolatedLeverage - } - if !isNil(o.MaxTradeAmount) { - toSerialize["maxTradeAmount"] = o.MaxTradeAmount - } - if !isNil(o.MinTradeAmount) { - toSerialize["minTradeAmount"] = o.MinTradeAmount - } - if !isNil(o.MinTradeUSDT) { - toSerialize["minTradeUSDT"] = o.MinTradeUSDT - } - if !isNil(o.PriceScale) { - toSerialize["priceScale"] = o.PriceScale - } - if !isNil(o.QuantityScale) { - toSerialize["quantityScale"] = o.QuantityScale - } - if !isNil(o.QuoteCoin) { - toSerialize["quoteCoin"] = o.QuoteCoin - } - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.Symbol) { - toSerialize["symbol"] = o.Symbol - } - if !isNil(o.TakerFeeRate) { - toSerialize["takerFeeRate"] = o.TakerFeeRate - } - if !isNil(o.UserMinBorrow) { - toSerialize["userMinBorrow"] = o.UserMinBorrow - } - if !isNil(o.WarningRiskRatio) { - toSerialize["warningRiskRatio"] = o.WarningRiskRatio - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginSystemResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginSystemResult := _MarginSystemResult{} - - if err = json.Unmarshal(bytes, &varMarginSystemResult); err == nil { - *o = MarginSystemResult(varMarginSystemResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "baseCoin") - delete(additionalProperties, "isBorrowable") - delete(additionalProperties, "liquidationRiskRatio") - delete(additionalProperties, "makerFeeRate") - delete(additionalProperties, "maxCrossLeverage") - delete(additionalProperties, "maxIsolatedLeverage") - delete(additionalProperties, "maxTradeAmount") - delete(additionalProperties, "minTradeAmount") - delete(additionalProperties, "minTradeUSDT") - delete(additionalProperties, "priceScale") - delete(additionalProperties, "quantityScale") - delete(additionalProperties, "quoteCoin") - delete(additionalProperties, "status") - delete(additionalProperties, "symbol") - delete(additionalProperties, "takerFeeRate") - delete(additionalProperties, "userMinBorrow") - delete(additionalProperties, "warningRiskRatio") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginSystemResult struct { - value *MarginSystemResult - isSet bool -} - -func (v NullableMarginSystemResult) Get() *MarginSystemResult { - return v.value -} - -func (v *NullableMarginSystemResult) Set(val *MarginSystemResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginSystemResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginSystemResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginSystemResult(val *MarginSystemResult) *NullableMarginSystemResult { - return &NullableMarginSystemResult{value: val, isSet: true} -} - -func (v NullableMarginSystemResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginSystemResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_trade_detail_info.go b/bitget-goland-sdk-open-api/model_margin_trade_detail_info.go deleted file mode 100644 index ee4477fc..00000000 --- a/bitget-goland-sdk-open-api/model_margin_trade_detail_info.go +++ /dev/null @@ -1,471 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginTradeDetailInfo struct for MarginTradeDetailInfo -type MarginTradeDetailInfo struct { - Ctime *string `json:"ctime,omitempty"` - FeeCcy *string `json:"feeCcy,omitempty"` - Fees *string `json:"fees,omitempty"` - FillId *string `json:"fillId,omitempty"` - FillPrice *string `json:"fillPrice,omitempty"` - FillQuantity *string `json:"fillQuantity,omitempty"` - FillTotalAmount *string `json:"fillTotalAmount,omitempty"` - OrderId *string `json:"orderId,omitempty"` - OrderType *string `json:"orderType,omitempty"` - Side *string `json:"side,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginTradeDetailInfo MarginTradeDetailInfo - -// NewMarginTradeDetailInfo instantiates a new MarginTradeDetailInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginTradeDetailInfo() *MarginTradeDetailInfo { - this := MarginTradeDetailInfo{} - return &this -} - -// NewMarginTradeDetailInfoWithDefaults instantiates a new MarginTradeDetailInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginTradeDetailInfoWithDefaults() *MarginTradeDetailInfo { - this := MarginTradeDetailInfo{} - return &this -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MarginTradeDetailInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetFeeCcy returns the FeeCcy field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFeeCcy() string { - if o == nil || isNil(o.FeeCcy) { - var ret string - return ret - } - return *o.FeeCcy -} - -// GetFeeCcyOk returns a tuple with the FeeCcy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFeeCcyOk() (*string, bool) { - if o == nil || isNil(o.FeeCcy) { - return nil, false - } - return o.FeeCcy, true -} - -// HasFeeCcy returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFeeCcy() bool { - if o != nil && !isNil(o.FeeCcy) { - return true - } - - return false -} - -// SetFeeCcy gets a reference to the given string and assigns it to the FeeCcy field. -func (o *MarginTradeDetailInfo) SetFeeCcy(v string) { - o.FeeCcy = &v -} - -// GetFees returns the Fees field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFees() string { - if o == nil || isNil(o.Fees) { - var ret string - return ret - } - return *o.Fees -} - -// GetFeesOk returns a tuple with the Fees field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFeesOk() (*string, bool) { - if o == nil || isNil(o.Fees) { - return nil, false - } - return o.Fees, true -} - -// HasFees returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFees() bool { - if o != nil && !isNil(o.Fees) { - return true - } - - return false -} - -// SetFees gets a reference to the given string and assigns it to the Fees field. -func (o *MarginTradeDetailInfo) SetFees(v string) { - o.Fees = &v -} - -// GetFillId returns the FillId field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFillId() string { - if o == nil || isNil(o.FillId) { - var ret string - return ret - } - return *o.FillId -} - -// GetFillIdOk returns a tuple with the FillId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFillIdOk() (*string, bool) { - if o == nil || isNil(o.FillId) { - return nil, false - } - return o.FillId, true -} - -// HasFillId returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFillId() bool { - if o != nil && !isNil(o.FillId) { - return true - } - - return false -} - -// SetFillId gets a reference to the given string and assigns it to the FillId field. -func (o *MarginTradeDetailInfo) SetFillId(v string) { - o.FillId = &v -} - -// GetFillPrice returns the FillPrice field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFillPrice() string { - if o == nil || isNil(o.FillPrice) { - var ret string - return ret - } - return *o.FillPrice -} - -// GetFillPriceOk returns a tuple with the FillPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFillPriceOk() (*string, bool) { - if o == nil || isNil(o.FillPrice) { - return nil, false - } - return o.FillPrice, true -} - -// HasFillPrice returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFillPrice() bool { - if o != nil && !isNil(o.FillPrice) { - return true - } - - return false -} - -// SetFillPrice gets a reference to the given string and assigns it to the FillPrice field. -func (o *MarginTradeDetailInfo) SetFillPrice(v string) { - o.FillPrice = &v -} - -// GetFillQuantity returns the FillQuantity field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFillQuantity() string { - if o == nil || isNil(o.FillQuantity) { - var ret string - return ret - } - return *o.FillQuantity -} - -// GetFillQuantityOk returns a tuple with the FillQuantity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFillQuantityOk() (*string, bool) { - if o == nil || isNil(o.FillQuantity) { - return nil, false - } - return o.FillQuantity, true -} - -// HasFillQuantity returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFillQuantity() bool { - if o != nil && !isNil(o.FillQuantity) { - return true - } - - return false -} - -// SetFillQuantity gets a reference to the given string and assigns it to the FillQuantity field. -func (o *MarginTradeDetailInfo) SetFillQuantity(v string) { - o.FillQuantity = &v -} - -// GetFillTotalAmount returns the FillTotalAmount field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetFillTotalAmount() string { - if o == nil || isNil(o.FillTotalAmount) { - var ret string - return ret - } - return *o.FillTotalAmount -} - -// GetFillTotalAmountOk returns a tuple with the FillTotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetFillTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.FillTotalAmount) { - return nil, false - } - return o.FillTotalAmount, true -} - -// HasFillTotalAmount returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasFillTotalAmount() bool { - if o != nil && !isNil(o.FillTotalAmount) { - return true - } - - return false -} - -// SetFillTotalAmount gets a reference to the given string and assigns it to the FillTotalAmount field. -func (o *MarginTradeDetailInfo) SetFillTotalAmount(v string) { - o.FillTotalAmount = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MarginTradeDetailInfo) SetOrderId(v string) { - o.OrderId = &v -} - -// GetOrderType returns the OrderType field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetOrderType() string { - if o == nil || isNil(o.OrderType) { - var ret string - return ret - } - return *o.OrderType -} - -// GetOrderTypeOk returns a tuple with the OrderType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetOrderTypeOk() (*string, bool) { - if o == nil || isNil(o.OrderType) { - return nil, false - } - return o.OrderType, true -} - -// HasOrderType returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasOrderType() bool { - if o != nil && !isNil(o.OrderType) { - return true - } - - return false -} - -// SetOrderType gets a reference to the given string and assigns it to the OrderType field. -func (o *MarginTradeDetailInfo) SetOrderType(v string) { - o.OrderType = &v -} - -// GetSide returns the Side field value if set, zero value otherwise. -func (o *MarginTradeDetailInfo) GetSide() string { - if o == nil || isNil(o.Side) { - var ret string - return ret - } - return *o.Side -} - -// GetSideOk returns a tuple with the Side field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfo) GetSideOk() (*string, bool) { - if o == nil || isNil(o.Side) { - return nil, false - } - return o.Side, true -} - -// HasSide returns a boolean if a field has been set. -func (o *MarginTradeDetailInfo) HasSide() bool { - if o != nil && !isNil(o.Side) { - return true - } - - return false -} - -// SetSide gets a reference to the given string and assigns it to the Side field. -func (o *MarginTradeDetailInfo) SetSide(v string) { - o.Side = &v -} - -func (o MarginTradeDetailInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.FeeCcy) { - toSerialize["feeCcy"] = o.FeeCcy - } - if !isNil(o.Fees) { - toSerialize["fees"] = o.Fees - } - if !isNil(o.FillId) { - toSerialize["fillId"] = o.FillId - } - if !isNil(o.FillPrice) { - toSerialize["fillPrice"] = o.FillPrice - } - if !isNil(o.FillQuantity) { - toSerialize["fillQuantity"] = o.FillQuantity - } - if !isNil(o.FillTotalAmount) { - toSerialize["fillTotalAmount"] = o.FillTotalAmount - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - if !isNil(o.OrderType) { - toSerialize["orderType"] = o.OrderType - } - if !isNil(o.Side) { - toSerialize["side"] = o.Side - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginTradeDetailInfo) UnmarshalJSON(bytes []byte) (err error) { - varMarginTradeDetailInfo := _MarginTradeDetailInfo{} - - if err = json.Unmarshal(bytes, &varMarginTradeDetailInfo); err == nil { - *o = MarginTradeDetailInfo(varMarginTradeDetailInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ctime") - delete(additionalProperties, "feeCcy") - delete(additionalProperties, "fees") - delete(additionalProperties, "fillId") - delete(additionalProperties, "fillPrice") - delete(additionalProperties, "fillQuantity") - delete(additionalProperties, "fillTotalAmount") - delete(additionalProperties, "orderId") - delete(additionalProperties, "orderType") - delete(additionalProperties, "side") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginTradeDetailInfo struct { - value *MarginTradeDetailInfo - isSet bool -} - -func (v NullableMarginTradeDetailInfo) Get() *MarginTradeDetailInfo { - return v.value -} - -func (v *NullableMarginTradeDetailInfo) Set(val *MarginTradeDetailInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMarginTradeDetailInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginTradeDetailInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginTradeDetailInfo(val *MarginTradeDetailInfo) *NullableMarginTradeDetailInfo { - return &NullableMarginTradeDetailInfo{value: val, isSet: true} -} - -func (v NullableMarginTradeDetailInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginTradeDetailInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_margin_trade_detail_info_result.go b/bitget-goland-sdk-open-api/model_margin_trade_detail_info_result.go deleted file mode 100644 index 94f5b917..00000000 --- a/bitget-goland-sdk-open-api/model_margin_trade_detail_info_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MarginTradeDetailInfoResult struct for MarginTradeDetailInfoResult -type MarginTradeDetailInfoResult struct { - Fills []MarginTradeDetailInfo `json:"fills,omitempty"` - MaxId *string `json:"maxId,omitempty"` - MinId *string `json:"minId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MarginTradeDetailInfoResult MarginTradeDetailInfoResult - -// NewMarginTradeDetailInfoResult instantiates a new MarginTradeDetailInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMarginTradeDetailInfoResult() *MarginTradeDetailInfoResult { - this := MarginTradeDetailInfoResult{} - return &this -} - -// NewMarginTradeDetailInfoResultWithDefaults instantiates a new MarginTradeDetailInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMarginTradeDetailInfoResultWithDefaults() *MarginTradeDetailInfoResult { - this := MarginTradeDetailInfoResult{} - return &this -} - -// GetFills returns the Fills field value if set, zero value otherwise. -func (o *MarginTradeDetailInfoResult) GetFills() []MarginTradeDetailInfo { - if o == nil || isNil(o.Fills) { - var ret []MarginTradeDetailInfo - return ret - } - return o.Fills -} - -// GetFillsOk returns a tuple with the Fills field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfoResult) GetFillsOk() ([]MarginTradeDetailInfo, bool) { - if o == nil || isNil(o.Fills) { - return nil, false - } - return o.Fills, true -} - -// HasFills returns a boolean if a field has been set. -func (o *MarginTradeDetailInfoResult) HasFills() bool { - if o != nil && !isNil(o.Fills) { - return true - } - - return false -} - -// SetFills gets a reference to the given []MarginTradeDetailInfo and assigns it to the Fills field. -func (o *MarginTradeDetailInfoResult) SetFills(v []MarginTradeDetailInfo) { - o.Fills = v -} - -// GetMaxId returns the MaxId field value if set, zero value otherwise. -func (o *MarginTradeDetailInfoResult) GetMaxId() string { - if o == nil || isNil(o.MaxId) { - var ret string - return ret - } - return *o.MaxId -} - -// GetMaxIdOk returns a tuple with the MaxId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfoResult) GetMaxIdOk() (*string, bool) { - if o == nil || isNil(o.MaxId) { - return nil, false - } - return o.MaxId, true -} - -// HasMaxId returns a boolean if a field has been set. -func (o *MarginTradeDetailInfoResult) HasMaxId() bool { - if o != nil && !isNil(o.MaxId) { - return true - } - - return false -} - -// SetMaxId gets a reference to the given string and assigns it to the MaxId field. -func (o *MarginTradeDetailInfoResult) SetMaxId(v string) { - o.MaxId = &v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MarginTradeDetailInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MarginTradeDetailInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MarginTradeDetailInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MarginTradeDetailInfoResult) SetMinId(v string) { - o.MinId = &v -} - -func (o MarginTradeDetailInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Fills) { - toSerialize["fills"] = o.Fills - } - if !isNil(o.MaxId) { - toSerialize["maxId"] = o.MaxId - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MarginTradeDetailInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMarginTradeDetailInfoResult := _MarginTradeDetailInfoResult{} - - if err = json.Unmarshal(bytes, &varMarginTradeDetailInfoResult); err == nil { - *o = MarginTradeDetailInfoResult(varMarginTradeDetailInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "fills") - delete(additionalProperties, "maxId") - delete(additionalProperties, "minId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMarginTradeDetailInfoResult struct { - value *MarginTradeDetailInfoResult - isSet bool -} - -func (v NullableMarginTradeDetailInfoResult) Get() *MarginTradeDetailInfoResult { - return v.value -} - -func (v *NullableMarginTradeDetailInfoResult) Set(val *MarginTradeDetailInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMarginTradeDetailInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMarginTradeDetailInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMarginTradeDetailInfoResult(val *MarginTradeDetailInfoResult) *NullableMarginTradeDetailInfoResult { - return &NullableMarginTradeDetailInfoResult{value: val, isSet: true} -} - -func (v NullableMarginTradeDetailInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMarginTradeDetailInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_adv_info.go b/bitget-goland-sdk-open-api/model_merchant_adv_info.go deleted file mode 100644 index d370d5b1..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_adv_info.go +++ /dev/null @@ -1,915 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantAdvInfo struct for MerchantAdvInfo -type MerchantAdvInfo struct { - AdvId *string `json:"advId,omitempty"` - AdvNo *string `json:"advNo,omitempty"` - Amount *string `json:"amount,omitempty"` - Coin *string `json:"coin,omitempty"` - CoinPrecision *string `json:"coinPrecision,omitempty"` - Ctime *string `json:"ctime,omitempty"` - DealAmount *string `json:"dealAmount,omitempty"` - FiatCode *string `json:"fiatCode,omitempty"` - FiatPrecision *string `json:"fiatPrecision,omitempty"` - FiatSymbol *string `json:"fiatSymbol,omitempty"` - Hide *string `json:"hide,omitempty"` - MaxAmount *string `json:"maxAmount,omitempty"` - MinAmount *string `json:"minAmount,omitempty"` - PayDuration *string `json:"payDuration,omitempty"` - PaymentMethod []FiatPaymentInfo `json:"paymentMethod,omitempty"` - Price *string `json:"price,omitempty"` - Remark *string `json:"remark,omitempty"` - Status *string `json:"status,omitempty"` - TurnoverNum *string `json:"turnoverNum,omitempty"` - TurnoverRate *string `json:"turnoverRate,omitempty"` - Type *string `json:"type,omitempty"` - UserLimit *MerchantAdvUserLimitInfo `json:"userLimit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantAdvInfo MerchantAdvInfo - -// NewMerchantAdvInfo instantiates a new MerchantAdvInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantAdvInfo() *MerchantAdvInfo { - this := MerchantAdvInfo{} - return &this -} - -// NewMerchantAdvInfoWithDefaults instantiates a new MerchantAdvInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantAdvInfoWithDefaults() *MerchantAdvInfo { - this := MerchantAdvInfo{} - return &this -} - -// GetAdvId returns the AdvId field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetAdvId() string { - if o == nil || isNil(o.AdvId) { - var ret string - return ret - } - return *o.AdvId -} - -// GetAdvIdOk returns a tuple with the AdvId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetAdvIdOk() (*string, bool) { - if o == nil || isNil(o.AdvId) { - return nil, false - } - return o.AdvId, true -} - -// HasAdvId returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasAdvId() bool { - if o != nil && !isNil(o.AdvId) { - return true - } - - return false -} - -// SetAdvId gets a reference to the given string and assigns it to the AdvId field. -func (o *MerchantAdvInfo) SetAdvId(v string) { - o.AdvId = &v -} - -// GetAdvNo returns the AdvNo field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetAdvNo() string { - if o == nil || isNil(o.AdvNo) { - var ret string - return ret - } - return *o.AdvNo -} - -// GetAdvNoOk returns a tuple with the AdvNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetAdvNoOk() (*string, bool) { - if o == nil || isNil(o.AdvNo) { - return nil, false - } - return o.AdvNo, true -} - -// HasAdvNo returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasAdvNo() bool { - if o != nil && !isNil(o.AdvNo) { - return true - } - - return false -} - -// SetAdvNo gets a reference to the given string and assigns it to the AdvNo field. -func (o *MerchantAdvInfo) SetAdvNo(v string) { - o.AdvNo = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MerchantAdvInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MerchantAdvInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCoinPrecision returns the CoinPrecision field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetCoinPrecision() string { - if o == nil || isNil(o.CoinPrecision) { - var ret string - return ret - } - return *o.CoinPrecision -} - -// GetCoinPrecisionOk returns a tuple with the CoinPrecision field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetCoinPrecisionOk() (*string, bool) { - if o == nil || isNil(o.CoinPrecision) { - return nil, false - } - return o.CoinPrecision, true -} - -// HasCoinPrecision returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasCoinPrecision() bool { - if o != nil && !isNil(o.CoinPrecision) { - return true - } - - return false -} - -// SetCoinPrecision gets a reference to the given string and assigns it to the CoinPrecision field. -func (o *MerchantAdvInfo) SetCoinPrecision(v string) { - o.CoinPrecision = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MerchantAdvInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetDealAmount returns the DealAmount field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetDealAmount() string { - if o == nil || isNil(o.DealAmount) { - var ret string - return ret - } - return *o.DealAmount -} - -// GetDealAmountOk returns a tuple with the DealAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetDealAmountOk() (*string, bool) { - if o == nil || isNil(o.DealAmount) { - return nil, false - } - return o.DealAmount, true -} - -// HasDealAmount returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasDealAmount() bool { - if o != nil && !isNil(o.DealAmount) { - return true - } - - return false -} - -// SetDealAmount gets a reference to the given string and assigns it to the DealAmount field. -func (o *MerchantAdvInfo) SetDealAmount(v string) { - o.DealAmount = &v -} - -// GetFiatCode returns the FiatCode field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetFiatCode() string { - if o == nil || isNil(o.FiatCode) { - var ret string - return ret - } - return *o.FiatCode -} - -// GetFiatCodeOk returns a tuple with the FiatCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetFiatCodeOk() (*string, bool) { - if o == nil || isNil(o.FiatCode) { - return nil, false - } - return o.FiatCode, true -} - -// HasFiatCode returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasFiatCode() bool { - if o != nil && !isNil(o.FiatCode) { - return true - } - - return false -} - -// SetFiatCode gets a reference to the given string and assigns it to the FiatCode field. -func (o *MerchantAdvInfo) SetFiatCode(v string) { - o.FiatCode = &v -} - -// GetFiatPrecision returns the FiatPrecision field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetFiatPrecision() string { - if o == nil || isNil(o.FiatPrecision) { - var ret string - return ret - } - return *o.FiatPrecision -} - -// GetFiatPrecisionOk returns a tuple with the FiatPrecision field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetFiatPrecisionOk() (*string, bool) { - if o == nil || isNil(o.FiatPrecision) { - return nil, false - } - return o.FiatPrecision, true -} - -// HasFiatPrecision returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasFiatPrecision() bool { - if o != nil && !isNil(o.FiatPrecision) { - return true - } - - return false -} - -// SetFiatPrecision gets a reference to the given string and assigns it to the FiatPrecision field. -func (o *MerchantAdvInfo) SetFiatPrecision(v string) { - o.FiatPrecision = &v -} - -// GetFiatSymbol returns the FiatSymbol field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetFiatSymbol() string { - if o == nil || isNil(o.FiatSymbol) { - var ret string - return ret - } - return *o.FiatSymbol -} - -// GetFiatSymbolOk returns a tuple with the FiatSymbol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetFiatSymbolOk() (*string, bool) { - if o == nil || isNil(o.FiatSymbol) { - return nil, false - } - return o.FiatSymbol, true -} - -// HasFiatSymbol returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasFiatSymbol() bool { - if o != nil && !isNil(o.FiatSymbol) { - return true - } - - return false -} - -// SetFiatSymbol gets a reference to the given string and assigns it to the FiatSymbol field. -func (o *MerchantAdvInfo) SetFiatSymbol(v string) { - o.FiatSymbol = &v -} - -// GetHide returns the Hide field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetHide() string { - if o == nil || isNil(o.Hide) { - var ret string - return ret - } - return *o.Hide -} - -// GetHideOk returns a tuple with the Hide field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetHideOk() (*string, bool) { - if o == nil || isNil(o.Hide) { - return nil, false - } - return o.Hide, true -} - -// HasHide returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasHide() bool { - if o != nil && !isNil(o.Hide) { - return true - } - - return false -} - -// SetHide gets a reference to the given string and assigns it to the Hide field. -func (o *MerchantAdvInfo) SetHide(v string) { - o.Hide = &v -} - -// GetMaxAmount returns the MaxAmount field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetMaxAmount() string { - if o == nil || isNil(o.MaxAmount) { - var ret string - return ret - } - return *o.MaxAmount -} - -// GetMaxAmountOk returns a tuple with the MaxAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetMaxAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxAmount) { - return nil, false - } - return o.MaxAmount, true -} - -// HasMaxAmount returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasMaxAmount() bool { - if o != nil && !isNil(o.MaxAmount) { - return true - } - - return false -} - -// SetMaxAmount gets a reference to the given string and assigns it to the MaxAmount field. -func (o *MerchantAdvInfo) SetMaxAmount(v string) { - o.MaxAmount = &v -} - -// GetMinAmount returns the MinAmount field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetMinAmount() string { - if o == nil || isNil(o.MinAmount) { - var ret string - return ret - } - return *o.MinAmount -} - -// GetMinAmountOk returns a tuple with the MinAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetMinAmountOk() (*string, bool) { - if o == nil || isNil(o.MinAmount) { - return nil, false - } - return o.MinAmount, true -} - -// HasMinAmount returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasMinAmount() bool { - if o != nil && !isNil(o.MinAmount) { - return true - } - - return false -} - -// SetMinAmount gets a reference to the given string and assigns it to the MinAmount field. -func (o *MerchantAdvInfo) SetMinAmount(v string) { - o.MinAmount = &v -} - -// GetPayDuration returns the PayDuration field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetPayDuration() string { - if o == nil || isNil(o.PayDuration) { - var ret string - return ret - } - return *o.PayDuration -} - -// GetPayDurationOk returns a tuple with the PayDuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetPayDurationOk() (*string, bool) { - if o == nil || isNil(o.PayDuration) { - return nil, false - } - return o.PayDuration, true -} - -// HasPayDuration returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasPayDuration() bool { - if o != nil && !isNil(o.PayDuration) { - return true - } - - return false -} - -// SetPayDuration gets a reference to the given string and assigns it to the PayDuration field. -func (o *MerchantAdvInfo) SetPayDuration(v string) { - o.PayDuration = &v -} - -// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetPaymentMethod() []FiatPaymentInfo { - if o == nil || isNil(o.PaymentMethod) { - var ret []FiatPaymentInfo - return ret - } - return o.PaymentMethod -} - -// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetPaymentMethodOk() ([]FiatPaymentInfo, bool) { - if o == nil || isNil(o.PaymentMethod) { - return nil, false - } - return o.PaymentMethod, true -} - -// HasPaymentMethod returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasPaymentMethod() bool { - if o != nil && !isNil(o.PaymentMethod) { - return true - } - - return false -} - -// SetPaymentMethod gets a reference to the given []FiatPaymentInfo and assigns it to the PaymentMethod field. -func (o *MerchantAdvInfo) SetPaymentMethod(v []FiatPaymentInfo) { - o.PaymentMethod = v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetPrice() string { - if o == nil || isNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetPriceOk() (*string, bool) { - if o == nil || isNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasPrice() bool { - if o != nil && !isNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *MerchantAdvInfo) SetPrice(v string) { - o.Price = &v -} - -// GetRemark returns the Remark field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetRemark() string { - if o == nil || isNil(o.Remark) { - var ret string - return ret - } - return *o.Remark -} - -// GetRemarkOk returns a tuple with the Remark field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetRemarkOk() (*string, bool) { - if o == nil || isNil(o.Remark) { - return nil, false - } - return o.Remark, true -} - -// HasRemark returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasRemark() bool { - if o != nil && !isNil(o.Remark) { - return true - } - - return false -} - -// SetRemark gets a reference to the given string and assigns it to the Remark field. -func (o *MerchantAdvInfo) SetRemark(v string) { - o.Remark = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *MerchantAdvInfo) SetStatus(v string) { - o.Status = &v -} - -// GetTurnoverNum returns the TurnoverNum field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetTurnoverNum() string { - if o == nil || isNil(o.TurnoverNum) { - var ret string - return ret - } - return *o.TurnoverNum -} - -// GetTurnoverNumOk returns a tuple with the TurnoverNum field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetTurnoverNumOk() (*string, bool) { - if o == nil || isNil(o.TurnoverNum) { - return nil, false - } - return o.TurnoverNum, true -} - -// HasTurnoverNum returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasTurnoverNum() bool { - if o != nil && !isNil(o.TurnoverNum) { - return true - } - - return false -} - -// SetTurnoverNum gets a reference to the given string and assigns it to the TurnoverNum field. -func (o *MerchantAdvInfo) SetTurnoverNum(v string) { - o.TurnoverNum = &v -} - -// GetTurnoverRate returns the TurnoverRate field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetTurnoverRate() string { - if o == nil || isNil(o.TurnoverRate) { - var ret string - return ret - } - return *o.TurnoverRate -} - -// GetTurnoverRateOk returns a tuple with the TurnoverRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetTurnoverRateOk() (*string, bool) { - if o == nil || isNil(o.TurnoverRate) { - return nil, false - } - return o.TurnoverRate, true -} - -// HasTurnoverRate returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasTurnoverRate() bool { - if o != nil && !isNil(o.TurnoverRate) { - return true - } - - return false -} - -// SetTurnoverRate gets a reference to the given string and assigns it to the TurnoverRate field. -func (o *MerchantAdvInfo) SetTurnoverRate(v string) { - o.TurnoverRate = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MerchantAdvInfo) SetType(v string) { - o.Type = &v -} - -// GetUserLimit returns the UserLimit field value if set, zero value otherwise. -func (o *MerchantAdvInfo) GetUserLimit() MerchantAdvUserLimitInfo { - if o == nil || isNil(o.UserLimit) { - var ret MerchantAdvUserLimitInfo - return ret - } - return *o.UserLimit -} - -// GetUserLimitOk returns a tuple with the UserLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvInfo) GetUserLimitOk() (*MerchantAdvUserLimitInfo, bool) { - if o == nil || isNil(o.UserLimit) { - return nil, false - } - return o.UserLimit, true -} - -// HasUserLimit returns a boolean if a field has been set. -func (o *MerchantAdvInfo) HasUserLimit() bool { - if o != nil && !isNil(o.UserLimit) { - return true - } - - return false -} - -// SetUserLimit gets a reference to the given MerchantAdvUserLimitInfo and assigns it to the UserLimit field. -func (o *MerchantAdvInfo) SetUserLimit(v MerchantAdvUserLimitInfo) { - o.UserLimit = &v -} - -func (o MerchantAdvInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AdvId) { - toSerialize["advId"] = o.AdvId - } - if !isNil(o.AdvNo) { - toSerialize["advNo"] = o.AdvNo - } - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.CoinPrecision) { - toSerialize["coinPrecision"] = o.CoinPrecision - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.DealAmount) { - toSerialize["dealAmount"] = o.DealAmount - } - if !isNil(o.FiatCode) { - toSerialize["fiatCode"] = o.FiatCode - } - if !isNil(o.FiatPrecision) { - toSerialize["fiatPrecision"] = o.FiatPrecision - } - if !isNil(o.FiatSymbol) { - toSerialize["fiatSymbol"] = o.FiatSymbol - } - if !isNil(o.Hide) { - toSerialize["hide"] = o.Hide - } - if !isNil(o.MaxAmount) { - toSerialize["maxAmount"] = o.MaxAmount - } - if !isNil(o.MinAmount) { - toSerialize["minAmount"] = o.MinAmount - } - if !isNil(o.PayDuration) { - toSerialize["payDuration"] = o.PayDuration - } - if !isNil(o.PaymentMethod) { - toSerialize["paymentMethod"] = o.PaymentMethod - } - if !isNil(o.Price) { - toSerialize["price"] = o.Price - } - if !isNil(o.Remark) { - toSerialize["remark"] = o.Remark - } - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.TurnoverNum) { - toSerialize["turnoverNum"] = o.TurnoverNum - } - if !isNil(o.TurnoverRate) { - toSerialize["turnoverRate"] = o.TurnoverRate - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.UserLimit) { - toSerialize["userLimit"] = o.UserLimit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantAdvInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantAdvInfo := _MerchantAdvInfo{} - - if err = json.Unmarshal(bytes, &varMerchantAdvInfo); err == nil { - *o = MerchantAdvInfo(varMerchantAdvInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "advId") - delete(additionalProperties, "advNo") - delete(additionalProperties, "amount") - delete(additionalProperties, "coin") - delete(additionalProperties, "coinPrecision") - delete(additionalProperties, "ctime") - delete(additionalProperties, "dealAmount") - delete(additionalProperties, "fiatCode") - delete(additionalProperties, "fiatPrecision") - delete(additionalProperties, "fiatSymbol") - delete(additionalProperties, "hide") - delete(additionalProperties, "maxAmount") - delete(additionalProperties, "minAmount") - delete(additionalProperties, "payDuration") - delete(additionalProperties, "paymentMethod") - delete(additionalProperties, "price") - delete(additionalProperties, "remark") - delete(additionalProperties, "status") - delete(additionalProperties, "turnoverNum") - delete(additionalProperties, "turnoverRate") - delete(additionalProperties, "type") - delete(additionalProperties, "userLimit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantAdvInfo struct { - value *MerchantAdvInfo - isSet bool -} - -func (v NullableMerchantAdvInfo) Get() *MerchantAdvInfo { - return v.value -} - -func (v *NullableMerchantAdvInfo) Set(val *MerchantAdvInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantAdvInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantAdvInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantAdvInfo(val *MerchantAdvInfo) *NullableMerchantAdvInfo { - return &NullableMerchantAdvInfo{value: val, isSet: true} -} - -func (v NullableMerchantAdvInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantAdvInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_adv_result.go b/bitget-goland-sdk-open-api/model_merchant_adv_result.go deleted file mode 100644 index 41fbf593..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_adv_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantAdvResult struct for MerchantAdvResult -type MerchantAdvResult struct { - AdvList []MerchantAdvInfo `json:"advList,omitempty"` - MinId *string `json:"minId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantAdvResult MerchantAdvResult - -// NewMerchantAdvResult instantiates a new MerchantAdvResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantAdvResult() *MerchantAdvResult { - this := MerchantAdvResult{} - return &this -} - -// NewMerchantAdvResultWithDefaults instantiates a new MerchantAdvResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantAdvResultWithDefaults() *MerchantAdvResult { - this := MerchantAdvResult{} - return &this -} - -// GetAdvList returns the AdvList field value if set, zero value otherwise. -func (o *MerchantAdvResult) GetAdvList() []MerchantAdvInfo { - if o == nil || isNil(o.AdvList) { - var ret []MerchantAdvInfo - return ret - } - return o.AdvList -} - -// GetAdvListOk returns a tuple with the AdvList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvResult) GetAdvListOk() ([]MerchantAdvInfo, bool) { - if o == nil || isNil(o.AdvList) { - return nil, false - } - return o.AdvList, true -} - -// HasAdvList returns a boolean if a field has been set. -func (o *MerchantAdvResult) HasAdvList() bool { - if o != nil && !isNil(o.AdvList) { - return true - } - - return false -} - -// SetAdvList gets a reference to the given []MerchantAdvInfo and assigns it to the AdvList field. -func (o *MerchantAdvResult) SetAdvList(v []MerchantAdvInfo) { - o.AdvList = v -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MerchantAdvResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MerchantAdvResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MerchantAdvResult) SetMinId(v string) { - o.MinId = &v -} - -func (o MerchantAdvResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AdvList) { - toSerialize["advList"] = o.AdvList - } - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantAdvResult) UnmarshalJSON(bytes []byte) (err error) { - varMerchantAdvResult := _MerchantAdvResult{} - - if err = json.Unmarshal(bytes, &varMerchantAdvResult); err == nil { - *o = MerchantAdvResult(varMerchantAdvResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "advList") - delete(additionalProperties, "minId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantAdvResult struct { - value *MerchantAdvResult - isSet bool -} - -func (v NullableMerchantAdvResult) Get() *MerchantAdvResult { - return v.value -} - -func (v *NullableMerchantAdvResult) Set(val *MerchantAdvResult) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantAdvResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantAdvResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantAdvResult(val *MerchantAdvResult) *NullableMerchantAdvResult { - return &NullableMerchantAdvResult{value: val, isSet: true} -} - -func (v NullableMerchantAdvResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantAdvResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_adv_user_limit_info.go b/bitget-goland-sdk-open-api/model_merchant_adv_user_limit_info.go deleted file mode 100644 index 60f4fa49..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_adv_user_limit_info.go +++ /dev/null @@ -1,323 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantAdvUserLimitInfo struct for MerchantAdvUserLimitInfo -type MerchantAdvUserLimitInfo struct { - AllowMerchantPlace *string `json:"allowMerchantPlace,omitempty"` - Country *string `json:"country,omitempty"` - MaxCompleteNum *string `json:"maxCompleteNum,omitempty"` - MinCompleteNum *string `json:"minCompleteNum,omitempty"` - PlaceOrderNum *string `json:"placeOrderNum,omitempty"` - ThirtyCompleteRate *string `json:"thirtyCompleteRate,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantAdvUserLimitInfo MerchantAdvUserLimitInfo - -// NewMerchantAdvUserLimitInfo instantiates a new MerchantAdvUserLimitInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantAdvUserLimitInfo() *MerchantAdvUserLimitInfo { - this := MerchantAdvUserLimitInfo{} - return &this -} - -// NewMerchantAdvUserLimitInfoWithDefaults instantiates a new MerchantAdvUserLimitInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantAdvUserLimitInfoWithDefaults() *MerchantAdvUserLimitInfo { - this := MerchantAdvUserLimitInfo{} - return &this -} - -// GetAllowMerchantPlace returns the AllowMerchantPlace field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetAllowMerchantPlace() string { - if o == nil || isNil(o.AllowMerchantPlace) { - var ret string - return ret - } - return *o.AllowMerchantPlace -} - -// GetAllowMerchantPlaceOk returns a tuple with the AllowMerchantPlace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetAllowMerchantPlaceOk() (*string, bool) { - if o == nil || isNil(o.AllowMerchantPlace) { - return nil, false - } - return o.AllowMerchantPlace, true -} - -// HasAllowMerchantPlace returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasAllowMerchantPlace() bool { - if o != nil && !isNil(o.AllowMerchantPlace) { - return true - } - - return false -} - -// SetAllowMerchantPlace gets a reference to the given string and assigns it to the AllowMerchantPlace field. -func (o *MerchantAdvUserLimitInfo) SetAllowMerchantPlace(v string) { - o.AllowMerchantPlace = &v -} - -// GetCountry returns the Country field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetCountry() string { - if o == nil || isNil(o.Country) { - var ret string - return ret - } - return *o.Country -} - -// GetCountryOk returns a tuple with the Country field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetCountryOk() (*string, bool) { - if o == nil || isNil(o.Country) { - return nil, false - } - return o.Country, true -} - -// HasCountry returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasCountry() bool { - if o != nil && !isNil(o.Country) { - return true - } - - return false -} - -// SetCountry gets a reference to the given string and assigns it to the Country field. -func (o *MerchantAdvUserLimitInfo) SetCountry(v string) { - o.Country = &v -} - -// GetMaxCompleteNum returns the MaxCompleteNum field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetMaxCompleteNum() string { - if o == nil || isNil(o.MaxCompleteNum) { - var ret string - return ret - } - return *o.MaxCompleteNum -} - -// GetMaxCompleteNumOk returns a tuple with the MaxCompleteNum field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetMaxCompleteNumOk() (*string, bool) { - if o == nil || isNil(o.MaxCompleteNum) { - return nil, false - } - return o.MaxCompleteNum, true -} - -// HasMaxCompleteNum returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasMaxCompleteNum() bool { - if o != nil && !isNil(o.MaxCompleteNum) { - return true - } - - return false -} - -// SetMaxCompleteNum gets a reference to the given string and assigns it to the MaxCompleteNum field. -func (o *MerchantAdvUserLimitInfo) SetMaxCompleteNum(v string) { - o.MaxCompleteNum = &v -} - -// GetMinCompleteNum returns the MinCompleteNum field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetMinCompleteNum() string { - if o == nil || isNil(o.MinCompleteNum) { - var ret string - return ret - } - return *o.MinCompleteNum -} - -// GetMinCompleteNumOk returns a tuple with the MinCompleteNum field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetMinCompleteNumOk() (*string, bool) { - if o == nil || isNil(o.MinCompleteNum) { - return nil, false - } - return o.MinCompleteNum, true -} - -// HasMinCompleteNum returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasMinCompleteNum() bool { - if o != nil && !isNil(o.MinCompleteNum) { - return true - } - - return false -} - -// SetMinCompleteNum gets a reference to the given string and assigns it to the MinCompleteNum field. -func (o *MerchantAdvUserLimitInfo) SetMinCompleteNum(v string) { - o.MinCompleteNum = &v -} - -// GetPlaceOrderNum returns the PlaceOrderNum field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetPlaceOrderNum() string { - if o == nil || isNil(o.PlaceOrderNum) { - var ret string - return ret - } - return *o.PlaceOrderNum -} - -// GetPlaceOrderNumOk returns a tuple with the PlaceOrderNum field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetPlaceOrderNumOk() (*string, bool) { - if o == nil || isNil(o.PlaceOrderNum) { - return nil, false - } - return o.PlaceOrderNum, true -} - -// HasPlaceOrderNum returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasPlaceOrderNum() bool { - if o != nil && !isNil(o.PlaceOrderNum) { - return true - } - - return false -} - -// SetPlaceOrderNum gets a reference to the given string and assigns it to the PlaceOrderNum field. -func (o *MerchantAdvUserLimitInfo) SetPlaceOrderNum(v string) { - o.PlaceOrderNum = &v -} - -// GetThirtyCompleteRate returns the ThirtyCompleteRate field value if set, zero value otherwise. -func (o *MerchantAdvUserLimitInfo) GetThirtyCompleteRate() string { - if o == nil || isNil(o.ThirtyCompleteRate) { - var ret string - return ret - } - return *o.ThirtyCompleteRate -} - -// GetThirtyCompleteRateOk returns a tuple with the ThirtyCompleteRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantAdvUserLimitInfo) GetThirtyCompleteRateOk() (*string, bool) { - if o == nil || isNil(o.ThirtyCompleteRate) { - return nil, false - } - return o.ThirtyCompleteRate, true -} - -// HasThirtyCompleteRate returns a boolean if a field has been set. -func (o *MerchantAdvUserLimitInfo) HasThirtyCompleteRate() bool { - if o != nil && !isNil(o.ThirtyCompleteRate) { - return true - } - - return false -} - -// SetThirtyCompleteRate gets a reference to the given string and assigns it to the ThirtyCompleteRate field. -func (o *MerchantAdvUserLimitInfo) SetThirtyCompleteRate(v string) { - o.ThirtyCompleteRate = &v -} - -func (o MerchantAdvUserLimitInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AllowMerchantPlace) { - toSerialize["allowMerchantPlace"] = o.AllowMerchantPlace - } - if !isNil(o.Country) { - toSerialize["country"] = o.Country - } - if !isNil(o.MaxCompleteNum) { - toSerialize["maxCompleteNum"] = o.MaxCompleteNum - } - if !isNil(o.MinCompleteNum) { - toSerialize["minCompleteNum"] = o.MinCompleteNum - } - if !isNil(o.PlaceOrderNum) { - toSerialize["placeOrderNum"] = o.PlaceOrderNum - } - if !isNil(o.ThirtyCompleteRate) { - toSerialize["thirtyCompleteRate"] = o.ThirtyCompleteRate - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantAdvUserLimitInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantAdvUserLimitInfo := _MerchantAdvUserLimitInfo{} - - if err = json.Unmarshal(bytes, &varMerchantAdvUserLimitInfo); err == nil { - *o = MerchantAdvUserLimitInfo(varMerchantAdvUserLimitInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "allowMerchantPlace") - delete(additionalProperties, "country") - delete(additionalProperties, "maxCompleteNum") - delete(additionalProperties, "minCompleteNum") - delete(additionalProperties, "placeOrderNum") - delete(additionalProperties, "thirtyCompleteRate") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantAdvUserLimitInfo struct { - value *MerchantAdvUserLimitInfo - isSet bool -} - -func (v NullableMerchantAdvUserLimitInfo) Get() *MerchantAdvUserLimitInfo { - return v.value -} - -func (v *NullableMerchantAdvUserLimitInfo) Set(val *MerchantAdvUserLimitInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantAdvUserLimitInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantAdvUserLimitInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantAdvUserLimitInfo(val *MerchantAdvUserLimitInfo) *NullableMerchantAdvUserLimitInfo { - return &NullableMerchantAdvUserLimitInfo{value: val, isSet: true} -} - -func (v NullableMerchantAdvUserLimitInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantAdvUserLimitInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_info.go b/bitget-goland-sdk-open-api/model_merchant_info.go deleted file mode 100644 index b7c497a6..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_info.go +++ /dev/null @@ -1,619 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantInfo struct for MerchantInfo -type MerchantInfo struct { - AveragePayment *string `json:"averagePayment,omitempty"` - AverageRealese *string `json:"averageRealese,omitempty"` - IsOnline *string `json:"isOnline,omitempty"` - MerchantId *string `json:"merchantId,omitempty"` - NickName *string `json:"nickName,omitempty"` - RegisterTime *string `json:"registerTime,omitempty"` - ThirtyBuy *string `json:"thirtyBuy,omitempty"` - ThirtyCompletionRate *string `json:"thirtyCompletionRate,omitempty"` - ThirtySell *string `json:"thirtySell,omitempty"` - ThirtyTrades *string `json:"thirtyTrades,omitempty"` - TotalBuy *string `json:"totalBuy,omitempty"` - TotalCompletionRate *string `json:"totalCompletionRate,omitempty"` - TotalSell *string `json:"totalSell,omitempty"` - TotalTrades *string `json:"totalTrades,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantInfo MerchantInfo - -// NewMerchantInfo instantiates a new MerchantInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantInfo() *MerchantInfo { - this := MerchantInfo{} - return &this -} - -// NewMerchantInfoWithDefaults instantiates a new MerchantInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantInfoWithDefaults() *MerchantInfo { - this := MerchantInfo{} - return &this -} - -// GetAveragePayment returns the AveragePayment field value if set, zero value otherwise. -func (o *MerchantInfo) GetAveragePayment() string { - if o == nil || isNil(o.AveragePayment) { - var ret string - return ret - } - return *o.AveragePayment -} - -// GetAveragePaymentOk returns a tuple with the AveragePayment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetAveragePaymentOk() (*string, bool) { - if o == nil || isNil(o.AveragePayment) { - return nil, false - } - return o.AveragePayment, true -} - -// HasAveragePayment returns a boolean if a field has been set. -func (o *MerchantInfo) HasAveragePayment() bool { - if o != nil && !isNil(o.AveragePayment) { - return true - } - - return false -} - -// SetAveragePayment gets a reference to the given string and assigns it to the AveragePayment field. -func (o *MerchantInfo) SetAveragePayment(v string) { - o.AveragePayment = &v -} - -// GetAverageRealese returns the AverageRealese field value if set, zero value otherwise. -func (o *MerchantInfo) GetAverageRealese() string { - if o == nil || isNil(o.AverageRealese) { - var ret string - return ret - } - return *o.AverageRealese -} - -// GetAverageRealeseOk returns a tuple with the AverageRealese field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetAverageRealeseOk() (*string, bool) { - if o == nil || isNil(o.AverageRealese) { - return nil, false - } - return o.AverageRealese, true -} - -// HasAverageRealese returns a boolean if a field has been set. -func (o *MerchantInfo) HasAverageRealese() bool { - if o != nil && !isNil(o.AverageRealese) { - return true - } - - return false -} - -// SetAverageRealese gets a reference to the given string and assigns it to the AverageRealese field. -func (o *MerchantInfo) SetAverageRealese(v string) { - o.AverageRealese = &v -} - -// GetIsOnline returns the IsOnline field value if set, zero value otherwise. -func (o *MerchantInfo) GetIsOnline() string { - if o == nil || isNil(o.IsOnline) { - var ret string - return ret - } - return *o.IsOnline -} - -// GetIsOnlineOk returns a tuple with the IsOnline field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetIsOnlineOk() (*string, bool) { - if o == nil || isNil(o.IsOnline) { - return nil, false - } - return o.IsOnline, true -} - -// HasIsOnline returns a boolean if a field has been set. -func (o *MerchantInfo) HasIsOnline() bool { - if o != nil && !isNil(o.IsOnline) { - return true - } - - return false -} - -// SetIsOnline gets a reference to the given string and assigns it to the IsOnline field. -func (o *MerchantInfo) SetIsOnline(v string) { - o.IsOnline = &v -} - -// GetMerchantId returns the MerchantId field value if set, zero value otherwise. -func (o *MerchantInfo) GetMerchantId() string { - if o == nil || isNil(o.MerchantId) { - var ret string - return ret - } - return *o.MerchantId -} - -// GetMerchantIdOk returns a tuple with the MerchantId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetMerchantIdOk() (*string, bool) { - if o == nil || isNil(o.MerchantId) { - return nil, false - } - return o.MerchantId, true -} - -// HasMerchantId returns a boolean if a field has been set. -func (o *MerchantInfo) HasMerchantId() bool { - if o != nil && !isNil(o.MerchantId) { - return true - } - - return false -} - -// SetMerchantId gets a reference to the given string and assigns it to the MerchantId field. -func (o *MerchantInfo) SetMerchantId(v string) { - o.MerchantId = &v -} - -// GetNickName returns the NickName field value if set, zero value otherwise. -func (o *MerchantInfo) GetNickName() string { - if o == nil || isNil(o.NickName) { - var ret string - return ret - } - return *o.NickName -} - -// GetNickNameOk returns a tuple with the NickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetNickNameOk() (*string, bool) { - if o == nil || isNil(o.NickName) { - return nil, false - } - return o.NickName, true -} - -// HasNickName returns a boolean if a field has been set. -func (o *MerchantInfo) HasNickName() bool { - if o != nil && !isNil(o.NickName) { - return true - } - - return false -} - -// SetNickName gets a reference to the given string and assigns it to the NickName field. -func (o *MerchantInfo) SetNickName(v string) { - o.NickName = &v -} - -// GetRegisterTime returns the RegisterTime field value if set, zero value otherwise. -func (o *MerchantInfo) GetRegisterTime() string { - if o == nil || isNil(o.RegisterTime) { - var ret string - return ret - } - return *o.RegisterTime -} - -// GetRegisterTimeOk returns a tuple with the RegisterTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetRegisterTimeOk() (*string, bool) { - if o == nil || isNil(o.RegisterTime) { - return nil, false - } - return o.RegisterTime, true -} - -// HasRegisterTime returns a boolean if a field has been set. -func (o *MerchantInfo) HasRegisterTime() bool { - if o != nil && !isNil(o.RegisterTime) { - return true - } - - return false -} - -// SetRegisterTime gets a reference to the given string and assigns it to the RegisterTime field. -func (o *MerchantInfo) SetRegisterTime(v string) { - o.RegisterTime = &v -} - -// GetThirtyBuy returns the ThirtyBuy field value if set, zero value otherwise. -func (o *MerchantInfo) GetThirtyBuy() string { - if o == nil || isNil(o.ThirtyBuy) { - var ret string - return ret - } - return *o.ThirtyBuy -} - -// GetThirtyBuyOk returns a tuple with the ThirtyBuy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetThirtyBuyOk() (*string, bool) { - if o == nil || isNil(o.ThirtyBuy) { - return nil, false - } - return o.ThirtyBuy, true -} - -// HasThirtyBuy returns a boolean if a field has been set. -func (o *MerchantInfo) HasThirtyBuy() bool { - if o != nil && !isNil(o.ThirtyBuy) { - return true - } - - return false -} - -// SetThirtyBuy gets a reference to the given string and assigns it to the ThirtyBuy field. -func (o *MerchantInfo) SetThirtyBuy(v string) { - o.ThirtyBuy = &v -} - -// GetThirtyCompletionRate returns the ThirtyCompletionRate field value if set, zero value otherwise. -func (o *MerchantInfo) GetThirtyCompletionRate() string { - if o == nil || isNil(o.ThirtyCompletionRate) { - var ret string - return ret - } - return *o.ThirtyCompletionRate -} - -// GetThirtyCompletionRateOk returns a tuple with the ThirtyCompletionRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetThirtyCompletionRateOk() (*string, bool) { - if o == nil || isNil(o.ThirtyCompletionRate) { - return nil, false - } - return o.ThirtyCompletionRate, true -} - -// HasThirtyCompletionRate returns a boolean if a field has been set. -func (o *MerchantInfo) HasThirtyCompletionRate() bool { - if o != nil && !isNil(o.ThirtyCompletionRate) { - return true - } - - return false -} - -// SetThirtyCompletionRate gets a reference to the given string and assigns it to the ThirtyCompletionRate field. -func (o *MerchantInfo) SetThirtyCompletionRate(v string) { - o.ThirtyCompletionRate = &v -} - -// GetThirtySell returns the ThirtySell field value if set, zero value otherwise. -func (o *MerchantInfo) GetThirtySell() string { - if o == nil || isNil(o.ThirtySell) { - var ret string - return ret - } - return *o.ThirtySell -} - -// GetThirtySellOk returns a tuple with the ThirtySell field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetThirtySellOk() (*string, bool) { - if o == nil || isNil(o.ThirtySell) { - return nil, false - } - return o.ThirtySell, true -} - -// HasThirtySell returns a boolean if a field has been set. -func (o *MerchantInfo) HasThirtySell() bool { - if o != nil && !isNil(o.ThirtySell) { - return true - } - - return false -} - -// SetThirtySell gets a reference to the given string and assigns it to the ThirtySell field. -func (o *MerchantInfo) SetThirtySell(v string) { - o.ThirtySell = &v -} - -// GetThirtyTrades returns the ThirtyTrades field value if set, zero value otherwise. -func (o *MerchantInfo) GetThirtyTrades() string { - if o == nil || isNil(o.ThirtyTrades) { - var ret string - return ret - } - return *o.ThirtyTrades -} - -// GetThirtyTradesOk returns a tuple with the ThirtyTrades field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetThirtyTradesOk() (*string, bool) { - if o == nil || isNil(o.ThirtyTrades) { - return nil, false - } - return o.ThirtyTrades, true -} - -// HasThirtyTrades returns a boolean if a field has been set. -func (o *MerchantInfo) HasThirtyTrades() bool { - if o != nil && !isNil(o.ThirtyTrades) { - return true - } - - return false -} - -// SetThirtyTrades gets a reference to the given string and assigns it to the ThirtyTrades field. -func (o *MerchantInfo) SetThirtyTrades(v string) { - o.ThirtyTrades = &v -} - -// GetTotalBuy returns the TotalBuy field value if set, zero value otherwise. -func (o *MerchantInfo) GetTotalBuy() string { - if o == nil || isNil(o.TotalBuy) { - var ret string - return ret - } - return *o.TotalBuy -} - -// GetTotalBuyOk returns a tuple with the TotalBuy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetTotalBuyOk() (*string, bool) { - if o == nil || isNil(o.TotalBuy) { - return nil, false - } - return o.TotalBuy, true -} - -// HasTotalBuy returns a boolean if a field has been set. -func (o *MerchantInfo) HasTotalBuy() bool { - if o != nil && !isNil(o.TotalBuy) { - return true - } - - return false -} - -// SetTotalBuy gets a reference to the given string and assigns it to the TotalBuy field. -func (o *MerchantInfo) SetTotalBuy(v string) { - o.TotalBuy = &v -} - -// GetTotalCompletionRate returns the TotalCompletionRate field value if set, zero value otherwise. -func (o *MerchantInfo) GetTotalCompletionRate() string { - if o == nil || isNil(o.TotalCompletionRate) { - var ret string - return ret - } - return *o.TotalCompletionRate -} - -// GetTotalCompletionRateOk returns a tuple with the TotalCompletionRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetTotalCompletionRateOk() (*string, bool) { - if o == nil || isNil(o.TotalCompletionRate) { - return nil, false - } - return o.TotalCompletionRate, true -} - -// HasTotalCompletionRate returns a boolean if a field has been set. -func (o *MerchantInfo) HasTotalCompletionRate() bool { - if o != nil && !isNil(o.TotalCompletionRate) { - return true - } - - return false -} - -// SetTotalCompletionRate gets a reference to the given string and assigns it to the TotalCompletionRate field. -func (o *MerchantInfo) SetTotalCompletionRate(v string) { - o.TotalCompletionRate = &v -} - -// GetTotalSell returns the TotalSell field value if set, zero value otherwise. -func (o *MerchantInfo) GetTotalSell() string { - if o == nil || isNil(o.TotalSell) { - var ret string - return ret - } - return *o.TotalSell -} - -// GetTotalSellOk returns a tuple with the TotalSell field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetTotalSellOk() (*string, bool) { - if o == nil || isNil(o.TotalSell) { - return nil, false - } - return o.TotalSell, true -} - -// HasTotalSell returns a boolean if a field has been set. -func (o *MerchantInfo) HasTotalSell() bool { - if o != nil && !isNil(o.TotalSell) { - return true - } - - return false -} - -// SetTotalSell gets a reference to the given string and assigns it to the TotalSell field. -func (o *MerchantInfo) SetTotalSell(v string) { - o.TotalSell = &v -} - -// GetTotalTrades returns the TotalTrades field value if set, zero value otherwise. -func (o *MerchantInfo) GetTotalTrades() string { - if o == nil || isNil(o.TotalTrades) { - var ret string - return ret - } - return *o.TotalTrades -} - -// GetTotalTradesOk returns a tuple with the TotalTrades field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfo) GetTotalTradesOk() (*string, bool) { - if o == nil || isNil(o.TotalTrades) { - return nil, false - } - return o.TotalTrades, true -} - -// HasTotalTrades returns a boolean if a field has been set. -func (o *MerchantInfo) HasTotalTrades() bool { - if o != nil && !isNil(o.TotalTrades) { - return true - } - - return false -} - -// SetTotalTrades gets a reference to the given string and assigns it to the TotalTrades field. -func (o *MerchantInfo) SetTotalTrades(v string) { - o.TotalTrades = &v -} - -func (o MerchantInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AveragePayment) { - toSerialize["averagePayment"] = o.AveragePayment - } - if !isNil(o.AverageRealese) { - toSerialize["averageRealese"] = o.AverageRealese - } - if !isNil(o.IsOnline) { - toSerialize["isOnline"] = o.IsOnline - } - if !isNil(o.MerchantId) { - toSerialize["merchantId"] = o.MerchantId - } - if !isNil(o.NickName) { - toSerialize["nickName"] = o.NickName - } - if !isNil(o.RegisterTime) { - toSerialize["registerTime"] = o.RegisterTime - } - if !isNil(o.ThirtyBuy) { - toSerialize["thirtyBuy"] = o.ThirtyBuy - } - if !isNil(o.ThirtyCompletionRate) { - toSerialize["thirtyCompletionRate"] = o.ThirtyCompletionRate - } - if !isNil(o.ThirtySell) { - toSerialize["thirtySell"] = o.ThirtySell - } - if !isNil(o.ThirtyTrades) { - toSerialize["thirtyTrades"] = o.ThirtyTrades - } - if !isNil(o.TotalBuy) { - toSerialize["totalBuy"] = o.TotalBuy - } - if !isNil(o.TotalCompletionRate) { - toSerialize["totalCompletionRate"] = o.TotalCompletionRate - } - if !isNil(o.TotalSell) { - toSerialize["totalSell"] = o.TotalSell - } - if !isNil(o.TotalTrades) { - toSerialize["totalTrades"] = o.TotalTrades - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantInfo := _MerchantInfo{} - - if err = json.Unmarshal(bytes, &varMerchantInfo); err == nil { - *o = MerchantInfo(varMerchantInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "averagePayment") - delete(additionalProperties, "averageRealese") - delete(additionalProperties, "isOnline") - delete(additionalProperties, "merchantId") - delete(additionalProperties, "nickName") - delete(additionalProperties, "registerTime") - delete(additionalProperties, "thirtyBuy") - delete(additionalProperties, "thirtyCompletionRate") - delete(additionalProperties, "thirtySell") - delete(additionalProperties, "thirtyTrades") - delete(additionalProperties, "totalBuy") - delete(additionalProperties, "totalCompletionRate") - delete(additionalProperties, "totalSell") - delete(additionalProperties, "totalTrades") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantInfo struct { - value *MerchantInfo - isSet bool -} - -func (v NullableMerchantInfo) Get() *MerchantInfo { - return v.value -} - -func (v *NullableMerchantInfo) Set(val *MerchantInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantInfo(val *MerchantInfo) *NullableMerchantInfo { - return &NullableMerchantInfo{value: val, isSet: true} -} - -func (v NullableMerchantInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_info_result.go b/bitget-goland-sdk-open-api/model_merchant_info_result.go deleted file mode 100644 index 3857ef8b..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_info_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantInfoResult struct for MerchantInfoResult -type MerchantInfoResult struct { - MinId *string `json:"minId,omitempty"` - ResultList []MerchantInfo `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantInfoResult MerchantInfoResult - -// NewMerchantInfoResult instantiates a new MerchantInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantInfoResult() *MerchantInfoResult { - this := MerchantInfoResult{} - return &this -} - -// NewMerchantInfoResultWithDefaults instantiates a new MerchantInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantInfoResultWithDefaults() *MerchantInfoResult { - this := MerchantInfoResult{} - return &this -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MerchantInfoResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfoResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MerchantInfoResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MerchantInfoResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MerchantInfoResult) GetResultList() []MerchantInfo { - if o == nil || isNil(o.ResultList) { - var ret []MerchantInfo - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantInfoResult) GetResultListOk() ([]MerchantInfo, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MerchantInfoResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MerchantInfo and assigns it to the ResultList field. -func (o *MerchantInfoResult) SetResultList(v []MerchantInfo) { - o.ResultList = v -} - -func (o MerchantInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varMerchantInfoResult := _MerchantInfoResult{} - - if err = json.Unmarshal(bytes, &varMerchantInfoResult); err == nil { - *o = MerchantInfoResult(varMerchantInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantInfoResult struct { - value *MerchantInfoResult - isSet bool -} - -func (v NullableMerchantInfoResult) Get() *MerchantInfoResult { - return v.value -} - -func (v *NullableMerchantInfoResult) Set(val *MerchantInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantInfoResult(val *MerchantInfoResult) *NullableMerchantInfoResult { - return &NullableMerchantInfoResult{value: val, isSet: true} -} - -func (v NullableMerchantInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_order_info.go b/bitget-goland-sdk-open-api/model_merchant_order_info.go deleted file mode 100644 index fb6811e0..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_order_info.go +++ /dev/null @@ -1,767 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantOrderInfo struct for MerchantOrderInfo -type MerchantOrderInfo struct { - AdvNo *string `json:"advNo,omitempty"` - Amount *string `json:"amount,omitempty"` - BuyerRealName *string `json:"buyerRealName,omitempty"` - Coin *string `json:"coin,omitempty"` - Count *string `json:"count,omitempty"` - Ctime *string `json:"ctime,omitempty"` - Fiat *string `json:"fiat,omitempty"` - OrderId *string `json:"orderId,omitempty"` - OrderNo *string `json:"orderNo,omitempty"` - PaymentInfo *MerchantOrderPaymentInfo `json:"paymentInfo,omitempty"` - PaymentTime *string `json:"paymentTime,omitempty"` - Price *string `json:"price,omitempty"` - ReleaseCoinTime *string `json:"releaseCoinTime,omitempty"` - RepresentTime *string `json:"representTime,omitempty"` - SellerRealName *string `json:"sellerRealName,omitempty"` - Status *string `json:"status,omitempty"` - Type *string `json:"type,omitempty"` - WithdrawTime *string `json:"withdrawTime,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantOrderInfo MerchantOrderInfo - -// NewMerchantOrderInfo instantiates a new MerchantOrderInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantOrderInfo() *MerchantOrderInfo { - this := MerchantOrderInfo{} - return &this -} - -// NewMerchantOrderInfoWithDefaults instantiates a new MerchantOrderInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantOrderInfoWithDefaults() *MerchantOrderInfo { - this := MerchantOrderInfo{} - return &this -} - -// GetAdvNo returns the AdvNo field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetAdvNo() string { - if o == nil || isNil(o.AdvNo) { - var ret string - return ret - } - return *o.AdvNo -} - -// GetAdvNoOk returns a tuple with the AdvNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetAdvNoOk() (*string, bool) { - if o == nil || isNil(o.AdvNo) { - return nil, false - } - return o.AdvNo, true -} - -// HasAdvNo returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasAdvNo() bool { - if o != nil && !isNil(o.AdvNo) { - return true - } - - return false -} - -// SetAdvNo gets a reference to the given string and assigns it to the AdvNo field. -func (o *MerchantOrderInfo) SetAdvNo(v string) { - o.AdvNo = &v -} - -// GetAmount returns the Amount field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetAmount() string { - if o == nil || isNil(o.Amount) { - var ret string - return ret - } - return *o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetAmountOk() (*string, bool) { - if o == nil || isNil(o.Amount) { - return nil, false - } - return o.Amount, true -} - -// HasAmount returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasAmount() bool { - if o != nil && !isNil(o.Amount) { - return true - } - - return false -} - -// SetAmount gets a reference to the given string and assigns it to the Amount field. -func (o *MerchantOrderInfo) SetAmount(v string) { - o.Amount = &v -} - -// GetBuyerRealName returns the BuyerRealName field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetBuyerRealName() string { - if o == nil || isNil(o.BuyerRealName) { - var ret string - return ret - } - return *o.BuyerRealName -} - -// GetBuyerRealNameOk returns a tuple with the BuyerRealName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetBuyerRealNameOk() (*string, bool) { - if o == nil || isNil(o.BuyerRealName) { - return nil, false - } - return o.BuyerRealName, true -} - -// HasBuyerRealName returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasBuyerRealName() bool { - if o != nil && !isNil(o.BuyerRealName) { - return true - } - - return false -} - -// SetBuyerRealName gets a reference to the given string and assigns it to the BuyerRealName field. -func (o *MerchantOrderInfo) SetBuyerRealName(v string) { - o.BuyerRealName = &v -} - -// GetCoin returns the Coin field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetCoin() string { - if o == nil || isNil(o.Coin) { - var ret string - return ret - } - return *o.Coin -} - -// GetCoinOk returns a tuple with the Coin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetCoinOk() (*string, bool) { - if o == nil || isNil(o.Coin) { - return nil, false - } - return o.Coin, true -} - -// HasCoin returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasCoin() bool { - if o != nil && !isNil(o.Coin) { - return true - } - - return false -} - -// SetCoin gets a reference to the given string and assigns it to the Coin field. -func (o *MerchantOrderInfo) SetCoin(v string) { - o.Coin = &v -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetCount() string { - if o == nil || isNil(o.Count) { - var ret string - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetCountOk() (*string, bool) { - if o == nil || isNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasCount() bool { - if o != nil && !isNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given string and assigns it to the Count field. -func (o *MerchantOrderInfo) SetCount(v string) { - o.Count = &v -} - -// GetCtime returns the Ctime field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetCtime() string { - if o == nil || isNil(o.Ctime) { - var ret string - return ret - } - return *o.Ctime -} - -// GetCtimeOk returns a tuple with the Ctime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetCtimeOk() (*string, bool) { - if o == nil || isNil(o.Ctime) { - return nil, false - } - return o.Ctime, true -} - -// HasCtime returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasCtime() bool { - if o != nil && !isNil(o.Ctime) { - return true - } - - return false -} - -// SetCtime gets a reference to the given string and assigns it to the Ctime field. -func (o *MerchantOrderInfo) SetCtime(v string) { - o.Ctime = &v -} - -// GetFiat returns the Fiat field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetFiat() string { - if o == nil || isNil(o.Fiat) { - var ret string - return ret - } - return *o.Fiat -} - -// GetFiatOk returns a tuple with the Fiat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetFiatOk() (*string, bool) { - if o == nil || isNil(o.Fiat) { - return nil, false - } - return o.Fiat, true -} - -// HasFiat returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasFiat() bool { - if o != nil && !isNil(o.Fiat) { - return true - } - - return false -} - -// SetFiat gets a reference to the given string and assigns it to the Fiat field. -func (o *MerchantOrderInfo) SetFiat(v string) { - o.Fiat = &v -} - -// GetOrderId returns the OrderId field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetOrderId() string { - if o == nil || isNil(o.OrderId) { - var ret string - return ret - } - return *o.OrderId -} - -// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetOrderIdOk() (*string, bool) { - if o == nil || isNil(o.OrderId) { - return nil, false - } - return o.OrderId, true -} - -// HasOrderId returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasOrderId() bool { - if o != nil && !isNil(o.OrderId) { - return true - } - - return false -} - -// SetOrderId gets a reference to the given string and assigns it to the OrderId field. -func (o *MerchantOrderInfo) SetOrderId(v string) { - o.OrderId = &v -} - -// GetOrderNo returns the OrderNo field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetOrderNo() string { - if o == nil || isNil(o.OrderNo) { - var ret string - return ret - } - return *o.OrderNo -} - -// GetOrderNoOk returns a tuple with the OrderNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetOrderNoOk() (*string, bool) { - if o == nil || isNil(o.OrderNo) { - return nil, false - } - return o.OrderNo, true -} - -// HasOrderNo returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasOrderNo() bool { - if o != nil && !isNil(o.OrderNo) { - return true - } - - return false -} - -// SetOrderNo gets a reference to the given string and assigns it to the OrderNo field. -func (o *MerchantOrderInfo) SetOrderNo(v string) { - o.OrderNo = &v -} - -// GetPaymentInfo returns the PaymentInfo field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetPaymentInfo() MerchantOrderPaymentInfo { - if o == nil || isNil(o.PaymentInfo) { - var ret MerchantOrderPaymentInfo - return ret - } - return *o.PaymentInfo -} - -// GetPaymentInfoOk returns a tuple with the PaymentInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetPaymentInfoOk() (*MerchantOrderPaymentInfo, bool) { - if o == nil || isNil(o.PaymentInfo) { - return nil, false - } - return o.PaymentInfo, true -} - -// HasPaymentInfo returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasPaymentInfo() bool { - if o != nil && !isNil(o.PaymentInfo) { - return true - } - - return false -} - -// SetPaymentInfo gets a reference to the given MerchantOrderPaymentInfo and assigns it to the PaymentInfo field. -func (o *MerchantOrderInfo) SetPaymentInfo(v MerchantOrderPaymentInfo) { - o.PaymentInfo = &v -} - -// GetPaymentTime returns the PaymentTime field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetPaymentTime() string { - if o == nil || isNil(o.PaymentTime) { - var ret string - return ret - } - return *o.PaymentTime -} - -// GetPaymentTimeOk returns a tuple with the PaymentTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetPaymentTimeOk() (*string, bool) { - if o == nil || isNil(o.PaymentTime) { - return nil, false - } - return o.PaymentTime, true -} - -// HasPaymentTime returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasPaymentTime() bool { - if o != nil && !isNil(o.PaymentTime) { - return true - } - - return false -} - -// SetPaymentTime gets a reference to the given string and assigns it to the PaymentTime field. -func (o *MerchantOrderInfo) SetPaymentTime(v string) { - o.PaymentTime = &v -} - -// GetPrice returns the Price field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetPrice() string { - if o == nil || isNil(o.Price) { - var ret string - return ret - } - return *o.Price -} - -// GetPriceOk returns a tuple with the Price field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetPriceOk() (*string, bool) { - if o == nil || isNil(o.Price) { - return nil, false - } - return o.Price, true -} - -// HasPrice returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasPrice() bool { - if o != nil && !isNil(o.Price) { - return true - } - - return false -} - -// SetPrice gets a reference to the given string and assigns it to the Price field. -func (o *MerchantOrderInfo) SetPrice(v string) { - o.Price = &v -} - -// GetReleaseCoinTime returns the ReleaseCoinTime field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetReleaseCoinTime() string { - if o == nil || isNil(o.ReleaseCoinTime) { - var ret string - return ret - } - return *o.ReleaseCoinTime -} - -// GetReleaseCoinTimeOk returns a tuple with the ReleaseCoinTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetReleaseCoinTimeOk() (*string, bool) { - if o == nil || isNil(o.ReleaseCoinTime) { - return nil, false - } - return o.ReleaseCoinTime, true -} - -// HasReleaseCoinTime returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasReleaseCoinTime() bool { - if o != nil && !isNil(o.ReleaseCoinTime) { - return true - } - - return false -} - -// SetReleaseCoinTime gets a reference to the given string and assigns it to the ReleaseCoinTime field. -func (o *MerchantOrderInfo) SetReleaseCoinTime(v string) { - o.ReleaseCoinTime = &v -} - -// GetRepresentTime returns the RepresentTime field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetRepresentTime() string { - if o == nil || isNil(o.RepresentTime) { - var ret string - return ret - } - return *o.RepresentTime -} - -// GetRepresentTimeOk returns a tuple with the RepresentTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetRepresentTimeOk() (*string, bool) { - if o == nil || isNil(o.RepresentTime) { - return nil, false - } - return o.RepresentTime, true -} - -// HasRepresentTime returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasRepresentTime() bool { - if o != nil && !isNil(o.RepresentTime) { - return true - } - - return false -} - -// SetRepresentTime gets a reference to the given string and assigns it to the RepresentTime field. -func (o *MerchantOrderInfo) SetRepresentTime(v string) { - o.RepresentTime = &v -} - -// GetSellerRealName returns the SellerRealName field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetSellerRealName() string { - if o == nil || isNil(o.SellerRealName) { - var ret string - return ret - } - return *o.SellerRealName -} - -// GetSellerRealNameOk returns a tuple with the SellerRealName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetSellerRealNameOk() (*string, bool) { - if o == nil || isNil(o.SellerRealName) { - return nil, false - } - return o.SellerRealName, true -} - -// HasSellerRealName returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasSellerRealName() bool { - if o != nil && !isNil(o.SellerRealName) { - return true - } - - return false -} - -// SetSellerRealName gets a reference to the given string and assigns it to the SellerRealName field. -func (o *MerchantOrderInfo) SetSellerRealName(v string) { - o.SellerRealName = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetStatus() string { - if o == nil || isNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetStatusOk() (*string, bool) { - if o == nil || isNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasStatus() bool { - if o != nil && !isNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *MerchantOrderInfo) SetStatus(v string) { - o.Status = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *MerchantOrderInfo) SetType(v string) { - o.Type = &v -} - -// GetWithdrawTime returns the WithdrawTime field value if set, zero value otherwise. -func (o *MerchantOrderInfo) GetWithdrawTime() string { - if o == nil || isNil(o.WithdrawTime) { - var ret string - return ret - } - return *o.WithdrawTime -} - -// GetWithdrawTimeOk returns a tuple with the WithdrawTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderInfo) GetWithdrawTimeOk() (*string, bool) { - if o == nil || isNil(o.WithdrawTime) { - return nil, false - } - return o.WithdrawTime, true -} - -// HasWithdrawTime returns a boolean if a field has been set. -func (o *MerchantOrderInfo) HasWithdrawTime() bool { - if o != nil && !isNil(o.WithdrawTime) { - return true - } - - return false -} - -// SetWithdrawTime gets a reference to the given string and assigns it to the WithdrawTime field. -func (o *MerchantOrderInfo) SetWithdrawTime(v string) { - o.WithdrawTime = &v -} - -func (o MerchantOrderInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AdvNo) { - toSerialize["advNo"] = o.AdvNo - } - if !isNil(o.Amount) { - toSerialize["amount"] = o.Amount - } - if !isNil(o.BuyerRealName) { - toSerialize["buyerRealName"] = o.BuyerRealName - } - if !isNil(o.Coin) { - toSerialize["coin"] = o.Coin - } - if !isNil(o.Count) { - toSerialize["count"] = o.Count - } - if !isNil(o.Ctime) { - toSerialize["ctime"] = o.Ctime - } - if !isNil(o.Fiat) { - toSerialize["fiat"] = o.Fiat - } - if !isNil(o.OrderId) { - toSerialize["orderId"] = o.OrderId - } - if !isNil(o.OrderNo) { - toSerialize["orderNo"] = o.OrderNo - } - if !isNil(o.PaymentInfo) { - toSerialize["paymentInfo"] = o.PaymentInfo - } - if !isNil(o.PaymentTime) { - toSerialize["paymentTime"] = o.PaymentTime - } - if !isNil(o.Price) { - toSerialize["price"] = o.Price - } - if !isNil(o.ReleaseCoinTime) { - toSerialize["releaseCoinTime"] = o.ReleaseCoinTime - } - if !isNil(o.RepresentTime) { - toSerialize["representTime"] = o.RepresentTime - } - if !isNil(o.SellerRealName) { - toSerialize["sellerRealName"] = o.SellerRealName - } - if !isNil(o.Status) { - toSerialize["status"] = o.Status - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.WithdrawTime) { - toSerialize["withdrawTime"] = o.WithdrawTime - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantOrderInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantOrderInfo := _MerchantOrderInfo{} - - if err = json.Unmarshal(bytes, &varMerchantOrderInfo); err == nil { - *o = MerchantOrderInfo(varMerchantOrderInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "advNo") - delete(additionalProperties, "amount") - delete(additionalProperties, "buyerRealName") - delete(additionalProperties, "coin") - delete(additionalProperties, "count") - delete(additionalProperties, "ctime") - delete(additionalProperties, "fiat") - delete(additionalProperties, "orderId") - delete(additionalProperties, "orderNo") - delete(additionalProperties, "paymentInfo") - delete(additionalProperties, "paymentTime") - delete(additionalProperties, "price") - delete(additionalProperties, "releaseCoinTime") - delete(additionalProperties, "representTime") - delete(additionalProperties, "sellerRealName") - delete(additionalProperties, "status") - delete(additionalProperties, "type") - delete(additionalProperties, "withdrawTime") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantOrderInfo struct { - value *MerchantOrderInfo - isSet bool -} - -func (v NullableMerchantOrderInfo) Get() *MerchantOrderInfo { - return v.value -} - -func (v *NullableMerchantOrderInfo) Set(val *MerchantOrderInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantOrderInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantOrderInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantOrderInfo(val *MerchantOrderInfo) *NullableMerchantOrderInfo { - return &NullableMerchantOrderInfo{value: val, isSet: true} -} - -func (v NullableMerchantOrderInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantOrderInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_order_payment_info.go b/bitget-goland-sdk-open-api/model_merchant_order_payment_info.go deleted file mode 100644 index 6adbcbbe..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_order_payment_info.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantOrderPaymentInfo struct for MerchantOrderPaymentInfo -type MerchantOrderPaymentInfo struct { - PaymethodId *string `json:"paymethodId,omitempty"` - PaymethodInfo []OrderPaymentDetailInfo `json:"paymethodInfo,omitempty"` - PaymethodName *string `json:"paymethodName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantOrderPaymentInfo MerchantOrderPaymentInfo - -// NewMerchantOrderPaymentInfo instantiates a new MerchantOrderPaymentInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantOrderPaymentInfo() *MerchantOrderPaymentInfo { - this := MerchantOrderPaymentInfo{} - return &this -} - -// NewMerchantOrderPaymentInfoWithDefaults instantiates a new MerchantOrderPaymentInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantOrderPaymentInfoWithDefaults() *MerchantOrderPaymentInfo { - this := MerchantOrderPaymentInfo{} - return &this -} - -// GetPaymethodId returns the PaymethodId field value if set, zero value otherwise. -func (o *MerchantOrderPaymentInfo) GetPaymethodId() string { - if o == nil || isNil(o.PaymethodId) { - var ret string - return ret - } - return *o.PaymethodId -} - -// GetPaymethodIdOk returns a tuple with the PaymethodId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderPaymentInfo) GetPaymethodIdOk() (*string, bool) { - if o == nil || isNil(o.PaymethodId) { - return nil, false - } - return o.PaymethodId, true -} - -// HasPaymethodId returns a boolean if a field has been set. -func (o *MerchantOrderPaymentInfo) HasPaymethodId() bool { - if o != nil && !isNil(o.PaymethodId) { - return true - } - - return false -} - -// SetPaymethodId gets a reference to the given string and assigns it to the PaymethodId field. -func (o *MerchantOrderPaymentInfo) SetPaymethodId(v string) { - o.PaymethodId = &v -} - -// GetPaymethodInfo returns the PaymethodInfo field value if set, zero value otherwise. -func (o *MerchantOrderPaymentInfo) GetPaymethodInfo() []OrderPaymentDetailInfo { - if o == nil || isNil(o.PaymethodInfo) { - var ret []OrderPaymentDetailInfo - return ret - } - return o.PaymethodInfo -} - -// GetPaymethodInfoOk returns a tuple with the PaymethodInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderPaymentInfo) GetPaymethodInfoOk() ([]OrderPaymentDetailInfo, bool) { - if o == nil || isNil(o.PaymethodInfo) { - return nil, false - } - return o.PaymethodInfo, true -} - -// HasPaymethodInfo returns a boolean if a field has been set. -func (o *MerchantOrderPaymentInfo) HasPaymethodInfo() bool { - if o != nil && !isNil(o.PaymethodInfo) { - return true - } - - return false -} - -// SetPaymethodInfo gets a reference to the given []OrderPaymentDetailInfo and assigns it to the PaymethodInfo field. -func (o *MerchantOrderPaymentInfo) SetPaymethodInfo(v []OrderPaymentDetailInfo) { - o.PaymethodInfo = v -} - -// GetPaymethodName returns the PaymethodName field value if set, zero value otherwise. -func (o *MerchantOrderPaymentInfo) GetPaymethodName() string { - if o == nil || isNil(o.PaymethodName) { - var ret string - return ret - } - return *o.PaymethodName -} - -// GetPaymethodNameOk returns a tuple with the PaymethodName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderPaymentInfo) GetPaymethodNameOk() (*string, bool) { - if o == nil || isNil(o.PaymethodName) { - return nil, false - } - return o.PaymethodName, true -} - -// HasPaymethodName returns a boolean if a field has been set. -func (o *MerchantOrderPaymentInfo) HasPaymethodName() bool { - if o != nil && !isNil(o.PaymethodName) { - return true - } - - return false -} - -// SetPaymethodName gets a reference to the given string and assigns it to the PaymethodName field. -func (o *MerchantOrderPaymentInfo) SetPaymethodName(v string) { - o.PaymethodName = &v -} - -func (o MerchantOrderPaymentInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PaymethodId) { - toSerialize["paymethodId"] = o.PaymethodId - } - if !isNil(o.PaymethodInfo) { - toSerialize["paymethodInfo"] = o.PaymethodInfo - } - if !isNil(o.PaymethodName) { - toSerialize["paymethodName"] = o.PaymethodName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantOrderPaymentInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantOrderPaymentInfo := _MerchantOrderPaymentInfo{} - - if err = json.Unmarshal(bytes, &varMerchantOrderPaymentInfo); err == nil { - *o = MerchantOrderPaymentInfo(varMerchantOrderPaymentInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "paymethodId") - delete(additionalProperties, "paymethodInfo") - delete(additionalProperties, "paymethodName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantOrderPaymentInfo struct { - value *MerchantOrderPaymentInfo - isSet bool -} - -func (v NullableMerchantOrderPaymentInfo) Get() *MerchantOrderPaymentInfo { - return v.value -} - -func (v *NullableMerchantOrderPaymentInfo) Set(val *MerchantOrderPaymentInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantOrderPaymentInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantOrderPaymentInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantOrderPaymentInfo(val *MerchantOrderPaymentInfo) *NullableMerchantOrderPaymentInfo { - return &NullableMerchantOrderPaymentInfo{value: val, isSet: true} -} - -func (v NullableMerchantOrderPaymentInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantOrderPaymentInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_order_result.go b/bitget-goland-sdk-open-api/model_merchant_order_result.go deleted file mode 100644 index a70483aa..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_order_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantOrderResult struct for MerchantOrderResult -type MerchantOrderResult struct { - MinId *string `json:"minId,omitempty"` - OrderList []MerchantOrderInfo `json:"orderList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantOrderResult MerchantOrderResult - -// NewMerchantOrderResult instantiates a new MerchantOrderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantOrderResult() *MerchantOrderResult { - this := MerchantOrderResult{} - return &this -} - -// NewMerchantOrderResultWithDefaults instantiates a new MerchantOrderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantOrderResultWithDefaults() *MerchantOrderResult { - this := MerchantOrderResult{} - return &this -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *MerchantOrderResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *MerchantOrderResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *MerchantOrderResult) SetMinId(v string) { - o.MinId = &v -} - -// GetOrderList returns the OrderList field value if set, zero value otherwise. -func (o *MerchantOrderResult) GetOrderList() []MerchantOrderInfo { - if o == nil || isNil(o.OrderList) { - var ret []MerchantOrderInfo - return ret - } - return o.OrderList -} - -// GetOrderListOk returns a tuple with the OrderList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantOrderResult) GetOrderListOk() ([]MerchantOrderInfo, bool) { - if o == nil || isNil(o.OrderList) { - return nil, false - } - return o.OrderList, true -} - -// HasOrderList returns a boolean if a field has been set. -func (o *MerchantOrderResult) HasOrderList() bool { - if o != nil && !isNil(o.OrderList) { - return true - } - - return false -} - -// SetOrderList gets a reference to the given []MerchantOrderInfo and assigns it to the OrderList field. -func (o *MerchantOrderResult) SetOrderList(v []MerchantOrderInfo) { - o.OrderList = v -} - -func (o MerchantOrderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.OrderList) { - toSerialize["orderList"] = o.OrderList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantOrderResult) UnmarshalJSON(bytes []byte) (err error) { - varMerchantOrderResult := _MerchantOrderResult{} - - if err = json.Unmarshal(bytes, &varMerchantOrderResult); err == nil { - *o = MerchantOrderResult(varMerchantOrderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "minId") - delete(additionalProperties, "orderList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantOrderResult struct { - value *MerchantOrderResult - isSet bool -} - -func (v NullableMerchantOrderResult) Get() *MerchantOrderResult { - return v.value -} - -func (v *NullableMerchantOrderResult) Set(val *MerchantOrderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantOrderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantOrderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantOrderResult(val *MerchantOrderResult) *NullableMerchantOrderResult { - return &NullableMerchantOrderResult{value: val, isSet: true} -} - -func (v NullableMerchantOrderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantOrderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_merchant_person_info.go b/bitget-goland-sdk-open-api/model_merchant_person_info.go deleted file mode 100644 index 21feeb74..00000000 --- a/bitget-goland-sdk-open-api/model_merchant_person_info.go +++ /dev/null @@ -1,804 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MerchantPersonInfo struct for MerchantPersonInfo -type MerchantPersonInfo struct { - AveragePayment *string `json:"averagePayment,omitempty"` - AverageRealese *string `json:"averageRealese,omitempty"` - Email *string `json:"email,omitempty"` - EmailBindFlag *bool `json:"emailBindFlag,omitempty"` - KycFlag *bool `json:"kycFlag,omitempty"` - MerchantId *string `json:"merchantId,omitempty"` - Mobile *string `json:"mobile,omitempty"` - MobileBindFlag *bool `json:"mobileBindFlag,omitempty"` - NickName *string `json:"nickName,omitempty"` - RealName *string `json:"realName,omitempty"` - RegisterTime *string `json:"registerTime,omitempty"` - ThirtyBuy *string `json:"thirtyBuy,omitempty"` - ThirtyCompletionRate *string `json:"thirtyCompletionRate,omitempty"` - ThirtySell *string `json:"thirtySell,omitempty"` - ThirtyTrades *string `json:"thirtyTrades,omitempty"` - TotalBuy *string `json:"totalBuy,omitempty"` - TotalCompletionRate *string `json:"totalCompletionRate,omitempty"` - TotalSell *string `json:"totalSell,omitempty"` - TotalTrades *string `json:"totalTrades,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MerchantPersonInfo MerchantPersonInfo - -// NewMerchantPersonInfo instantiates a new MerchantPersonInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMerchantPersonInfo() *MerchantPersonInfo { - this := MerchantPersonInfo{} - return &this -} - -// NewMerchantPersonInfoWithDefaults instantiates a new MerchantPersonInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMerchantPersonInfoWithDefaults() *MerchantPersonInfo { - this := MerchantPersonInfo{} - return &this -} - -// GetAveragePayment returns the AveragePayment field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetAveragePayment() string { - if o == nil || isNil(o.AveragePayment) { - var ret string - return ret - } - return *o.AveragePayment -} - -// GetAveragePaymentOk returns a tuple with the AveragePayment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetAveragePaymentOk() (*string, bool) { - if o == nil || isNil(o.AveragePayment) { - return nil, false - } - return o.AveragePayment, true -} - -// HasAveragePayment returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasAveragePayment() bool { - if o != nil && !isNil(o.AveragePayment) { - return true - } - - return false -} - -// SetAveragePayment gets a reference to the given string and assigns it to the AveragePayment field. -func (o *MerchantPersonInfo) SetAveragePayment(v string) { - o.AveragePayment = &v -} - -// GetAverageRealese returns the AverageRealese field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetAverageRealese() string { - if o == nil || isNil(o.AverageRealese) { - var ret string - return ret - } - return *o.AverageRealese -} - -// GetAverageRealeseOk returns a tuple with the AverageRealese field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetAverageRealeseOk() (*string, bool) { - if o == nil || isNil(o.AverageRealese) { - return nil, false - } - return o.AverageRealese, true -} - -// HasAverageRealese returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasAverageRealese() bool { - if o != nil && !isNil(o.AverageRealese) { - return true - } - - return false -} - -// SetAverageRealese gets a reference to the given string and assigns it to the AverageRealese field. -func (o *MerchantPersonInfo) SetAverageRealese(v string) { - o.AverageRealese = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetEmail() string { - if o == nil || isNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetEmailOk() (*string, bool) { - if o == nil || isNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasEmail() bool { - if o != nil && !isNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *MerchantPersonInfo) SetEmail(v string) { - o.Email = &v -} - -// GetEmailBindFlag returns the EmailBindFlag field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetEmailBindFlag() bool { - if o == nil || isNil(o.EmailBindFlag) { - var ret bool - return ret - } - return *o.EmailBindFlag -} - -// GetEmailBindFlagOk returns a tuple with the EmailBindFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetEmailBindFlagOk() (*bool, bool) { - if o == nil || isNil(o.EmailBindFlag) { - return nil, false - } - return o.EmailBindFlag, true -} - -// HasEmailBindFlag returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasEmailBindFlag() bool { - if o != nil && !isNil(o.EmailBindFlag) { - return true - } - - return false -} - -// SetEmailBindFlag gets a reference to the given bool and assigns it to the EmailBindFlag field. -func (o *MerchantPersonInfo) SetEmailBindFlag(v bool) { - o.EmailBindFlag = &v -} - -// GetKycFlag returns the KycFlag field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetKycFlag() bool { - if o == nil || isNil(o.KycFlag) { - var ret bool - return ret - } - return *o.KycFlag -} - -// GetKycFlagOk returns a tuple with the KycFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetKycFlagOk() (*bool, bool) { - if o == nil || isNil(o.KycFlag) { - return nil, false - } - return o.KycFlag, true -} - -// HasKycFlag returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasKycFlag() bool { - if o != nil && !isNil(o.KycFlag) { - return true - } - - return false -} - -// SetKycFlag gets a reference to the given bool and assigns it to the KycFlag field. -func (o *MerchantPersonInfo) SetKycFlag(v bool) { - o.KycFlag = &v -} - -// GetMerchantId returns the MerchantId field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetMerchantId() string { - if o == nil || isNil(o.MerchantId) { - var ret string - return ret - } - return *o.MerchantId -} - -// GetMerchantIdOk returns a tuple with the MerchantId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetMerchantIdOk() (*string, bool) { - if o == nil || isNil(o.MerchantId) { - return nil, false - } - return o.MerchantId, true -} - -// HasMerchantId returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasMerchantId() bool { - if o != nil && !isNil(o.MerchantId) { - return true - } - - return false -} - -// SetMerchantId gets a reference to the given string and assigns it to the MerchantId field. -func (o *MerchantPersonInfo) SetMerchantId(v string) { - o.MerchantId = &v -} - -// GetMobile returns the Mobile field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetMobile() string { - if o == nil || isNil(o.Mobile) { - var ret string - return ret - } - return *o.Mobile -} - -// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetMobileOk() (*string, bool) { - if o == nil || isNil(o.Mobile) { - return nil, false - } - return o.Mobile, true -} - -// HasMobile returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasMobile() bool { - if o != nil && !isNil(o.Mobile) { - return true - } - - return false -} - -// SetMobile gets a reference to the given string and assigns it to the Mobile field. -func (o *MerchantPersonInfo) SetMobile(v string) { - o.Mobile = &v -} - -// GetMobileBindFlag returns the MobileBindFlag field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetMobileBindFlag() bool { - if o == nil || isNil(o.MobileBindFlag) { - var ret bool - return ret - } - return *o.MobileBindFlag -} - -// GetMobileBindFlagOk returns a tuple with the MobileBindFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetMobileBindFlagOk() (*bool, bool) { - if o == nil || isNil(o.MobileBindFlag) { - return nil, false - } - return o.MobileBindFlag, true -} - -// HasMobileBindFlag returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasMobileBindFlag() bool { - if o != nil && !isNil(o.MobileBindFlag) { - return true - } - - return false -} - -// SetMobileBindFlag gets a reference to the given bool and assigns it to the MobileBindFlag field. -func (o *MerchantPersonInfo) SetMobileBindFlag(v bool) { - o.MobileBindFlag = &v -} - -// GetNickName returns the NickName field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetNickName() string { - if o == nil || isNil(o.NickName) { - var ret string - return ret - } - return *o.NickName -} - -// GetNickNameOk returns a tuple with the NickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetNickNameOk() (*string, bool) { - if o == nil || isNil(o.NickName) { - return nil, false - } - return o.NickName, true -} - -// HasNickName returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasNickName() bool { - if o != nil && !isNil(o.NickName) { - return true - } - - return false -} - -// SetNickName gets a reference to the given string and assigns it to the NickName field. -func (o *MerchantPersonInfo) SetNickName(v string) { - o.NickName = &v -} - -// GetRealName returns the RealName field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetRealName() string { - if o == nil || isNil(o.RealName) { - var ret string - return ret - } - return *o.RealName -} - -// GetRealNameOk returns a tuple with the RealName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetRealNameOk() (*string, bool) { - if o == nil || isNil(o.RealName) { - return nil, false - } - return o.RealName, true -} - -// HasRealName returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasRealName() bool { - if o != nil && !isNil(o.RealName) { - return true - } - - return false -} - -// SetRealName gets a reference to the given string and assigns it to the RealName field. -func (o *MerchantPersonInfo) SetRealName(v string) { - o.RealName = &v -} - -// GetRegisterTime returns the RegisterTime field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetRegisterTime() string { - if o == nil || isNil(o.RegisterTime) { - var ret string - return ret - } - return *o.RegisterTime -} - -// GetRegisterTimeOk returns a tuple with the RegisterTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetRegisterTimeOk() (*string, bool) { - if o == nil || isNil(o.RegisterTime) { - return nil, false - } - return o.RegisterTime, true -} - -// HasRegisterTime returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasRegisterTime() bool { - if o != nil && !isNil(o.RegisterTime) { - return true - } - - return false -} - -// SetRegisterTime gets a reference to the given string and assigns it to the RegisterTime field. -func (o *MerchantPersonInfo) SetRegisterTime(v string) { - o.RegisterTime = &v -} - -// GetThirtyBuy returns the ThirtyBuy field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetThirtyBuy() string { - if o == nil || isNil(o.ThirtyBuy) { - var ret string - return ret - } - return *o.ThirtyBuy -} - -// GetThirtyBuyOk returns a tuple with the ThirtyBuy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetThirtyBuyOk() (*string, bool) { - if o == nil || isNil(o.ThirtyBuy) { - return nil, false - } - return o.ThirtyBuy, true -} - -// HasThirtyBuy returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasThirtyBuy() bool { - if o != nil && !isNil(o.ThirtyBuy) { - return true - } - - return false -} - -// SetThirtyBuy gets a reference to the given string and assigns it to the ThirtyBuy field. -func (o *MerchantPersonInfo) SetThirtyBuy(v string) { - o.ThirtyBuy = &v -} - -// GetThirtyCompletionRate returns the ThirtyCompletionRate field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetThirtyCompletionRate() string { - if o == nil || isNil(o.ThirtyCompletionRate) { - var ret string - return ret - } - return *o.ThirtyCompletionRate -} - -// GetThirtyCompletionRateOk returns a tuple with the ThirtyCompletionRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetThirtyCompletionRateOk() (*string, bool) { - if o == nil || isNil(o.ThirtyCompletionRate) { - return nil, false - } - return o.ThirtyCompletionRate, true -} - -// HasThirtyCompletionRate returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasThirtyCompletionRate() bool { - if o != nil && !isNil(o.ThirtyCompletionRate) { - return true - } - - return false -} - -// SetThirtyCompletionRate gets a reference to the given string and assigns it to the ThirtyCompletionRate field. -func (o *MerchantPersonInfo) SetThirtyCompletionRate(v string) { - o.ThirtyCompletionRate = &v -} - -// GetThirtySell returns the ThirtySell field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetThirtySell() string { - if o == nil || isNil(o.ThirtySell) { - var ret string - return ret - } - return *o.ThirtySell -} - -// GetThirtySellOk returns a tuple with the ThirtySell field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetThirtySellOk() (*string, bool) { - if o == nil || isNil(o.ThirtySell) { - return nil, false - } - return o.ThirtySell, true -} - -// HasThirtySell returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasThirtySell() bool { - if o != nil && !isNil(o.ThirtySell) { - return true - } - - return false -} - -// SetThirtySell gets a reference to the given string and assigns it to the ThirtySell field. -func (o *MerchantPersonInfo) SetThirtySell(v string) { - o.ThirtySell = &v -} - -// GetThirtyTrades returns the ThirtyTrades field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetThirtyTrades() string { - if o == nil || isNil(o.ThirtyTrades) { - var ret string - return ret - } - return *o.ThirtyTrades -} - -// GetThirtyTradesOk returns a tuple with the ThirtyTrades field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetThirtyTradesOk() (*string, bool) { - if o == nil || isNil(o.ThirtyTrades) { - return nil, false - } - return o.ThirtyTrades, true -} - -// HasThirtyTrades returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasThirtyTrades() bool { - if o != nil && !isNil(o.ThirtyTrades) { - return true - } - - return false -} - -// SetThirtyTrades gets a reference to the given string and assigns it to the ThirtyTrades field. -func (o *MerchantPersonInfo) SetThirtyTrades(v string) { - o.ThirtyTrades = &v -} - -// GetTotalBuy returns the TotalBuy field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetTotalBuy() string { - if o == nil || isNil(o.TotalBuy) { - var ret string - return ret - } - return *o.TotalBuy -} - -// GetTotalBuyOk returns a tuple with the TotalBuy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetTotalBuyOk() (*string, bool) { - if o == nil || isNil(o.TotalBuy) { - return nil, false - } - return o.TotalBuy, true -} - -// HasTotalBuy returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasTotalBuy() bool { - if o != nil && !isNil(o.TotalBuy) { - return true - } - - return false -} - -// SetTotalBuy gets a reference to the given string and assigns it to the TotalBuy field. -func (o *MerchantPersonInfo) SetTotalBuy(v string) { - o.TotalBuy = &v -} - -// GetTotalCompletionRate returns the TotalCompletionRate field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetTotalCompletionRate() string { - if o == nil || isNil(o.TotalCompletionRate) { - var ret string - return ret - } - return *o.TotalCompletionRate -} - -// GetTotalCompletionRateOk returns a tuple with the TotalCompletionRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetTotalCompletionRateOk() (*string, bool) { - if o == nil || isNil(o.TotalCompletionRate) { - return nil, false - } - return o.TotalCompletionRate, true -} - -// HasTotalCompletionRate returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasTotalCompletionRate() bool { - if o != nil && !isNil(o.TotalCompletionRate) { - return true - } - - return false -} - -// SetTotalCompletionRate gets a reference to the given string and assigns it to the TotalCompletionRate field. -func (o *MerchantPersonInfo) SetTotalCompletionRate(v string) { - o.TotalCompletionRate = &v -} - -// GetTotalSell returns the TotalSell field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetTotalSell() string { - if o == nil || isNil(o.TotalSell) { - var ret string - return ret - } - return *o.TotalSell -} - -// GetTotalSellOk returns a tuple with the TotalSell field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetTotalSellOk() (*string, bool) { - if o == nil || isNil(o.TotalSell) { - return nil, false - } - return o.TotalSell, true -} - -// HasTotalSell returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasTotalSell() bool { - if o != nil && !isNil(o.TotalSell) { - return true - } - - return false -} - -// SetTotalSell gets a reference to the given string and assigns it to the TotalSell field. -func (o *MerchantPersonInfo) SetTotalSell(v string) { - o.TotalSell = &v -} - -// GetTotalTrades returns the TotalTrades field value if set, zero value otherwise. -func (o *MerchantPersonInfo) GetTotalTrades() string { - if o == nil || isNil(o.TotalTrades) { - var ret string - return ret - } - return *o.TotalTrades -} - -// GetTotalTradesOk returns a tuple with the TotalTrades field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MerchantPersonInfo) GetTotalTradesOk() (*string, bool) { - if o == nil || isNil(o.TotalTrades) { - return nil, false - } - return o.TotalTrades, true -} - -// HasTotalTrades returns a boolean if a field has been set. -func (o *MerchantPersonInfo) HasTotalTrades() bool { - if o != nil && !isNil(o.TotalTrades) { - return true - } - - return false -} - -// SetTotalTrades gets a reference to the given string and assigns it to the TotalTrades field. -func (o *MerchantPersonInfo) SetTotalTrades(v string) { - o.TotalTrades = &v -} - -func (o MerchantPersonInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AveragePayment) { - toSerialize["averagePayment"] = o.AveragePayment - } - if !isNil(o.AverageRealese) { - toSerialize["averageRealese"] = o.AverageRealese - } - if !isNil(o.Email) { - toSerialize["email"] = o.Email - } - if !isNil(o.EmailBindFlag) { - toSerialize["emailBindFlag"] = o.EmailBindFlag - } - if !isNil(o.KycFlag) { - toSerialize["kycFlag"] = o.KycFlag - } - if !isNil(o.MerchantId) { - toSerialize["merchantId"] = o.MerchantId - } - if !isNil(o.Mobile) { - toSerialize["mobile"] = o.Mobile - } - if !isNil(o.MobileBindFlag) { - toSerialize["mobileBindFlag"] = o.MobileBindFlag - } - if !isNil(o.NickName) { - toSerialize["nickName"] = o.NickName - } - if !isNil(o.RealName) { - toSerialize["realName"] = o.RealName - } - if !isNil(o.RegisterTime) { - toSerialize["registerTime"] = o.RegisterTime - } - if !isNil(o.ThirtyBuy) { - toSerialize["thirtyBuy"] = o.ThirtyBuy - } - if !isNil(o.ThirtyCompletionRate) { - toSerialize["thirtyCompletionRate"] = o.ThirtyCompletionRate - } - if !isNil(o.ThirtySell) { - toSerialize["thirtySell"] = o.ThirtySell - } - if !isNil(o.ThirtyTrades) { - toSerialize["thirtyTrades"] = o.ThirtyTrades - } - if !isNil(o.TotalBuy) { - toSerialize["totalBuy"] = o.TotalBuy - } - if !isNil(o.TotalCompletionRate) { - toSerialize["totalCompletionRate"] = o.TotalCompletionRate - } - if !isNil(o.TotalSell) { - toSerialize["totalSell"] = o.TotalSell - } - if !isNil(o.TotalTrades) { - toSerialize["totalTrades"] = o.TotalTrades - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MerchantPersonInfo) UnmarshalJSON(bytes []byte) (err error) { - varMerchantPersonInfo := _MerchantPersonInfo{} - - if err = json.Unmarshal(bytes, &varMerchantPersonInfo); err == nil { - *o = MerchantPersonInfo(varMerchantPersonInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "averagePayment") - delete(additionalProperties, "averageRealese") - delete(additionalProperties, "email") - delete(additionalProperties, "emailBindFlag") - delete(additionalProperties, "kycFlag") - delete(additionalProperties, "merchantId") - delete(additionalProperties, "mobile") - delete(additionalProperties, "mobileBindFlag") - delete(additionalProperties, "nickName") - delete(additionalProperties, "realName") - delete(additionalProperties, "registerTime") - delete(additionalProperties, "thirtyBuy") - delete(additionalProperties, "thirtyCompletionRate") - delete(additionalProperties, "thirtySell") - delete(additionalProperties, "thirtyTrades") - delete(additionalProperties, "totalBuy") - delete(additionalProperties, "totalCompletionRate") - delete(additionalProperties, "totalSell") - delete(additionalProperties, "totalTrades") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMerchantPersonInfo struct { - value *MerchantPersonInfo - isSet bool -} - -func (v NullableMerchantPersonInfo) Get() *MerchantPersonInfo { - return v.value -} - -func (v *NullableMerchantPersonInfo) Set(val *MerchantPersonInfo) { - v.value = val - v.isSet = true -} - -func (v NullableMerchantPersonInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableMerchantPersonInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMerchantPersonInfo(val *MerchantPersonInfo) *NullableMerchantPersonInfo { - return &NullableMerchantPersonInfo{value: val, isSet: true} -} - -func (v NullableMerchantPersonInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMerchantPersonInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_tracer_result.go b/bitget-goland-sdk-open-api/model_my_tracer_result.go deleted file mode 100644 index 6217a563..00000000 --- a/bitget-goland-sdk-open-api/model_my_tracer_result.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTracerResult struct for MyTracerResult -type MyTracerResult struct { - AccountEquity *string `json:"accountEquity,omitempty"` - CanRemoveTraceUser *bool `json:"canRemoveTraceUser,omitempty"` - TracerHeadPic *string `json:"tracerHeadPic,omitempty"` - TracerNickName *string `json:"tracerNickName,omitempty"` - TracerUserId *string `json:"tracerUserId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTracerResult MyTracerResult - -// NewMyTracerResult instantiates a new MyTracerResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTracerResult() *MyTracerResult { - this := MyTracerResult{} - return &this -} - -// NewMyTracerResultWithDefaults instantiates a new MyTracerResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTracerResultWithDefaults() *MyTracerResult { - this := MyTracerResult{} - return &this -} - -// GetAccountEquity returns the AccountEquity field value if set, zero value otherwise. -func (o *MyTracerResult) GetAccountEquity() string { - if o == nil || isNil(o.AccountEquity) { - var ret string - return ret - } - return *o.AccountEquity -} - -// GetAccountEquityOk returns a tuple with the AccountEquity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracerResult) GetAccountEquityOk() (*string, bool) { - if o == nil || isNil(o.AccountEquity) { - return nil, false - } - return o.AccountEquity, true -} - -// HasAccountEquity returns a boolean if a field has been set. -func (o *MyTracerResult) HasAccountEquity() bool { - if o != nil && !isNil(o.AccountEquity) { - return true - } - - return false -} - -// SetAccountEquity gets a reference to the given string and assigns it to the AccountEquity field. -func (o *MyTracerResult) SetAccountEquity(v string) { - o.AccountEquity = &v -} - -// GetCanRemoveTraceUser returns the CanRemoveTraceUser field value if set, zero value otherwise. -func (o *MyTracerResult) GetCanRemoveTraceUser() bool { - if o == nil || isNil(o.CanRemoveTraceUser) { - var ret bool - return ret - } - return *o.CanRemoveTraceUser -} - -// GetCanRemoveTraceUserOk returns a tuple with the CanRemoveTraceUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracerResult) GetCanRemoveTraceUserOk() (*bool, bool) { - if o == nil || isNil(o.CanRemoveTraceUser) { - return nil, false - } - return o.CanRemoveTraceUser, true -} - -// HasCanRemoveTraceUser returns a boolean if a field has been set. -func (o *MyTracerResult) HasCanRemoveTraceUser() bool { - if o != nil && !isNil(o.CanRemoveTraceUser) { - return true - } - - return false -} - -// SetCanRemoveTraceUser gets a reference to the given bool and assigns it to the CanRemoveTraceUser field. -func (o *MyTracerResult) SetCanRemoveTraceUser(v bool) { - o.CanRemoveTraceUser = &v -} - -// GetTracerHeadPic returns the TracerHeadPic field value if set, zero value otherwise. -func (o *MyTracerResult) GetTracerHeadPic() string { - if o == nil || isNil(o.TracerHeadPic) { - var ret string - return ret - } - return *o.TracerHeadPic -} - -// GetTracerHeadPicOk returns a tuple with the TracerHeadPic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracerResult) GetTracerHeadPicOk() (*string, bool) { - if o == nil || isNil(o.TracerHeadPic) { - return nil, false - } - return o.TracerHeadPic, true -} - -// HasTracerHeadPic returns a boolean if a field has been set. -func (o *MyTracerResult) HasTracerHeadPic() bool { - if o != nil && !isNil(o.TracerHeadPic) { - return true - } - - return false -} - -// SetTracerHeadPic gets a reference to the given string and assigns it to the TracerHeadPic field. -func (o *MyTracerResult) SetTracerHeadPic(v string) { - o.TracerHeadPic = &v -} - -// GetTracerNickName returns the TracerNickName field value if set, zero value otherwise. -func (o *MyTracerResult) GetTracerNickName() string { - if o == nil || isNil(o.TracerNickName) { - var ret string - return ret - } - return *o.TracerNickName -} - -// GetTracerNickNameOk returns a tuple with the TracerNickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracerResult) GetTracerNickNameOk() (*string, bool) { - if o == nil || isNil(o.TracerNickName) { - return nil, false - } - return o.TracerNickName, true -} - -// HasTracerNickName returns a boolean if a field has been set. -func (o *MyTracerResult) HasTracerNickName() bool { - if o != nil && !isNil(o.TracerNickName) { - return true - } - - return false -} - -// SetTracerNickName gets a reference to the given string and assigns it to the TracerNickName field. -func (o *MyTracerResult) SetTracerNickName(v string) { - o.TracerNickName = &v -} - -// GetTracerUserId returns the TracerUserId field value if set, zero value otherwise. -func (o *MyTracerResult) GetTracerUserId() string { - if o == nil || isNil(o.TracerUserId) { - var ret string - return ret - } - return *o.TracerUserId -} - -// GetTracerUserIdOk returns a tuple with the TracerUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracerResult) GetTracerUserIdOk() (*string, bool) { - if o == nil || isNil(o.TracerUserId) { - return nil, false - } - return o.TracerUserId, true -} - -// HasTracerUserId returns a boolean if a field has been set. -func (o *MyTracerResult) HasTracerUserId() bool { - if o != nil && !isNil(o.TracerUserId) { - return true - } - - return false -} - -// SetTracerUserId gets a reference to the given string and assigns it to the TracerUserId field. -func (o *MyTracerResult) SetTracerUserId(v string) { - o.TracerUserId = &v -} - -func (o MyTracerResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.AccountEquity) { - toSerialize["accountEquity"] = o.AccountEquity - } - if !isNil(o.CanRemoveTraceUser) { - toSerialize["canRemoveTraceUser"] = o.CanRemoveTraceUser - } - if !isNil(o.TracerHeadPic) { - toSerialize["tracerHeadPic"] = o.TracerHeadPic - } - if !isNil(o.TracerNickName) { - toSerialize["tracerNickName"] = o.TracerNickName - } - if !isNil(o.TracerUserId) { - toSerialize["tracerUserId"] = o.TracerUserId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTracerResult) UnmarshalJSON(bytes []byte) (err error) { - varMyTracerResult := _MyTracerResult{} - - if err = json.Unmarshal(bytes, &varMyTracerResult); err == nil { - *o = MyTracerResult(varMyTracerResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "accountEquity") - delete(additionalProperties, "canRemoveTraceUser") - delete(additionalProperties, "tracerHeadPic") - delete(additionalProperties, "tracerNickName") - delete(additionalProperties, "tracerUserId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTracerResult struct { - value *MyTracerResult - isSet bool -} - -func (v NullableMyTracerResult) Get() *MyTracerResult { - return v.value -} - -func (v *NullableMyTracerResult) Set(val *MyTracerResult) { - v.value = val - v.isSet = true -} - -func (v NullableMyTracerResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTracerResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTracerResult(val *MyTracerResult) *NullableMyTracerResult { - return &NullableMyTracerResult{value: val, isSet: true} -} - -func (v NullableMyTracerResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTracerResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_tracers_request.go b/bitget-goland-sdk-open-api/model_my_tracers_request.go deleted file mode 100644 index e0ae1e14..00000000 --- a/bitget-goland-sdk-open-api/model_my_tracers_request.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTracersRequest struct for MyTracersRequest -type MyTracersRequest struct { - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTracersRequest MyTracersRequest - -// NewMyTracersRequest instantiates a new MyTracersRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTracersRequest() *MyTracersRequest { - this := MyTracersRequest{} - return &this -} - -// NewMyTracersRequestWithDefaults instantiates a new MyTracersRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTracersRequestWithDefaults() *MyTracersRequest { - this := MyTracersRequest{} - return &this -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *MyTracersRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracersRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *MyTracersRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *MyTracersRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *MyTracersRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracersRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *MyTracersRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *MyTracersRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o MyTracersRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTracersRequest) UnmarshalJSON(bytes []byte) (err error) { - varMyTracersRequest := _MyTracersRequest{} - - if err = json.Unmarshal(bytes, &varMyTracersRequest); err == nil { - *o = MyTracersRequest(varMyTracersRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTracersRequest struct { - value *MyTracersRequest - isSet bool -} - -func (v NullableMyTracersRequest) Get() *MyTracersRequest { - return v.value -} - -func (v *NullableMyTracersRequest) Set(val *MyTracersRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMyTracersRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTracersRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTracersRequest(val *MyTracersRequest) *NullableMyTracersRequest { - return &NullableMyTracersRequest{value: val, isSet: true} -} - -func (v NullableMyTracersRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTracersRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_tracers_result.go b/bitget-goland-sdk-open-api/model_my_tracers_result.go deleted file mode 100644 index 70284743..00000000 --- a/bitget-goland-sdk-open-api/model_my_tracers_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTracersResult struct for MyTracersResult -type MyTracersResult struct { - NextFlag *bool `json:"nextFlag,omitempty"` - ResultList []MyTracerResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTracersResult MyTracersResult - -// NewMyTracersResult instantiates a new MyTracersResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTracersResult() *MyTracersResult { - this := MyTracersResult{} - return &this -} - -// NewMyTracersResultWithDefaults instantiates a new MyTracersResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTracersResultWithDefaults() *MyTracersResult { - this := MyTracersResult{} - return &this -} - -// GetNextFlag returns the NextFlag field value if set, zero value otherwise. -func (o *MyTracersResult) GetNextFlag() bool { - if o == nil || isNil(o.NextFlag) { - var ret bool - return ret - } - return *o.NextFlag -} - -// GetNextFlagOk returns a tuple with the NextFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracersResult) GetNextFlagOk() (*bool, bool) { - if o == nil || isNil(o.NextFlag) { - return nil, false - } - return o.NextFlag, true -} - -// HasNextFlag returns a boolean if a field has been set. -func (o *MyTracersResult) HasNextFlag() bool { - if o != nil && !isNil(o.NextFlag) { - return true - } - - return false -} - -// SetNextFlag gets a reference to the given bool and assigns it to the NextFlag field. -func (o *MyTracersResult) SetNextFlag(v bool) { - o.NextFlag = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MyTracersResult) GetResultList() []MyTracerResult { - if o == nil || isNil(o.ResultList) { - var ret []MyTracerResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTracersResult) GetResultListOk() ([]MyTracerResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MyTracersResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MyTracerResult and assigns it to the ResultList field. -func (o *MyTracersResult) SetResultList(v []MyTracerResult) { - o.ResultList = v -} - -func (o MyTracersResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NextFlag) { - toSerialize["nextFlag"] = o.NextFlag - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTracersResult) UnmarshalJSON(bytes []byte) (err error) { - varMyTracersResult := _MyTracersResult{} - - if err = json.Unmarshal(bytes, &varMyTracersResult); err == nil { - *o = MyTracersResult(varMyTracersResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "nextFlag") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTracersResult struct { - value *MyTracersResult - isSet bool -} - -func (v NullableMyTracersResult) Get() *MyTracersResult { - return v.value -} - -func (v *NullableMyTracersResult) Set(val *MyTracersResult) { - v.value = val - v.isSet = true -} - -func (v NullableMyTracersResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTracersResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTracersResult(val *MyTracersResult) *NullableMyTracersResult { - return &NullableMyTracersResult{value: val, isSet: true} -} - -func (v NullableMyTracersResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTracersResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_trader_result.go b/bitget-goland-sdk-open-api/model_my_trader_result.go deleted file mode 100644 index c3186ae7..00000000 --- a/bitget-goland-sdk-open-api/model_my_trader_result.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTraderResult struct for MyTraderResult -type MyTraderResult struct { - CertificationType *string `json:"certificationType,omitempty"` - HeadPic *string `json:"headPic,omitempty"` - TraceTotalAmount *string `json:"traceTotalAmount,omitempty"` - TraceTotalNetProfit *string `json:"traceTotalNetProfit,omitempty"` - TraceTotalProfit *string `json:"traceTotalProfit,omitempty"` - TradeNickName *string `json:"tradeNickName,omitempty"` - TraderUid *string `json:"traderUid,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTraderResult MyTraderResult - -// NewMyTraderResult instantiates a new MyTraderResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTraderResult() *MyTraderResult { - this := MyTraderResult{} - return &this -} - -// NewMyTraderResultWithDefaults instantiates a new MyTraderResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTraderResultWithDefaults() *MyTraderResult { - this := MyTraderResult{} - return &this -} - -// GetCertificationType returns the CertificationType field value if set, zero value otherwise. -func (o *MyTraderResult) GetCertificationType() string { - if o == nil || isNil(o.CertificationType) { - var ret string - return ret - } - return *o.CertificationType -} - -// GetCertificationTypeOk returns a tuple with the CertificationType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetCertificationTypeOk() (*string, bool) { - if o == nil || isNil(o.CertificationType) { - return nil, false - } - return o.CertificationType, true -} - -// HasCertificationType returns a boolean if a field has been set. -func (o *MyTraderResult) HasCertificationType() bool { - if o != nil && !isNil(o.CertificationType) { - return true - } - - return false -} - -// SetCertificationType gets a reference to the given string and assigns it to the CertificationType field. -func (o *MyTraderResult) SetCertificationType(v string) { - o.CertificationType = &v -} - -// GetHeadPic returns the HeadPic field value if set, zero value otherwise. -func (o *MyTraderResult) GetHeadPic() string { - if o == nil || isNil(o.HeadPic) { - var ret string - return ret - } - return *o.HeadPic -} - -// GetHeadPicOk returns a tuple with the HeadPic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetHeadPicOk() (*string, bool) { - if o == nil || isNil(o.HeadPic) { - return nil, false - } - return o.HeadPic, true -} - -// HasHeadPic returns a boolean if a field has been set. -func (o *MyTraderResult) HasHeadPic() bool { - if o != nil && !isNil(o.HeadPic) { - return true - } - - return false -} - -// SetHeadPic gets a reference to the given string and assigns it to the HeadPic field. -func (o *MyTraderResult) SetHeadPic(v string) { - o.HeadPic = &v -} - -// GetTraceTotalAmount returns the TraceTotalAmount field value if set, zero value otherwise. -func (o *MyTraderResult) GetTraceTotalAmount() string { - if o == nil || isNil(o.TraceTotalAmount) { - var ret string - return ret - } - return *o.TraceTotalAmount -} - -// GetTraceTotalAmountOk returns a tuple with the TraceTotalAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetTraceTotalAmountOk() (*string, bool) { - if o == nil || isNil(o.TraceTotalAmount) { - return nil, false - } - return o.TraceTotalAmount, true -} - -// HasTraceTotalAmount returns a boolean if a field has been set. -func (o *MyTraderResult) HasTraceTotalAmount() bool { - if o != nil && !isNil(o.TraceTotalAmount) { - return true - } - - return false -} - -// SetTraceTotalAmount gets a reference to the given string and assigns it to the TraceTotalAmount field. -func (o *MyTraderResult) SetTraceTotalAmount(v string) { - o.TraceTotalAmount = &v -} - -// GetTraceTotalNetProfit returns the TraceTotalNetProfit field value if set, zero value otherwise. -func (o *MyTraderResult) GetTraceTotalNetProfit() string { - if o == nil || isNil(o.TraceTotalNetProfit) { - var ret string - return ret - } - return *o.TraceTotalNetProfit -} - -// GetTraceTotalNetProfitOk returns a tuple with the TraceTotalNetProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetTraceTotalNetProfitOk() (*string, bool) { - if o == nil || isNil(o.TraceTotalNetProfit) { - return nil, false - } - return o.TraceTotalNetProfit, true -} - -// HasTraceTotalNetProfit returns a boolean if a field has been set. -func (o *MyTraderResult) HasTraceTotalNetProfit() bool { - if o != nil && !isNil(o.TraceTotalNetProfit) { - return true - } - - return false -} - -// SetTraceTotalNetProfit gets a reference to the given string and assigns it to the TraceTotalNetProfit field. -func (o *MyTraderResult) SetTraceTotalNetProfit(v string) { - o.TraceTotalNetProfit = &v -} - -// GetTraceTotalProfit returns the TraceTotalProfit field value if set, zero value otherwise. -func (o *MyTraderResult) GetTraceTotalProfit() string { - if o == nil || isNil(o.TraceTotalProfit) { - var ret string - return ret - } - return *o.TraceTotalProfit -} - -// GetTraceTotalProfitOk returns a tuple with the TraceTotalProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetTraceTotalProfitOk() (*string, bool) { - if o == nil || isNil(o.TraceTotalProfit) { - return nil, false - } - return o.TraceTotalProfit, true -} - -// HasTraceTotalProfit returns a boolean if a field has been set. -func (o *MyTraderResult) HasTraceTotalProfit() bool { - if o != nil && !isNil(o.TraceTotalProfit) { - return true - } - - return false -} - -// SetTraceTotalProfit gets a reference to the given string and assigns it to the TraceTotalProfit field. -func (o *MyTraderResult) SetTraceTotalProfit(v string) { - o.TraceTotalProfit = &v -} - -// GetTradeNickName returns the TradeNickName field value if set, zero value otherwise. -func (o *MyTraderResult) GetTradeNickName() string { - if o == nil || isNil(o.TradeNickName) { - var ret string - return ret - } - return *o.TradeNickName -} - -// GetTradeNickNameOk returns a tuple with the TradeNickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetTradeNickNameOk() (*string, bool) { - if o == nil || isNil(o.TradeNickName) { - return nil, false - } - return o.TradeNickName, true -} - -// HasTradeNickName returns a boolean if a field has been set. -func (o *MyTraderResult) HasTradeNickName() bool { - if o != nil && !isNil(o.TradeNickName) { - return true - } - - return false -} - -// SetTradeNickName gets a reference to the given string and assigns it to the TradeNickName field. -func (o *MyTraderResult) SetTradeNickName(v string) { - o.TradeNickName = &v -} - -// GetTraderUid returns the TraderUid field value if set, zero value otherwise. -func (o *MyTraderResult) GetTraderUid() string { - if o == nil || isNil(o.TraderUid) { - var ret string - return ret - } - return *o.TraderUid -} - -// GetTraderUidOk returns a tuple with the TraderUid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTraderResult) GetTraderUidOk() (*string, bool) { - if o == nil || isNil(o.TraderUid) { - return nil, false - } - return o.TraderUid, true -} - -// HasTraderUid returns a boolean if a field has been set. -func (o *MyTraderResult) HasTraderUid() bool { - if o != nil && !isNil(o.TraderUid) { - return true - } - - return false -} - -// SetTraderUid gets a reference to the given string and assigns it to the TraderUid field. -func (o *MyTraderResult) SetTraderUid(v string) { - o.TraderUid = &v -} - -func (o MyTraderResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.CertificationType) { - toSerialize["certificationType"] = o.CertificationType - } - if !isNil(o.HeadPic) { - toSerialize["headPic"] = o.HeadPic - } - if !isNil(o.TraceTotalAmount) { - toSerialize["traceTotalAmount"] = o.TraceTotalAmount - } - if !isNil(o.TraceTotalNetProfit) { - toSerialize["traceTotalNetProfit"] = o.TraceTotalNetProfit - } - if !isNil(o.TraceTotalProfit) { - toSerialize["traceTotalProfit"] = o.TraceTotalProfit - } - if !isNil(o.TradeNickName) { - toSerialize["tradeNickName"] = o.TradeNickName - } - if !isNil(o.TraderUid) { - toSerialize["traderUid"] = o.TraderUid - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTraderResult) UnmarshalJSON(bytes []byte) (err error) { - varMyTraderResult := _MyTraderResult{} - - if err = json.Unmarshal(bytes, &varMyTraderResult); err == nil { - *o = MyTraderResult(varMyTraderResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "certificationType") - delete(additionalProperties, "headPic") - delete(additionalProperties, "traceTotalAmount") - delete(additionalProperties, "traceTotalNetProfit") - delete(additionalProperties, "traceTotalProfit") - delete(additionalProperties, "tradeNickName") - delete(additionalProperties, "traderUid") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTraderResult struct { - value *MyTraderResult - isSet bool -} - -func (v NullableMyTraderResult) Get() *MyTraderResult { - return v.value -} - -func (v *NullableMyTraderResult) Set(val *MyTraderResult) { - v.value = val - v.isSet = true -} - -func (v NullableMyTraderResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTraderResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTraderResult(val *MyTraderResult) *NullableMyTraderResult { - return &NullableMyTraderResult{value: val, isSet: true} -} - -func (v NullableMyTraderResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTraderResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_traders_request.go b/bitget-goland-sdk-open-api/model_my_traders_request.go deleted file mode 100644 index 1d76f97e..00000000 --- a/bitget-goland-sdk-open-api/model_my_traders_request.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTradersRequest struct for MyTradersRequest -type MyTradersRequest struct { - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTradersRequest MyTradersRequest - -// NewMyTradersRequest instantiates a new MyTradersRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTradersRequest() *MyTradersRequest { - this := MyTradersRequest{} - return &this -} - -// NewMyTradersRequestWithDefaults instantiates a new MyTradersRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTradersRequestWithDefaults() *MyTradersRequest { - this := MyTradersRequest{} - return &this -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *MyTradersRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTradersRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *MyTradersRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *MyTradersRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *MyTradersRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTradersRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *MyTradersRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *MyTradersRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o MyTradersRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTradersRequest) UnmarshalJSON(bytes []byte) (err error) { - varMyTradersRequest := _MyTradersRequest{} - - if err = json.Unmarshal(bytes, &varMyTradersRequest); err == nil { - *o = MyTradersRequest(varMyTradersRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTradersRequest struct { - value *MyTradersRequest - isSet bool -} - -func (v NullableMyTradersRequest) Get() *MyTradersRequest { - return v.value -} - -func (v *NullableMyTradersRequest) Set(val *MyTradersRequest) { - v.value = val - v.isSet = true -} - -func (v NullableMyTradersRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTradersRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTradersRequest(val *MyTradersRequest) *NullableMyTradersRequest { - return &NullableMyTradersRequest{value: val, isSet: true} -} - -func (v NullableMyTradersRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTradersRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_my_traders_result.go b/bitget-goland-sdk-open-api/model_my_traders_result.go deleted file mode 100644 index b70f0f74..00000000 --- a/bitget-goland-sdk-open-api/model_my_traders_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// MyTradersResult struct for MyTradersResult -type MyTradersResult struct { - NextFlag *bool `json:"nextFlag,omitempty"` - ResultList []MyTraderResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _MyTradersResult MyTradersResult - -// NewMyTradersResult instantiates a new MyTradersResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMyTradersResult() *MyTradersResult { - this := MyTradersResult{} - return &this -} - -// NewMyTradersResultWithDefaults instantiates a new MyTradersResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMyTradersResultWithDefaults() *MyTradersResult { - this := MyTradersResult{} - return &this -} - -// GetNextFlag returns the NextFlag field value if set, zero value otherwise. -func (o *MyTradersResult) GetNextFlag() bool { - if o == nil || isNil(o.NextFlag) { - var ret bool - return ret - } - return *o.NextFlag -} - -// GetNextFlagOk returns a tuple with the NextFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTradersResult) GetNextFlagOk() (*bool, bool) { - if o == nil || isNil(o.NextFlag) { - return nil, false - } - return o.NextFlag, true -} - -// HasNextFlag returns a boolean if a field has been set. -func (o *MyTradersResult) HasNextFlag() bool { - if o != nil && !isNil(o.NextFlag) { - return true - } - - return false -} - -// SetNextFlag gets a reference to the given bool and assigns it to the NextFlag field. -func (o *MyTradersResult) SetNextFlag(v bool) { - o.NextFlag = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *MyTradersResult) GetResultList() []MyTraderResult { - if o == nil || isNil(o.ResultList) { - var ret []MyTraderResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MyTradersResult) GetResultListOk() ([]MyTraderResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *MyTradersResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []MyTraderResult and assigns it to the ResultList field. -func (o *MyTradersResult) SetResultList(v []MyTraderResult) { - o.ResultList = v -} - -func (o MyTradersResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NextFlag) { - toSerialize["nextFlag"] = o.NextFlag - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *MyTradersResult) UnmarshalJSON(bytes []byte) (err error) { - varMyTradersResult := _MyTradersResult{} - - if err = json.Unmarshal(bytes, &varMyTradersResult); err == nil { - *o = MyTradersResult(varMyTradersResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "nextFlag") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMyTradersResult struct { - value *MyTradersResult - isSet bool -} - -func (v NullableMyTradersResult) Get() *MyTradersResult { - return v.value -} - -func (v *NullableMyTradersResult) Set(val *MyTradersResult) { - v.value = val - v.isSet = true -} - -func (v NullableMyTradersResult) IsSet() bool { - return v.isSet -} - -func (v *NullableMyTradersResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMyTradersResult(val *MyTradersResult) *NullableMyTradersResult { - return &NullableMyTradersResult{value: val, isSet: true} -} - -func (v NullableMyTradersResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMyTradersResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_order_current_list_result.go b/bitget-goland-sdk-open-api/model_order_current_list_result.go deleted file mode 100644 index 615503d1..00000000 --- a/bitget-goland-sdk-open-api/model_order_current_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// OrderCurrentListResult struct for OrderCurrentListResult -type OrderCurrentListResult struct { - MinId *string `json:"minId,omitempty"` - ResultList []OrderCurrentResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _OrderCurrentListResult OrderCurrentListResult - -// NewOrderCurrentListResult instantiates a new OrderCurrentListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderCurrentListResult() *OrderCurrentListResult { - this := OrderCurrentListResult{} - return &this -} - -// NewOrderCurrentListResultWithDefaults instantiates a new OrderCurrentListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderCurrentListResultWithDefaults() *OrderCurrentListResult { - this := OrderCurrentListResult{} - return &this -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *OrderCurrentListResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentListResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *OrderCurrentListResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *OrderCurrentListResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *OrderCurrentListResult) GetResultList() []OrderCurrentResult { - if o == nil || isNil(o.ResultList) { - var ret []OrderCurrentResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentListResult) GetResultListOk() ([]OrderCurrentResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *OrderCurrentListResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []OrderCurrentResult and assigns it to the ResultList field. -func (o *OrderCurrentListResult) SetResultList(v []OrderCurrentResult) { - o.ResultList = v -} - -func (o OrderCurrentListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *OrderCurrentListResult) UnmarshalJSON(bytes []byte) (err error) { - varOrderCurrentListResult := _OrderCurrentListResult{} - - if err = json.Unmarshal(bytes, &varOrderCurrentListResult); err == nil { - *o = OrderCurrentListResult(varOrderCurrentListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrderCurrentListResult struct { - value *OrderCurrentListResult - isSet bool -} - -func (v NullableOrderCurrentListResult) Get() *OrderCurrentListResult { - return v.value -} - -func (v *NullableOrderCurrentListResult) Set(val *OrderCurrentListResult) { - v.value = val - v.isSet = true -} - -func (v NullableOrderCurrentListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderCurrentListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderCurrentListResult(val *OrderCurrentListResult) *NullableOrderCurrentListResult { - return &NullableOrderCurrentListResult{value: val, isSet: true} -} - -func (v NullableOrderCurrentListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderCurrentListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_order_current_result.go b/bitget-goland-sdk-open-api/model_order_current_result.go deleted file mode 100644 index 9da407fc..00000000 --- a/bitget-goland-sdk-open-api/model_order_current_result.go +++ /dev/null @@ -1,582 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// OrderCurrentResult struct for OrderCurrentResult -type OrderCurrentResult struct { - BuyDelegateCount *string `json:"buyDelegateCount,omitempty"` - BuyPrice *string `json:"buyPrice,omitempty"` - BuyTime *string `json:"buyTime,omitempty"` - DealCount *string `json:"dealCount,omitempty"` - HoldCount *string `json:"holdCount,omitempty"` - Profit *string `json:"profit,omitempty"` - ProfitRate *string `json:"profitRate,omitempty"` - StopLossPrice *string `json:"stopLossPrice,omitempty"` - StopProfitPrice *string `json:"stopProfitPrice,omitempty"` - SymbolDisplayName *string `json:"symbolDisplayName,omitempty"` - SymbolId *string `json:"symbolId,omitempty"` - TrackingNo *string `json:"trackingNo,omitempty"` - TrackingType *string `json:"trackingType,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _OrderCurrentResult OrderCurrentResult - -// NewOrderCurrentResult instantiates a new OrderCurrentResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderCurrentResult() *OrderCurrentResult { - this := OrderCurrentResult{} - return &this -} - -// NewOrderCurrentResultWithDefaults instantiates a new OrderCurrentResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderCurrentResultWithDefaults() *OrderCurrentResult { - this := OrderCurrentResult{} - return &this -} - -// GetBuyDelegateCount returns the BuyDelegateCount field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetBuyDelegateCount() string { - if o == nil || isNil(o.BuyDelegateCount) { - var ret string - return ret - } - return *o.BuyDelegateCount -} - -// GetBuyDelegateCountOk returns a tuple with the BuyDelegateCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetBuyDelegateCountOk() (*string, bool) { - if o == nil || isNil(o.BuyDelegateCount) { - return nil, false - } - return o.BuyDelegateCount, true -} - -// HasBuyDelegateCount returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasBuyDelegateCount() bool { - if o != nil && !isNil(o.BuyDelegateCount) { - return true - } - - return false -} - -// SetBuyDelegateCount gets a reference to the given string and assigns it to the BuyDelegateCount field. -func (o *OrderCurrentResult) SetBuyDelegateCount(v string) { - o.BuyDelegateCount = &v -} - -// GetBuyPrice returns the BuyPrice field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetBuyPrice() string { - if o == nil || isNil(o.BuyPrice) { - var ret string - return ret - } - return *o.BuyPrice -} - -// GetBuyPriceOk returns a tuple with the BuyPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetBuyPriceOk() (*string, bool) { - if o == nil || isNil(o.BuyPrice) { - return nil, false - } - return o.BuyPrice, true -} - -// HasBuyPrice returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasBuyPrice() bool { - if o != nil && !isNil(o.BuyPrice) { - return true - } - - return false -} - -// SetBuyPrice gets a reference to the given string and assigns it to the BuyPrice field. -func (o *OrderCurrentResult) SetBuyPrice(v string) { - o.BuyPrice = &v -} - -// GetBuyTime returns the BuyTime field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetBuyTime() string { - if o == nil || isNil(o.BuyTime) { - var ret string - return ret - } - return *o.BuyTime -} - -// GetBuyTimeOk returns a tuple with the BuyTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetBuyTimeOk() (*string, bool) { - if o == nil || isNil(o.BuyTime) { - return nil, false - } - return o.BuyTime, true -} - -// HasBuyTime returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasBuyTime() bool { - if o != nil && !isNil(o.BuyTime) { - return true - } - - return false -} - -// SetBuyTime gets a reference to the given string and assigns it to the BuyTime field. -func (o *OrderCurrentResult) SetBuyTime(v string) { - o.BuyTime = &v -} - -// GetDealCount returns the DealCount field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetDealCount() string { - if o == nil || isNil(o.DealCount) { - var ret string - return ret - } - return *o.DealCount -} - -// GetDealCountOk returns a tuple with the DealCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetDealCountOk() (*string, bool) { - if o == nil || isNil(o.DealCount) { - return nil, false - } - return o.DealCount, true -} - -// HasDealCount returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasDealCount() bool { - if o != nil && !isNil(o.DealCount) { - return true - } - - return false -} - -// SetDealCount gets a reference to the given string and assigns it to the DealCount field. -func (o *OrderCurrentResult) SetDealCount(v string) { - o.DealCount = &v -} - -// GetHoldCount returns the HoldCount field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetHoldCount() string { - if o == nil || isNil(o.HoldCount) { - var ret string - return ret - } - return *o.HoldCount -} - -// GetHoldCountOk returns a tuple with the HoldCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetHoldCountOk() (*string, bool) { - if o == nil || isNil(o.HoldCount) { - return nil, false - } - return o.HoldCount, true -} - -// HasHoldCount returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasHoldCount() bool { - if o != nil && !isNil(o.HoldCount) { - return true - } - - return false -} - -// SetHoldCount gets a reference to the given string and assigns it to the HoldCount field. -func (o *OrderCurrentResult) SetHoldCount(v string) { - o.HoldCount = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *OrderCurrentResult) SetProfit(v string) { - o.Profit = &v -} - -// GetProfitRate returns the ProfitRate field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetProfitRate() string { - if o == nil || isNil(o.ProfitRate) { - var ret string - return ret - } - return *o.ProfitRate -} - -// GetProfitRateOk returns a tuple with the ProfitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetProfitRateOk() (*string, bool) { - if o == nil || isNil(o.ProfitRate) { - return nil, false - } - return o.ProfitRate, true -} - -// HasProfitRate returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasProfitRate() bool { - if o != nil && !isNil(o.ProfitRate) { - return true - } - - return false -} - -// SetProfitRate gets a reference to the given string and assigns it to the ProfitRate field. -func (o *OrderCurrentResult) SetProfitRate(v string) { - o.ProfitRate = &v -} - -// GetStopLossPrice returns the StopLossPrice field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetStopLossPrice() string { - if o == nil || isNil(o.StopLossPrice) { - var ret string - return ret - } - return *o.StopLossPrice -} - -// GetStopLossPriceOk returns a tuple with the StopLossPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetStopLossPriceOk() (*string, bool) { - if o == nil || isNil(o.StopLossPrice) { - return nil, false - } - return o.StopLossPrice, true -} - -// HasStopLossPrice returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasStopLossPrice() bool { - if o != nil && !isNil(o.StopLossPrice) { - return true - } - - return false -} - -// SetStopLossPrice gets a reference to the given string and assigns it to the StopLossPrice field. -func (o *OrderCurrentResult) SetStopLossPrice(v string) { - o.StopLossPrice = &v -} - -// GetStopProfitPrice returns the StopProfitPrice field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetStopProfitPrice() string { - if o == nil || isNil(o.StopProfitPrice) { - var ret string - return ret - } - return *o.StopProfitPrice -} - -// GetStopProfitPriceOk returns a tuple with the StopProfitPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetStopProfitPriceOk() (*string, bool) { - if o == nil || isNil(o.StopProfitPrice) { - return nil, false - } - return o.StopProfitPrice, true -} - -// HasStopProfitPrice returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasStopProfitPrice() bool { - if o != nil && !isNil(o.StopProfitPrice) { - return true - } - - return false -} - -// SetStopProfitPrice gets a reference to the given string and assigns it to the StopProfitPrice field. -func (o *OrderCurrentResult) SetStopProfitPrice(v string) { - o.StopProfitPrice = &v -} - -// GetSymbolDisplayName returns the SymbolDisplayName field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetSymbolDisplayName() string { - if o == nil || isNil(o.SymbolDisplayName) { - var ret string - return ret - } - return *o.SymbolDisplayName -} - -// GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetSymbolDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.SymbolDisplayName) { - return nil, false - } - return o.SymbolDisplayName, true -} - -// HasSymbolDisplayName returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasSymbolDisplayName() bool { - if o != nil && !isNil(o.SymbolDisplayName) { - return true - } - - return false -} - -// SetSymbolDisplayName gets a reference to the given string and assigns it to the SymbolDisplayName field. -func (o *OrderCurrentResult) SetSymbolDisplayName(v string) { - o.SymbolDisplayName = &v -} - -// GetSymbolId returns the SymbolId field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetSymbolId() string { - if o == nil || isNil(o.SymbolId) { - var ret string - return ret - } - return *o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetSymbolIdOk() (*string, bool) { - if o == nil || isNil(o.SymbolId) { - return nil, false - } - return o.SymbolId, true -} - -// HasSymbolId returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasSymbolId() bool { - if o != nil && !isNil(o.SymbolId) { - return true - } - - return false -} - -// SetSymbolId gets a reference to the given string and assigns it to the SymbolId field. -func (o *OrderCurrentResult) SetSymbolId(v string) { - o.SymbolId = &v -} - -// GetTrackingNo returns the TrackingNo field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetTrackingNo() string { - if o == nil || isNil(o.TrackingNo) { - var ret string - return ret - } - return *o.TrackingNo -} - -// GetTrackingNoOk returns a tuple with the TrackingNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetTrackingNoOk() (*string, bool) { - if o == nil || isNil(o.TrackingNo) { - return nil, false - } - return o.TrackingNo, true -} - -// HasTrackingNo returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasTrackingNo() bool { - if o != nil && !isNil(o.TrackingNo) { - return true - } - - return false -} - -// SetTrackingNo gets a reference to the given string and assigns it to the TrackingNo field. -func (o *OrderCurrentResult) SetTrackingNo(v string) { - o.TrackingNo = &v -} - -// GetTrackingType returns the TrackingType field value if set, zero value otherwise. -func (o *OrderCurrentResult) GetTrackingType() string { - if o == nil || isNil(o.TrackingType) { - var ret string - return ret - } - return *o.TrackingType -} - -// GetTrackingTypeOk returns a tuple with the TrackingType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderCurrentResult) GetTrackingTypeOk() (*string, bool) { - if o == nil || isNil(o.TrackingType) { - return nil, false - } - return o.TrackingType, true -} - -// HasTrackingType returns a boolean if a field has been set. -func (o *OrderCurrentResult) HasTrackingType() bool { - if o != nil && !isNil(o.TrackingType) { - return true - } - - return false -} - -// SetTrackingType gets a reference to the given string and assigns it to the TrackingType field. -func (o *OrderCurrentResult) SetTrackingType(v string) { - o.TrackingType = &v -} - -func (o OrderCurrentResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BuyDelegateCount) { - toSerialize["buyDelegateCount"] = o.BuyDelegateCount - } - if !isNil(o.BuyPrice) { - toSerialize["buyPrice"] = o.BuyPrice - } - if !isNil(o.BuyTime) { - toSerialize["buyTime"] = o.BuyTime - } - if !isNil(o.DealCount) { - toSerialize["dealCount"] = o.DealCount - } - if !isNil(o.HoldCount) { - toSerialize["holdCount"] = o.HoldCount - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - if !isNil(o.ProfitRate) { - toSerialize["profitRate"] = o.ProfitRate - } - if !isNil(o.StopLossPrice) { - toSerialize["stopLossPrice"] = o.StopLossPrice - } - if !isNil(o.StopProfitPrice) { - toSerialize["stopProfitPrice"] = o.StopProfitPrice - } - if !isNil(o.SymbolDisplayName) { - toSerialize["symbolDisplayName"] = o.SymbolDisplayName - } - if !isNil(o.SymbolId) { - toSerialize["symbolId"] = o.SymbolId - } - if !isNil(o.TrackingNo) { - toSerialize["trackingNo"] = o.TrackingNo - } - if !isNil(o.TrackingType) { - toSerialize["trackingType"] = o.TrackingType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *OrderCurrentResult) UnmarshalJSON(bytes []byte) (err error) { - varOrderCurrentResult := _OrderCurrentResult{} - - if err = json.Unmarshal(bytes, &varOrderCurrentResult); err == nil { - *o = OrderCurrentResult(varOrderCurrentResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "buyDelegateCount") - delete(additionalProperties, "buyPrice") - delete(additionalProperties, "buyTime") - delete(additionalProperties, "dealCount") - delete(additionalProperties, "holdCount") - delete(additionalProperties, "profit") - delete(additionalProperties, "profitRate") - delete(additionalProperties, "stopLossPrice") - delete(additionalProperties, "stopProfitPrice") - delete(additionalProperties, "symbolDisplayName") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "trackingNo") - delete(additionalProperties, "trackingType") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrderCurrentResult struct { - value *OrderCurrentResult - isSet bool -} - -func (v NullableOrderCurrentResult) Get() *OrderCurrentResult { - return v.value -} - -func (v *NullableOrderCurrentResult) Set(val *OrderCurrentResult) { - v.value = val - v.isSet = true -} - -func (v NullableOrderCurrentResult) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderCurrentResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderCurrentResult(val *OrderCurrentResult) *NullableOrderCurrentResult { - return &NullableOrderCurrentResult{value: val, isSet: true} -} - -func (v NullableOrderCurrentResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderCurrentResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_order_history_list_result.go b/bitget-goland-sdk-open-api/model_order_history_list_result.go deleted file mode 100644 index 14c0dec0..00000000 --- a/bitget-goland-sdk-open-api/model_order_history_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// OrderHistoryListResult struct for OrderHistoryListResult -type OrderHistoryListResult struct { - MinId *string `json:"minId,omitempty"` - ResultList []OrderHistoryResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _OrderHistoryListResult OrderHistoryListResult - -// NewOrderHistoryListResult instantiates a new OrderHistoryListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderHistoryListResult() *OrderHistoryListResult { - this := OrderHistoryListResult{} - return &this -} - -// NewOrderHistoryListResultWithDefaults instantiates a new OrderHistoryListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderHistoryListResultWithDefaults() *OrderHistoryListResult { - this := OrderHistoryListResult{} - return &this -} - -// GetMinId returns the MinId field value if set, zero value otherwise. -func (o *OrderHistoryListResult) GetMinId() string { - if o == nil || isNil(o.MinId) { - var ret string - return ret - } - return *o.MinId -} - -// GetMinIdOk returns a tuple with the MinId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryListResult) GetMinIdOk() (*string, bool) { - if o == nil || isNil(o.MinId) { - return nil, false - } - return o.MinId, true -} - -// HasMinId returns a boolean if a field has been set. -func (o *OrderHistoryListResult) HasMinId() bool { - if o != nil && !isNil(o.MinId) { - return true - } - - return false -} - -// SetMinId gets a reference to the given string and assigns it to the MinId field. -func (o *OrderHistoryListResult) SetMinId(v string) { - o.MinId = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *OrderHistoryListResult) GetResultList() []OrderHistoryResult { - if o == nil || isNil(o.ResultList) { - var ret []OrderHistoryResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryListResult) GetResultListOk() ([]OrderHistoryResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *OrderHistoryListResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []OrderHistoryResult and assigns it to the ResultList field. -func (o *OrderHistoryListResult) SetResultList(v []OrderHistoryResult) { - o.ResultList = v -} - -func (o OrderHistoryListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MinId) { - toSerialize["minId"] = o.MinId - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *OrderHistoryListResult) UnmarshalJSON(bytes []byte) (err error) { - varOrderHistoryListResult := _OrderHistoryListResult{} - - if err = json.Unmarshal(bytes, &varOrderHistoryListResult); err == nil { - *o = OrderHistoryListResult(varOrderHistoryListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "minId") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrderHistoryListResult struct { - value *OrderHistoryListResult - isSet bool -} - -func (v NullableOrderHistoryListResult) Get() *OrderHistoryListResult { - return v.value -} - -func (v *NullableOrderHistoryListResult) Set(val *OrderHistoryListResult) { - v.value = val - v.isSet = true -} - -func (v NullableOrderHistoryListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderHistoryListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderHistoryListResult(val *OrderHistoryListResult) *NullableOrderHistoryListResult { - return &NullableOrderHistoryListResult{value: val, isSet: true} -} - -func (v NullableOrderHistoryListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderHistoryListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_order_history_result.go b/bitget-goland-sdk-open-api/model_order_history_result.go deleted file mode 100644 index 6fc49dfb..00000000 --- a/bitget-goland-sdk-open-api/model_order_history_result.go +++ /dev/null @@ -1,619 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// OrderHistoryResult struct for OrderHistoryResult -type OrderHistoryResult struct { - BuyLeftTokenId *string `json:"buyLeftTokenId,omitempty"` - BuyPrice *string `json:"buyPrice,omitempty"` - BuyRightTokenId *string `json:"buyRightTokenId,omitempty"` - BuyTime *string `json:"buyTime,omitempty"` - DealCount *string `json:"dealCount,omitempty"` - NetProfit *string `json:"netProfit,omitempty"` - Profit *string `json:"profit,omitempty"` - ProfitRate *string `json:"profitRate,omitempty"` - SellPrice *string `json:"sellPrice,omitempty"` - SellTime *string `json:"sellTime,omitempty"` - SymbolDisplayName *string `json:"symbolDisplayName,omitempty"` - SymbolId *string `json:"symbolId,omitempty"` - TrackingNo *string `json:"trackingNo,omitempty"` - TraderUserId *string `json:"traderUserId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _OrderHistoryResult OrderHistoryResult - -// NewOrderHistoryResult instantiates a new OrderHistoryResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderHistoryResult() *OrderHistoryResult { - this := OrderHistoryResult{} - return &this -} - -// NewOrderHistoryResultWithDefaults instantiates a new OrderHistoryResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderHistoryResultWithDefaults() *OrderHistoryResult { - this := OrderHistoryResult{} - return &this -} - -// GetBuyLeftTokenId returns the BuyLeftTokenId field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetBuyLeftTokenId() string { - if o == nil || isNil(o.BuyLeftTokenId) { - var ret string - return ret - } - return *o.BuyLeftTokenId -} - -// GetBuyLeftTokenIdOk returns a tuple with the BuyLeftTokenId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetBuyLeftTokenIdOk() (*string, bool) { - if o == nil || isNil(o.BuyLeftTokenId) { - return nil, false - } - return o.BuyLeftTokenId, true -} - -// HasBuyLeftTokenId returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasBuyLeftTokenId() bool { - if o != nil && !isNil(o.BuyLeftTokenId) { - return true - } - - return false -} - -// SetBuyLeftTokenId gets a reference to the given string and assigns it to the BuyLeftTokenId field. -func (o *OrderHistoryResult) SetBuyLeftTokenId(v string) { - o.BuyLeftTokenId = &v -} - -// GetBuyPrice returns the BuyPrice field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetBuyPrice() string { - if o == nil || isNil(o.BuyPrice) { - var ret string - return ret - } - return *o.BuyPrice -} - -// GetBuyPriceOk returns a tuple with the BuyPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetBuyPriceOk() (*string, bool) { - if o == nil || isNil(o.BuyPrice) { - return nil, false - } - return o.BuyPrice, true -} - -// HasBuyPrice returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasBuyPrice() bool { - if o != nil && !isNil(o.BuyPrice) { - return true - } - - return false -} - -// SetBuyPrice gets a reference to the given string and assigns it to the BuyPrice field. -func (o *OrderHistoryResult) SetBuyPrice(v string) { - o.BuyPrice = &v -} - -// GetBuyRightTokenId returns the BuyRightTokenId field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetBuyRightTokenId() string { - if o == nil || isNil(o.BuyRightTokenId) { - var ret string - return ret - } - return *o.BuyRightTokenId -} - -// GetBuyRightTokenIdOk returns a tuple with the BuyRightTokenId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetBuyRightTokenIdOk() (*string, bool) { - if o == nil || isNil(o.BuyRightTokenId) { - return nil, false - } - return o.BuyRightTokenId, true -} - -// HasBuyRightTokenId returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasBuyRightTokenId() bool { - if o != nil && !isNil(o.BuyRightTokenId) { - return true - } - - return false -} - -// SetBuyRightTokenId gets a reference to the given string and assigns it to the BuyRightTokenId field. -func (o *OrderHistoryResult) SetBuyRightTokenId(v string) { - o.BuyRightTokenId = &v -} - -// GetBuyTime returns the BuyTime field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetBuyTime() string { - if o == nil || isNil(o.BuyTime) { - var ret string - return ret - } - return *o.BuyTime -} - -// GetBuyTimeOk returns a tuple with the BuyTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetBuyTimeOk() (*string, bool) { - if o == nil || isNil(o.BuyTime) { - return nil, false - } - return o.BuyTime, true -} - -// HasBuyTime returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasBuyTime() bool { - if o != nil && !isNil(o.BuyTime) { - return true - } - - return false -} - -// SetBuyTime gets a reference to the given string and assigns it to the BuyTime field. -func (o *OrderHistoryResult) SetBuyTime(v string) { - o.BuyTime = &v -} - -// GetDealCount returns the DealCount field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetDealCount() string { - if o == nil || isNil(o.DealCount) { - var ret string - return ret - } - return *o.DealCount -} - -// GetDealCountOk returns a tuple with the DealCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetDealCountOk() (*string, bool) { - if o == nil || isNil(o.DealCount) { - return nil, false - } - return o.DealCount, true -} - -// HasDealCount returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasDealCount() bool { - if o != nil && !isNil(o.DealCount) { - return true - } - - return false -} - -// SetDealCount gets a reference to the given string and assigns it to the DealCount field. -func (o *OrderHistoryResult) SetDealCount(v string) { - o.DealCount = &v -} - -// GetNetProfit returns the NetProfit field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetNetProfit() string { - if o == nil || isNil(o.NetProfit) { - var ret string - return ret - } - return *o.NetProfit -} - -// GetNetProfitOk returns a tuple with the NetProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetNetProfitOk() (*string, bool) { - if o == nil || isNil(o.NetProfit) { - return nil, false - } - return o.NetProfit, true -} - -// HasNetProfit returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasNetProfit() bool { - if o != nil && !isNil(o.NetProfit) { - return true - } - - return false -} - -// SetNetProfit gets a reference to the given string and assigns it to the NetProfit field. -func (o *OrderHistoryResult) SetNetProfit(v string) { - o.NetProfit = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *OrderHistoryResult) SetProfit(v string) { - o.Profit = &v -} - -// GetProfitRate returns the ProfitRate field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetProfitRate() string { - if o == nil || isNil(o.ProfitRate) { - var ret string - return ret - } - return *o.ProfitRate -} - -// GetProfitRateOk returns a tuple with the ProfitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetProfitRateOk() (*string, bool) { - if o == nil || isNil(o.ProfitRate) { - return nil, false - } - return o.ProfitRate, true -} - -// HasProfitRate returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasProfitRate() bool { - if o != nil && !isNil(o.ProfitRate) { - return true - } - - return false -} - -// SetProfitRate gets a reference to the given string and assigns it to the ProfitRate field. -func (o *OrderHistoryResult) SetProfitRate(v string) { - o.ProfitRate = &v -} - -// GetSellPrice returns the SellPrice field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetSellPrice() string { - if o == nil || isNil(o.SellPrice) { - var ret string - return ret - } - return *o.SellPrice -} - -// GetSellPriceOk returns a tuple with the SellPrice field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetSellPriceOk() (*string, bool) { - if o == nil || isNil(o.SellPrice) { - return nil, false - } - return o.SellPrice, true -} - -// HasSellPrice returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasSellPrice() bool { - if o != nil && !isNil(o.SellPrice) { - return true - } - - return false -} - -// SetSellPrice gets a reference to the given string and assigns it to the SellPrice field. -func (o *OrderHistoryResult) SetSellPrice(v string) { - o.SellPrice = &v -} - -// GetSellTime returns the SellTime field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetSellTime() string { - if o == nil || isNil(o.SellTime) { - var ret string - return ret - } - return *o.SellTime -} - -// GetSellTimeOk returns a tuple with the SellTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetSellTimeOk() (*string, bool) { - if o == nil || isNil(o.SellTime) { - return nil, false - } - return o.SellTime, true -} - -// HasSellTime returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasSellTime() bool { - if o != nil && !isNil(o.SellTime) { - return true - } - - return false -} - -// SetSellTime gets a reference to the given string and assigns it to the SellTime field. -func (o *OrderHistoryResult) SetSellTime(v string) { - o.SellTime = &v -} - -// GetSymbolDisplayName returns the SymbolDisplayName field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetSymbolDisplayName() string { - if o == nil || isNil(o.SymbolDisplayName) { - var ret string - return ret - } - return *o.SymbolDisplayName -} - -// GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetSymbolDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.SymbolDisplayName) { - return nil, false - } - return o.SymbolDisplayName, true -} - -// HasSymbolDisplayName returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasSymbolDisplayName() bool { - if o != nil && !isNil(o.SymbolDisplayName) { - return true - } - - return false -} - -// SetSymbolDisplayName gets a reference to the given string and assigns it to the SymbolDisplayName field. -func (o *OrderHistoryResult) SetSymbolDisplayName(v string) { - o.SymbolDisplayName = &v -} - -// GetSymbolId returns the SymbolId field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetSymbolId() string { - if o == nil || isNil(o.SymbolId) { - var ret string - return ret - } - return *o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetSymbolIdOk() (*string, bool) { - if o == nil || isNil(o.SymbolId) { - return nil, false - } - return o.SymbolId, true -} - -// HasSymbolId returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasSymbolId() bool { - if o != nil && !isNil(o.SymbolId) { - return true - } - - return false -} - -// SetSymbolId gets a reference to the given string and assigns it to the SymbolId field. -func (o *OrderHistoryResult) SetSymbolId(v string) { - o.SymbolId = &v -} - -// GetTrackingNo returns the TrackingNo field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetTrackingNo() string { - if o == nil || isNil(o.TrackingNo) { - var ret string - return ret - } - return *o.TrackingNo -} - -// GetTrackingNoOk returns a tuple with the TrackingNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetTrackingNoOk() (*string, bool) { - if o == nil || isNil(o.TrackingNo) { - return nil, false - } - return o.TrackingNo, true -} - -// HasTrackingNo returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasTrackingNo() bool { - if o != nil && !isNil(o.TrackingNo) { - return true - } - - return false -} - -// SetTrackingNo gets a reference to the given string and assigns it to the TrackingNo field. -func (o *OrderHistoryResult) SetTrackingNo(v string) { - o.TrackingNo = &v -} - -// GetTraderUserId returns the TraderUserId field value if set, zero value otherwise. -func (o *OrderHistoryResult) GetTraderUserId() string { - if o == nil || isNil(o.TraderUserId) { - var ret string - return ret - } - return *o.TraderUserId -} - -// GetTraderUserIdOk returns a tuple with the TraderUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderHistoryResult) GetTraderUserIdOk() (*string, bool) { - if o == nil || isNil(o.TraderUserId) { - return nil, false - } - return o.TraderUserId, true -} - -// HasTraderUserId returns a boolean if a field has been set. -func (o *OrderHistoryResult) HasTraderUserId() bool { - if o != nil && !isNil(o.TraderUserId) { - return true - } - - return false -} - -// SetTraderUserId gets a reference to the given string and assigns it to the TraderUserId field. -func (o *OrderHistoryResult) SetTraderUserId(v string) { - o.TraderUserId = &v -} - -func (o OrderHistoryResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BuyLeftTokenId) { - toSerialize["buyLeftTokenId"] = o.BuyLeftTokenId - } - if !isNil(o.BuyPrice) { - toSerialize["buyPrice"] = o.BuyPrice - } - if !isNil(o.BuyRightTokenId) { - toSerialize["buyRightTokenId"] = o.BuyRightTokenId - } - if !isNil(o.BuyTime) { - toSerialize["buyTime"] = o.BuyTime - } - if !isNil(o.DealCount) { - toSerialize["dealCount"] = o.DealCount - } - if !isNil(o.NetProfit) { - toSerialize["netProfit"] = o.NetProfit - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - if !isNil(o.ProfitRate) { - toSerialize["profitRate"] = o.ProfitRate - } - if !isNil(o.SellPrice) { - toSerialize["sellPrice"] = o.SellPrice - } - if !isNil(o.SellTime) { - toSerialize["sellTime"] = o.SellTime - } - if !isNil(o.SymbolDisplayName) { - toSerialize["symbolDisplayName"] = o.SymbolDisplayName - } - if !isNil(o.SymbolId) { - toSerialize["symbolId"] = o.SymbolId - } - if !isNil(o.TrackingNo) { - toSerialize["trackingNo"] = o.TrackingNo - } - if !isNil(o.TraderUserId) { - toSerialize["traderUserId"] = o.TraderUserId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *OrderHistoryResult) UnmarshalJSON(bytes []byte) (err error) { - varOrderHistoryResult := _OrderHistoryResult{} - - if err = json.Unmarshal(bytes, &varOrderHistoryResult); err == nil { - *o = OrderHistoryResult(varOrderHistoryResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "buyLeftTokenId") - delete(additionalProperties, "buyPrice") - delete(additionalProperties, "buyRightTokenId") - delete(additionalProperties, "buyTime") - delete(additionalProperties, "dealCount") - delete(additionalProperties, "netProfit") - delete(additionalProperties, "profit") - delete(additionalProperties, "profitRate") - delete(additionalProperties, "sellPrice") - delete(additionalProperties, "sellTime") - delete(additionalProperties, "symbolDisplayName") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "trackingNo") - delete(additionalProperties, "traderUserId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrderHistoryResult struct { - value *OrderHistoryResult - isSet bool -} - -func (v NullableOrderHistoryResult) Get() *OrderHistoryResult { - return v.value -} - -func (v *NullableOrderHistoryResult) Set(val *OrderHistoryResult) { - v.value = val - v.isSet = true -} - -func (v NullableOrderHistoryResult) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderHistoryResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderHistoryResult(val *OrderHistoryResult) *NullableOrderHistoryResult { - return &NullableOrderHistoryResult{value: val, isSet: true} -} - -func (v NullableOrderHistoryResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderHistoryResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_order_payment_detail_info.go b/bitget-goland-sdk-open-api/model_order_payment_detail_info.go deleted file mode 100644 index f39f5ac7..00000000 --- a/bitget-goland-sdk-open-api/model_order_payment_detail_info.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// OrderPaymentDetailInfo struct for OrderPaymentDetailInfo -type OrderPaymentDetailInfo struct { - Name *string `json:"name,omitempty"` - Required *bool `json:"required,omitempty"` - Type *string `json:"type,omitempty"` - Value *string `json:"value,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _OrderPaymentDetailInfo OrderPaymentDetailInfo - -// NewOrderPaymentDetailInfo instantiates a new OrderPaymentDetailInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderPaymentDetailInfo() *OrderPaymentDetailInfo { - this := OrderPaymentDetailInfo{} - return &this -} - -// NewOrderPaymentDetailInfoWithDefaults instantiates a new OrderPaymentDetailInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderPaymentDetailInfoWithDefaults() *OrderPaymentDetailInfo { - this := OrderPaymentDetailInfo{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *OrderPaymentDetailInfo) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderPaymentDetailInfo) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *OrderPaymentDetailInfo) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *OrderPaymentDetailInfo) SetName(v string) { - o.Name = &v -} - -// GetRequired returns the Required field value if set, zero value otherwise. -func (o *OrderPaymentDetailInfo) GetRequired() bool { - if o == nil || isNil(o.Required) { - var ret bool - return ret - } - return *o.Required -} - -// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderPaymentDetailInfo) GetRequiredOk() (*bool, bool) { - if o == nil || isNil(o.Required) { - return nil, false - } - return o.Required, true -} - -// HasRequired returns a boolean if a field has been set. -func (o *OrderPaymentDetailInfo) HasRequired() bool { - if o != nil && !isNil(o.Required) { - return true - } - - return false -} - -// SetRequired gets a reference to the given bool and assigns it to the Required field. -func (o *OrderPaymentDetailInfo) SetRequired(v bool) { - o.Required = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *OrderPaymentDetailInfo) GetType() string { - if o == nil || isNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderPaymentDetailInfo) GetTypeOk() (*string, bool) { - if o == nil || isNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *OrderPaymentDetailInfo) HasType() bool { - if o != nil && !isNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *OrderPaymentDetailInfo) SetType(v string) { - o.Type = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *OrderPaymentDetailInfo) GetValue() string { - if o == nil || isNil(o.Value) { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderPaymentDetailInfo) GetValueOk() (*string, bool) { - if o == nil || isNil(o.Value) { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *OrderPaymentDetailInfo) HasValue() bool { - if o != nil && !isNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *OrderPaymentDetailInfo) SetValue(v string) { - o.Value = &v -} - -func (o OrderPaymentDetailInfo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - if !isNil(o.Required) { - toSerialize["required"] = o.Required - } - if !isNil(o.Type) { - toSerialize["type"] = o.Type - } - if !isNil(o.Value) { - toSerialize["value"] = o.Value - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *OrderPaymentDetailInfo) UnmarshalJSON(bytes []byte) (err error) { - varOrderPaymentDetailInfo := _OrderPaymentDetailInfo{} - - if err = json.Unmarshal(bytes, &varOrderPaymentDetailInfo); err == nil { - *o = OrderPaymentDetailInfo(varOrderPaymentDetailInfo) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "required") - delete(additionalProperties, "type") - delete(additionalProperties, "value") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrderPaymentDetailInfo struct { - value *OrderPaymentDetailInfo - isSet bool -} - -func (v NullableOrderPaymentDetailInfo) Get() *OrderPaymentDetailInfo { - return v.value -} - -func (v *NullableOrderPaymentDetailInfo) Set(val *OrderPaymentDetailInfo) { - v.value = val - v.isSet = true -} - -func (v NullableOrderPaymentDetailInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderPaymentDetailInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderPaymentDetailInfo(val *OrderPaymentDetailInfo) *NullableOrderPaymentDetailInfo { - return &NullableOrderPaymentDetailInfo{value: val, isSet: true} -} - -func (v NullableOrderPaymentDetailInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderPaymentDetailInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_product_code_request.go b/bitget-goland-sdk-open-api/model_product_code_request.go deleted file mode 100644 index 1f32213c..00000000 --- a/bitget-goland-sdk-open-api/model_product_code_request.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// ProductCodeRequest struct for ProductCodeRequest -type ProductCodeRequest struct { - // symbolIds - SymbolIds []string `json:"symbolIds"` - AdditionalProperties map[string]interface{} -} - -type _ProductCodeRequest ProductCodeRequest - -// NewProductCodeRequest instantiates a new ProductCodeRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewProductCodeRequest(symbolIds []string) *ProductCodeRequest { - this := ProductCodeRequest{} - this.SymbolIds = symbolIds - return &this -} - -// NewProductCodeRequestWithDefaults instantiates a new ProductCodeRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewProductCodeRequestWithDefaults() *ProductCodeRequest { - this := ProductCodeRequest{} - return &this -} - -// GetSymbolIds returns the SymbolIds field value -func (o *ProductCodeRequest) GetSymbolIds() []string { - if o == nil { - var ret []string - return ret - } - - return o.SymbolIds -} - -// GetSymbolIdsOk returns a tuple with the SymbolIds field value -// and a boolean to check if the value has been set. -func (o *ProductCodeRequest) GetSymbolIdsOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.SymbolIds, true -} - -// SetSymbolIds sets field value -func (o *ProductCodeRequest) SetSymbolIds(v []string) { - o.SymbolIds = v -} - -func (o ProductCodeRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["symbolIds"] = o.SymbolIds - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ProductCodeRequest) UnmarshalJSON(bytes []byte) (err error) { - varProductCodeRequest := _ProductCodeRequest{} - - if err = json.Unmarshal(bytes, &varProductCodeRequest); err == nil { - *o = ProductCodeRequest(varProductCodeRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "symbolIds") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProductCodeRequest struct { - value *ProductCodeRequest - isSet bool -} - -func (v NullableProductCodeRequest) Get() *ProductCodeRequest { - return v.value -} - -func (v *NullableProductCodeRequest) Set(val *ProductCodeRequest) { - v.value = val - v.isSet = true -} - -func (v NullableProductCodeRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableProductCodeRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProductCodeRequest(val *ProductCodeRequest) *NullableProductCodeRequest { - return &NullableProductCodeRequest{value: val, isSet: true} -} - -func (v NullableProductCodeRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProductCodeRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_remove_trader_request.go b/bitget-goland-sdk-open-api/model_remove_trader_request.go deleted file mode 100644 index 4ef5bd79..00000000 --- a/bitget-goland-sdk-open-api/model_remove_trader_request.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// RemoveTraderRequest struct for RemoveTraderRequest -type RemoveTraderRequest struct { - // traderUserId - TraderUserId string `json:"traderUserId"` - AdditionalProperties map[string]interface{} -} - -type _RemoveTraderRequest RemoveTraderRequest - -// NewRemoveTraderRequest instantiates a new RemoveTraderRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRemoveTraderRequest(traderUserId string) *RemoveTraderRequest { - this := RemoveTraderRequest{} - this.TraderUserId = traderUserId - return &this -} - -// NewRemoveTraderRequestWithDefaults instantiates a new RemoveTraderRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRemoveTraderRequestWithDefaults() *RemoveTraderRequest { - this := RemoveTraderRequest{} - return &this -} - -// GetTraderUserId returns the TraderUserId field value -func (o *RemoveTraderRequest) GetTraderUserId() string { - if o == nil { - var ret string - return ret - } - - return o.TraderUserId -} - -// GetTraderUserIdOk returns a tuple with the TraderUserId field value -// and a boolean to check if the value has been set. -func (o *RemoveTraderRequest) GetTraderUserIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TraderUserId, true -} - -// SetTraderUserId sets field value -func (o *RemoveTraderRequest) SetTraderUserId(v string) { - o.TraderUserId = v -} - -func (o RemoveTraderRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["traderUserId"] = o.TraderUserId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *RemoveTraderRequest) UnmarshalJSON(bytes []byte) (err error) { - varRemoveTraderRequest := _RemoveTraderRequest{} - - if err = json.Unmarshal(bytes, &varRemoveTraderRequest); err == nil { - *o = RemoveTraderRequest(varRemoveTraderRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "traderUserId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableRemoveTraderRequest struct { - value *RemoveTraderRequest - isSet bool -} - -func (v NullableRemoveTraderRequest) Get() *RemoveTraderRequest { - return v.value -} - -func (v *NullableRemoveTraderRequest) Set(val *RemoveTraderRequest) { - v.value = val - v.isSet = true -} - -func (v NullableRemoveTraderRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableRemoveTraderRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRemoveTraderRequest(val *RemoveTraderRequest) *NullableRemoveTraderRequest { - return &NullableRemoveTraderRequest{value: val, isSet: true} -} - -func (v NullableRemoveTraderRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRemoveTraderRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_spot_info_result.go b/bitget-goland-sdk-open-api/model_spot_info_result.go deleted file mode 100644 index 3a729a0a..00000000 --- a/bitget-goland-sdk-open-api/model_spot_info_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// SpotInfoResult struct for SpotInfoResult -type SpotInfoResult struct { - MaxCount *string `json:"maxCount,omitempty"` - SurplusCount *string `json:"surplusCount,omitempty"` - SymbolId *string `json:"symbolId,omitempty"` - SymbolName *string `json:"symbolName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SpotInfoResult SpotInfoResult - -// NewSpotInfoResult instantiates a new SpotInfoResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSpotInfoResult() *SpotInfoResult { - this := SpotInfoResult{} - return &this -} - -// NewSpotInfoResultWithDefaults instantiates a new SpotInfoResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSpotInfoResultWithDefaults() *SpotInfoResult { - this := SpotInfoResult{} - return &this -} - -// GetMaxCount returns the MaxCount field value if set, zero value otherwise. -func (o *SpotInfoResult) GetMaxCount() string { - if o == nil || isNil(o.MaxCount) { - var ret string - return ret - } - return *o.MaxCount -} - -// GetMaxCountOk returns a tuple with the MaxCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpotInfoResult) GetMaxCountOk() (*string, bool) { - if o == nil || isNil(o.MaxCount) { - return nil, false - } - return o.MaxCount, true -} - -// HasMaxCount returns a boolean if a field has been set. -func (o *SpotInfoResult) HasMaxCount() bool { - if o != nil && !isNil(o.MaxCount) { - return true - } - - return false -} - -// SetMaxCount gets a reference to the given string and assigns it to the MaxCount field. -func (o *SpotInfoResult) SetMaxCount(v string) { - o.MaxCount = &v -} - -// GetSurplusCount returns the SurplusCount field value if set, zero value otherwise. -func (o *SpotInfoResult) GetSurplusCount() string { - if o == nil || isNil(o.SurplusCount) { - var ret string - return ret - } - return *o.SurplusCount -} - -// GetSurplusCountOk returns a tuple with the SurplusCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpotInfoResult) GetSurplusCountOk() (*string, bool) { - if o == nil || isNil(o.SurplusCount) { - return nil, false - } - return o.SurplusCount, true -} - -// HasSurplusCount returns a boolean if a field has been set. -func (o *SpotInfoResult) HasSurplusCount() bool { - if o != nil && !isNil(o.SurplusCount) { - return true - } - - return false -} - -// SetSurplusCount gets a reference to the given string and assigns it to the SurplusCount field. -func (o *SpotInfoResult) SetSurplusCount(v string) { - o.SurplusCount = &v -} - -// GetSymbolId returns the SymbolId field value if set, zero value otherwise. -func (o *SpotInfoResult) GetSymbolId() string { - if o == nil || isNil(o.SymbolId) { - var ret string - return ret - } - return *o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpotInfoResult) GetSymbolIdOk() (*string, bool) { - if o == nil || isNil(o.SymbolId) { - return nil, false - } - return o.SymbolId, true -} - -// HasSymbolId returns a boolean if a field has been set. -func (o *SpotInfoResult) HasSymbolId() bool { - if o != nil && !isNil(o.SymbolId) { - return true - } - - return false -} - -// SetSymbolId gets a reference to the given string and assigns it to the SymbolId field. -func (o *SpotInfoResult) SetSymbolId(v string) { - o.SymbolId = &v -} - -// GetSymbolName returns the SymbolName field value if set, zero value otherwise. -func (o *SpotInfoResult) GetSymbolName() string { - if o == nil || isNil(o.SymbolName) { - var ret string - return ret - } - return *o.SymbolName -} - -// GetSymbolNameOk returns a tuple with the SymbolName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpotInfoResult) GetSymbolNameOk() (*string, bool) { - if o == nil || isNil(o.SymbolName) { - return nil, false - } - return o.SymbolName, true -} - -// HasSymbolName returns a boolean if a field has been set. -func (o *SpotInfoResult) HasSymbolName() bool { - if o != nil && !isNil(o.SymbolName) { - return true - } - - return false -} - -// SetSymbolName gets a reference to the given string and assigns it to the SymbolName field. -func (o *SpotInfoResult) SetSymbolName(v string) { - o.SymbolName = &v -} - -func (o SpotInfoResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.MaxCount) { - toSerialize["maxCount"] = o.MaxCount - } - if !isNil(o.SurplusCount) { - toSerialize["surplusCount"] = o.SurplusCount - } - if !isNil(o.SymbolId) { - toSerialize["symbolId"] = o.SymbolId - } - if !isNil(o.SymbolName) { - toSerialize["symbolName"] = o.SymbolName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SpotInfoResult) UnmarshalJSON(bytes []byte) (err error) { - varSpotInfoResult := _SpotInfoResult{} - - if err = json.Unmarshal(bytes, &varSpotInfoResult); err == nil { - *o = SpotInfoResult(varSpotInfoResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxCount") - delete(additionalProperties, "surplusCount") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "symbolName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSpotInfoResult struct { - value *SpotInfoResult - isSet bool -} - -func (v NullableSpotInfoResult) Get() *SpotInfoResult { - return v.value -} - -func (v *NullableSpotInfoResult) Set(val *SpotInfoResult) { - v.value = val - v.isSet = true -} - -func (v NullableSpotInfoResult) IsSet() bool { - return v.isSet -} - -func (v *NullableSpotInfoResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpotInfoResult(val *SpotInfoResult) *NullableSpotInfoResult { - return &NullableSpotInfoResult{value: val, isSet: true} -} - -func (v NullableSpotInfoResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpotInfoResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_total_profit_his_detail_list_request.go b/bitget-goland-sdk-open-api/model_total_profit_his_detail_list_request.go deleted file mode 100644 index 6980493d..00000000 --- a/bitget-goland-sdk-open-api/model_total_profit_his_detail_list_request.go +++ /dev/null @@ -1,239 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TotalProfitHisDetailListRequest struct for TotalProfitHisDetailListRequest -type TotalProfitHisDetailListRequest struct { - // coinName - CoinName string `json:"coinName"` - // date - Date string `json:"date"` - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TotalProfitHisDetailListRequest TotalProfitHisDetailListRequest - -// NewTotalProfitHisDetailListRequest instantiates a new TotalProfitHisDetailListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTotalProfitHisDetailListRequest(coinName string, date string) *TotalProfitHisDetailListRequest { - this := TotalProfitHisDetailListRequest{} - this.CoinName = coinName - this.Date = date - return &this -} - -// NewTotalProfitHisDetailListRequestWithDefaults instantiates a new TotalProfitHisDetailListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTotalProfitHisDetailListRequestWithDefaults() *TotalProfitHisDetailListRequest { - this := TotalProfitHisDetailListRequest{} - return &this -} - -// GetCoinName returns the CoinName field value -func (o *TotalProfitHisDetailListRequest) GetCoinName() string { - if o == nil { - var ret string - return ret - } - - return o.CoinName -} - -// GetCoinNameOk returns a tuple with the CoinName field value -// and a boolean to check if the value has been set. -func (o *TotalProfitHisDetailListRequest) GetCoinNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CoinName, true -} - -// SetCoinName sets field value -func (o *TotalProfitHisDetailListRequest) SetCoinName(v string) { - o.CoinName = v -} - -// GetDate returns the Date field value -func (o *TotalProfitHisDetailListRequest) GetDate() string { - if o == nil { - var ret string - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *TotalProfitHisDetailListRequest) GetDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *TotalProfitHisDetailListRequest) SetDate(v string) { - o.Date = v -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *TotalProfitHisDetailListRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitHisDetailListRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *TotalProfitHisDetailListRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *TotalProfitHisDetailListRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *TotalProfitHisDetailListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitHisDetailListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *TotalProfitHisDetailListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *TotalProfitHisDetailListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o TotalProfitHisDetailListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["coinName"] = o.CoinName - } - if true { - toSerialize["date"] = o.Date - } - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TotalProfitHisDetailListRequest) UnmarshalJSON(bytes []byte) (err error) { - varTotalProfitHisDetailListRequest := _TotalProfitHisDetailListRequest{} - - if err = json.Unmarshal(bytes, &varTotalProfitHisDetailListRequest); err == nil { - *o = TotalProfitHisDetailListRequest(varTotalProfitHisDetailListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coinName") - delete(additionalProperties, "date") - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTotalProfitHisDetailListRequest struct { - value *TotalProfitHisDetailListRequest - isSet bool -} - -func (v NullableTotalProfitHisDetailListRequest) Get() *TotalProfitHisDetailListRequest { - return v.value -} - -func (v *NullableTotalProfitHisDetailListRequest) Set(val *TotalProfitHisDetailListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTotalProfitHisDetailListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTotalProfitHisDetailListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTotalProfitHisDetailListRequest(val *TotalProfitHisDetailListRequest) *NullableTotalProfitHisDetailListRequest { - return &NullableTotalProfitHisDetailListRequest{value: val, isSet: true} -} - -func (v NullableTotalProfitHisDetailListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTotalProfitHisDetailListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_total_profit_his_list_request.go b/bitget-goland-sdk-open-api/model_total_profit_his_list_request.go deleted file mode 100644 index 81b5eff4..00000000 --- a/bitget-goland-sdk-open-api/model_total_profit_his_list_request.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TotalProfitHisListRequest struct for TotalProfitHisListRequest -type TotalProfitHisListRequest struct { - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TotalProfitHisListRequest TotalProfitHisListRequest - -// NewTotalProfitHisListRequest instantiates a new TotalProfitHisListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTotalProfitHisListRequest() *TotalProfitHisListRequest { - this := TotalProfitHisListRequest{} - return &this -} - -// NewTotalProfitHisListRequestWithDefaults instantiates a new TotalProfitHisListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTotalProfitHisListRequestWithDefaults() *TotalProfitHisListRequest { - this := TotalProfitHisListRequest{} - return &this -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *TotalProfitHisListRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitHisListRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *TotalProfitHisListRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *TotalProfitHisListRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *TotalProfitHisListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitHisListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *TotalProfitHisListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *TotalProfitHisListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o TotalProfitHisListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TotalProfitHisListRequest) UnmarshalJSON(bytes []byte) (err error) { - varTotalProfitHisListRequest := _TotalProfitHisListRequest{} - - if err = json.Unmarshal(bytes, &varTotalProfitHisListRequest); err == nil { - *o = TotalProfitHisListRequest(varTotalProfitHisListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTotalProfitHisListRequest struct { - value *TotalProfitHisListRequest - isSet bool -} - -func (v NullableTotalProfitHisListRequest) Get() *TotalProfitHisListRequest { - return v.value -} - -func (v *NullableTotalProfitHisListRequest) Set(val *TotalProfitHisListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTotalProfitHisListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTotalProfitHisListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTotalProfitHisListRequest(val *TotalProfitHisListRequest) *NullableTotalProfitHisListRequest { - return &NullableTotalProfitHisListRequest{value: val, isSet: true} -} - -func (v NullableTotalProfitHisListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTotalProfitHisListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_total_profit_list_request.go b/bitget-goland-sdk-open-api/model_total_profit_list_request.go deleted file mode 100644 index ff5caf99..00000000 --- a/bitget-goland-sdk-open-api/model_total_profit_list_request.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TotalProfitListRequest struct for TotalProfitListRequest -type TotalProfitListRequest struct { - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TotalProfitListRequest TotalProfitListRequest - -// NewTotalProfitListRequest instantiates a new TotalProfitListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTotalProfitListRequest() *TotalProfitListRequest { - this := TotalProfitListRequest{} - return &this -} - -// NewTotalProfitListRequestWithDefaults instantiates a new TotalProfitListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTotalProfitListRequestWithDefaults() *TotalProfitListRequest { - this := TotalProfitListRequest{} - return &this -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *TotalProfitListRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitListRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *TotalProfitListRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *TotalProfitListRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *TotalProfitListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TotalProfitListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *TotalProfitListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *TotalProfitListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o TotalProfitListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TotalProfitListRequest) UnmarshalJSON(bytes []byte) (err error) { - varTotalProfitListRequest := _TotalProfitListRequest{} - - if err = json.Unmarshal(bytes, &varTotalProfitListRequest); err == nil { - *o = TotalProfitListRequest(varTotalProfitListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTotalProfitListRequest struct { - value *TotalProfitListRequest - isSet bool -} - -func (v NullableTotalProfitListRequest) Get() *TotalProfitListRequest { - return v.value -} - -func (v *NullableTotalProfitListRequest) Set(val *TotalProfitListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTotalProfitListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTotalProfitListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTotalProfitListRequest(val *TotalProfitListRequest) *NullableTotalProfitListRequest { - return &NullableTotalProfitListRequest{value: val, isSet: true} -} - -func (v NullableTotalProfitListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTotalProfitListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_config_request.go b/bitget-goland-sdk-open-api/model_trace_config_request.go deleted file mode 100644 index a1cee0f0..00000000 --- a/bitget-goland-sdk-open-api/model_trace_config_request.go +++ /dev/null @@ -1,200 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceConfigRequest struct for TraceConfigRequest -type TraceConfigRequest struct { - Setting []TraceConfigSettingRequest `json:"setting,omitempty"` - // settingType - SettingType string `json:"settingType"` - // traderUserId - TraderUserId string `json:"traderUserId"` - AdditionalProperties map[string]interface{} -} - -type _TraceConfigRequest TraceConfigRequest - -// NewTraceConfigRequest instantiates a new TraceConfigRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceConfigRequest(settingType string, traderUserId string) *TraceConfigRequest { - this := TraceConfigRequest{} - this.SettingType = settingType - this.TraderUserId = traderUserId - return &this -} - -// NewTraceConfigRequestWithDefaults instantiates a new TraceConfigRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceConfigRequestWithDefaults() *TraceConfigRequest { - this := TraceConfigRequest{} - return &this -} - -// GetSetting returns the Setting field value if set, zero value otherwise. -func (o *TraceConfigRequest) GetSetting() []TraceConfigSettingRequest { - if o == nil || isNil(o.Setting) { - var ret []TraceConfigSettingRequest - return ret - } - return o.Setting -} - -// GetSettingOk returns a tuple with the Setting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceConfigRequest) GetSettingOk() ([]TraceConfigSettingRequest, bool) { - if o == nil || isNil(o.Setting) { - return nil, false - } - return o.Setting, true -} - -// HasSetting returns a boolean if a field has been set. -func (o *TraceConfigRequest) HasSetting() bool { - if o != nil && !isNil(o.Setting) { - return true - } - - return false -} - -// SetSetting gets a reference to the given []TraceConfigSettingRequest and assigns it to the Setting field. -func (o *TraceConfigRequest) SetSetting(v []TraceConfigSettingRequest) { - o.Setting = v -} - -// GetSettingType returns the SettingType field value -func (o *TraceConfigRequest) GetSettingType() string { - if o == nil { - var ret string - return ret - } - - return o.SettingType -} - -// GetSettingTypeOk returns a tuple with the SettingType field value -// and a boolean to check if the value has been set. -func (o *TraceConfigRequest) GetSettingTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SettingType, true -} - -// SetSettingType sets field value -func (o *TraceConfigRequest) SetSettingType(v string) { - o.SettingType = v -} - -// GetTraderUserId returns the TraderUserId field value -func (o *TraceConfigRequest) GetTraderUserId() string { - if o == nil { - var ret string - return ret - } - - return o.TraderUserId -} - -// GetTraderUserIdOk returns a tuple with the TraderUserId field value -// and a boolean to check if the value has been set. -func (o *TraceConfigRequest) GetTraderUserIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TraderUserId, true -} - -// SetTraderUserId sets field value -func (o *TraceConfigRequest) SetTraderUserId(v string) { - o.TraderUserId = v -} - -func (o TraceConfigRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Setting) { - toSerialize["setting"] = o.Setting - } - if true { - toSerialize["settingType"] = o.SettingType - } - if true { - toSerialize["traderUserId"] = o.TraderUserId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceConfigRequest) UnmarshalJSON(bytes []byte) (err error) { - varTraceConfigRequest := _TraceConfigRequest{} - - if err = json.Unmarshal(bytes, &varTraceConfigRequest); err == nil { - *o = TraceConfigRequest(varTraceConfigRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "setting") - delete(additionalProperties, "settingType") - delete(additionalProperties, "traderUserId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceConfigRequest struct { - value *TraceConfigRequest - isSet bool -} - -func (v NullableTraceConfigRequest) Get() *TraceConfigRequest { - return v.value -} - -func (v *NullableTraceConfigRequest) Set(val *TraceConfigRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTraceConfigRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceConfigRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceConfigRequest(val *TraceConfigRequest) *NullableTraceConfigRequest { - return &NullableTraceConfigRequest{value: val, isSet: true} -} - -func (v NullableTraceConfigRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceConfigRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_config_setting_request.go b/bitget-goland-sdk-open-api/model_trace_config_setting_request.go deleted file mode 100644 index f706af6b..00000000 --- a/bitget-goland-sdk-open-api/model_trace_config_setting_request.go +++ /dev/null @@ -1,287 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceConfigSettingRequest struct for TraceConfigSettingRequest -type TraceConfigSettingRequest struct { - // maxHoldCount - MaxHoldCount string `json:"maxHoldCount"` - // stopLossRation - StopLossRation string `json:"stopLossRation"` - // stopProfitRation - StopProfitRation string `json:"stopProfitRation"` - // symbolId - SymbolId string `json:"symbolId"` - // traceType - TraceType string `json:"traceType"` - // traceValue - TraceValue string `json:"traceValue"` - AdditionalProperties map[string]interface{} -} - -type _TraceConfigSettingRequest TraceConfigSettingRequest - -// NewTraceConfigSettingRequest instantiates a new TraceConfigSettingRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceConfigSettingRequest(maxHoldCount string, stopLossRation string, stopProfitRation string, symbolId string, traceType string, traceValue string) *TraceConfigSettingRequest { - this := TraceConfigSettingRequest{} - this.MaxHoldCount = maxHoldCount - this.StopLossRation = stopLossRation - this.StopProfitRation = stopProfitRation - this.SymbolId = symbolId - this.TraceType = traceType - this.TraceValue = traceValue - return &this -} - -// NewTraceConfigSettingRequestWithDefaults instantiates a new TraceConfigSettingRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceConfigSettingRequestWithDefaults() *TraceConfigSettingRequest { - this := TraceConfigSettingRequest{} - return &this -} - -// GetMaxHoldCount returns the MaxHoldCount field value -func (o *TraceConfigSettingRequest) GetMaxHoldCount() string { - if o == nil { - var ret string - return ret - } - - return o.MaxHoldCount -} - -// GetMaxHoldCountOk returns a tuple with the MaxHoldCount field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetMaxHoldCountOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MaxHoldCount, true -} - -// SetMaxHoldCount sets field value -func (o *TraceConfigSettingRequest) SetMaxHoldCount(v string) { - o.MaxHoldCount = v -} - -// GetStopLossRation returns the StopLossRation field value -func (o *TraceConfigSettingRequest) GetStopLossRation() string { - if o == nil { - var ret string - return ret - } - - return o.StopLossRation -} - -// GetStopLossRationOk returns a tuple with the StopLossRation field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetStopLossRationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StopLossRation, true -} - -// SetStopLossRation sets field value -func (o *TraceConfigSettingRequest) SetStopLossRation(v string) { - o.StopLossRation = v -} - -// GetStopProfitRation returns the StopProfitRation field value -func (o *TraceConfigSettingRequest) GetStopProfitRation() string { - if o == nil { - var ret string - return ret - } - - return o.StopProfitRation -} - -// GetStopProfitRationOk returns a tuple with the StopProfitRation field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetStopProfitRationOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StopProfitRation, true -} - -// SetStopProfitRation sets field value -func (o *TraceConfigSettingRequest) SetStopProfitRation(v string) { - o.StopProfitRation = v -} - -// GetSymbolId returns the SymbolId field value -func (o *TraceConfigSettingRequest) GetSymbolId() string { - if o == nil { - var ret string - return ret - } - - return o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetSymbolIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SymbolId, true -} - -// SetSymbolId sets field value -func (o *TraceConfigSettingRequest) SetSymbolId(v string) { - o.SymbolId = v -} - -// GetTraceType returns the TraceType field value -func (o *TraceConfigSettingRequest) GetTraceType() string { - if o == nil { - var ret string - return ret - } - - return o.TraceType -} - -// GetTraceTypeOk returns a tuple with the TraceType field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetTraceTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TraceType, true -} - -// SetTraceType sets field value -func (o *TraceConfigSettingRequest) SetTraceType(v string) { - o.TraceType = v -} - -// GetTraceValue returns the TraceValue field value -func (o *TraceConfigSettingRequest) GetTraceValue() string { - if o == nil { - var ret string - return ret - } - - return o.TraceValue -} - -// GetTraceValueOk returns a tuple with the TraceValue field value -// and a boolean to check if the value has been set. -func (o *TraceConfigSettingRequest) GetTraceValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TraceValue, true -} - -// SetTraceValue sets field value -func (o *TraceConfigSettingRequest) SetTraceValue(v string) { - o.TraceValue = v -} - -func (o TraceConfigSettingRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["maxHoldCount"] = o.MaxHoldCount - } - if true { - toSerialize["stopLossRation"] = o.StopLossRation - } - if true { - toSerialize["stopProfitRation"] = o.StopProfitRation - } - if true { - toSerialize["symbolId"] = o.SymbolId - } - if true { - toSerialize["traceType"] = o.TraceType - } - if true { - toSerialize["traceValue"] = o.TraceValue - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceConfigSettingRequest) UnmarshalJSON(bytes []byte) (err error) { - varTraceConfigSettingRequest := _TraceConfigSettingRequest{} - - if err = json.Unmarshal(bytes, &varTraceConfigSettingRequest); err == nil { - *o = TraceConfigSettingRequest(varTraceConfigSettingRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "maxHoldCount") - delete(additionalProperties, "stopLossRation") - delete(additionalProperties, "stopProfitRation") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "traceType") - delete(additionalProperties, "traceValue") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceConfigSettingRequest struct { - value *TraceConfigSettingRequest - isSet bool -} - -func (v NullableTraceConfigSettingRequest) Get() *TraceConfigSettingRequest { - return v.value -} - -func (v *NullableTraceConfigSettingRequest) Set(val *TraceConfigSettingRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTraceConfigSettingRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceConfigSettingRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceConfigSettingRequest(val *TraceConfigSettingRequest) *NullableTraceConfigSettingRequest { - return &NullableTraceConfigSettingRequest{value: val, isSet: true} -} - -func (v NullableTraceConfigSettingRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceConfigSettingRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_setting_batch_details_result.go b/bitget-goland-sdk-open-api/model_trace_setting_batch_details_result.go deleted file mode 100644 index aebd5bb6..00000000 --- a/bitget-goland-sdk-open-api/model_trace_setting_batch_details_result.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceSettingBatchDetailsResult struct for TraceSettingBatchDetailsResult -type TraceSettingBatchDetailsResult struct { - BusinessLineCode *string `json:"businessLineCode,omitempty"` - MaxTraceAmount *string `json:"maxTraceAmount,omitempty"` - StopLossRation *string `json:"stopLossRation,omitempty"` - StopProfitRation *string `json:"stopProfitRation,omitempty"` - SymbolDisplayName *string `json:"symbolDisplayName,omitempty"` - SymbolId *string `json:"symbolId,omitempty"` - TraceType *string `json:"traceType,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraceSettingBatchDetailsResult TraceSettingBatchDetailsResult - -// NewTraceSettingBatchDetailsResult instantiates a new TraceSettingBatchDetailsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceSettingBatchDetailsResult() *TraceSettingBatchDetailsResult { - this := TraceSettingBatchDetailsResult{} - return &this -} - -// NewTraceSettingBatchDetailsResultWithDefaults instantiates a new TraceSettingBatchDetailsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceSettingBatchDetailsResultWithDefaults() *TraceSettingBatchDetailsResult { - this := TraceSettingBatchDetailsResult{} - return &this -} - -// GetBusinessLineCode returns the BusinessLineCode field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetBusinessLineCode() string { - if o == nil || isNil(o.BusinessLineCode) { - var ret string - return ret - } - return *o.BusinessLineCode -} - -// GetBusinessLineCodeOk returns a tuple with the BusinessLineCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetBusinessLineCodeOk() (*string, bool) { - if o == nil || isNil(o.BusinessLineCode) { - return nil, false - } - return o.BusinessLineCode, true -} - -// HasBusinessLineCode returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasBusinessLineCode() bool { - if o != nil && !isNil(o.BusinessLineCode) { - return true - } - - return false -} - -// SetBusinessLineCode gets a reference to the given string and assigns it to the BusinessLineCode field. -func (o *TraceSettingBatchDetailsResult) SetBusinessLineCode(v string) { - o.BusinessLineCode = &v -} - -// GetMaxTraceAmount returns the MaxTraceAmount field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetMaxTraceAmount() string { - if o == nil || isNil(o.MaxTraceAmount) { - var ret string - return ret - } - return *o.MaxTraceAmount -} - -// GetMaxTraceAmountOk returns a tuple with the MaxTraceAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetMaxTraceAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxTraceAmount) { - return nil, false - } - return o.MaxTraceAmount, true -} - -// HasMaxTraceAmount returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasMaxTraceAmount() bool { - if o != nil && !isNil(o.MaxTraceAmount) { - return true - } - - return false -} - -// SetMaxTraceAmount gets a reference to the given string and assigns it to the MaxTraceAmount field. -func (o *TraceSettingBatchDetailsResult) SetMaxTraceAmount(v string) { - o.MaxTraceAmount = &v -} - -// GetStopLossRation returns the StopLossRation field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetStopLossRation() string { - if o == nil || isNil(o.StopLossRation) { - var ret string - return ret - } - return *o.StopLossRation -} - -// GetStopLossRationOk returns a tuple with the StopLossRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetStopLossRationOk() (*string, bool) { - if o == nil || isNil(o.StopLossRation) { - return nil, false - } - return o.StopLossRation, true -} - -// HasStopLossRation returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasStopLossRation() bool { - if o != nil && !isNil(o.StopLossRation) { - return true - } - - return false -} - -// SetStopLossRation gets a reference to the given string and assigns it to the StopLossRation field. -func (o *TraceSettingBatchDetailsResult) SetStopLossRation(v string) { - o.StopLossRation = &v -} - -// GetStopProfitRation returns the StopProfitRation field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetStopProfitRation() string { - if o == nil || isNil(o.StopProfitRation) { - var ret string - return ret - } - return *o.StopProfitRation -} - -// GetStopProfitRationOk returns a tuple with the StopProfitRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetStopProfitRationOk() (*string, bool) { - if o == nil || isNil(o.StopProfitRation) { - return nil, false - } - return o.StopProfitRation, true -} - -// HasStopProfitRation returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasStopProfitRation() bool { - if o != nil && !isNil(o.StopProfitRation) { - return true - } - - return false -} - -// SetStopProfitRation gets a reference to the given string and assigns it to the StopProfitRation field. -func (o *TraceSettingBatchDetailsResult) SetStopProfitRation(v string) { - o.StopProfitRation = &v -} - -// GetSymbolDisplayName returns the SymbolDisplayName field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetSymbolDisplayName() string { - if o == nil || isNil(o.SymbolDisplayName) { - var ret string - return ret - } - return *o.SymbolDisplayName -} - -// GetSymbolDisplayNameOk returns a tuple with the SymbolDisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetSymbolDisplayNameOk() (*string, bool) { - if o == nil || isNil(o.SymbolDisplayName) { - return nil, false - } - return o.SymbolDisplayName, true -} - -// HasSymbolDisplayName returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasSymbolDisplayName() bool { - if o != nil && !isNil(o.SymbolDisplayName) { - return true - } - - return false -} - -// SetSymbolDisplayName gets a reference to the given string and assigns it to the SymbolDisplayName field. -func (o *TraceSettingBatchDetailsResult) SetSymbolDisplayName(v string) { - o.SymbolDisplayName = &v -} - -// GetSymbolId returns the SymbolId field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetSymbolId() string { - if o == nil || isNil(o.SymbolId) { - var ret string - return ret - } - return *o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetSymbolIdOk() (*string, bool) { - if o == nil || isNil(o.SymbolId) { - return nil, false - } - return o.SymbolId, true -} - -// HasSymbolId returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasSymbolId() bool { - if o != nil && !isNil(o.SymbolId) { - return true - } - - return false -} - -// SetSymbolId gets a reference to the given string and assigns it to the SymbolId field. -func (o *TraceSettingBatchDetailsResult) SetSymbolId(v string) { - o.SymbolId = &v -} - -// GetTraceType returns the TraceType field value if set, zero value otherwise. -func (o *TraceSettingBatchDetailsResult) GetTraceType() string { - if o == nil || isNil(o.TraceType) { - var ret string - return ret - } - return *o.TraceType -} - -// GetTraceTypeOk returns a tuple with the TraceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingBatchDetailsResult) GetTraceTypeOk() (*string, bool) { - if o == nil || isNil(o.TraceType) { - return nil, false - } - return o.TraceType, true -} - -// HasTraceType returns a boolean if a field has been set. -func (o *TraceSettingBatchDetailsResult) HasTraceType() bool { - if o != nil && !isNil(o.TraceType) { - return true - } - - return false -} - -// SetTraceType gets a reference to the given string and assigns it to the TraceType field. -func (o *TraceSettingBatchDetailsResult) SetTraceType(v string) { - o.TraceType = &v -} - -func (o TraceSettingBatchDetailsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BusinessLineCode) { - toSerialize["businessLineCode"] = o.BusinessLineCode - } - if !isNil(o.MaxTraceAmount) { - toSerialize["maxTraceAmount"] = o.MaxTraceAmount - } - if !isNil(o.StopLossRation) { - toSerialize["stopLossRation"] = o.StopLossRation - } - if !isNil(o.StopProfitRation) { - toSerialize["stopProfitRation"] = o.StopProfitRation - } - if !isNil(o.SymbolDisplayName) { - toSerialize["symbolDisplayName"] = o.SymbolDisplayName - } - if !isNil(o.SymbolId) { - toSerialize["symbolId"] = o.SymbolId - } - if !isNil(o.TraceType) { - toSerialize["traceType"] = o.TraceType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceSettingBatchDetailsResult) UnmarshalJSON(bytes []byte) (err error) { - varTraceSettingBatchDetailsResult := _TraceSettingBatchDetailsResult{} - - if err = json.Unmarshal(bytes, &varTraceSettingBatchDetailsResult); err == nil { - *o = TraceSettingBatchDetailsResult(varTraceSettingBatchDetailsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "businessLineCode") - delete(additionalProperties, "maxTraceAmount") - delete(additionalProperties, "stopLossRation") - delete(additionalProperties, "stopProfitRation") - delete(additionalProperties, "symbolDisplayName") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "traceType") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceSettingBatchDetailsResult struct { - value *TraceSettingBatchDetailsResult - isSet bool -} - -func (v NullableTraceSettingBatchDetailsResult) Get() *TraceSettingBatchDetailsResult { - return v.value -} - -func (v *NullableTraceSettingBatchDetailsResult) Set(val *TraceSettingBatchDetailsResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraceSettingBatchDetailsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceSettingBatchDetailsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceSettingBatchDetailsResult(val *TraceSettingBatchDetailsResult) *NullableTraceSettingBatchDetailsResult { - return &NullableTraceSettingBatchDetailsResult{value: val, isSet: true} -} - -func (v NullableTraceSettingBatchDetailsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceSettingBatchDetailsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_setting_product_configs_result.go b/bitget-goland-sdk-open-api/model_trace_setting_product_configs_result.go deleted file mode 100644 index cd5476ac..00000000 --- a/bitget-goland-sdk-open-api/model_trace_setting_product_configs_result.go +++ /dev/null @@ -1,693 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceSettingProductConfigsResult struct for TraceSettingProductConfigsResult -type TraceSettingProductConfigsResult struct { - BusinessLine *string `json:"businessLine,omitempty"` - MaxStopLossRation *string `json:"maxStopLossRation,omitempty"` - MaxStopProfitRation *string `json:"maxStopProfitRation,omitempty"` - MaxTraceAmount *string `json:"maxTraceAmount,omitempty"` - MaxTraceAmountSystem *string `json:"maxTraceAmountSystem,omitempty"` - MaxTraceCount *string `json:"maxTraceCount,omitempty"` - MaxTraceRation *string `json:"maxTraceRation,omitempty"` - MinStopLossRation *string `json:"minStopLossRation,omitempty"` - MinStopProfitRation *string `json:"minStopProfitRation,omitempty"` - MinTraceAmount *string `json:"minTraceAmount,omitempty"` - MinTraceCount *string `json:"minTraceCount,omitempty"` - MinTraceRation *string `json:"minTraceRation,omitempty"` - SliderMaxStopLossRatio *string `json:"sliderMaxStopLossRatio,omitempty"` - SliderMaxStopProfitRatio *string `json:"sliderMaxStopProfitRatio,omitempty"` - SymbolId *string `json:"symbolId,omitempty"` - SymbolName *string `json:"symbolName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraceSettingProductConfigsResult TraceSettingProductConfigsResult - -// NewTraceSettingProductConfigsResult instantiates a new TraceSettingProductConfigsResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceSettingProductConfigsResult() *TraceSettingProductConfigsResult { - this := TraceSettingProductConfigsResult{} - return &this -} - -// NewTraceSettingProductConfigsResultWithDefaults instantiates a new TraceSettingProductConfigsResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceSettingProductConfigsResultWithDefaults() *TraceSettingProductConfigsResult { - this := TraceSettingProductConfigsResult{} - return &this -} - -// GetBusinessLine returns the BusinessLine field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetBusinessLine() string { - if o == nil || isNil(o.BusinessLine) { - var ret string - return ret - } - return *o.BusinessLine -} - -// GetBusinessLineOk returns a tuple with the BusinessLine field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetBusinessLineOk() (*string, bool) { - if o == nil || isNil(o.BusinessLine) { - return nil, false - } - return o.BusinessLine, true -} - -// HasBusinessLine returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasBusinessLine() bool { - if o != nil && !isNil(o.BusinessLine) { - return true - } - - return false -} - -// SetBusinessLine gets a reference to the given string and assigns it to the BusinessLine field. -func (o *TraceSettingProductConfigsResult) SetBusinessLine(v string) { - o.BusinessLine = &v -} - -// GetMaxStopLossRation returns the MaxStopLossRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxStopLossRation() string { - if o == nil || isNil(o.MaxStopLossRation) { - var ret string - return ret - } - return *o.MaxStopLossRation -} - -// GetMaxStopLossRationOk returns a tuple with the MaxStopLossRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxStopLossRationOk() (*string, bool) { - if o == nil || isNil(o.MaxStopLossRation) { - return nil, false - } - return o.MaxStopLossRation, true -} - -// HasMaxStopLossRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxStopLossRation() bool { - if o != nil && !isNil(o.MaxStopLossRation) { - return true - } - - return false -} - -// SetMaxStopLossRation gets a reference to the given string and assigns it to the MaxStopLossRation field. -func (o *TraceSettingProductConfigsResult) SetMaxStopLossRation(v string) { - o.MaxStopLossRation = &v -} - -// GetMaxStopProfitRation returns the MaxStopProfitRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxStopProfitRation() string { - if o == nil || isNil(o.MaxStopProfitRation) { - var ret string - return ret - } - return *o.MaxStopProfitRation -} - -// GetMaxStopProfitRationOk returns a tuple with the MaxStopProfitRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxStopProfitRationOk() (*string, bool) { - if o == nil || isNil(o.MaxStopProfitRation) { - return nil, false - } - return o.MaxStopProfitRation, true -} - -// HasMaxStopProfitRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxStopProfitRation() bool { - if o != nil && !isNil(o.MaxStopProfitRation) { - return true - } - - return false -} - -// SetMaxStopProfitRation gets a reference to the given string and assigns it to the MaxStopProfitRation field. -func (o *TraceSettingProductConfigsResult) SetMaxStopProfitRation(v string) { - o.MaxStopProfitRation = &v -} - -// GetMaxTraceAmount returns the MaxTraceAmount field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxTraceAmount() string { - if o == nil || isNil(o.MaxTraceAmount) { - var ret string - return ret - } - return *o.MaxTraceAmount -} - -// GetMaxTraceAmountOk returns a tuple with the MaxTraceAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountOk() (*string, bool) { - if o == nil || isNil(o.MaxTraceAmount) { - return nil, false - } - return o.MaxTraceAmount, true -} - -// HasMaxTraceAmount returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxTraceAmount() bool { - if o != nil && !isNil(o.MaxTraceAmount) { - return true - } - - return false -} - -// SetMaxTraceAmount gets a reference to the given string and assigns it to the MaxTraceAmount field. -func (o *TraceSettingProductConfigsResult) SetMaxTraceAmount(v string) { - o.MaxTraceAmount = &v -} - -// GetMaxTraceAmountSystem returns the MaxTraceAmountSystem field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountSystem() string { - if o == nil || isNil(o.MaxTraceAmountSystem) { - var ret string - return ret - } - return *o.MaxTraceAmountSystem -} - -// GetMaxTraceAmountSystemOk returns a tuple with the MaxTraceAmountSystem field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxTraceAmountSystemOk() (*string, bool) { - if o == nil || isNil(o.MaxTraceAmountSystem) { - return nil, false - } - return o.MaxTraceAmountSystem, true -} - -// HasMaxTraceAmountSystem returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxTraceAmountSystem() bool { - if o != nil && !isNil(o.MaxTraceAmountSystem) { - return true - } - - return false -} - -// SetMaxTraceAmountSystem gets a reference to the given string and assigns it to the MaxTraceAmountSystem field. -func (o *TraceSettingProductConfigsResult) SetMaxTraceAmountSystem(v string) { - o.MaxTraceAmountSystem = &v -} - -// GetMaxTraceCount returns the MaxTraceCount field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxTraceCount() string { - if o == nil || isNil(o.MaxTraceCount) { - var ret string - return ret - } - return *o.MaxTraceCount -} - -// GetMaxTraceCountOk returns a tuple with the MaxTraceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxTraceCountOk() (*string, bool) { - if o == nil || isNil(o.MaxTraceCount) { - return nil, false - } - return o.MaxTraceCount, true -} - -// HasMaxTraceCount returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxTraceCount() bool { - if o != nil && !isNil(o.MaxTraceCount) { - return true - } - - return false -} - -// SetMaxTraceCount gets a reference to the given string and assigns it to the MaxTraceCount field. -func (o *TraceSettingProductConfigsResult) SetMaxTraceCount(v string) { - o.MaxTraceCount = &v -} - -// GetMaxTraceRation returns the MaxTraceRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMaxTraceRation() string { - if o == nil || isNil(o.MaxTraceRation) { - var ret string - return ret - } - return *o.MaxTraceRation -} - -// GetMaxTraceRationOk returns a tuple with the MaxTraceRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMaxTraceRationOk() (*string, bool) { - if o == nil || isNil(o.MaxTraceRation) { - return nil, false - } - return o.MaxTraceRation, true -} - -// HasMaxTraceRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMaxTraceRation() bool { - if o != nil && !isNil(o.MaxTraceRation) { - return true - } - - return false -} - -// SetMaxTraceRation gets a reference to the given string and assigns it to the MaxTraceRation field. -func (o *TraceSettingProductConfigsResult) SetMaxTraceRation(v string) { - o.MaxTraceRation = &v -} - -// GetMinStopLossRation returns the MinStopLossRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMinStopLossRation() string { - if o == nil || isNil(o.MinStopLossRation) { - var ret string - return ret - } - return *o.MinStopLossRation -} - -// GetMinStopLossRationOk returns a tuple with the MinStopLossRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMinStopLossRationOk() (*string, bool) { - if o == nil || isNil(o.MinStopLossRation) { - return nil, false - } - return o.MinStopLossRation, true -} - -// HasMinStopLossRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMinStopLossRation() bool { - if o != nil && !isNil(o.MinStopLossRation) { - return true - } - - return false -} - -// SetMinStopLossRation gets a reference to the given string and assigns it to the MinStopLossRation field. -func (o *TraceSettingProductConfigsResult) SetMinStopLossRation(v string) { - o.MinStopLossRation = &v -} - -// GetMinStopProfitRation returns the MinStopProfitRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMinStopProfitRation() string { - if o == nil || isNil(o.MinStopProfitRation) { - var ret string - return ret - } - return *o.MinStopProfitRation -} - -// GetMinStopProfitRationOk returns a tuple with the MinStopProfitRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMinStopProfitRationOk() (*string, bool) { - if o == nil || isNil(o.MinStopProfitRation) { - return nil, false - } - return o.MinStopProfitRation, true -} - -// HasMinStopProfitRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMinStopProfitRation() bool { - if o != nil && !isNil(o.MinStopProfitRation) { - return true - } - - return false -} - -// SetMinStopProfitRation gets a reference to the given string and assigns it to the MinStopProfitRation field. -func (o *TraceSettingProductConfigsResult) SetMinStopProfitRation(v string) { - o.MinStopProfitRation = &v -} - -// GetMinTraceAmount returns the MinTraceAmount field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMinTraceAmount() string { - if o == nil || isNil(o.MinTraceAmount) { - var ret string - return ret - } - return *o.MinTraceAmount -} - -// GetMinTraceAmountOk returns a tuple with the MinTraceAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMinTraceAmountOk() (*string, bool) { - if o == nil || isNil(o.MinTraceAmount) { - return nil, false - } - return o.MinTraceAmount, true -} - -// HasMinTraceAmount returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMinTraceAmount() bool { - if o != nil && !isNil(o.MinTraceAmount) { - return true - } - - return false -} - -// SetMinTraceAmount gets a reference to the given string and assigns it to the MinTraceAmount field. -func (o *TraceSettingProductConfigsResult) SetMinTraceAmount(v string) { - o.MinTraceAmount = &v -} - -// GetMinTraceCount returns the MinTraceCount field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMinTraceCount() string { - if o == nil || isNil(o.MinTraceCount) { - var ret string - return ret - } - return *o.MinTraceCount -} - -// GetMinTraceCountOk returns a tuple with the MinTraceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMinTraceCountOk() (*string, bool) { - if o == nil || isNil(o.MinTraceCount) { - return nil, false - } - return o.MinTraceCount, true -} - -// HasMinTraceCount returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMinTraceCount() bool { - if o != nil && !isNil(o.MinTraceCount) { - return true - } - - return false -} - -// SetMinTraceCount gets a reference to the given string and assigns it to the MinTraceCount field. -func (o *TraceSettingProductConfigsResult) SetMinTraceCount(v string) { - o.MinTraceCount = &v -} - -// GetMinTraceRation returns the MinTraceRation field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetMinTraceRation() string { - if o == nil || isNil(o.MinTraceRation) { - var ret string - return ret - } - return *o.MinTraceRation -} - -// GetMinTraceRationOk returns a tuple with the MinTraceRation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetMinTraceRationOk() (*string, bool) { - if o == nil || isNil(o.MinTraceRation) { - return nil, false - } - return o.MinTraceRation, true -} - -// HasMinTraceRation returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasMinTraceRation() bool { - if o != nil && !isNil(o.MinTraceRation) { - return true - } - - return false -} - -// SetMinTraceRation gets a reference to the given string and assigns it to the MinTraceRation field. -func (o *TraceSettingProductConfigsResult) SetMinTraceRation(v string) { - o.MinTraceRation = &v -} - -// GetSliderMaxStopLossRatio returns the SliderMaxStopLossRatio field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetSliderMaxStopLossRatio() string { - if o == nil || isNil(o.SliderMaxStopLossRatio) { - var ret string - return ret - } - return *o.SliderMaxStopLossRatio -} - -// GetSliderMaxStopLossRatioOk returns a tuple with the SliderMaxStopLossRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetSliderMaxStopLossRatioOk() (*string, bool) { - if o == nil || isNil(o.SliderMaxStopLossRatio) { - return nil, false - } - return o.SliderMaxStopLossRatio, true -} - -// HasSliderMaxStopLossRatio returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasSliderMaxStopLossRatio() bool { - if o != nil && !isNil(o.SliderMaxStopLossRatio) { - return true - } - - return false -} - -// SetSliderMaxStopLossRatio gets a reference to the given string and assigns it to the SliderMaxStopLossRatio field. -func (o *TraceSettingProductConfigsResult) SetSliderMaxStopLossRatio(v string) { - o.SliderMaxStopLossRatio = &v -} - -// GetSliderMaxStopProfitRatio returns the SliderMaxStopProfitRatio field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetSliderMaxStopProfitRatio() string { - if o == nil || isNil(o.SliderMaxStopProfitRatio) { - var ret string - return ret - } - return *o.SliderMaxStopProfitRatio -} - -// GetSliderMaxStopProfitRatioOk returns a tuple with the SliderMaxStopProfitRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetSliderMaxStopProfitRatioOk() (*string, bool) { - if o == nil || isNil(o.SliderMaxStopProfitRatio) { - return nil, false - } - return o.SliderMaxStopProfitRatio, true -} - -// HasSliderMaxStopProfitRatio returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasSliderMaxStopProfitRatio() bool { - if o != nil && !isNil(o.SliderMaxStopProfitRatio) { - return true - } - - return false -} - -// SetSliderMaxStopProfitRatio gets a reference to the given string and assigns it to the SliderMaxStopProfitRatio field. -func (o *TraceSettingProductConfigsResult) SetSliderMaxStopProfitRatio(v string) { - o.SliderMaxStopProfitRatio = &v -} - -// GetSymbolId returns the SymbolId field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetSymbolId() string { - if o == nil || isNil(o.SymbolId) { - var ret string - return ret - } - return *o.SymbolId -} - -// GetSymbolIdOk returns a tuple with the SymbolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetSymbolIdOk() (*string, bool) { - if o == nil || isNil(o.SymbolId) { - return nil, false - } - return o.SymbolId, true -} - -// HasSymbolId returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasSymbolId() bool { - if o != nil && !isNil(o.SymbolId) { - return true - } - - return false -} - -// SetSymbolId gets a reference to the given string and assigns it to the SymbolId field. -func (o *TraceSettingProductConfigsResult) SetSymbolId(v string) { - o.SymbolId = &v -} - -// GetSymbolName returns the SymbolName field value if set, zero value otherwise. -func (o *TraceSettingProductConfigsResult) GetSymbolName() string { - if o == nil || isNil(o.SymbolName) { - var ret string - return ret - } - return *o.SymbolName -} - -// GetSymbolNameOk returns a tuple with the SymbolName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingProductConfigsResult) GetSymbolNameOk() (*string, bool) { - if o == nil || isNil(o.SymbolName) { - return nil, false - } - return o.SymbolName, true -} - -// HasSymbolName returns a boolean if a field has been set. -func (o *TraceSettingProductConfigsResult) HasSymbolName() bool { - if o != nil && !isNil(o.SymbolName) { - return true - } - - return false -} - -// SetSymbolName gets a reference to the given string and assigns it to the SymbolName field. -func (o *TraceSettingProductConfigsResult) SetSymbolName(v string) { - o.SymbolName = &v -} - -func (o TraceSettingProductConfigsResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.BusinessLine) { - toSerialize["businessLine"] = o.BusinessLine - } - if !isNil(o.MaxStopLossRation) { - toSerialize["maxStopLossRation"] = o.MaxStopLossRation - } - if !isNil(o.MaxStopProfitRation) { - toSerialize["maxStopProfitRation"] = o.MaxStopProfitRation - } - if !isNil(o.MaxTraceAmount) { - toSerialize["maxTraceAmount"] = o.MaxTraceAmount - } - if !isNil(o.MaxTraceAmountSystem) { - toSerialize["maxTraceAmountSystem"] = o.MaxTraceAmountSystem - } - if !isNil(o.MaxTraceCount) { - toSerialize["maxTraceCount"] = o.MaxTraceCount - } - if !isNil(o.MaxTraceRation) { - toSerialize["maxTraceRation"] = o.MaxTraceRation - } - if !isNil(o.MinStopLossRation) { - toSerialize["minStopLossRation"] = o.MinStopLossRation - } - if !isNil(o.MinStopProfitRation) { - toSerialize["minStopProfitRation"] = o.MinStopProfitRation - } - if !isNil(o.MinTraceAmount) { - toSerialize["minTraceAmount"] = o.MinTraceAmount - } - if !isNil(o.MinTraceCount) { - toSerialize["minTraceCount"] = o.MinTraceCount - } - if !isNil(o.MinTraceRation) { - toSerialize["minTraceRation"] = o.MinTraceRation - } - if !isNil(o.SliderMaxStopLossRatio) { - toSerialize["sliderMaxStopLossRatio"] = o.SliderMaxStopLossRatio - } - if !isNil(o.SliderMaxStopProfitRatio) { - toSerialize["sliderMaxStopProfitRatio"] = o.SliderMaxStopProfitRatio - } - if !isNil(o.SymbolId) { - toSerialize["symbolId"] = o.SymbolId - } - if !isNil(o.SymbolName) { - toSerialize["symbolName"] = o.SymbolName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceSettingProductConfigsResult) UnmarshalJSON(bytes []byte) (err error) { - varTraceSettingProductConfigsResult := _TraceSettingProductConfigsResult{} - - if err = json.Unmarshal(bytes, &varTraceSettingProductConfigsResult); err == nil { - *o = TraceSettingProductConfigsResult(varTraceSettingProductConfigsResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "businessLine") - delete(additionalProperties, "maxStopLossRation") - delete(additionalProperties, "maxStopProfitRation") - delete(additionalProperties, "maxTraceAmount") - delete(additionalProperties, "maxTraceAmountSystem") - delete(additionalProperties, "maxTraceCount") - delete(additionalProperties, "maxTraceRation") - delete(additionalProperties, "minStopLossRation") - delete(additionalProperties, "minStopProfitRation") - delete(additionalProperties, "minTraceAmount") - delete(additionalProperties, "minTraceCount") - delete(additionalProperties, "minTraceRation") - delete(additionalProperties, "sliderMaxStopLossRatio") - delete(additionalProperties, "sliderMaxStopProfitRatio") - delete(additionalProperties, "symbolId") - delete(additionalProperties, "symbolName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceSettingProductConfigsResult struct { - value *TraceSettingProductConfigsResult - isSet bool -} - -func (v NullableTraceSettingProductConfigsResult) Get() *TraceSettingProductConfigsResult { - return v.value -} - -func (v *NullableTraceSettingProductConfigsResult) Set(val *TraceSettingProductConfigsResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraceSettingProductConfigsResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceSettingProductConfigsResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceSettingProductConfigsResult(val *TraceSettingProductConfigsResult) *NullableTraceSettingProductConfigsResult { - return &NullableTraceSettingProductConfigsResult{value: val, isSet: true} -} - -func (v NullableTraceSettingProductConfigsResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceSettingProductConfigsResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_setting_result.go b/bitget-goland-sdk-open-api/model_trace_setting_result.go deleted file mode 100644 index 53f2ddef..00000000 --- a/bitget-goland-sdk-open-api/model_trace_setting_result.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceSettingResult struct for TraceSettingResult -type TraceSettingResult struct { - IsMyTrader *bool `json:"isMyTrader,omitempty"` - ProfitRate *string `json:"profitRate,omitempty"` - SettingType *string `json:"settingType,omitempty"` - SettledInDays *string `json:"settledInDays,omitempty"` - TraceBatchDetails []TraceSettingBatchDetailsResult `json:"traceBatchDetails,omitempty"` - TraceProductConfigs []TraceSettingProductConfigsResult `json:"traceProductConfigs,omitempty"` - TraderHeadPic *string `json:"traderHeadPic,omitempty"` - TraderNickName *string `json:"traderNickName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraceSettingResult TraceSettingResult - -// NewTraceSettingResult instantiates a new TraceSettingResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceSettingResult() *TraceSettingResult { - this := TraceSettingResult{} - return &this -} - -// NewTraceSettingResultWithDefaults instantiates a new TraceSettingResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceSettingResultWithDefaults() *TraceSettingResult { - this := TraceSettingResult{} - return &this -} - -// GetIsMyTrader returns the IsMyTrader field value if set, zero value otherwise. -func (o *TraceSettingResult) GetIsMyTrader() bool { - if o == nil || isNil(o.IsMyTrader) { - var ret bool - return ret - } - return *o.IsMyTrader -} - -// GetIsMyTraderOk returns a tuple with the IsMyTrader field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetIsMyTraderOk() (*bool, bool) { - if o == nil || isNil(o.IsMyTrader) { - return nil, false - } - return o.IsMyTrader, true -} - -// HasIsMyTrader returns a boolean if a field has been set. -func (o *TraceSettingResult) HasIsMyTrader() bool { - if o != nil && !isNil(o.IsMyTrader) { - return true - } - - return false -} - -// SetIsMyTrader gets a reference to the given bool and assigns it to the IsMyTrader field. -func (o *TraceSettingResult) SetIsMyTrader(v bool) { - o.IsMyTrader = &v -} - -// GetProfitRate returns the ProfitRate field value if set, zero value otherwise. -func (o *TraceSettingResult) GetProfitRate() string { - if o == nil || isNil(o.ProfitRate) { - var ret string - return ret - } - return *o.ProfitRate -} - -// GetProfitRateOk returns a tuple with the ProfitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetProfitRateOk() (*string, bool) { - if o == nil || isNil(o.ProfitRate) { - return nil, false - } - return o.ProfitRate, true -} - -// HasProfitRate returns a boolean if a field has been set. -func (o *TraceSettingResult) HasProfitRate() bool { - if o != nil && !isNil(o.ProfitRate) { - return true - } - - return false -} - -// SetProfitRate gets a reference to the given string and assigns it to the ProfitRate field. -func (o *TraceSettingResult) SetProfitRate(v string) { - o.ProfitRate = &v -} - -// GetSettingType returns the SettingType field value if set, zero value otherwise. -func (o *TraceSettingResult) GetSettingType() string { - if o == nil || isNil(o.SettingType) { - var ret string - return ret - } - return *o.SettingType -} - -// GetSettingTypeOk returns a tuple with the SettingType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetSettingTypeOk() (*string, bool) { - if o == nil || isNil(o.SettingType) { - return nil, false - } - return o.SettingType, true -} - -// HasSettingType returns a boolean if a field has been set. -func (o *TraceSettingResult) HasSettingType() bool { - if o != nil && !isNil(o.SettingType) { - return true - } - - return false -} - -// SetSettingType gets a reference to the given string and assigns it to the SettingType field. -func (o *TraceSettingResult) SetSettingType(v string) { - o.SettingType = &v -} - -// GetSettledInDays returns the SettledInDays field value if set, zero value otherwise. -func (o *TraceSettingResult) GetSettledInDays() string { - if o == nil || isNil(o.SettledInDays) { - var ret string - return ret - } - return *o.SettledInDays -} - -// GetSettledInDaysOk returns a tuple with the SettledInDays field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetSettledInDaysOk() (*string, bool) { - if o == nil || isNil(o.SettledInDays) { - return nil, false - } - return o.SettledInDays, true -} - -// HasSettledInDays returns a boolean if a field has been set. -func (o *TraceSettingResult) HasSettledInDays() bool { - if o != nil && !isNil(o.SettledInDays) { - return true - } - - return false -} - -// SetSettledInDays gets a reference to the given string and assigns it to the SettledInDays field. -func (o *TraceSettingResult) SetSettledInDays(v string) { - o.SettledInDays = &v -} - -// GetTraceBatchDetails returns the TraceBatchDetails field value if set, zero value otherwise. -func (o *TraceSettingResult) GetTraceBatchDetails() []TraceSettingBatchDetailsResult { - if o == nil || isNil(o.TraceBatchDetails) { - var ret []TraceSettingBatchDetailsResult - return ret - } - return o.TraceBatchDetails -} - -// GetTraceBatchDetailsOk returns a tuple with the TraceBatchDetails field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetTraceBatchDetailsOk() ([]TraceSettingBatchDetailsResult, bool) { - if o == nil || isNil(o.TraceBatchDetails) { - return nil, false - } - return o.TraceBatchDetails, true -} - -// HasTraceBatchDetails returns a boolean if a field has been set. -func (o *TraceSettingResult) HasTraceBatchDetails() bool { - if o != nil && !isNil(o.TraceBatchDetails) { - return true - } - - return false -} - -// SetTraceBatchDetails gets a reference to the given []TraceSettingBatchDetailsResult and assigns it to the TraceBatchDetails field. -func (o *TraceSettingResult) SetTraceBatchDetails(v []TraceSettingBatchDetailsResult) { - o.TraceBatchDetails = v -} - -// GetTraceProductConfigs returns the TraceProductConfigs field value if set, zero value otherwise. -func (o *TraceSettingResult) GetTraceProductConfigs() []TraceSettingProductConfigsResult { - if o == nil || isNil(o.TraceProductConfigs) { - var ret []TraceSettingProductConfigsResult - return ret - } - return o.TraceProductConfigs -} - -// GetTraceProductConfigsOk returns a tuple with the TraceProductConfigs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetTraceProductConfigsOk() ([]TraceSettingProductConfigsResult, bool) { - if o == nil || isNil(o.TraceProductConfigs) { - return nil, false - } - return o.TraceProductConfigs, true -} - -// HasTraceProductConfigs returns a boolean if a field has been set. -func (o *TraceSettingResult) HasTraceProductConfigs() bool { - if o != nil && !isNil(o.TraceProductConfigs) { - return true - } - - return false -} - -// SetTraceProductConfigs gets a reference to the given []TraceSettingProductConfigsResult and assigns it to the TraceProductConfigs field. -func (o *TraceSettingResult) SetTraceProductConfigs(v []TraceSettingProductConfigsResult) { - o.TraceProductConfigs = v -} - -// GetTraderHeadPic returns the TraderHeadPic field value if set, zero value otherwise. -func (o *TraceSettingResult) GetTraderHeadPic() string { - if o == nil || isNil(o.TraderHeadPic) { - var ret string - return ret - } - return *o.TraderHeadPic -} - -// GetTraderHeadPicOk returns a tuple with the TraderHeadPic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetTraderHeadPicOk() (*string, bool) { - if o == nil || isNil(o.TraderHeadPic) { - return nil, false - } - return o.TraderHeadPic, true -} - -// HasTraderHeadPic returns a boolean if a field has been set. -func (o *TraceSettingResult) HasTraderHeadPic() bool { - if o != nil && !isNil(o.TraderHeadPic) { - return true - } - - return false -} - -// SetTraderHeadPic gets a reference to the given string and assigns it to the TraderHeadPic field. -func (o *TraceSettingResult) SetTraderHeadPic(v string) { - o.TraderHeadPic = &v -} - -// GetTraderNickName returns the TraderNickName field value if set, zero value otherwise. -func (o *TraceSettingResult) GetTraderNickName() string { - if o == nil || isNil(o.TraderNickName) { - var ret string - return ret - } - return *o.TraderNickName -} - -// GetTraderNickNameOk returns a tuple with the TraderNickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraceSettingResult) GetTraderNickNameOk() (*string, bool) { - if o == nil || isNil(o.TraderNickName) { - return nil, false - } - return o.TraderNickName, true -} - -// HasTraderNickName returns a boolean if a field has been set. -func (o *TraceSettingResult) HasTraderNickName() bool { - if o != nil && !isNil(o.TraderNickName) { - return true - } - - return false -} - -// SetTraderNickName gets a reference to the given string and assigns it to the TraderNickName field. -func (o *TraceSettingResult) SetTraderNickName(v string) { - o.TraderNickName = &v -} - -func (o TraceSettingResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.IsMyTrader) { - toSerialize["isMyTrader"] = o.IsMyTrader - } - if !isNil(o.ProfitRate) { - toSerialize["profitRate"] = o.ProfitRate - } - if !isNil(o.SettingType) { - toSerialize["settingType"] = o.SettingType - } - if !isNil(o.SettledInDays) { - toSerialize["settledInDays"] = o.SettledInDays - } - if !isNil(o.TraceBatchDetails) { - toSerialize["traceBatchDetails"] = o.TraceBatchDetails - } - if !isNil(o.TraceProductConfigs) { - toSerialize["traceProductConfigs"] = o.TraceProductConfigs - } - if !isNil(o.TraderHeadPic) { - toSerialize["traderHeadPic"] = o.TraderHeadPic - } - if !isNil(o.TraderNickName) { - toSerialize["traderNickName"] = o.TraderNickName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceSettingResult) UnmarshalJSON(bytes []byte) (err error) { - varTraceSettingResult := _TraceSettingResult{} - - if err = json.Unmarshal(bytes, &varTraceSettingResult); err == nil { - *o = TraceSettingResult(varTraceSettingResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "isMyTrader") - delete(additionalProperties, "profitRate") - delete(additionalProperties, "settingType") - delete(additionalProperties, "settledInDays") - delete(additionalProperties, "traceBatchDetails") - delete(additionalProperties, "traceProductConfigs") - delete(additionalProperties, "traderHeadPic") - delete(additionalProperties, "traderNickName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceSettingResult struct { - value *TraceSettingResult - isSet bool -} - -func (v NullableTraceSettingResult) Get() *TraceSettingResult { - return v.value -} - -func (v *NullableTraceSettingResult) Set(val *TraceSettingResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraceSettingResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceSettingResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceSettingResult(val *TraceSettingResult) *NullableTraceSettingResult { - return &NullableTraceSettingResult{value: val, isSet: true} -} - -func (v NullableTraceSettingResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceSettingResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trace_settings_request.go b/bitget-goland-sdk-open-api/model_trace_settings_request.go deleted file mode 100644 index b7e7f725..00000000 --- a/bitget-goland-sdk-open-api/model_trace_settings_request.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraceSettingsRequest struct for TraceSettingsRequest -type TraceSettingsRequest struct { - // traderUserId - TraderUserId string `json:"traderUserId"` - AdditionalProperties map[string]interface{} -} - -type _TraceSettingsRequest TraceSettingsRequest - -// NewTraceSettingsRequest instantiates a new TraceSettingsRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraceSettingsRequest(traderUserId string) *TraceSettingsRequest { - this := TraceSettingsRequest{} - this.TraderUserId = traderUserId - return &this -} - -// NewTraceSettingsRequestWithDefaults instantiates a new TraceSettingsRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraceSettingsRequestWithDefaults() *TraceSettingsRequest { - this := TraceSettingsRequest{} - return &this -} - -// GetTraderUserId returns the TraderUserId field value -func (o *TraceSettingsRequest) GetTraderUserId() string { - if o == nil { - var ret string - return ret - } - - return o.TraderUserId -} - -// GetTraderUserIdOk returns a tuple with the TraderUserId field value -// and a boolean to check if the value has been set. -func (o *TraceSettingsRequest) GetTraderUserIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TraderUserId, true -} - -// SetTraderUserId sets field value -func (o *TraceSettingsRequest) SetTraderUserId(v string) { - o.TraderUserId = v -} - -func (o TraceSettingsRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["traderUserId"] = o.TraderUserId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraceSettingsRequest) UnmarshalJSON(bytes []byte) (err error) { - varTraceSettingsRequest := _TraceSettingsRequest{} - - if err = json.Unmarshal(bytes, &varTraceSettingsRequest); err == nil { - *o = TraceSettingsRequest(varTraceSettingsRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "traderUserId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraceSettingsRequest struct { - value *TraceSettingsRequest - isSet bool -} - -func (v NullableTraceSettingsRequest) Get() *TraceSettingsRequest { - return v.value -} - -func (v *NullableTraceSettingsRequest) Set(val *TraceSettingsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableTraceSettingsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableTraceSettingsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraceSettingsRequest(val *TraceSettingsRequest) *NullableTraceSettingsRequest { - return &NullableTraceSettingsRequest{value: val, isSet: true} -} - -func (v NullableTraceSettingsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraceSettingsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_profit_his_detail_list_result.go b/bitget-goland-sdk-open-api/model_trader_profit_his_detail_list_result.go deleted file mode 100644 index 8131aa70..00000000 --- a/bitget-goland-sdk-open-api/model_trader_profit_his_detail_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderProfitHisDetailListResult struct for TraderProfitHisDetailListResult -type TraderProfitHisDetailListResult struct { - NextFlag *bool `json:"nextFlag,omitempty"` - ResultList []TraderProfitHisDetailResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderProfitHisDetailListResult TraderProfitHisDetailListResult - -// NewTraderProfitHisDetailListResult instantiates a new TraderProfitHisDetailListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderProfitHisDetailListResult() *TraderProfitHisDetailListResult { - this := TraderProfitHisDetailListResult{} - return &this -} - -// NewTraderProfitHisDetailListResultWithDefaults instantiates a new TraderProfitHisDetailListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderProfitHisDetailListResultWithDefaults() *TraderProfitHisDetailListResult { - this := TraderProfitHisDetailListResult{} - return &this -} - -// GetNextFlag returns the NextFlag field value if set, zero value otherwise. -func (o *TraderProfitHisDetailListResult) GetNextFlag() bool { - if o == nil || isNil(o.NextFlag) { - var ret bool - return ret - } - return *o.NextFlag -} - -// GetNextFlagOk returns a tuple with the NextFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailListResult) GetNextFlagOk() (*bool, bool) { - if o == nil || isNil(o.NextFlag) { - return nil, false - } - return o.NextFlag, true -} - -// HasNextFlag returns a boolean if a field has been set. -func (o *TraderProfitHisDetailListResult) HasNextFlag() bool { - if o != nil && !isNil(o.NextFlag) { - return true - } - - return false -} - -// SetNextFlag gets a reference to the given bool and assigns it to the NextFlag field. -func (o *TraderProfitHisDetailListResult) SetNextFlag(v bool) { - o.NextFlag = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *TraderProfitHisDetailListResult) GetResultList() []TraderProfitHisDetailResult { - if o == nil || isNil(o.ResultList) { - var ret []TraderProfitHisDetailResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailListResult) GetResultListOk() ([]TraderProfitHisDetailResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *TraderProfitHisDetailListResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []TraderProfitHisDetailResult and assigns it to the ResultList field. -func (o *TraderProfitHisDetailListResult) SetResultList(v []TraderProfitHisDetailResult) { - o.ResultList = v -} - -func (o TraderProfitHisDetailListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NextFlag) { - toSerialize["nextFlag"] = o.NextFlag - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderProfitHisDetailListResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderProfitHisDetailListResult := _TraderProfitHisDetailListResult{} - - if err = json.Unmarshal(bytes, &varTraderProfitHisDetailListResult); err == nil { - *o = TraderProfitHisDetailListResult(varTraderProfitHisDetailListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "nextFlag") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderProfitHisDetailListResult struct { - value *TraderProfitHisDetailListResult - isSet bool -} - -func (v NullableTraderProfitHisDetailListResult) Get() *TraderProfitHisDetailListResult { - return v.value -} - -func (v *NullableTraderProfitHisDetailListResult) Set(val *TraderProfitHisDetailListResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderProfitHisDetailListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderProfitHisDetailListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderProfitHisDetailListResult(val *TraderProfitHisDetailListResult) *NullableTraderProfitHisDetailListResult { - return &NullableTraderProfitHisDetailListResult{value: val, isSet: true} -} - -func (v NullableTraderProfitHisDetailListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderProfitHisDetailListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_profit_his_detail_result.go b/bitget-goland-sdk-open-api/model_trader_profit_his_detail_result.go deleted file mode 100644 index 5faa5e51..00000000 --- a/bitget-goland-sdk-open-api/model_trader_profit_his_detail_result.go +++ /dev/null @@ -1,323 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderProfitHisDetailResult struct for TraderProfitHisDetailResult -type TraderProfitHisDetailResult struct { - CoinName *string `json:"coinName,omitempty"` - DistributeRatio *string `json:"distributeRatio,omitempty"` - HeadPic *string `json:"headPic,omitempty"` - NickName *string `json:"nickName,omitempty"` - Profit *string `json:"profit,omitempty"` - TracerNickName *string `json:"tracerNickName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderProfitHisDetailResult TraderProfitHisDetailResult - -// NewTraderProfitHisDetailResult instantiates a new TraderProfitHisDetailResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderProfitHisDetailResult() *TraderProfitHisDetailResult { - this := TraderProfitHisDetailResult{} - return &this -} - -// NewTraderProfitHisDetailResultWithDefaults instantiates a new TraderProfitHisDetailResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderProfitHisDetailResultWithDefaults() *TraderProfitHisDetailResult { - this := TraderProfitHisDetailResult{} - return &this -} - -// GetCoinName returns the CoinName field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetCoinName() string { - if o == nil || isNil(o.CoinName) { - var ret string - return ret - } - return *o.CoinName -} - -// GetCoinNameOk returns a tuple with the CoinName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetCoinNameOk() (*string, bool) { - if o == nil || isNil(o.CoinName) { - return nil, false - } - return o.CoinName, true -} - -// HasCoinName returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasCoinName() bool { - if o != nil && !isNil(o.CoinName) { - return true - } - - return false -} - -// SetCoinName gets a reference to the given string and assigns it to the CoinName field. -func (o *TraderProfitHisDetailResult) SetCoinName(v string) { - o.CoinName = &v -} - -// GetDistributeRatio returns the DistributeRatio field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetDistributeRatio() string { - if o == nil || isNil(o.DistributeRatio) { - var ret string - return ret - } - return *o.DistributeRatio -} - -// GetDistributeRatioOk returns a tuple with the DistributeRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetDistributeRatioOk() (*string, bool) { - if o == nil || isNil(o.DistributeRatio) { - return nil, false - } - return o.DistributeRatio, true -} - -// HasDistributeRatio returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasDistributeRatio() bool { - if o != nil && !isNil(o.DistributeRatio) { - return true - } - - return false -} - -// SetDistributeRatio gets a reference to the given string and assigns it to the DistributeRatio field. -func (o *TraderProfitHisDetailResult) SetDistributeRatio(v string) { - o.DistributeRatio = &v -} - -// GetHeadPic returns the HeadPic field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetHeadPic() string { - if o == nil || isNil(o.HeadPic) { - var ret string - return ret - } - return *o.HeadPic -} - -// GetHeadPicOk returns a tuple with the HeadPic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetHeadPicOk() (*string, bool) { - if o == nil || isNil(o.HeadPic) { - return nil, false - } - return o.HeadPic, true -} - -// HasHeadPic returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasHeadPic() bool { - if o != nil && !isNil(o.HeadPic) { - return true - } - - return false -} - -// SetHeadPic gets a reference to the given string and assigns it to the HeadPic field. -func (o *TraderProfitHisDetailResult) SetHeadPic(v string) { - o.HeadPic = &v -} - -// GetNickName returns the NickName field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetNickName() string { - if o == nil || isNil(o.NickName) { - var ret string - return ret - } - return *o.NickName -} - -// GetNickNameOk returns a tuple with the NickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetNickNameOk() (*string, bool) { - if o == nil || isNil(o.NickName) { - return nil, false - } - return o.NickName, true -} - -// HasNickName returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasNickName() bool { - if o != nil && !isNil(o.NickName) { - return true - } - - return false -} - -// SetNickName gets a reference to the given string and assigns it to the NickName field. -func (o *TraderProfitHisDetailResult) SetNickName(v string) { - o.NickName = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *TraderProfitHisDetailResult) SetProfit(v string) { - o.Profit = &v -} - -// GetTracerNickName returns the TracerNickName field value if set, zero value otherwise. -func (o *TraderProfitHisDetailResult) GetTracerNickName() string { - if o == nil || isNil(o.TracerNickName) { - var ret string - return ret - } - return *o.TracerNickName -} - -// GetTracerNickNameOk returns a tuple with the TracerNickName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisDetailResult) GetTracerNickNameOk() (*string, bool) { - if o == nil || isNil(o.TracerNickName) { - return nil, false - } - return o.TracerNickName, true -} - -// HasTracerNickName returns a boolean if a field has been set. -func (o *TraderProfitHisDetailResult) HasTracerNickName() bool { - if o != nil && !isNil(o.TracerNickName) { - return true - } - - return false -} - -// SetTracerNickName gets a reference to the given string and assigns it to the TracerNickName field. -func (o *TraderProfitHisDetailResult) SetTracerNickName(v string) { - o.TracerNickName = &v -} - -func (o TraderProfitHisDetailResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.CoinName) { - toSerialize["coinName"] = o.CoinName - } - if !isNil(o.DistributeRatio) { - toSerialize["distributeRatio"] = o.DistributeRatio - } - if !isNil(o.HeadPic) { - toSerialize["headPic"] = o.HeadPic - } - if !isNil(o.NickName) { - toSerialize["nickName"] = o.NickName - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - if !isNil(o.TracerNickName) { - toSerialize["tracerNickName"] = o.TracerNickName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderProfitHisDetailResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderProfitHisDetailResult := _TraderProfitHisDetailResult{} - - if err = json.Unmarshal(bytes, &varTraderProfitHisDetailResult); err == nil { - *o = TraderProfitHisDetailResult(varTraderProfitHisDetailResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coinName") - delete(additionalProperties, "distributeRatio") - delete(additionalProperties, "headPic") - delete(additionalProperties, "nickName") - delete(additionalProperties, "profit") - delete(additionalProperties, "tracerNickName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderProfitHisDetailResult struct { - value *TraderProfitHisDetailResult - isSet bool -} - -func (v NullableTraderProfitHisDetailResult) Get() *TraderProfitHisDetailResult { - return v.value -} - -func (v *NullableTraderProfitHisDetailResult) Set(val *TraderProfitHisDetailResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderProfitHisDetailResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderProfitHisDetailResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderProfitHisDetailResult(val *TraderProfitHisDetailResult) *NullableTraderProfitHisDetailResult { - return &NullableTraderProfitHisDetailResult{value: val, isSet: true} -} - -func (v NullableTraderProfitHisDetailResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderProfitHisDetailResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_profit_his_list_result.go b/bitget-goland-sdk-open-api/model_trader_profit_his_list_result.go deleted file mode 100644 index 8bb89d75..00000000 --- a/bitget-goland-sdk-open-api/model_trader_profit_his_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderProfitHisListResult struct for TraderProfitHisListResult -type TraderProfitHisListResult struct { - NextFlag *bool `json:"nextFlag,omitempty"` - ResultList []TraderProfitHisResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderProfitHisListResult TraderProfitHisListResult - -// NewTraderProfitHisListResult instantiates a new TraderProfitHisListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderProfitHisListResult() *TraderProfitHisListResult { - this := TraderProfitHisListResult{} - return &this -} - -// NewTraderProfitHisListResultWithDefaults instantiates a new TraderProfitHisListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderProfitHisListResultWithDefaults() *TraderProfitHisListResult { - this := TraderProfitHisListResult{} - return &this -} - -// GetNextFlag returns the NextFlag field value if set, zero value otherwise. -func (o *TraderProfitHisListResult) GetNextFlag() bool { - if o == nil || isNil(o.NextFlag) { - var ret bool - return ret - } - return *o.NextFlag -} - -// GetNextFlagOk returns a tuple with the NextFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisListResult) GetNextFlagOk() (*bool, bool) { - if o == nil || isNil(o.NextFlag) { - return nil, false - } - return o.NextFlag, true -} - -// HasNextFlag returns a boolean if a field has been set. -func (o *TraderProfitHisListResult) HasNextFlag() bool { - if o != nil && !isNil(o.NextFlag) { - return true - } - - return false -} - -// SetNextFlag gets a reference to the given bool and assigns it to the NextFlag field. -func (o *TraderProfitHisListResult) SetNextFlag(v bool) { - o.NextFlag = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *TraderProfitHisListResult) GetResultList() []TraderProfitHisResult { - if o == nil || isNil(o.ResultList) { - var ret []TraderProfitHisResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisListResult) GetResultListOk() ([]TraderProfitHisResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *TraderProfitHisListResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []TraderProfitHisResult and assigns it to the ResultList field. -func (o *TraderProfitHisListResult) SetResultList(v []TraderProfitHisResult) { - o.ResultList = v -} - -func (o TraderProfitHisListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NextFlag) { - toSerialize["nextFlag"] = o.NextFlag - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderProfitHisListResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderProfitHisListResult := _TraderProfitHisListResult{} - - if err = json.Unmarshal(bytes, &varTraderProfitHisListResult); err == nil { - *o = TraderProfitHisListResult(varTraderProfitHisListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "nextFlag") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderProfitHisListResult struct { - value *TraderProfitHisListResult - isSet bool -} - -func (v NullableTraderProfitHisListResult) Get() *TraderProfitHisListResult { - return v.value -} - -func (v *NullableTraderProfitHisListResult) Set(val *TraderProfitHisListResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderProfitHisListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderProfitHisListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderProfitHisListResult(val *TraderProfitHisListResult) *NullableTraderProfitHisListResult { - return &NullableTraderProfitHisListResult{value: val, isSet: true} -} - -func (v NullableTraderProfitHisListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderProfitHisListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_profit_his_result.go b/bitget-goland-sdk-open-api/model_trader_profit_his_result.go deleted file mode 100644 index 83ea5f81..00000000 --- a/bitget-goland-sdk-open-api/model_trader_profit_his_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderProfitHisResult struct for TraderProfitHisResult -type TraderProfitHisResult struct { - CoinName *string `json:"coinName,omitempty"` - Date *string `json:"date,omitempty"` - Profit *string `json:"profit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderProfitHisResult TraderProfitHisResult - -// NewTraderProfitHisResult instantiates a new TraderProfitHisResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderProfitHisResult() *TraderProfitHisResult { - this := TraderProfitHisResult{} - return &this -} - -// NewTraderProfitHisResultWithDefaults instantiates a new TraderProfitHisResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderProfitHisResultWithDefaults() *TraderProfitHisResult { - this := TraderProfitHisResult{} - return &this -} - -// GetCoinName returns the CoinName field value if set, zero value otherwise. -func (o *TraderProfitHisResult) GetCoinName() string { - if o == nil || isNil(o.CoinName) { - var ret string - return ret - } - return *o.CoinName -} - -// GetCoinNameOk returns a tuple with the CoinName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisResult) GetCoinNameOk() (*string, bool) { - if o == nil || isNil(o.CoinName) { - return nil, false - } - return o.CoinName, true -} - -// HasCoinName returns a boolean if a field has been set. -func (o *TraderProfitHisResult) HasCoinName() bool { - if o != nil && !isNil(o.CoinName) { - return true - } - - return false -} - -// SetCoinName gets a reference to the given string and assigns it to the CoinName field. -func (o *TraderProfitHisResult) SetCoinName(v string) { - o.CoinName = &v -} - -// GetDate returns the Date field value if set, zero value otherwise. -func (o *TraderProfitHisResult) GetDate() string { - if o == nil || isNil(o.Date) { - var ret string - return ret - } - return *o.Date -} - -// GetDateOk returns a tuple with the Date field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisResult) GetDateOk() (*string, bool) { - if o == nil || isNil(o.Date) { - return nil, false - } - return o.Date, true -} - -// HasDate returns a boolean if a field has been set. -func (o *TraderProfitHisResult) HasDate() bool { - if o != nil && !isNil(o.Date) { - return true - } - - return false -} - -// SetDate gets a reference to the given string and assigns it to the Date field. -func (o *TraderProfitHisResult) SetDate(v string) { - o.Date = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *TraderProfitHisResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderProfitHisResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *TraderProfitHisResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *TraderProfitHisResult) SetProfit(v string) { - o.Profit = &v -} - -func (o TraderProfitHisResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.CoinName) { - toSerialize["coinName"] = o.CoinName - } - if !isNil(o.Date) { - toSerialize["date"] = o.Date - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderProfitHisResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderProfitHisResult := _TraderProfitHisResult{} - - if err = json.Unmarshal(bytes, &varTraderProfitHisResult); err == nil { - *o = TraderProfitHisResult(varTraderProfitHisResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coinName") - delete(additionalProperties, "date") - delete(additionalProperties, "profit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderProfitHisResult struct { - value *TraderProfitHisResult - isSet bool -} - -func (v NullableTraderProfitHisResult) Get() *TraderProfitHisResult { - return v.value -} - -func (v *NullableTraderProfitHisResult) Set(val *TraderProfitHisResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderProfitHisResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderProfitHisResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderProfitHisResult(val *TraderProfitHisResult) *NullableTraderProfitHisResult { - return &NullableTraderProfitHisResult{value: val, isSet: true} -} - -func (v NullableTraderProfitHisResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderProfitHisResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_setting_lables_result.go b/bitget-goland-sdk-open-api/model_trader_setting_lables_result.go deleted file mode 100644 index d8d47fdd..00000000 --- a/bitget-goland-sdk-open-api/model_trader_setting_lables_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderSettingLablesResult struct for TraderSettingLablesResult -type TraderSettingLablesResult struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderSettingLablesResult TraderSettingLablesResult - -// NewTraderSettingLablesResult instantiates a new TraderSettingLablesResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderSettingLablesResult() *TraderSettingLablesResult { - this := TraderSettingLablesResult{} - return &this -} - -// NewTraderSettingLablesResultWithDefaults instantiates a new TraderSettingLablesResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderSettingLablesResultWithDefaults() *TraderSettingLablesResult { - this := TraderSettingLablesResult{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *TraderSettingLablesResult) GetId() string { - if o == nil || isNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingLablesResult) GetIdOk() (*string, bool) { - if o == nil || isNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *TraderSettingLablesResult) HasId() bool { - if o != nil && !isNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *TraderSettingLablesResult) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *TraderSettingLablesResult) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingLablesResult) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *TraderSettingLablesResult) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *TraderSettingLablesResult) SetName(v string) { - o.Name = &v -} - -func (o TraderSettingLablesResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Id) { - toSerialize["id"] = o.Id - } - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderSettingLablesResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderSettingLablesResult := _TraderSettingLablesResult{} - - if err = json.Unmarshal(bytes, &varTraderSettingLablesResult); err == nil { - *o = TraderSettingLablesResult(varTraderSettingLablesResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderSettingLablesResult struct { - value *TraderSettingLablesResult - isSet bool -} - -func (v NullableTraderSettingLablesResult) Get() *TraderSettingLablesResult { - return v.value -} - -func (v *NullableTraderSettingLablesResult) Set(val *TraderSettingLablesResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderSettingLablesResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderSettingLablesResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderSettingLablesResult(val *TraderSettingLablesResult) *NullableTraderSettingLablesResult { - return &NullableTraderSettingLablesResult{value: val, isSet: true} -} - -func (v NullableTraderSettingLablesResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderSettingLablesResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_setting_result.go b/bitget-goland-sdk-open-api/model_trader_setting_result.go deleted file mode 100644 index db12d46d..00000000 --- a/bitget-goland-sdk-open-api/model_trader_setting_result.go +++ /dev/null @@ -1,286 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderSettingResult struct for TraderSettingResult -type TraderSettingResult struct { - Labels []TraderSettingLablesResult `json:"labels,omitempty"` - OpenProduct *bool `json:"openProduct,omitempty"` - ShowAssetsMap *bool `json:"showAssetsMap,omitempty"` - ShowEquity *bool `json:"showEquity,omitempty"` - SupportProductCodes []TraderSettingSupportProductResult `json:"supportProductCodes,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderSettingResult TraderSettingResult - -// NewTraderSettingResult instantiates a new TraderSettingResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderSettingResult() *TraderSettingResult { - this := TraderSettingResult{} - return &this -} - -// NewTraderSettingResultWithDefaults instantiates a new TraderSettingResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderSettingResultWithDefaults() *TraderSettingResult { - this := TraderSettingResult{} - return &this -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -func (o *TraderSettingResult) GetLabels() []TraderSettingLablesResult { - if o == nil || isNil(o.Labels) { - var ret []TraderSettingLablesResult - return ret - } - return o.Labels -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingResult) GetLabelsOk() ([]TraderSettingLablesResult, bool) { - if o == nil || isNil(o.Labels) { - return nil, false - } - return o.Labels, true -} - -// HasLabels returns a boolean if a field has been set. -func (o *TraderSettingResult) HasLabels() bool { - if o != nil && !isNil(o.Labels) { - return true - } - - return false -} - -// SetLabels gets a reference to the given []TraderSettingLablesResult and assigns it to the Labels field. -func (o *TraderSettingResult) SetLabels(v []TraderSettingLablesResult) { - o.Labels = v -} - -// GetOpenProduct returns the OpenProduct field value if set, zero value otherwise. -func (o *TraderSettingResult) GetOpenProduct() bool { - if o == nil || isNil(o.OpenProduct) { - var ret bool - return ret - } - return *o.OpenProduct -} - -// GetOpenProductOk returns a tuple with the OpenProduct field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingResult) GetOpenProductOk() (*bool, bool) { - if o == nil || isNil(o.OpenProduct) { - return nil, false - } - return o.OpenProduct, true -} - -// HasOpenProduct returns a boolean if a field has been set. -func (o *TraderSettingResult) HasOpenProduct() bool { - if o != nil && !isNil(o.OpenProduct) { - return true - } - - return false -} - -// SetOpenProduct gets a reference to the given bool and assigns it to the OpenProduct field. -func (o *TraderSettingResult) SetOpenProduct(v bool) { - o.OpenProduct = &v -} - -// GetShowAssetsMap returns the ShowAssetsMap field value if set, zero value otherwise. -func (o *TraderSettingResult) GetShowAssetsMap() bool { - if o == nil || isNil(o.ShowAssetsMap) { - var ret bool - return ret - } - return *o.ShowAssetsMap -} - -// GetShowAssetsMapOk returns a tuple with the ShowAssetsMap field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingResult) GetShowAssetsMapOk() (*bool, bool) { - if o == nil || isNil(o.ShowAssetsMap) { - return nil, false - } - return o.ShowAssetsMap, true -} - -// HasShowAssetsMap returns a boolean if a field has been set. -func (o *TraderSettingResult) HasShowAssetsMap() bool { - if o != nil && !isNil(o.ShowAssetsMap) { - return true - } - - return false -} - -// SetShowAssetsMap gets a reference to the given bool and assigns it to the ShowAssetsMap field. -func (o *TraderSettingResult) SetShowAssetsMap(v bool) { - o.ShowAssetsMap = &v -} - -// GetShowEquity returns the ShowEquity field value if set, zero value otherwise. -func (o *TraderSettingResult) GetShowEquity() bool { - if o == nil || isNil(o.ShowEquity) { - var ret bool - return ret - } - return *o.ShowEquity -} - -// GetShowEquityOk returns a tuple with the ShowEquity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingResult) GetShowEquityOk() (*bool, bool) { - if o == nil || isNil(o.ShowEquity) { - return nil, false - } - return o.ShowEquity, true -} - -// HasShowEquity returns a boolean if a field has been set. -func (o *TraderSettingResult) HasShowEquity() bool { - if o != nil && !isNil(o.ShowEquity) { - return true - } - - return false -} - -// SetShowEquity gets a reference to the given bool and assigns it to the ShowEquity field. -func (o *TraderSettingResult) SetShowEquity(v bool) { - o.ShowEquity = &v -} - -// GetSupportProductCodes returns the SupportProductCodes field value if set, zero value otherwise. -func (o *TraderSettingResult) GetSupportProductCodes() []TraderSettingSupportProductResult { - if o == nil || isNil(o.SupportProductCodes) { - var ret []TraderSettingSupportProductResult - return ret - } - return o.SupportProductCodes -} - -// GetSupportProductCodesOk returns a tuple with the SupportProductCodes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingResult) GetSupportProductCodesOk() ([]TraderSettingSupportProductResult, bool) { - if o == nil || isNil(o.SupportProductCodes) { - return nil, false - } - return o.SupportProductCodes, true -} - -// HasSupportProductCodes returns a boolean if a field has been set. -func (o *TraderSettingResult) HasSupportProductCodes() bool { - if o != nil && !isNil(o.SupportProductCodes) { - return true - } - - return false -} - -// SetSupportProductCodes gets a reference to the given []TraderSettingSupportProductResult and assigns it to the SupportProductCodes field. -func (o *TraderSettingResult) SetSupportProductCodes(v []TraderSettingSupportProductResult) { - o.SupportProductCodes = v -} - -func (o TraderSettingResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Labels) { - toSerialize["labels"] = o.Labels - } - if !isNil(o.OpenProduct) { - toSerialize["openProduct"] = o.OpenProduct - } - if !isNil(o.ShowAssetsMap) { - toSerialize["showAssetsMap"] = o.ShowAssetsMap - } - if !isNil(o.ShowEquity) { - toSerialize["showEquity"] = o.ShowEquity - } - if !isNil(o.SupportProductCodes) { - toSerialize["supportProductCodes"] = o.SupportProductCodes - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderSettingResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderSettingResult := _TraderSettingResult{} - - if err = json.Unmarshal(bytes, &varTraderSettingResult); err == nil { - *o = TraderSettingResult(varTraderSettingResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "labels") - delete(additionalProperties, "openProduct") - delete(additionalProperties, "showAssetsMap") - delete(additionalProperties, "showEquity") - delete(additionalProperties, "supportProductCodes") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderSettingResult struct { - value *TraderSettingResult - isSet bool -} - -func (v NullableTraderSettingResult) Get() *TraderSettingResult { - return v.value -} - -func (v *NullableTraderSettingResult) Set(val *TraderSettingResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderSettingResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderSettingResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderSettingResult(val *TraderSettingResult) *NullableTraderSettingResult { - return &NullableTraderSettingResult{value: val, isSet: true} -} - -func (v NullableTraderSettingResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderSettingResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_setting_support_product_result.go b/bitget-goland-sdk-open-api/model_trader_setting_support_product_result.go deleted file mode 100644 index 0e503feb..00000000 --- a/bitget-goland-sdk-open-api/model_trader_setting_support_product_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderSettingSupportProductResult struct for TraderSettingSupportProductResult -type TraderSettingSupportProductResult struct { - OpenCopyTrace *bool `json:"openCopyTrace,omitempty"` - ProductCode *string `json:"productCode,omitempty"` - ProductName *string `json:"productName,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderSettingSupportProductResult TraderSettingSupportProductResult - -// NewTraderSettingSupportProductResult instantiates a new TraderSettingSupportProductResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderSettingSupportProductResult() *TraderSettingSupportProductResult { - this := TraderSettingSupportProductResult{} - return &this -} - -// NewTraderSettingSupportProductResultWithDefaults instantiates a new TraderSettingSupportProductResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderSettingSupportProductResultWithDefaults() *TraderSettingSupportProductResult { - this := TraderSettingSupportProductResult{} - return &this -} - -// GetOpenCopyTrace returns the OpenCopyTrace field value if set, zero value otherwise. -func (o *TraderSettingSupportProductResult) GetOpenCopyTrace() bool { - if o == nil || isNil(o.OpenCopyTrace) { - var ret bool - return ret - } - return *o.OpenCopyTrace -} - -// GetOpenCopyTraceOk returns a tuple with the OpenCopyTrace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingSupportProductResult) GetOpenCopyTraceOk() (*bool, bool) { - if o == nil || isNil(o.OpenCopyTrace) { - return nil, false - } - return o.OpenCopyTrace, true -} - -// HasOpenCopyTrace returns a boolean if a field has been set. -func (o *TraderSettingSupportProductResult) HasOpenCopyTrace() bool { - if o != nil && !isNil(o.OpenCopyTrace) { - return true - } - - return false -} - -// SetOpenCopyTrace gets a reference to the given bool and assigns it to the OpenCopyTrace field. -func (o *TraderSettingSupportProductResult) SetOpenCopyTrace(v bool) { - o.OpenCopyTrace = &v -} - -// GetProductCode returns the ProductCode field value if set, zero value otherwise. -func (o *TraderSettingSupportProductResult) GetProductCode() string { - if o == nil || isNil(o.ProductCode) { - var ret string - return ret - } - return *o.ProductCode -} - -// GetProductCodeOk returns a tuple with the ProductCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingSupportProductResult) GetProductCodeOk() (*string, bool) { - if o == nil || isNil(o.ProductCode) { - return nil, false - } - return o.ProductCode, true -} - -// HasProductCode returns a boolean if a field has been set. -func (o *TraderSettingSupportProductResult) HasProductCode() bool { - if o != nil && !isNil(o.ProductCode) { - return true - } - - return false -} - -// SetProductCode gets a reference to the given string and assigns it to the ProductCode field. -func (o *TraderSettingSupportProductResult) SetProductCode(v string) { - o.ProductCode = &v -} - -// GetProductName returns the ProductName field value if set, zero value otherwise. -func (o *TraderSettingSupportProductResult) GetProductName() string { - if o == nil || isNil(o.ProductName) { - var ret string - return ret - } - return *o.ProductName -} - -// GetProductNameOk returns a tuple with the ProductName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderSettingSupportProductResult) GetProductNameOk() (*string, bool) { - if o == nil || isNil(o.ProductName) { - return nil, false - } - return o.ProductName, true -} - -// HasProductName returns a boolean if a field has been set. -func (o *TraderSettingSupportProductResult) HasProductName() bool { - if o != nil && !isNil(o.ProductName) { - return true - } - - return false -} - -// SetProductName gets a reference to the given string and assigns it to the ProductName field. -func (o *TraderSettingSupportProductResult) SetProductName(v string) { - o.ProductName = &v -} - -func (o TraderSettingSupportProductResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.OpenCopyTrace) { - toSerialize["openCopyTrace"] = o.OpenCopyTrace - } - if !isNil(o.ProductCode) { - toSerialize["productCode"] = o.ProductCode - } - if !isNil(o.ProductName) { - toSerialize["productName"] = o.ProductName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderSettingSupportProductResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderSettingSupportProductResult := _TraderSettingSupportProductResult{} - - if err = json.Unmarshal(bytes, &varTraderSettingSupportProductResult); err == nil { - *o = TraderSettingSupportProductResult(varTraderSettingSupportProductResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "openCopyTrace") - delete(additionalProperties, "productCode") - delete(additionalProperties, "productName") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderSettingSupportProductResult struct { - value *TraderSettingSupportProductResult - isSet bool -} - -func (v NullableTraderSettingSupportProductResult) Get() *TraderSettingSupportProductResult { - return v.value -} - -func (v *NullableTraderSettingSupportProductResult) Set(val *TraderSettingSupportProductResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderSettingSupportProductResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderSettingSupportProductResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderSettingSupportProductResult(val *TraderSettingSupportProductResult) *NullableTraderSettingSupportProductResult { - return &NullableTraderSettingSupportProductResult{value: val, isSet: true} -} - -func (v NullableTraderSettingSupportProductResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderSettingSupportProductResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_total_profit_list_result.go b/bitget-goland-sdk-open-api/model_trader_total_profit_list_result.go deleted file mode 100644 index 88cffd78..00000000 --- a/bitget-goland-sdk-open-api/model_trader_total_profit_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderTotalProfitListResult struct for TraderTotalProfitListResult -type TraderTotalProfitListResult struct { - ProductCode *string `json:"productCode,omitempty"` - Profit *string `json:"profit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderTotalProfitListResult TraderTotalProfitListResult - -// NewTraderTotalProfitListResult instantiates a new TraderTotalProfitListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderTotalProfitListResult() *TraderTotalProfitListResult { - this := TraderTotalProfitListResult{} - return &this -} - -// NewTraderTotalProfitListResultWithDefaults instantiates a new TraderTotalProfitListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderTotalProfitListResultWithDefaults() *TraderTotalProfitListResult { - this := TraderTotalProfitListResult{} - return &this -} - -// GetProductCode returns the ProductCode field value if set, zero value otherwise. -func (o *TraderTotalProfitListResult) GetProductCode() string { - if o == nil || isNil(o.ProductCode) { - var ret string - return ret - } - return *o.ProductCode -} - -// GetProductCodeOk returns a tuple with the ProductCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitListResult) GetProductCodeOk() (*string, bool) { - if o == nil || isNil(o.ProductCode) { - return nil, false - } - return o.ProductCode, true -} - -// HasProductCode returns a boolean if a field has been set. -func (o *TraderTotalProfitListResult) HasProductCode() bool { - if o != nil && !isNil(o.ProductCode) { - return true - } - - return false -} - -// SetProductCode gets a reference to the given string and assigns it to the ProductCode field. -func (o *TraderTotalProfitListResult) SetProductCode(v string) { - o.ProductCode = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *TraderTotalProfitListResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitListResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *TraderTotalProfitListResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *TraderTotalProfitListResult) SetProfit(v string) { - o.Profit = &v -} - -func (o TraderTotalProfitListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.ProductCode) { - toSerialize["productCode"] = o.ProductCode - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderTotalProfitListResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderTotalProfitListResult := _TraderTotalProfitListResult{} - - if err = json.Unmarshal(bytes, &varTraderTotalProfitListResult); err == nil { - *o = TraderTotalProfitListResult(varTraderTotalProfitListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "productCode") - delete(additionalProperties, "profit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderTotalProfitListResult struct { - value *TraderTotalProfitListResult - isSet bool -} - -func (v NullableTraderTotalProfitListResult) Get() *TraderTotalProfitListResult { - return v.value -} - -func (v *NullableTraderTotalProfitListResult) Set(val *TraderTotalProfitListResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderTotalProfitListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderTotalProfitListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderTotalProfitListResult(val *TraderTotalProfitListResult) *NullableTraderTotalProfitListResult { - return &NullableTraderTotalProfitListResult{value: val, isSet: true} -} - -func (v NullableTraderTotalProfitListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderTotalProfitListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_total_profit_result.go b/bitget-goland-sdk-open-api/model_trader_total_profit_result.go deleted file mode 100644 index d27fecf1..00000000 --- a/bitget-goland-sdk-open-api/model_trader_total_profit_result.go +++ /dev/null @@ -1,249 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderTotalProfitResult struct for TraderTotalProfitResult -type TraderTotalProfitResult struct { - SumProfit *string `json:"sumProfit,omitempty"` - WaitProfit *string `json:"waitProfit,omitempty"` - YesterdaySplitProfit *string `json:"yesterdaySplitProfit,omitempty"` - YesterdayTimeStamp *string `json:"yesterdayTimeStamp,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderTotalProfitResult TraderTotalProfitResult - -// NewTraderTotalProfitResult instantiates a new TraderTotalProfitResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderTotalProfitResult() *TraderTotalProfitResult { - this := TraderTotalProfitResult{} - return &this -} - -// NewTraderTotalProfitResultWithDefaults instantiates a new TraderTotalProfitResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderTotalProfitResultWithDefaults() *TraderTotalProfitResult { - this := TraderTotalProfitResult{} - return &this -} - -// GetSumProfit returns the SumProfit field value if set, zero value otherwise. -func (o *TraderTotalProfitResult) GetSumProfit() string { - if o == nil || isNil(o.SumProfit) { - var ret string - return ret - } - return *o.SumProfit -} - -// GetSumProfitOk returns a tuple with the SumProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitResult) GetSumProfitOk() (*string, bool) { - if o == nil || isNil(o.SumProfit) { - return nil, false - } - return o.SumProfit, true -} - -// HasSumProfit returns a boolean if a field has been set. -func (o *TraderTotalProfitResult) HasSumProfit() bool { - if o != nil && !isNil(o.SumProfit) { - return true - } - - return false -} - -// SetSumProfit gets a reference to the given string and assigns it to the SumProfit field. -func (o *TraderTotalProfitResult) SetSumProfit(v string) { - o.SumProfit = &v -} - -// GetWaitProfit returns the WaitProfit field value if set, zero value otherwise. -func (o *TraderTotalProfitResult) GetWaitProfit() string { - if o == nil || isNil(o.WaitProfit) { - var ret string - return ret - } - return *o.WaitProfit -} - -// GetWaitProfitOk returns a tuple with the WaitProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitResult) GetWaitProfitOk() (*string, bool) { - if o == nil || isNil(o.WaitProfit) { - return nil, false - } - return o.WaitProfit, true -} - -// HasWaitProfit returns a boolean if a field has been set. -func (o *TraderTotalProfitResult) HasWaitProfit() bool { - if o != nil && !isNil(o.WaitProfit) { - return true - } - - return false -} - -// SetWaitProfit gets a reference to the given string and assigns it to the WaitProfit field. -func (o *TraderTotalProfitResult) SetWaitProfit(v string) { - o.WaitProfit = &v -} - -// GetYesterdaySplitProfit returns the YesterdaySplitProfit field value if set, zero value otherwise. -func (o *TraderTotalProfitResult) GetYesterdaySplitProfit() string { - if o == nil || isNil(o.YesterdaySplitProfit) { - var ret string - return ret - } - return *o.YesterdaySplitProfit -} - -// GetYesterdaySplitProfitOk returns a tuple with the YesterdaySplitProfit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitResult) GetYesterdaySplitProfitOk() (*string, bool) { - if o == nil || isNil(o.YesterdaySplitProfit) { - return nil, false - } - return o.YesterdaySplitProfit, true -} - -// HasYesterdaySplitProfit returns a boolean if a field has been set. -func (o *TraderTotalProfitResult) HasYesterdaySplitProfit() bool { - if o != nil && !isNil(o.YesterdaySplitProfit) { - return true - } - - return false -} - -// SetYesterdaySplitProfit gets a reference to the given string and assigns it to the YesterdaySplitProfit field. -func (o *TraderTotalProfitResult) SetYesterdaySplitProfit(v string) { - o.YesterdaySplitProfit = &v -} - -// GetYesterdayTimeStamp returns the YesterdayTimeStamp field value if set, zero value otherwise. -func (o *TraderTotalProfitResult) GetYesterdayTimeStamp() string { - if o == nil || isNil(o.YesterdayTimeStamp) { - var ret string - return ret - } - return *o.YesterdayTimeStamp -} - -// GetYesterdayTimeStampOk returns a tuple with the YesterdayTimeStamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderTotalProfitResult) GetYesterdayTimeStampOk() (*string, bool) { - if o == nil || isNil(o.YesterdayTimeStamp) { - return nil, false - } - return o.YesterdayTimeStamp, true -} - -// HasYesterdayTimeStamp returns a boolean if a field has been set. -func (o *TraderTotalProfitResult) HasYesterdayTimeStamp() bool { - if o != nil && !isNil(o.YesterdayTimeStamp) { - return true - } - - return false -} - -// SetYesterdayTimeStamp gets a reference to the given string and assigns it to the YesterdayTimeStamp field. -func (o *TraderTotalProfitResult) SetYesterdayTimeStamp(v string) { - o.YesterdayTimeStamp = &v -} - -func (o TraderTotalProfitResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.SumProfit) { - toSerialize["sumProfit"] = o.SumProfit - } - if !isNil(o.WaitProfit) { - toSerialize["waitProfit"] = o.WaitProfit - } - if !isNil(o.YesterdaySplitProfit) { - toSerialize["yesterdaySplitProfit"] = o.YesterdaySplitProfit - } - if !isNil(o.YesterdayTimeStamp) { - toSerialize["yesterdayTimeStamp"] = o.YesterdayTimeStamp - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderTotalProfitResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderTotalProfitResult := _TraderTotalProfitResult{} - - if err = json.Unmarshal(bytes, &varTraderTotalProfitResult); err == nil { - *o = TraderTotalProfitResult(varTraderTotalProfitResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "sumProfit") - delete(additionalProperties, "waitProfit") - delete(additionalProperties, "yesterdaySplitProfit") - delete(additionalProperties, "yesterdayTimeStamp") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderTotalProfitResult struct { - value *TraderTotalProfitResult - isSet bool -} - -func (v NullableTraderTotalProfitResult) Get() *TraderTotalProfitResult { - return v.value -} - -func (v *NullableTraderTotalProfitResult) Set(val *TraderTotalProfitResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderTotalProfitResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderTotalProfitResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderTotalProfitResult(val *TraderTotalProfitResult) *NullableTraderTotalProfitResult { - return &NullableTraderTotalProfitResult{value: val, isSet: true} -} - -func (v NullableTraderTotalProfitResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderTotalProfitResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_list_result.go b/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_list_result.go deleted file mode 100644 index 3a92a987..00000000 --- a/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_list_result.go +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderWaitProfitDetailListResult struct for TraderWaitProfitDetailListResult -type TraderWaitProfitDetailListResult struct { - NextFlag *bool `json:"nextFlag,omitempty"` - ResultList []TraderWaitProfitDetailResult `json:"resultList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderWaitProfitDetailListResult TraderWaitProfitDetailListResult - -// NewTraderWaitProfitDetailListResult instantiates a new TraderWaitProfitDetailListResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderWaitProfitDetailListResult() *TraderWaitProfitDetailListResult { - this := TraderWaitProfitDetailListResult{} - return &this -} - -// NewTraderWaitProfitDetailListResultWithDefaults instantiates a new TraderWaitProfitDetailListResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderWaitProfitDetailListResultWithDefaults() *TraderWaitProfitDetailListResult { - this := TraderWaitProfitDetailListResult{} - return &this -} - -// GetNextFlag returns the NextFlag field value if set, zero value otherwise. -func (o *TraderWaitProfitDetailListResult) GetNextFlag() bool { - if o == nil || isNil(o.NextFlag) { - var ret bool - return ret - } - return *o.NextFlag -} - -// GetNextFlagOk returns a tuple with the NextFlag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderWaitProfitDetailListResult) GetNextFlagOk() (*bool, bool) { - if o == nil || isNil(o.NextFlag) { - return nil, false - } - return o.NextFlag, true -} - -// HasNextFlag returns a boolean if a field has been set. -func (o *TraderWaitProfitDetailListResult) HasNextFlag() bool { - if o != nil && !isNil(o.NextFlag) { - return true - } - - return false -} - -// SetNextFlag gets a reference to the given bool and assigns it to the NextFlag field. -func (o *TraderWaitProfitDetailListResult) SetNextFlag(v bool) { - o.NextFlag = &v -} - -// GetResultList returns the ResultList field value if set, zero value otherwise. -func (o *TraderWaitProfitDetailListResult) GetResultList() []TraderWaitProfitDetailResult { - if o == nil || isNil(o.ResultList) { - var ret []TraderWaitProfitDetailResult - return ret - } - return o.ResultList -} - -// GetResultListOk returns a tuple with the ResultList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderWaitProfitDetailListResult) GetResultListOk() ([]TraderWaitProfitDetailResult, bool) { - if o == nil || isNil(o.ResultList) { - return nil, false - } - return o.ResultList, true -} - -// HasResultList returns a boolean if a field has been set. -func (o *TraderWaitProfitDetailListResult) HasResultList() bool { - if o != nil && !isNil(o.ResultList) { - return true - } - - return false -} - -// SetResultList gets a reference to the given []TraderWaitProfitDetailResult and assigns it to the ResultList field. -func (o *TraderWaitProfitDetailListResult) SetResultList(v []TraderWaitProfitDetailResult) { - o.ResultList = v -} - -func (o TraderWaitProfitDetailListResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.NextFlag) { - toSerialize["nextFlag"] = o.NextFlag - } - if !isNil(o.ResultList) { - toSerialize["resultList"] = o.ResultList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderWaitProfitDetailListResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderWaitProfitDetailListResult := _TraderWaitProfitDetailListResult{} - - if err = json.Unmarshal(bytes, &varTraderWaitProfitDetailListResult); err == nil { - *o = TraderWaitProfitDetailListResult(varTraderWaitProfitDetailListResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "nextFlag") - delete(additionalProperties, "resultList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderWaitProfitDetailListResult struct { - value *TraderWaitProfitDetailListResult - isSet bool -} - -func (v NullableTraderWaitProfitDetailListResult) Get() *TraderWaitProfitDetailListResult { - return v.value -} - -func (v *NullableTraderWaitProfitDetailListResult) Set(val *TraderWaitProfitDetailListResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderWaitProfitDetailListResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderWaitProfitDetailListResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderWaitProfitDetailListResult(val *TraderWaitProfitDetailListResult) *NullableTraderWaitProfitDetailListResult { - return &NullableTraderWaitProfitDetailListResult{value: val, isSet: true} -} - -func (v NullableTraderWaitProfitDetailListResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderWaitProfitDetailListResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_result.go b/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_result.go deleted file mode 100644 index 2df50950..00000000 --- a/bitget-goland-sdk-open-api/model_trader_wait_profit_detail_result.go +++ /dev/null @@ -1,212 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// TraderWaitProfitDetailResult struct for TraderWaitProfitDetailResult -type TraderWaitProfitDetailResult struct { - CoinName *string `json:"coinName,omitempty"` - DistributeRatio *string `json:"distributeRatio,omitempty"` - Profit *string `json:"profit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _TraderWaitProfitDetailResult TraderWaitProfitDetailResult - -// NewTraderWaitProfitDetailResult instantiates a new TraderWaitProfitDetailResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTraderWaitProfitDetailResult() *TraderWaitProfitDetailResult { - this := TraderWaitProfitDetailResult{} - return &this -} - -// NewTraderWaitProfitDetailResultWithDefaults instantiates a new TraderWaitProfitDetailResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTraderWaitProfitDetailResultWithDefaults() *TraderWaitProfitDetailResult { - this := TraderWaitProfitDetailResult{} - return &this -} - -// GetCoinName returns the CoinName field value if set, zero value otherwise. -func (o *TraderWaitProfitDetailResult) GetCoinName() string { - if o == nil || isNil(o.CoinName) { - var ret string - return ret - } - return *o.CoinName -} - -// GetCoinNameOk returns a tuple with the CoinName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderWaitProfitDetailResult) GetCoinNameOk() (*string, bool) { - if o == nil || isNil(o.CoinName) { - return nil, false - } - return o.CoinName, true -} - -// HasCoinName returns a boolean if a field has been set. -func (o *TraderWaitProfitDetailResult) HasCoinName() bool { - if o != nil && !isNil(o.CoinName) { - return true - } - - return false -} - -// SetCoinName gets a reference to the given string and assigns it to the CoinName field. -func (o *TraderWaitProfitDetailResult) SetCoinName(v string) { - o.CoinName = &v -} - -// GetDistributeRatio returns the DistributeRatio field value if set, zero value otherwise. -func (o *TraderWaitProfitDetailResult) GetDistributeRatio() string { - if o == nil || isNil(o.DistributeRatio) { - var ret string - return ret - } - return *o.DistributeRatio -} - -// GetDistributeRatioOk returns a tuple with the DistributeRatio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderWaitProfitDetailResult) GetDistributeRatioOk() (*string, bool) { - if o == nil || isNil(o.DistributeRatio) { - return nil, false - } - return o.DistributeRatio, true -} - -// HasDistributeRatio returns a boolean if a field has been set. -func (o *TraderWaitProfitDetailResult) HasDistributeRatio() bool { - if o != nil && !isNil(o.DistributeRatio) { - return true - } - - return false -} - -// SetDistributeRatio gets a reference to the given string and assigns it to the DistributeRatio field. -func (o *TraderWaitProfitDetailResult) SetDistributeRatio(v string) { - o.DistributeRatio = &v -} - -// GetProfit returns the Profit field value if set, zero value otherwise. -func (o *TraderWaitProfitDetailResult) GetProfit() string { - if o == nil || isNil(o.Profit) { - var ret string - return ret - } - return *o.Profit -} - -// GetProfitOk returns a tuple with the Profit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TraderWaitProfitDetailResult) GetProfitOk() (*string, bool) { - if o == nil || isNil(o.Profit) { - return nil, false - } - return o.Profit, true -} - -// HasProfit returns a boolean if a field has been set. -func (o *TraderWaitProfitDetailResult) HasProfit() bool { - if o != nil && !isNil(o.Profit) { - return true - } - - return false -} - -// SetProfit gets a reference to the given string and assigns it to the Profit field. -func (o *TraderWaitProfitDetailResult) SetProfit(v string) { - o.Profit = &v -} - -func (o TraderWaitProfitDetailResult) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.CoinName) { - toSerialize["coinName"] = o.CoinName - } - if !isNil(o.DistributeRatio) { - toSerialize["distributeRatio"] = o.DistributeRatio - } - if !isNil(o.Profit) { - toSerialize["profit"] = o.Profit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *TraderWaitProfitDetailResult) UnmarshalJSON(bytes []byte) (err error) { - varTraderWaitProfitDetailResult := _TraderWaitProfitDetailResult{} - - if err = json.Unmarshal(bytes, &varTraderWaitProfitDetailResult); err == nil { - *o = TraderWaitProfitDetailResult(varTraderWaitProfitDetailResult) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "coinName") - delete(additionalProperties, "distributeRatio") - delete(additionalProperties, "profit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableTraderWaitProfitDetailResult struct { - value *TraderWaitProfitDetailResult - isSet bool -} - -func (v NullableTraderWaitProfitDetailResult) Get() *TraderWaitProfitDetailResult { - return v.value -} - -func (v *NullableTraderWaitProfitDetailResult) Set(val *TraderWaitProfitDetailResult) { - v.value = val - v.isSet = true -} - -func (v NullableTraderWaitProfitDetailResult) IsSet() bool { - return v.isSet -} - -func (v *NullableTraderWaitProfitDetailResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTraderWaitProfitDetailResult(val *TraderWaitProfitDetailResult) *NullableTraderWaitProfitDetailResult { - return &NullableTraderWaitProfitDetailResult{value: val, isSet: true} -} - -func (v NullableTraderWaitProfitDetailResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTraderWaitProfitDetailResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_update_tpsl_request.go b/bitget-goland-sdk-open-api/model_update_tpsl_request.go deleted file mode 100644 index 0659e9fa..00000000 --- a/bitget-goland-sdk-open-api/model_update_tpsl_request.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// UpdateTpslRequest struct for UpdateTpslRequest -type UpdateTpslRequest struct { - // stopLossPrice - StopLossPrice string `json:"stopLossPrice"` - // stopProfitPrice - StopProfitPrice string `json:"stopProfitPrice"` - // trackingNo - TrackingNo string `json:"trackingNo"` - AdditionalProperties map[string]interface{} -} - -type _UpdateTpslRequest UpdateTpslRequest - -// NewUpdateTpslRequest instantiates a new UpdateTpslRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewUpdateTpslRequest(stopLossPrice string, stopProfitPrice string, trackingNo string) *UpdateTpslRequest { - this := UpdateTpslRequest{} - this.StopLossPrice = stopLossPrice - this.StopProfitPrice = stopProfitPrice - this.TrackingNo = trackingNo - return &this -} - -// NewUpdateTpslRequestWithDefaults instantiates a new UpdateTpslRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewUpdateTpslRequestWithDefaults() *UpdateTpslRequest { - this := UpdateTpslRequest{} - return &this -} - -// GetStopLossPrice returns the StopLossPrice field value -func (o *UpdateTpslRequest) GetStopLossPrice() string { - if o == nil { - var ret string - return ret - } - - return o.StopLossPrice -} - -// GetStopLossPriceOk returns a tuple with the StopLossPrice field value -// and a boolean to check if the value has been set. -func (o *UpdateTpslRequest) GetStopLossPriceOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StopLossPrice, true -} - -// SetStopLossPrice sets field value -func (o *UpdateTpslRequest) SetStopLossPrice(v string) { - o.StopLossPrice = v -} - -// GetStopProfitPrice returns the StopProfitPrice field value -func (o *UpdateTpslRequest) GetStopProfitPrice() string { - if o == nil { - var ret string - return ret - } - - return o.StopProfitPrice -} - -// GetStopProfitPriceOk returns a tuple with the StopProfitPrice field value -// and a boolean to check if the value has been set. -func (o *UpdateTpslRequest) GetStopProfitPriceOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StopProfitPrice, true -} - -// SetStopProfitPrice sets field value -func (o *UpdateTpslRequest) SetStopProfitPrice(v string) { - o.StopProfitPrice = v -} - -// GetTrackingNo returns the TrackingNo field value -func (o *UpdateTpslRequest) GetTrackingNo() string { - if o == nil { - var ret string - return ret - } - - return o.TrackingNo -} - -// GetTrackingNoOk returns a tuple with the TrackingNo field value -// and a boolean to check if the value has been set. -func (o *UpdateTpslRequest) GetTrackingNoOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TrackingNo, true -} - -// SetTrackingNo sets field value -func (o *UpdateTpslRequest) SetTrackingNo(v string) { - o.TrackingNo = v -} - -func (o UpdateTpslRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["stopLossPrice"] = o.StopLossPrice - } - if true { - toSerialize["stopProfitPrice"] = o.StopProfitPrice - } - if true { - toSerialize["trackingNo"] = o.TrackingNo - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *UpdateTpslRequest) UnmarshalJSON(bytes []byte) (err error) { - varUpdateTpslRequest := _UpdateTpslRequest{} - - if err = json.Unmarshal(bytes, &varUpdateTpslRequest); err == nil { - *o = UpdateTpslRequest(varUpdateTpslRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "stopLossPrice") - delete(additionalProperties, "stopProfitPrice") - delete(additionalProperties, "trackingNo") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableUpdateTpslRequest struct { - value *UpdateTpslRequest - isSet bool -} - -func (v NullableUpdateTpslRequest) Get() *UpdateTpslRequest { - return v.value -} - -func (v *NullableUpdateTpslRequest) Set(val *UpdateTpslRequest) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateTpslRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateTpslRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateTpslRequest(val *UpdateTpslRequest) *NullableUpdateTpslRequest { - return &NullableUpdateTpslRequest{value: val, isSet: true} -} - -func (v NullableUpdateTpslRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateTpslRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/model_wait_profit_detail_list_request.go b/bitget-goland-sdk-open-api/model_wait_profit_detail_list_request.go deleted file mode 100644 index dd764632..00000000 --- a/bitget-goland-sdk-open-api/model_wait_profit_detail_list_request.go +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// WaitProfitDetailListRequest struct for WaitProfitDetailListRequest -type WaitProfitDetailListRequest struct { - // pageNo - PageNo *string `json:"pageNo,omitempty"` - // pageSize - PageSize *string `json:"pageSize,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _WaitProfitDetailListRequest WaitProfitDetailListRequest - -// NewWaitProfitDetailListRequest instantiates a new WaitProfitDetailListRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWaitProfitDetailListRequest() *WaitProfitDetailListRequest { - this := WaitProfitDetailListRequest{} - return &this -} - -// NewWaitProfitDetailListRequestWithDefaults instantiates a new WaitProfitDetailListRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWaitProfitDetailListRequestWithDefaults() *WaitProfitDetailListRequest { - this := WaitProfitDetailListRequest{} - return &this -} - -// GetPageNo returns the PageNo field value if set, zero value otherwise. -func (o *WaitProfitDetailListRequest) GetPageNo() string { - if o == nil || isNil(o.PageNo) { - var ret string - return ret - } - return *o.PageNo -} - -// GetPageNoOk returns a tuple with the PageNo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WaitProfitDetailListRequest) GetPageNoOk() (*string, bool) { - if o == nil || isNil(o.PageNo) { - return nil, false - } - return o.PageNo, true -} - -// HasPageNo returns a boolean if a field has been set. -func (o *WaitProfitDetailListRequest) HasPageNo() bool { - if o != nil && !isNil(o.PageNo) { - return true - } - - return false -} - -// SetPageNo gets a reference to the given string and assigns it to the PageNo field. -func (o *WaitProfitDetailListRequest) SetPageNo(v string) { - o.PageNo = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *WaitProfitDetailListRequest) GetPageSize() string { - if o == nil || isNil(o.PageSize) { - var ret string - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WaitProfitDetailListRequest) GetPageSizeOk() (*string, bool) { - if o == nil || isNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *WaitProfitDetailListRequest) HasPageSize() bool { - if o != nil && !isNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given string and assigns it to the PageSize field. -func (o *WaitProfitDetailListRequest) SetPageSize(v string) { - o.PageSize = &v -} - -func (o WaitProfitDetailListRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.PageNo) { - toSerialize["pageNo"] = o.PageNo - } - if !isNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *WaitProfitDetailListRequest) UnmarshalJSON(bytes []byte) (err error) { - varWaitProfitDetailListRequest := _WaitProfitDetailListRequest{} - - if err = json.Unmarshal(bytes, &varWaitProfitDetailListRequest); err == nil { - *o = WaitProfitDetailListRequest(varWaitProfitDetailListRequest) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "pageNo") - delete(additionalProperties, "pageSize") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableWaitProfitDetailListRequest struct { - value *WaitProfitDetailListRequest - isSet bool -} - -func (v NullableWaitProfitDetailListRequest) Get() *WaitProfitDetailListRequest { - return v.value -} - -func (v *NullableWaitProfitDetailListRequest) Set(val *WaitProfitDetailListRequest) { - v.value = val - v.isSet = true -} - -func (v NullableWaitProfitDetailListRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableWaitProfitDetailListRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWaitProfitDetailListRequest(val *WaitProfitDetailListRequest) *NullableWaitProfitDetailListRequest { - return &NullableWaitProfitDetailListRequest{value: val, isSet: true} -} - -func (v NullableWaitProfitDetailListRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWaitProfitDetailListRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/bitget-goland-sdk-open-api/response.go b/bitget-goland-sdk-open-api/response.go deleted file mode 100644 index 328753f6..00000000 --- a/bitget-goland-sdk-open-api/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/bitget-goland-sdk-open-api/sign_utils.go b/bitget-goland-sdk-open-api/sign_utils.go deleted file mode 100644 index 9cb58ee0..00000000 --- a/bitget-goland-sdk-open-api/sign_utils.go +++ /dev/null @@ -1,35 +0,0 @@ -package openapi - -import ( - "crypto/hmac" - "crypto/sha256" - "encoding/base64" - "strconv" - "strings" - "time" -) - -func Sign(method string, path string, query string, body string, timesStamp string, secretKey string) string { - - var payload strings.Builder - payload.WriteString(timesStamp) - payload.WriteString(method) - if query != "" { - payload.WriteString(path) - payload.WriteString("?") - payload.WriteString(query) - } else { - payload.WriteString(path) - } - payload.WriteString(body) - - hash := hmac.New(sha256.New, []byte(secretKey)) - hash.Write([]byte(payload.String())) - result := base64.StdEncoding.EncodeToString(hash.Sum(nil)) - return result -} - -func GetTimesStamp() string { - timesStamp := time.Now().Unix() * 1000 - return strconv.FormatInt(timesStamp, 10) -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_account_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_account_test.go deleted file mode 100644 index 0e55c9ad..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_account_test.go +++ /dev/null @@ -1,170 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossAccountApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossAccountApiService(t *testing.T) { - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountAssets", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountAssets(context.Background()).Coin("USDT").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAvailable()) - assert.NotEmpty(t, item.GetBorrow()) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetInterest()) - assert.NotEmpty(t, item.GetTotalAmount()) - } - - }) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountBorrow", func(t *testing.T) { - - param := *openapiclient.NewMarginCrossLimitRequestWithDefaults() // NewMarginCrossLimitRequestWithDefaults | param - param.SetCoin("USDT") - param.SetBorrowAmount("1") - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountBorrow(context.Background()).MarginCrossLimitRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetBorrowAmount()) - assert.NotNil(t, data.Coin) - - }) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountMaxBorrowableAmount", func(t *testing.T) { - - param := *openapiclient.NewMarginCrossMaxBorrowRequestWithDefaults() // NewMarginCrossMaxBorrowRequestWithDefaults | param - param.SetCoin("USDT") - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountMaxBorrowableAmount(context.Background()).MarginCrossMaxBorrowRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetMaxBorrowableAmount()) - assert.NotNil(t, data.Coin) - - }) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountMaxTransferOutAmount", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountMaxTransferOutAmount(context.Background()).Coin("USDT").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetMaxTransferOutAmount()) - assert.NotNil(t, data.Coin) - - }) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountRepay", func(t *testing.T) { - - param := *openapiclient.NewMarginCrossRepayRequestWithDefaults() // NewMarginCrossRepayRequestWithDefaults | param - param.SetCoin("USDT") - param.SetRepayAmount("1") - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountRepay(context.Background()).MarginCrossRepayRequest(param).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetRepayAmount()) - assert.NotNil(t, data.Coin) - - }) - - t.Run("Test MarginCrossAccountApiService MarginCrossAccountRiskRate", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossAccountApi.MarginCrossAccountRiskRate(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetRiskRate()) - - }) - - t.Run("Test MarginCrossAccountApiService Void", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.MarginCrossAccountApi.Void(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_borrow_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_borrow_test.go deleted file mode 100644 index de0c69d4..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_borrow_test.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossBorrowApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossBorrowApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossBorrowApiService CrossLoanList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossBorrowApi.CrossLoanList(context.Background()).StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - } - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_finflow_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_finflow_test.go deleted file mode 100644 index ba7eb06e..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_finflow_test.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossFinflowApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossFinflowApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossFinflowApiService CrossFinList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossFinflowApi.CrossFinList(context.Background()).StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetBalance()) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetMarginType()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_interest_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_interest_test.go deleted file mode 100644 index 3fafe593..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_interest_test.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossInterestApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossInterestApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossInterestApiService CrossInterestList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossInterestApi.CrossInterestList(context.Background()).StartTime("1677274167003").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetLoanCoin()) - assert.NotEmpty(t, item.GetInterestCoin()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_liquidation_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_liquidation_test.go deleted file mode 100644 index 8633187b..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_liquidation_test.go +++ /dev/null @@ -1,55 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossLiquidationApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossLiquidationApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossLiquidationApiService CrossLiquidationList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossLiquidationApi.CrossLiquidationList(context.Background()).StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetLiqFee()) - assert.NotEmpty(t, item.GetLiqEndTime()) - assert.NotEmpty(t, item.GetLiqStartTime()) - assert.NotEmpty(t, item.GetLiqRisk()) - assert.NotEmpty(t, item.GetTotalAssets()) - assert.NotEmpty(t, item.GetTotalDebt()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_order_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_order_test.go deleted file mode 100644 index cb8baef3..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_order_test.go +++ /dev/null @@ -1,262 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossOrderApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossOrderApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossOrderApiService MarginCrossBatchCancelOrder", func(t *testing.T) { - - param := *openapiclient.NewMarginOrderRequestWithDefaults() // MarginOrderRequest | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("limit") - param.SetPrice("17000") - param.SetBaseQuantity("0.01") - param.SetTimeInForce("gtc") - param.SetQuoteAmount("10") - param.SetLoanType("normal") - orderResp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - request := *openapiclient.NewMarginBatchCancelOrderRequestWithDefaults() // MarginOrderRequest | param - itemArray := []string{*orderResp.GetData().OrderId} - request.SetOrderIds(itemArray) - request.SetSymbol("BTCUSDT") - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossBatchCancelOrder(context.Background()).MarginBatchCancelOrderRequest(request).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData().ResultList { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossBatchPlaceOrder", func(t *testing.T) { - - item := *openapiclient.NewMarginOrderRequestWithDefaults() // MarginOrderRequest | param - item.SetSymbol("BTCUSDT") - item.SetSide("buy") - item.SetPrice("14000") - item.SetOrderType("limit") - item.SetTimeInForce("gtc") - item.SetBaseQuantity("0.01") - item.SetLoanType("normal") - var itemArray = []openapiclient.MarginOrderRequest{item} - - param := *openapiclient.NewMarginBatchOrdersRequestWithDefaults() // MarginOrderRequest | param - param.SetSymbol("BTCUSDT") - param.SetOrderList(itemArray) - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossBatchPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossCancelOrder", func(t *testing.T) { - - param := *openapiclient.NewMarginOrderRequestWithDefaults() // NewMarginCrossLimitRequestWithDefaults | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("limit") - param.SetPrice("14000") - param.SetTimeInForce("gtc") - param.SetBaseQuantity("0.01") - param.SetLoanType("normal") - orderResp, httpRes, _ := apiClient.MarginCrossOrderApi.MarginCrossPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - bs1, _ := json.Marshal(orderResp) - var out1 bytes.Buffer - json.Indent(&out1, bs1, "", "\t") - fmt.Printf("result=%v\n", out1.String()) - - cancelOrderParam := *openapiclient.NewMarginCancelOrderRequestWithDefaults() - cancelOrderParam.SetSymbol("BTCUSDT") - cancelOrderParam.SetOrderId(*orderResp.GetData().OrderId) - resp, httpRes, _ := apiClient.MarginCrossOrderApi.MarginCrossCancelOrder(context.Background()).MarginCancelOrderRequest(cancelOrderParam).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossFills", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossFills(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetFills() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetFillQuantity()) - } - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossHistoryOrders", func(t *testing.T) { - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossHistoryOrders(context.Background()).Symbol("BTCUSDT").StartTime("1679133422000").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("student=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData().OrderList) - - for i, item := range resp.GetData().OrderList { - fmt.Printf("%d %v\n", i, item) - assert.Equal(t, "BTCUSDT", item.GetSymbol()) - assert.NotEmpty(t, item.GetOrderId()) - assert.NotEmpty(t, item.GetStatus()) - assert.NotEmpty(t, item.GetSource()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetLoanType()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetBaseQuantity()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetQuoteAmount()) - assert.NotEmpty(t, item.GetPrice()) - } - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossOpenOrders", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossOpenOrders(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetOrderList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetLoanType()) - assert.NotEmpty(t, item.GetPrice()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetSource()) - assert.NotEmpty(t, item.GetStatus()) - } - }) - - t.Run("Test MarginCrossOrderApiService MarginCrossPlaceOrder", func(t *testing.T) { - param := *openapiclient.NewMarginOrderRequestWithDefaults() // MarginOrderRequest | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("market") - param.SetTimeInForce("gtc") - param.SetQuoteAmount("10") - param.SetLoanType("normal") - resp, httpRes, err := apiClient.MarginCrossOrderApi.MarginCrossPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("student=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - assert.NotNil(t, data.OrderId) - assert.NotNil(t, data.ClientOid) - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_public_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_public_test.go deleted file mode 100644 index 13464844..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_public_test.go +++ /dev/null @@ -1,94 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossPublicApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossPublicApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossPublicApiService MarginCrossPublicInterestRateAndLimit", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossPublicApi.MarginCrossPublicInterestRateAndLimit(context.Background()).Coin("USDT").Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetLeverage()) - assert.NotEmpty(t, item.GetTransferInAble()) - assert.NotEmpty(t, item.GetBorrowAble()) - assert.NotEmpty(t, item.GetDailyInterestRate()) - assert.NotEmpty(t, item.GetYearlyInterestRate()) - assert.NotEmpty(t, item.GetMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetVips()) - for i, item := range item.GetVips() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetLevel()) - assert.NotEmpty(t, item.GetDailyInterestRate()) - assert.NotEmpty(t, item.GetYearlyInterestRate()) - assert.NotEmpty(t, item.GetDiscountRate()) - } - } - - }) - - t.Run("Test MarginCrossPublicApiService MarginCrossPublicTierData", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossPublicApi.MarginCrossPublicTierData(context.Background()).Coin("USDT").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetTier()) - assert.NotEmpty(t, item.GetLeverage()) - assert.NotEmpty(t, item.GetMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetMaintainMarginRate()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_cross_repay_test.go b/bitget-goland-sdk-open-api/test/api_margin_cross_repay_test.go deleted file mode 100644 index 59c262c9..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_cross_repay_test.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Bitget Open API - -Testing MarginCrossRepayApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginCrossRepayApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginCrossRepayApiService CrossRepayList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginCrossRepayApi.CrossRepayList(context.Background()).StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetInterest()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetTotalAmount()) - } - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_account_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_account_test.go deleted file mode 100644 index ddbcb702..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_account_test.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedAccountApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedAccountApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountAssets", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountAssets(context.Background()).Symbol("BTCUSDT").Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAvailable()) - assert.NotEmpty(t, item.GetBorrow()) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetInterest()) - assert.NotEmpty(t, item.GetTotalAmount()) - } - - }) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountBorrow", func(t *testing.T) { - - param := *openapiclient.NewMarginIsolatedLimitRequestWithDefaults() - param.SetCoin("USDT") - param.SetBorrowAmount("1") - param.SetSymbol("BTCUSDT") - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountBorrow(context.Background()).MarginIsolatedLimitRequest(param).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetBorrowAmount()) - assert.NotNil(t, data.Coin) - assert.NotNil(t, data.Symbol) - - }) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountMaxBorrowableAmount", func(t *testing.T) { - - param := *openapiclient.NewMarginIsolatedMaxBorrowRequestWithDefaults() - param.SetCoin("USDT") - param.SetSymbol("BTCUSDT") - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountMaxBorrowableAmount(context.Background()).MarginIsolatedMaxBorrowRequest(param).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetMaxBorrowableAmount()) - assert.NotNil(t, data.Coin) - assert.NotNil(t, data.Symbol) - - }) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountMaxTransferOutAmount", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountMaxTransferOutAmount(context.Background()).Symbol("BTCUSDT").Coin("USDT").Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.MaxTransferOutAmount) - assert.NotNil(t, data.Coin) - assert.NotNil(t, data.Symbol) - - }) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountRepay", func(t *testing.T) { - - param := *openapiclient.NewMarginIsolatedRepayRequestWithDefaults() - param.SetCoin("USDT") - param.SetSymbol("BTCUSDT") - param.SetRepayAmount("1") - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountRepay(context.Background()).MarginIsolatedRepayRequest(param).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.RepayAmount) - assert.NotNil(t, data.Coin) - assert.NotNil(t, data.Symbol) - - }) - - t.Run("Test MarginIsolatedAccountApiService MarginIsolatedAccountRiskRate", func(t *testing.T) { - - param := *openapiclient.NewMarginIsolatedAssetsRiskRequestWithDefaults() - param.SetSymbol("BTCUSDT") - - resp, httpRes, err := apiClient.MarginIsolatedAccountApi.MarginIsolatedAccountRiskRate(context.Background()).MarginIsolatedAssetsRiskRequest(param).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.Symbol) - assert.NotEmpty(t, item.RiskRate) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_borrow_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_borrow_test.go deleted file mode 100644 index 43fbb1a0..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_borrow_test.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedBorrowApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedBorrowApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedBorrowApiService IsolatedLoanList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedBorrowApi.IsolatedLoanList(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_finflow_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_finflow_test.go deleted file mode 100644 index a391ae13..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_finflow_test.go +++ /dev/null @@ -1,54 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedFinflowApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedFinflowApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedFinflowApiService IsolatedFinList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedFinflowApi.IsolatedFinList(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetBalance()) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetMarginType()) - assert.NotEmpty(t, item.GetSymbol()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_interest_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_interest_test.go deleted file mode 100644 index 0595d7c7..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_interest_test.go +++ /dev/null @@ -1,54 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedInterestApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedInterestApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedInterestApiService IsolatedInterestList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedInterestApi.IsolatedInterestList(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetLoanCoin()) - assert.NotEmpty(t, item.GetInterestCoin()) - assert.NotEmpty(t, item.GetSymbol()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_liquidation_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_liquidation_test.go deleted file mode 100644 index 00368b11..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_liquidation_test.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedLiquidationApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedLiquidationApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedLiquidationApiService IsolatedLiquidationList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedLiquidationApi.IsolatedLiquidationList(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetLiqFee()) - assert.NotEmpty(t, item.GetLiqEndTime()) - assert.NotEmpty(t, item.GetLiqStartTime()) - assert.NotEmpty(t, item.GetLiqRisk()) - assert.NotEmpty(t, item.GetTotalAssets()) - assert.NotEmpty(t, item.GetTotalDebt()) - assert.NotEmpty(t, item.GetSymbol()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_order_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_order_test.go deleted file mode 100644 index 7075255c..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_order_test.go +++ /dev/null @@ -1,257 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedOrderApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedOrderApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedBatchCancelOrder", func(t *testing.T) { - - param := *openapiclient.NewMarginOrderRequestWithDefaults() // MarginOrderRequest | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("limit") - param.SetPrice("17000") - param.SetBaseQuantity("0.01") - param.SetTimeInForce("gtc") - param.SetQuoteAmount("10") - param.SetLoanType("normal") - orderResp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - item := *openapiclient.NewMarginBatchCancelOrderRequestWithDefaults() // MarginOrderRequest | param - itemArray := []string{*orderResp.GetData().OrderId} - item.SetOrderIds(itemArray) - item.SetSymbol("BTCUSDT") - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedBatchCancelOrder(context.Background()).MarginBatchCancelOrderRequest(item).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData().ResultList { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedBatchPlaceOrder", func(t *testing.T) { - - item := *openapiclient.NewMarginOrderRequestWithDefaults() // MarginOrderRequest | param - item.SetSymbol("BTCUSDT") - item.SetSide("buy") - item.SetPrice("14000") - item.SetOrderType("limit") - item.SetTimeInForce("gtc") - item.SetBaseQuantity("0.01") - item.SetLoanType("normal") - var itemArray = []openapiclient.MarginOrderRequest{item} - - param := *openapiclient.NewMarginBatchOrdersRequestWithDefaults() // MarginOrderRequest | param - param.SetSymbol("BTCUSDT") - param.SetOrderList(itemArray) - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedBatchPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedCancelOrder", func(t *testing.T) { - - param := *openapiclient.NewMarginOrderRequestWithDefaults() // NewMarginCrossLimitRequestWithDefaults | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("limit") - param.SetPrice("14000") - param.SetTimeInForce("gtc") - param.SetBaseQuantity("0.01") - param.SetLoanType("normal") - orderResp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - orderData := orderResp.GetData() - - cancelOrderParam := *openapiclient.NewMarginCancelOrderRequestWithDefaults() - cancelOrderParam.SetSymbol("BTCUSDT") - cancelOrderParam.SetOrderId(orderData.GetOrderId()) - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedCancelOrder(context.Background()).MarginCancelOrderRequest(cancelOrderParam).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - - } - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedFills", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedFills(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetFills() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetOrderId()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetFillQuantity()) - } - - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedHistoryOrders", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedHistoryOrders(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetOrderList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetLoanType()) - assert.NotEmpty(t, item.GetPrice()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetSource()) - assert.NotEmpty(t, item.GetStatus()) - } - - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedOpenOrders", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedOpenOrders(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetOrderList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetOrderType()) - assert.NotEmpty(t, item.GetLoanType()) - assert.NotEmpty(t, item.GetPrice()) - assert.NotEmpty(t, item.GetFillPrice()) - assert.NotEmpty(t, item.GetFillTotalAmount()) - assert.NotEmpty(t, item.GetSide()) - assert.NotEmpty(t, item.GetSource()) - assert.NotEmpty(t, item.GetStatus()) - } - - }) - - t.Run("Test MarginIsolatedOrderApiService MarginIsolatedPlaceOrder", func(t *testing.T) { - - param := *openapiclient.NewMarginOrderRequestWithDefaults() // NewMarginCrossLimitRequestWithDefaults | param - param.SetSymbol("BTCUSDT") - param.SetSide("buy") - param.SetOrderType("limit") - param.SetPrice("14000") - param.SetTimeInForce("gtc") - param.SetBaseQuantity("0.01") - param.SetLoanType("normal") - resp, httpRes, err := apiClient.MarginIsolatedOrderApi.MarginIsolatedPlaceOrder(context.Background()).MarginOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - data := resp.GetData() - assert.NotNil(t, data.GetOrderId()) - assert.NotNil(t, data.GetClientOid()) - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_public_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_public_test.go deleted file mode 100644 index eb653b3b..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_public_test.go +++ /dev/null @@ -1,111 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedPublicApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedPublicApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedPublicApiService MarginIsolatedPublicInterestRateAndLimit", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedPublicApi.MarginIsolatedPublicInterestRateAndLimit(context.Background()).Symbol("BTCUSDT").Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetLeverage()) - assert.NotEmpty(t, item.GetBaseCoin()) - assert.NotEmpty(t, item.GetBaseTransferInAble()) - assert.NotEmpty(t, item.GetBaseBorrowAble()) - assert.NotEmpty(t, item.GetBaseDailyInterestRate()) - assert.NotEmpty(t, item.GetBaseYearlyInterestRate()) - assert.NotEmpty(t, item.GetBaseMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetBaseVips()) - for i, item := range item.GetBaseVips() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetLevel()) - assert.NotEmpty(t, item.GetDailyInterestRate()) - assert.NotEmpty(t, item.GetYearlyInterestRate()) - assert.NotEmpty(t, item.GetDiscountRate()) - } - assert.NotEmpty(t, item.GetQuoteCoin()) - assert.NotEmpty(t, item.GetQuoteBorrowAble()) - assert.NotEmpty(t, item.GetQuoteDailyInterestRate()) - assert.NotEmpty(t, item.GetQuoteMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetQuoteTransferInAble()) - assert.NotEmpty(t, item.GetQuoteYearlyInterestRate()) - assert.NotEmpty(t, item.GetQuoteVips()) - for i, item := range item.GetQuoteVips() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetLevel()) - assert.NotEmpty(t, item.GetDailyInterestRate()) - assert.NotEmpty(t, item.GetYearlyInterestRate()) - assert.NotEmpty(t, item.GetDiscountRate()) - } - } - }) - - t.Run("Test MarginIsolatedPublicApiService MarginIsolatedPublicTierData", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedPublicApi.MarginIsolatedPublicTierData(context.Background()).Symbol("BTCUSDT").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData()) - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetTier()) - assert.NotEmpty(t, item.GetLeverage()) - assert.NotEmpty(t, item.GetBaseCoin()) - assert.NotEmpty(t, item.GetQuoteCoin()) - assert.NotEmpty(t, item.GetBaseMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetQuoteMaxBorrowableAmount()) - assert.NotEmpty(t, item.GetMaintainMarginRate()) - assert.NotEmpty(t, item.GetInitRate()) - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_isolated_repay_test.go b/bitget-goland-sdk-open-api/test/api_margin_isolated_repay_test.go deleted file mode 100644 index c02fe293..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_isolated_repay_test.go +++ /dev/null @@ -1,54 +0,0 @@ -/* -Bitget Open API - -Testing MarginIsolatedRepayApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginIsolatedRepayApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginIsolatedRepayApiService IsolateRepayList", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginIsolatedRepayApi.IsolateRepayList(context.Background()).Symbol("BTCUSDT").StartTime("1677274167003").EndTime("1680057356760").PageSize("10").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetInterest()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetTotalAmount()) - assert.NotEmpty(t, item.GetSymbol()) - } - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_margin_public_test.go b/bitget-goland-sdk-open-api/test/api_margin_public_test.go deleted file mode 100644 index 9af34f18..00000000 --- a/bitget-goland-sdk-open-api/test/api_margin_public_test.go +++ /dev/null @@ -1,69 +0,0 @@ -/* -Bitget Open API - -Testing MarginPublicApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_MarginPublicApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test MarginPublicApiService MarginPublicCurrencies", func(t *testing.T) { - - resp, httpRes, err := apiClient.MarginPublicApi.MarginPublicCurrencies(context.Background()).Execute() - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, httpRes) - require.NotNil(t, resp) - - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotNil(t, resp.GetData()) - - for i, item := range resp.GetData() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetSymbol()) - assert.NotEmpty(t, item.GetBaseCoin()) - assert.NotEmpty(t, item.GetQuoteCoin()) - assert.NotEmpty(t, item.GetMaxCrossLeverage()) - assert.NotEmpty(t, item.GetMaxIsolatedLeverage()) - assert.NotEmpty(t, item.GetWarningRiskRatio()) - assert.NotEmpty(t, item.GetLiquidationRiskRatio()) - assert.NotEmpty(t, item.GetMinTradeAmount()) - assert.NotEmpty(t, item.GetMaxTradeAmount()) - assert.NotEmpty(t, item.GetTakerFeeRate()) - assert.NotEmpty(t, item.GetMakerFeeRate()) - assert.NotEmpty(t, item.GetPriceScale()) - assert.NotEmpty(t, item.GetQuantityScale()) - assert.NotEmpty(t, item.GetMinTradeUSDT()) - assert.NotEmpty(t, item.GetIsBorrowable()) - assert.NotEmpty(t, item.GetUserMinBorrow()) - assert.NotEmpty(t, item.GetStatus()) - - } - - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_p2p_merchant_test.go b/bitget-goland-sdk-open-api/test/api_p2p_merchant_test.go deleted file mode 100644 index 2bed07b5..00000000 --- a/bitget-goland-sdk-open-api/test/api_p2p_merchant_test.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Bitget Open API - -Testing P2pMerchantApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_P2pMerchantApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test P2pMerchantApiService MerchantAdvList", func(t *testing.T) { - resp, httpRes, err := apiClient.P2pMerchantApi.MerchantAdvList(context.Background()).StartTime("1676260773000").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetAdvList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetAdvNo()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetFiatCode()) - assert.NotEmpty(t, item.GetPrice()) - } - }) - - t.Run("Test P2pMerchantApiService MerchantInfo", func(t *testing.T) { - resp, httpRes, err := apiClient.P2pMerchantApi.MerchantInfo(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - assert.NotEmpty(t, resp.GetData().Email) - assert.NotEmpty(t, resp.GetData().AveragePayment) - assert.NotEmpty(t, resp.GetData().Mobile) - assert.NotEmpty(t, resp.GetData().NickName) - }) - - t.Run("Test P2pMerchantApiService MerchantList", func(t *testing.T) { - resp, httpRes, err := apiClient.P2pMerchantApi.MerchantList(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetMerchantId()) - assert.NotEmpty(t, item.GetIsOnline()) - assert.NotEmpty(t, item.GetNickName()) - } - }) - - t.Run("Test P2pMerchantApiService MerchantOrderList", func(t *testing.T) { - resp, httpRes, err := apiClient.P2pMerchantApi.MerchantOrderList(context.Background()).StartTime("1680598302000").Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetOrderList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoin()) - assert.NotEmpty(t, item.GetAmount()) - assert.NotEmpty(t, item.GetAdvNo()) - assert.NotEmpty(t, item.GetType()) - assert.NotEmpty(t, item.GetOrderId()) - assert.NotEmpty(t, item.GetPrice()) - } - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_spot_trace_order_test.go b/bitget-goland-sdk-open-api/test/api_spot_trace_order_test.go deleted file mode 100644 index 69e71db9..00000000 --- a/bitget-goland-sdk-open-api/test/api_spot_trace_order_test.go +++ /dev/null @@ -1,318 +0,0 @@ -/* -Bitget Open API - -Testing SpotTraceOrderApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_SpotTraceOrderApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test SpotTraceOrderApiService SpotTraceCloseTrackingOrder", func(t *testing.T) { - param := *openapiclient.NewCloseTrackingOrderRequestWithDefaults() - param.SetSymbolId("BTCUSDT_SPBL") - itemArray := []string{"1032884851114008576"} - param.SetTrackingOrderNos(itemArray) - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceCloseTrackingOrder(context.Background()).CloseTrackingOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceEndOrder", func(t *testing.T) { - param := *openapiclient.NewEndOrderRequestWithDefaults() - itemArray := []string{"1032884851114008576"} - param.SetTrackingOrderNos(itemArray) - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceEndOrder(context.Background()).EndOrderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceGetTraceSettings", func(t *testing.T) { - param := *openapiclient.NewTraceSettingsRequestWithDefaults() - param.SetTraderUserId("2856507104") - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceGetTraceSettings(context.Background()).TraceSettingsRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetTraceProductConfigs() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetMinTraceAmount()) - assert.NotEmpty(t, item.GetMaxTraceRation()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceGetTraderSettings", func(t *testing.T) { - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceGetTraderSettings(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetSupportProductCodes() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetProductCode()) - assert.NotEmpty(t, item.GetProductName()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceMyTracers", func(t *testing.T) { - param := *openapiclient.NewMyTracersRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceMyTracers(context.Background()).MyTracersRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotNil(t, item.GetTracerHeadPic()) - assert.NotEmpty(t, item.GetTracerNickName()) - assert.NotEmpty(t, item.GetTracerUserId()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceMyTraders", func(t *testing.T) { - param := *openapiclient.NewMyTradersRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceMyTraders(context.Background()).MyTradersRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotNil(t, item.GetTraderUid()) - assert.NotEmpty(t, item.GetTraceTotalAmount()) - assert.NotEmpty(t, item.GetTraceTotalProfit()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceOrderCurrentList", func(t *testing.T) { - param := *openapiclient.NewCurrentOrderListRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceOrderCurrentList(context.Background()).CurrentOrderListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotNil(t, item.GetBuyDelegateCount()) - assert.NotEmpty(t, item.GetSymbolId()) - assert.NotEmpty(t, item.GetTrackingNo()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceOrderHistoryList", func(t *testing.T) { - param := *openapiclient.NewHistoryOrderListRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceOrderHistoryList(context.Background()).HistoryOrderListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotNil(t, item.GetTrackingNo()) - assert.NotEmpty(t, item.GetSymbolId()) - assert.NotEmpty(t, item.GetProfit()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceRemoveTrader", func(t *testing.T) { - param := *openapiclient.NewRemoveTraderRequestWithDefaults() - param.SetTraderUserId("1682406073417") - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceRemoveTrader(context.Background()).RemoveTraderRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceSetProductCode", func(t *testing.T) { - param := *openapiclient.NewProductCodeRequestWithDefaults() - itemArray := []string{"BTCUSDT_SPBL", "ETHUSDT_SPBL", "BGBUSDT_SPBL"} - param.SetSymbolIds(itemArray) - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceSetProductCode(context.Background()).ProductCodeRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceSetTraceConfig", func(t *testing.T) { - item := *openapiclient.NewTraceConfigSettingRequestWithDefaults() // MarginOrderRequest | param - item.SetSymbolId("ETHUSDT_SPBL") - item.SetStopLossRation("10") - item.SetStopProfitRation("10") - item.SetMaxHoldCount("50000") - item.SetTraceValue("1000") - item.SetTraceType("2") - var itemArray = []openapiclient.TraceConfigSettingRequest{item} - - param := *openapiclient.NewTraceConfigRequestWithDefaults() - param.SetTraderUserId("2856507104") - param.SetSettingType("0") - param.SetSetting(itemArray) - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceSetTraceConfig(context.Background()).TraceConfigRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceSpotInfoList", func(t *testing.T) { - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceSpotInfoList(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data { - fmt.Printf("%d %v\n", i, item) - assert.NotNil(t, item.GetMaxCount()) - assert.NotEmpty(t, item.GetSymbolId()) - assert.NotEmpty(t, item.GetSurplusCount()) - } - }) - - t.Run("Test SpotTraceOrderApiService SpotTraceUpdateTpsl", func(t *testing.T) { - param := *openapiclient.NewUpdateTpslRequestWithDefaults() - param.SetTrackingNo("1032830954928365568") - param.SetStopLossPrice("32100") - param.SetStopProfitPrice("32600") - resp, httpRes, err := apiClient.SpotTraceOrderApi.SpotTraceUpdateTpsl(context.Background()).UpdateTpslRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - -} diff --git a/bitget-goland-sdk-open-api/test/api_spot_trace_profit_test.go b/bitget-goland-sdk-open-api/test/api_spot_trace_profit_test.go deleted file mode 100644 index f6e88253..00000000 --- a/bitget-goland-sdk-open-api/test/api_spot_trace_profit_test.go +++ /dev/null @@ -1,139 +0,0 @@ -/* -Bitget Open API - -Testing SpotTraceProfitApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - openapiclient "github.com/bitget/openapi" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_openapi_SpotTraceProfitApiService(t *testing.T) { - - apiClient := openapiclient.NewAPIClient(openapiclient.NewDefaultConfiguration()) - - t.Run("Test SpotTraceProfitApiService SpotTraceProfitHisDetailList", func(t *testing.T) { - param := *openapiclient.NewTotalProfitHisDetailListRequestWithDefaults() - param.SetCoinName("USDT") - param.SetDate("1681985100000") - resp, httpRes, err := apiClient.SpotTraceProfitApi.SpotTraceProfitHisDetailList(context.Background()).TotalProfitHisDetailListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoinName()) - assert.NotEmpty(t, item.GetNickName()) - assert.NotEmpty(t, item.GetProfit()) - } - }) - - t.Run("Test SpotTraceProfitApiService SpotTraceProfitHisList", func(t *testing.T) { - param := *openapiclient.NewTotalProfitHisListRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceProfitApi.SpotTraceProfitHisList(context.Background()).TotalProfitHisListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoinName()) - assert.NotEmpty(t, item.GetDate()) - assert.NotEmpty(t, item.GetProfit()) - } - }) - - t.Run("Test SpotTraceProfitApiService SpotTraceTotalProfitInfo", func(t *testing.T) { - resp, httpRes, err := apiClient.SpotTraceProfitApi.SpotTraceTotalProfitInfo(context.Background()).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - }) - - t.Run("Test SpotTraceProfitApiService SpotTraceTotalProfitList", func(t *testing.T) { - param := *openapiclient.NewTotalProfitListRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceProfitApi.SpotTraceTotalProfitList(context.Background()).TotalProfitListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetProductCode()) - assert.NotEmpty(t, item.GetProfit()) - } - }) - - t.Run("Test SpotTraceProfitApiService SpotTraceWaitProfitDetailList", func(t *testing.T) { - param := *openapiclient.NewWaitProfitDetailListRequestWithDefaults() - resp, httpRes, err := apiClient.SpotTraceProfitApi.SpotTraceWaitProfitDetailList(context.Background()).WaitProfitDetailListRequest(param).Execute() - - bs, _ := json.Marshal(resp) - var out bytes.Buffer - json.Indent(&out, bs, "", "\t") - fmt.Printf("result=%v\n", out.String()) - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, "00000", resp.GetCode()) - assert.Equal(t, "success", resp.GetMsg()) - assert.NotNil(t, resp.GetData()) - data := resp.GetData() - for i, item := range data.GetResultList() { - fmt.Printf("%d %v\n", i, item) - assert.NotEmpty(t, item.GetCoinName()) - assert.NotEmpty(t, item.GetDistributeRatio()) - assert.NotEmpty(t, item.GetProfit()) - } - }) -} diff --git a/bitget-goland-sdk-open-api/utils.go b/bitget-goland-sdk-open-api/utils.go deleted file mode 100644 index 2c8e3c86..00000000 --- a/bitget-goland-sdk-open-api/utils.go +++ /dev/null @@ -1,343 +0,0 @@ -/* -Bitget Open API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// isNil checks if an input is nil -func isNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} \ No newline at end of file diff --git a/bitget-java-sdk-open-api/README.md b/bitget-java-sdk-open-api/README.md deleted file mode 100644 index 7d964999..00000000 --- a/bitget-java-sdk-open-api/README.md +++ /dev/null @@ -1,409 +0,0 @@ -# bitget-java-sdk-open-api - -Bitget Open API -- API version: 2.0.0 - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - -*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* - - -## Requirements - -Building the API client library requires: -1. Java 1.8+ -2. Maven (3.8.3+)/Gradle (7.2+) - -## Installation - -To install the API client library to your local Maven repository, simply execute: - -```shell -mvn clean install -``` - -To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: - -```shell -mvn clean deploy -``` - -Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. - -### Maven users - -Add this dependency to your project's POM: - -```xml - - com.upex.contract - bitget-java-sdk-open-api - 1.0.0 - compile - -``` - -### Gradle users - -Add this dependency to your project's build file: - -```groovy - repositories { - mavenCentral() // Needed if the 'bitget-java-sdk-open-api' jar has been published to maven central. - mavenLocal() // Needed if the 'bitget-java-sdk-open-api' jar has been published to the local maven repo. - } - - dependencies { - implementation "com.upex.contract:bitget-java-sdk-open-api:1.0.0" - } -``` - -### Others - -At first generate the JAR by executing: - -```shell -mvn clean package -``` - -Then manually install the following JARs: - -* `target/bitget-java-sdk-open-api-1.0.0.jar` -* `target/lib/*.jar` - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following Java code: - -```java - -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - try { - ApiResponseResultOfVoid result = apiInstance.callVoid(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#callVoid"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} - -``` - -```java -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.ApiKeyAuth; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; -import java.math.BigDecimal; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("your value"); - - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("your value"); - - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("your value"); - - MixOrderApi apiInstance = new MixOrderApi(defaultClient); - MixPlaceOrderRequest req = new MixPlaceOrderRequest(); - req.setSymbol("BTCUSDT_UMCBL"); - req.setMarginCoin("USDT"); - req.setSide("open_long"); - req.setSize(BigDecimal.valueOf(0.01)); - req.setOrderType("market"); - req.setTimeInForceValue("normal"); - try { - ApiResponseResultOfMixPlaceOrderResult result = apiInstance.placeOrder(req); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MixOrderApi#placeOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - try { - ApiResponseResultOfMixDelegateOrderListResult result = apiInstance.historyProductType( - "umcbl", - "1671493129000", - "1673517445000", - "5", null, null); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MixOrderApi#historyProductType"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.bitget.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*MarginCrossAccountApi* | [**callVoid**](docs/MarginCrossAccountApi.md#callVoid) | **GET** /api/margin/v1/cross/account/void | void -*MarginCrossAccountApi* | [**marginCrossAccountAssets**](docs/MarginCrossAccountApi.md#marginCrossAccountAssets) | **GET** /api/margin/v1/cross/account/assets | assets -*MarginCrossAccountApi* | [**marginCrossAccountBorrow**](docs/MarginCrossAccountApi.md#marginCrossAccountBorrow) | **POST** /api/margin/v1/cross/account/borrow | borrow -*MarginCrossAccountApi* | [**marginCrossAccountMaxBorrowableAmount**](docs/MarginCrossAccountApi.md#marginCrossAccountMaxBorrowableAmount) | **POST** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -*MarginCrossAccountApi* | [**marginCrossAccountMaxTransferOutAmount**](docs/MarginCrossAccountApi.md#marginCrossAccountMaxTransferOutAmount) | **GET** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -*MarginCrossAccountApi* | [**marginCrossAccountRepay**](docs/MarginCrossAccountApi.md#marginCrossAccountRepay) | **POST** /api/margin/v1/cross/account/repay | repay -*MarginCrossAccountApi* | [**marginCrossAccountRiskRate**](docs/MarginCrossAccountApi.md#marginCrossAccountRiskRate) | **GET** /api/margin/v1/cross/account/riskRate | riskRate -*MarginCrossBorrowApi* | [**crossLoanList**](docs/MarginCrossBorrowApi.md#crossLoanList) | **GET** /api/margin/v1/cross/loan/list | list -*MarginCrossFinflowApi* | [**crossFinList**](docs/MarginCrossFinflowApi.md#crossFinList) | **GET** /api/margin/v1/cross/fin/list | list -*MarginCrossInterestApi* | [**crossInterestList**](docs/MarginCrossInterestApi.md#crossInterestList) | **GET** /api/margin/v1/cross/interest/list | list -*MarginCrossLiquidationApi* | [**crossLiquidationList**](docs/MarginCrossLiquidationApi.md#crossLiquidationList) | **GET** /api/margin/v1/cross/liquidation/list | list -*MarginCrossOrderApi* | [**marginCrossBatchCancelOrder**](docs/MarginCrossOrderApi.md#marginCrossBatchCancelOrder) | **POST** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -*MarginCrossOrderApi* | [**marginCrossBatchPlaceOrder**](docs/MarginCrossOrderApi.md#marginCrossBatchPlaceOrder) | **POST** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -*MarginCrossOrderApi* | [**marginCrossCancelOrder**](docs/MarginCrossOrderApi.md#marginCrossCancelOrder) | **POST** /api/margin/v1/cross/order/cancelOrder | cancelOrder -*MarginCrossOrderApi* | [**marginCrossFills**](docs/MarginCrossOrderApi.md#marginCrossFills) | **GET** /api/margin/v1/cross/order/fills | fills -*MarginCrossOrderApi* | [**marginCrossHistoryOrders**](docs/MarginCrossOrderApi.md#marginCrossHistoryOrders) | **GET** /api/margin/v1/cross/order/history | history -*MarginCrossOrderApi* | [**marginCrossOpenOrders**](docs/MarginCrossOrderApi.md#marginCrossOpenOrders) | **GET** /api/margin/v1/cross/order/openOrders | openOrders -*MarginCrossOrderApi* | [**marginCrossPlaceOrder**](docs/MarginCrossOrderApi.md#marginCrossPlaceOrder) | **POST** /api/margin/v1/cross/order/placeOrder | placeOrder -*MarginCrossPublicApi* | [**marginCrossPublicInterestRateAndLimit**](docs/MarginCrossPublicApi.md#marginCrossPublicInterestRateAndLimit) | **GET** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -*MarginCrossPublicApi* | [**marginCrossPublicTierData**](docs/MarginCrossPublicApi.md#marginCrossPublicTierData) | **GET** /api/margin/v1/cross/public/tierData | tierData -*MarginCrossRepayApi* | [**crossRepayList**](docs/MarginCrossRepayApi.md#crossRepayList) | **GET** /api/margin/v1/cross/repay/list | list -*MarginIsolatedAccountApi* | [**marginIsolatedAccountAssets**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountAssets) | **GET** /api/margin/v1/isolated/account/assets | assets -*MarginIsolatedAccountApi* | [**marginIsolatedAccountBorrow**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountBorrow) | **POST** /api/margin/v1/isolated/account/borrow | borrow -*MarginIsolatedAccountApi* | [**marginIsolatedAccountMaxBorrowableAmount**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountMaxBorrowableAmount) | **POST** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -*MarginIsolatedAccountApi* | [**marginIsolatedAccountMaxTransferOutAmount**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountMaxTransferOutAmount) | **GET** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -*MarginIsolatedAccountApi* | [**marginIsolatedAccountRepay**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountRepay) | **POST** /api/margin/v1/isolated/account/repay | repay -*MarginIsolatedAccountApi* | [**marginIsolatedAccountRiskRate**](docs/MarginIsolatedAccountApi.md#marginIsolatedAccountRiskRate) | **POST** /api/margin/v1/isolated/account/riskRate | riskRate -*MarginIsolatedBorrowApi* | [**isolatedLoanList**](docs/MarginIsolatedBorrowApi.md#isolatedLoanList) | **GET** /api/margin/v1/isolated/loan/list | list -*MarginIsolatedFinflowApi* | [**isolatedFinList**](docs/MarginIsolatedFinflowApi.md#isolatedFinList) | **GET** /api/margin/v1/isolated/fin/list | list -*MarginIsolatedInterestApi* | [**isolatedInterestList**](docs/MarginIsolatedInterestApi.md#isolatedInterestList) | **GET** /api/margin/v1/isolated/interest/list | list -*MarginIsolatedLiquidationApi* | [**isolatedLiquidationList**](docs/MarginIsolatedLiquidationApi.md#isolatedLiquidationList) | **GET** /api/margin/v1/isolated/liquidation/list | list -*MarginIsolatedOrderApi* | [**marginIsolatedBatchCancelOrder**](docs/MarginIsolatedOrderApi.md#marginIsolatedBatchCancelOrder) | **POST** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -*MarginIsolatedOrderApi* | [**marginIsolatedBatchPlaceOrder**](docs/MarginIsolatedOrderApi.md#marginIsolatedBatchPlaceOrder) | **POST** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -*MarginIsolatedOrderApi* | [**marginIsolatedCancelOrder**](docs/MarginIsolatedOrderApi.md#marginIsolatedCancelOrder) | **POST** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -*MarginIsolatedOrderApi* | [**marginIsolatedFills**](docs/MarginIsolatedOrderApi.md#marginIsolatedFills) | **GET** /api/margin/v1/isolated/order/fills | fills -*MarginIsolatedOrderApi* | [**marginIsolatedHistoryOrders**](docs/MarginIsolatedOrderApi.md#marginIsolatedHistoryOrders) | **GET** /api/margin/v1/isolated/order/history | history -*MarginIsolatedOrderApi* | [**marginIsolatedOpenOrders**](docs/MarginIsolatedOrderApi.md#marginIsolatedOpenOrders) | **GET** /api/margin/v1/isolated/order/openOrders | openOrders -*MarginIsolatedOrderApi* | [**marginIsolatedPlaceOrder**](docs/MarginIsolatedOrderApi.md#marginIsolatedPlaceOrder) | **POST** /api/margin/v1/isolated/order/placeOrder | placeOrder -*MarginIsolatedPublicApi* | [**marginIsolatedPublicInterestRateAndLimit**](docs/MarginIsolatedPublicApi.md#marginIsolatedPublicInterestRateAndLimit) | **GET** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -*MarginIsolatedPublicApi* | [**marginIsolatedPublicTierData**](docs/MarginIsolatedPublicApi.md#marginIsolatedPublicTierData) | **GET** /api/margin/v1/isolated/public/tierData | tierData -*MarginIsolatedRepayApi* | [**isolateRepayList**](docs/MarginIsolatedRepayApi.md#isolateRepayList) | **GET** /api/margin/v1/isolated/repay/list | list -*MarginPublicApi* | [**marginPublicCurrencies**](docs/MarginPublicApi.md#marginPublicCurrencies) | **GET** /api/margin/v1/public/currencies | currencies -*P2pMerchantApi* | [**merchantAdvList**](docs/P2pMerchantApi.md#merchantAdvList) | **GET** /api/p2p/v1/merchant/advList | advList -*P2pMerchantApi* | [**merchantInfo**](docs/P2pMerchantApi.md#merchantInfo) | **GET** /api/p2p/v1/merchant/merchantInfo | merchantInfo -*P2pMerchantApi* | [**merchantList**](docs/P2pMerchantApi.md#merchantList) | **GET** /api/p2p/v1/merchant/merchantList | merchantList -*P2pMerchantApi* | [**merchantOrderList**](docs/P2pMerchantApi.md#merchantOrderList) | **GET** /api/p2p/v1/merchant/orderList | orderList - - -## Documentation for Models - - - [ApiResponseResultOfListOfMarginCrossAssetsPopulationResult](docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginCrossLevelResult](docs/ApiResponseResultOfListOfMarginCrossLevelResult.md) - - [ApiResponseResultOfListOfMarginCrossRateAndLimitResult](docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult](docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult](docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - - [ApiResponseResultOfListOfMarginIsolatedLevelResult](docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - - [ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult](docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginSystemResult](docs/ApiResponseResultOfListOfMarginSystemResult.md) - - [ApiResponseResultOfMarginBatchCancelOrderResult](docs/ApiResponseResultOfMarginBatchCancelOrderResult.md) - - [ApiResponseResultOfMarginBatchPlaceOrderResult](docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md) - - [ApiResponseResultOfMarginCrossAssetsResult](docs/ApiResponseResultOfMarginCrossAssetsResult.md) - - [ApiResponseResultOfMarginCrossAssetsRiskResult](docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md) - - [ApiResponseResultOfMarginCrossBorrowLimitResult](docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md) - - [ApiResponseResultOfMarginCrossFinFlowResult](docs/ApiResponseResultOfMarginCrossFinFlowResult.md) - - [ApiResponseResultOfMarginCrossMaxBorrowResult](docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md) - - [ApiResponseResultOfMarginCrossRepayResult](docs/ApiResponseResultOfMarginCrossRepayResult.md) - - [ApiResponseResultOfMarginInterestInfoResult](docs/ApiResponseResultOfMarginInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedAssetsResult](docs/ApiResponseResultOfMarginIsolatedAssetsResult.md) - - [ApiResponseResultOfMarginIsolatedBorrowLimitResult](docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - - [ApiResponseResultOfMarginIsolatedFinFlowResult](docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md) - - [ApiResponseResultOfMarginIsolatedInterestInfoResult](docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLiquidationInfoResult](docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLoanInfoResult](docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - - [ApiResponseResultOfMarginIsolatedMaxBorrowResult](docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - - [ApiResponseResultOfMarginIsolatedRepayInfoResult](docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - - [ApiResponseResultOfMarginIsolatedRepayResult](docs/ApiResponseResultOfMarginIsolatedRepayResult.md) - - [ApiResponseResultOfMarginLiquidationInfoResult](docs/ApiResponseResultOfMarginLiquidationInfoResult.md) - - [ApiResponseResultOfMarginLoanInfoResult](docs/ApiResponseResultOfMarginLoanInfoResult.md) - - [ApiResponseResultOfMarginOpenOrderInfoResult](docs/ApiResponseResultOfMarginOpenOrderInfoResult.md) - - [ApiResponseResultOfMarginPlaceOrderResult](docs/ApiResponseResultOfMarginPlaceOrderResult.md) - - [ApiResponseResultOfMarginRepayInfoResult](docs/ApiResponseResultOfMarginRepayInfoResult.md) - - [ApiResponseResultOfMarginTradeDetailInfoResult](docs/ApiResponseResultOfMarginTradeDetailInfoResult.md) - - [ApiResponseResultOfMerchantAdvResult](docs/ApiResponseResultOfMerchantAdvResult.md) - - [ApiResponseResultOfMerchantInfoResult](docs/ApiResponseResultOfMerchantInfoResult.md) - - [ApiResponseResultOfMerchantOrderResult](docs/ApiResponseResultOfMerchantOrderResult.md) - - [ApiResponseResultOfMerchantPersonInfo](docs/ApiResponseResultOfMerchantPersonInfo.md) - - [ApiResponseResultOfVoid](docs/ApiResponseResultOfVoid.md) - - [FiatPaymentDetailInfo](docs/FiatPaymentDetailInfo.md) - - [FiatPaymentInfo](docs/FiatPaymentInfo.md) - - [MarginBatchCancelOrderRequest](docs/MarginBatchCancelOrderRequest.md) - - [MarginBatchCancelOrderResult](docs/MarginBatchCancelOrderResult.md) - - [MarginBatchOrdersRequest](docs/MarginBatchOrdersRequest.md) - - [MarginBatchPlaceOrderFailureResult](docs/MarginBatchPlaceOrderFailureResult.md) - - [MarginBatchPlaceOrderResult](docs/MarginBatchPlaceOrderResult.md) - - [MarginCancelOrderFailureResult](docs/MarginCancelOrderFailureResult.md) - - [MarginCancelOrderRequest](docs/MarginCancelOrderRequest.md) - - [MarginCancelOrderResult](docs/MarginCancelOrderResult.md) - - [MarginCrossAssetsPopulationResult](docs/MarginCrossAssetsPopulationResult.md) - - [MarginCrossAssetsResult](docs/MarginCrossAssetsResult.md) - - [MarginCrossAssetsRiskResult](docs/MarginCrossAssetsRiskResult.md) - - [MarginCrossBorrowLimitResult](docs/MarginCrossBorrowLimitResult.md) - - [MarginCrossFinFlowInfo](docs/MarginCrossFinFlowInfo.md) - - [MarginCrossFinFlowResult](docs/MarginCrossFinFlowResult.md) - - [MarginCrossLevelResult](docs/MarginCrossLevelResult.md) - - [MarginCrossLimitRequest](docs/MarginCrossLimitRequest.md) - - [MarginCrossMaxBorrowRequest](docs/MarginCrossMaxBorrowRequest.md) - - [MarginCrossMaxBorrowResult](docs/MarginCrossMaxBorrowResult.md) - - [MarginCrossRateAndLimitResult](docs/MarginCrossRateAndLimitResult.md) - - [MarginCrossRepayRequest](docs/MarginCrossRepayRequest.md) - - [MarginCrossRepayResult](docs/MarginCrossRepayResult.md) - - [MarginCrossVipResult](docs/MarginCrossVipResult.md) - - [MarginInterestInfo](docs/MarginInterestInfo.md) - - [MarginInterestInfoResult](docs/MarginInterestInfoResult.md) - - [MarginIsolatedAssetsPopulationResult](docs/MarginIsolatedAssetsPopulationResult.md) - - [MarginIsolatedAssetsResult](docs/MarginIsolatedAssetsResult.md) - - [MarginIsolatedAssetsRiskRequest](docs/MarginIsolatedAssetsRiskRequest.md) - - [MarginIsolatedAssetsRiskResult](docs/MarginIsolatedAssetsRiskResult.md) - - [MarginIsolatedBorrowLimitResult](docs/MarginIsolatedBorrowLimitResult.md) - - [MarginIsolatedFinFlowInfo](docs/MarginIsolatedFinFlowInfo.md) - - [MarginIsolatedFinFlowResult](docs/MarginIsolatedFinFlowResult.md) - - [MarginIsolatedInterestInfo](docs/MarginIsolatedInterestInfo.md) - - [MarginIsolatedInterestInfoResult](docs/MarginIsolatedInterestInfoResult.md) - - [MarginIsolatedLevelResult](docs/MarginIsolatedLevelResult.md) - - [MarginIsolatedLimitRequest](docs/MarginIsolatedLimitRequest.md) - - [MarginIsolatedLiquidationInfo](docs/MarginIsolatedLiquidationInfo.md) - - [MarginIsolatedLiquidationInfoResult](docs/MarginIsolatedLiquidationInfoResult.md) - - [MarginIsolatedLoanInfo](docs/MarginIsolatedLoanInfo.md) - - [MarginIsolatedLoanInfoResult](docs/MarginIsolatedLoanInfoResult.md) - - [MarginIsolatedMaxBorrowRequest](docs/MarginIsolatedMaxBorrowRequest.md) - - [MarginIsolatedMaxBorrowResult](docs/MarginIsolatedMaxBorrowResult.md) - - [MarginIsolatedRateAndLimitResult](docs/MarginIsolatedRateAndLimitResult.md) - - [MarginIsolatedRepayInfo](docs/MarginIsolatedRepayInfo.md) - - [MarginIsolatedRepayInfoResult](docs/MarginIsolatedRepayInfoResult.md) - - [MarginIsolatedRepayRequest](docs/MarginIsolatedRepayRequest.md) - - [MarginIsolatedRepayResult](docs/MarginIsolatedRepayResult.md) - - [MarginIsolatedVipResult](docs/MarginIsolatedVipResult.md) - - [MarginLiquidationInfo](docs/MarginLiquidationInfo.md) - - [MarginLiquidationInfoResult](docs/MarginLiquidationInfoResult.md) - - [MarginLoanInfo](docs/MarginLoanInfo.md) - - [MarginLoanInfoResult](docs/MarginLoanInfoResult.md) - - [MarginOpenOrderInfoResult](docs/MarginOpenOrderInfoResult.md) - - [MarginOrderInfo](docs/MarginOrderInfo.md) - - [MarginOrderRequest](docs/MarginOrderRequest.md) - - [MarginPlaceOrderResult](docs/MarginPlaceOrderResult.md) - - [MarginRepayInfo](docs/MarginRepayInfo.md) - - [MarginRepayInfoResult](docs/MarginRepayInfoResult.md) - - [MarginSystemResult](docs/MarginSystemResult.md) - - [MarginTradeDetailInfo](docs/MarginTradeDetailInfo.md) - - [MarginTradeDetailInfoResult](docs/MarginTradeDetailInfoResult.md) - - [MerchantAdvInfo](docs/MerchantAdvInfo.md) - - [MerchantAdvResult](docs/MerchantAdvResult.md) - - [MerchantAdvUserLimitInfo](docs/MerchantAdvUserLimitInfo.md) - - [MerchantInfo](docs/MerchantInfo.md) - - [MerchantInfoResult](docs/MerchantInfoResult.md) - - [MerchantOrderInfo](docs/MerchantOrderInfo.md) - - [MerchantOrderPaymentInfo](docs/MerchantOrderPaymentInfo.md) - - [MerchantOrderResult](docs/MerchantOrderResult.md) - - [MerchantPersonInfo](docs/MerchantPersonInfo.md) - - [OrderPaymentDetailInfo](docs/OrderPaymentDetailInfo.md) - - -## Documentation for Authorization - -Authentication schemes defined for the API: -### ACCESS_KEY - -- **Type**: API key -- **API key parameter name**: ACCESS-KEY -- **Location**: HTTP header - -### ACCESS_PASSPHRASE - -- **Type**: API key -- **API key parameter name**: ACCESS-PASSPHRASE -- **Location**: HTTP header - -### ACCESS_SIGN - -- **Type**: API key -- **API key parameter name**: ACCESS-SIGN -- **Location**: HTTP header - -### ACCESS_TIMESTAMP - -- **Type**: API key -- **API key parameter name**: ACCESS-TIMESTAMP -- **Location**: HTTP header - -### SECRET_KEY - -- **Type**: API key -- **API key parameter name**: SECRET-KEY -- **Location**: HTTP header - - -## Recommendation - -It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. - -## Author - - - diff --git a/bitget-java-sdk-open-api/api/openapi.yaml b/bitget-java-sdk-open-api/api/openapi.yaml deleted file mode 100644 index d002a4f0..00000000 --- a/bitget-java-sdk-open-api/api/openapi.yaml +++ /dev/null @@ -1,6329 +0,0 @@ -openapi: 3.0.1 -info: - title: Bitget Open API - version: 2.0.0 -servers: -- url: https://api.bitget.com/ -tags: -- description: Margin Cross Account Controller - name: margin_cross_account -- description: Margin Cross Borrow Query Controller - name: margin_cross_borrow -- description: Margin Cross Fin Flow Query Controller - name: margin_cross_finflow -- description: Margin Cross Interest Query Controller - name: margin_cross_interest -- description: Margin Cross Liquidation Query Controller - name: margin_cross_liquidation -- description: Margin Cross Order Controller - name: margin_cross_order -- description: Margin Cross Public Controller - name: margin_cross_public -- description: Margin Cross Repay Query Controller - name: margin_cross_repay -- description: Margin Isolated Account Controller - name: margin_isolated_account -- description: Margin Isolated Borrow Query Controller - name: margin_isolated_borrow -- description: Margin Isolated Fin Flow Query Controller - name: margin_isolated_finflow -- description: Margin Isolated Interest Query Controller - name: margin_isolated_interest -- description: Margin Isolated Liquidation Query Controller - name: margin_isolated_liquidation -- description: Margin Isolated Order Controller - name: margin_isolated_order -- description: Margin Isolated Public Controller - name: margin_isolated_public -- description: Margin Isolated Repay Query Controller - name: margin_isolated_repay -- description: Margin Public Controller - name: margin_public -- description: Merchant Controller - name: p2p_merchant -paths: - /api/margin/v1/cross/account/assets: - get: - deprecated: false - description: Get Assets - operationId: marginCrossAccountAssets - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: assets - tags: - - margin_cross_account - x-accepts: application/json - /api/margin/v1/cross/account/borrow: - post: - deprecated: false - description: borrow - operationId: marginCrossAccountBorrow - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossLimitRequest' - description: marginCrossLimitRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossBorrowLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: borrow - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossLimitRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/account/maxBorrowableAmount: - post: - deprecated: false - description: Get MaxBorrowableAmount - operationId: marginCrossAccountMaxBorrowableAmount - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossMaxBorrowRequest' - description: marginCrossMaxBorrowRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossMaxBorrowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxBorrowableAmount - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossMaxBorrowRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/account/maxTransferOutAmount: - get: - deprecated: false - description: Get Max TransferOutAmount - operationId: marginCrossAccountMaxTransferOutAmount - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossAssetsResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxTransferOutAmount - tags: - - margin_cross_account - x-accepts: application/json - /api/margin/v1/cross/account/repay: - post: - deprecated: false - description: repay - operationId: marginCrossAccountRepay - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCrossRepayRequest' - description: marginCrossRepayRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossRepayResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: repay - tags: - - margin_cross_account - x-codegen-request-body-name: marginCrossRepayRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/account/riskRate: - get: - deprecated: false - description: riskRate - operationId: marginCrossAccountRiskRate - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossAssetsRiskResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: riskRate - tags: - - margin_cross_account - x-accepts: application/json - /api/margin/v1/cross/account/void: - get: - deprecated: false - description: empty - operationId: void - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: void - tags: - - margin_cross_account - x-accepts: application/json - /api/margin/v1/cross/fin/list: - get: - deprecated: false - description: Get finance flow List - operationId: crossFinList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: marginType - example: transfer_in - in: query - name: marginType - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginCrossFinFlowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_finflow - x-accepts: application/json - /api/margin/v1/cross/interest/list: - get: - deprecated: false - description: Get interest List - operationId: crossInterestList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginInterestInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_interest - x-accepts: application/json - /api/margin/v1/cross/liquidation/list: - get: - deprecated: false - description: Get liquidation List - operationId: crossLiquidationList - parameters: - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginLiquidationInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_liquidation - x-accepts: application/json - /api/margin/v1/cross/loan/list: - get: - deprecated: false - description: Get Loan List - operationId: crossLoanList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginLoanInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_borrow - x-accepts: application/json - /api/margin/v1/cross/order/batchCancelOrder: - post: - deprecated: false - description: Margin Cross BatchCancelOrder - operationId: marginCrossBatchCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchCancelOrderRequest' - description: marginBatchCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchCancelOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginBatchCancelOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/order/batchPlaceOrder: - post: - deprecated: false - description: Margin Cross PlaceOrder - operationId: marginCrossBatchPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchOrdersRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchPlaceOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/order/cancelOrder: - post: - deprecated: false - description: Margin Cross CancelOrder - operationId: marginCrossCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCancelOrderRequest' - description: marginCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: cancelOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginCancelOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/order/fills: - get: - deprecated: false - description: Margin Cross Fills - operationId: marginCrossFills - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: lastFillId - in: query - name: lastFillId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginTradeDetailInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: fills - tags: - - margin_cross_order - x-accepts: application/json - /api/margin/v1/cross/order/history: - get: - deprecated: false - description: Margin Cross historyOrders - operationId: marginCrossHistoryOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: minId - in: query - name: minId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: history - tags: - - margin_cross_order - x-accepts: application/json - /api/margin/v1/cross/order/openOrders: - get: - deprecated: false - description: Margin Cross openOrders - operationId: marginCrossOpenOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: openOrders - tags: - - margin_cross_order - x-accepts: application/json - /api/margin/v1/cross/order/placeOrder: - post: - deprecated: false - description: Margin Cross PlaceOrder - operationId: marginCrossPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginOrderRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: placeOrder - tags: - - margin_cross_order - x-codegen-request-body-name: marginOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/cross/public/interestRateAndLimit: - get: - deprecated: false - description: Get InterestRateAndLimit - operationId: marginCrossPublicInterestRateAndLimit - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossRateAndLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: interestRateAndLimit - tags: - - margin_cross_public - x-accepts: application/json - /api/margin/v1/cross/public/tierData: - get: - deprecated: false - description: Get TierData - operationId: marginCrossPublicTierData - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginCrossLevelResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: tierData - tags: - - margin_cross_public - x-accepts: application/json - /api/margin/v1/cross/repay/list: - get: - deprecated: false - description: Get liquidation List - operationId: crossRepayList - parameters: - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: repayId - example: "32428347234" - in: query - name: repayId - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - example: minId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginRepayInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_cross_repay - x-accepts: application/json - /api/margin/v1/isolated/account/assets: - get: - deprecated: false - description: Get Assets - operationId: marginIsolatedAccountAssets - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: assets - tags: - - margin_isolated_account - x-accepts: application/json - /api/margin/v1/isolated/account/borrow: - post: - deprecated: false - description: borrow - operationId: marginIsolatedAccountBorrow - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedLimitRequest' - description: marginIsolatedLimitRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedBorrowLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: borrow - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedLimitRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/account/maxBorrowableAmount: - post: - deprecated: false - description: Get MaxBorrowableAmount - operationId: marginIsolatedAccountMaxBorrowableAmount - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedMaxBorrowRequest' - description: marginIsolatedMaxBorrowRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedMaxBorrowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxBorrowableAmount - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedMaxBorrowRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/account/maxTransferOutAmount: - get: - deprecated: false - description: Get Max TransferOutAmount - operationId: marginIsolatedAccountMaxTransferOutAmount - parameters: - - description: coin - example: USDT - in: query - name: coin - required: true - schema: - type: string - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedAssetsResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: maxTransferOutAmount - tags: - - margin_isolated_account - x-accepts: application/json - /api/margin/v1/isolated/account/repay: - post: - deprecated: false - description: repay - operationId: marginIsolatedAccountRepay - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedRepayRequest' - description: marginIsolatedRepayRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedRepayResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: repay - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedRepayRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/account/riskRate: - post: - deprecated: false - description: riskRate - operationId: marginIsolatedAccountRiskRate - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginIsolatedAssetsRiskRequest' - description: marginIsolatedAssetsRiskRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: riskRate - tags: - - margin_isolated_account - x-codegen-request-body-name: marginIsolatedAssetsRiskRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/fin/list: - get: - deprecated: false - description: Get finance flow List - operationId: isolatedFinList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: marginType - example: transfer_in - in: query - name: marginType - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedFinFlowResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_finflow - x-accepts: application/json - /api/margin/v1/isolated/interest/list: - get: - deprecated: false - description: Get interest List - operationId: isolatedInterestList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedInterestInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_interest - x-accepts: application/json - /api/margin/v1/isolated/liquidation/list: - get: - deprecated: false - description: Get liquidation List - operationId: isolatedLiquidationList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193138000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedLiquidationInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_liquidation - x-accepts: application/json - /api/margin/v1/isolated/loan/list: - get: - deprecated: false - description: Get Loan List - operationId: isolatedLoanList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: loanId - in: query - name: loanId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedLoanInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_borrow - x-accepts: application/json - /api/margin/v1/isolated/order/batchCancelOrder: - post: - deprecated: false - description: Margin Isolated BatchCancelOrder - operationId: marginIsolatedBatchCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchCancelOrderRequest' - description: marginBatchCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchCancelOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginBatchCancelOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/order/batchPlaceOrder: - post: - deprecated: false - description: Margin Isolated PlaceOrder - operationId: marginIsolatedBatchPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginBatchOrdersRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: batchPlaceOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/order/cancelOrder: - post: - deprecated: false - description: Margin Isolated CancelOrder - operationId: marginIsolatedCancelOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginCancelOrderRequest' - description: marginCancelOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginBatchCancelOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: cancelOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginCancelOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/order/fills: - get: - deprecated: false - description: Margin Isolated Fills - operationId: marginIsolatedFills - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: lastFillId - in: query - name: lastFillId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginTradeDetailInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: fills - tags: - - margin_isolated_order - x-accepts: application/json - /api/margin/v1/isolated/order/history: - get: - deprecated: false - description: Margin Isolated historyOrders - operationId: marginIsolatedHistoryOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - schema: - type: string - - description: source - example: API - in: query - name: source - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: minId - in: query - name: minId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: history - tags: - - margin_isolated_order - x-accepts: application/json - /api/margin/v1/isolated/order/openOrders: - get: - deprecated: false - description: Margin Isolated openOrders - operationId: marginIsolatedOpenOrders - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: orderId - example: "32428347234" - in: query - name: orderId - schema: - type: string - - description: clientOid - example: "123456" - in: query - name: clientOid - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginOpenOrderInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: openOrders - tags: - - margin_isolated_order - x-accepts: application/json - /api/margin/v1/isolated/order/placeOrder: - post: - deprecated: false - description: Margin Isolated PlaceOrder - operationId: marginIsolatedPlaceOrder - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MarginOrderRequest' - description: marginOrderRequest - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginPlaceOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: placeOrder - tags: - - margin_isolated_order - x-codegen-request-body-name: marginOrderRequest - x-content-type: application/json - x-accepts: application/json - /api/margin/v1/isolated/public/interestRateAndLimit: - get: - deprecated: false - description: Get InterestRateAndLimit - operationId: marginIsolatedPublicInterestRateAndLimit - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: interestRateAndLimit - tags: - - margin_isolated_public - x-accepts: application/json - /api/margin/v1/isolated/public/tierData: - get: - deprecated: false - description: Get TierData - operationId: marginIsolatedPublicTierData - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginIsolatedLevelResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: tierData - tags: - - margin_isolated_public - x-accepts: application/json - /api/margin/v1/isolated/repay/list: - get: - deprecated: false - description: Get liquidation List - operationId: isolateRepayList - parameters: - - description: symbol - example: BTCUSDT - in: query - name: symbol - required: true - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: repayId - in: query - name: repayId - schema: - type: string - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: pageId - in: query - name: pageId - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMarginIsolatedRepayInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: list - tags: - - margin_isolated_repay - x-accepts: application/json - /api/margin/v1/public/currencies: - get: - deprecated: false - description: Get Currencies - operationId: marginPublicCurrencies - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfListOfMarginSystemResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - summary: currencies - tags: - - margin_public - x-accepts: application/json - /api/p2p/v1/merchant/advList: - get: - deprecated: false - description: P2P merchant adv info - operationId: merchantAdvList - parameters: - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: status - example: upper - in: query - name: status - schema: - type: string - - description: type - example: sell - in: query - name: type - schema: - type: string - - description: advNo - example: "1678193338000" - in: query - name: advNo - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: languageType - example: en-US - in: query - name: languageType - schema: - type: string - - description: fiat - example: USD - in: query - name: fiat - schema: - type: string - - description: languageType - example: "43534" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - - description: orderBy - example: createTime - in: query - name: orderBy - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantAdvResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: advList - tags: - - p2p_merchant - x-accepts: application/json - /api/p2p/v1/merchant/merchantInfo: - get: - deprecated: false - description: P2P merchant info self - operationId: merchantInfo - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantPersonInfo' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: merchantInfo - tags: - - p2p_merchant - x-accepts: application/json - /api/p2p/v1/merchant/merchantList: - get: - deprecated: false - description: P2P merchant list - operationId: merchantList - parameters: - - description: online - example: "yes" - in: query - name: online - schema: - type: string - - description: merchantId - example: "4534534534" - in: query - name: merchantId - schema: - type: string - - description: lastMinId - example: "1678193338000" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantInfoResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: merchantList - tags: - - p2p_merchant - x-accepts: application/json - /api/p2p/v1/merchant/orderList: - get: - deprecated: false - description: P2P merchant order info - operationId: merchantOrderList - parameters: - - description: startTime - example: "1678193338000" - in: query - name: startTime - required: true - schema: - type: string - - description: endTime - example: "1678193338000" - in: query - name: endTime - schema: - type: string - - description: status - example: wait_pay - in: query - name: status - schema: - type: string - - description: type - example: sell - in: query - name: type - schema: - type: string - - description: advNo - example: "1678193338000" - in: query - name: advNo - schema: - type: string - - description: orderNo - example: "23842478324723423" - in: query - name: orderNo - schema: - type: string - - description: coin - example: USDT - in: query - name: coin - schema: - type: string - - description: languageType - example: en-US - in: query - name: languageType - schema: - type: string - - description: fiat - example: USD - in: query - name: fiat - schema: - type: string - - description: languageType - example: "43534" - in: query - name: lastMinId - schema: - type: string - - description: pageSize - example: "10" - in: query - name: pageSize - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfMerchantOrderResult' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Bad Request - "429": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Gateway Frequency Limit - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/ApiResponseResultOfVoid' - description: Server Error - security: - - ACCESS_TIMESTAMP: [] - - SECRET_KEY: [] - - ACCESS_PASSPHRASE: [] - - ACCESS_SIGN: [] - - ACCESS_KEY: [] - summary: orderList - tags: - - p2p_merchant - x-accepts: application/json -components: - schemas: - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossAssetsPopulationResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - type: object - ApiResponseResultOfListOfMarginCrossLevelResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossLevelResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossLevelResult - type: object - ApiResponseResultOfListOfMarginCrossRateAndLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginCrossRateAndLimitResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginCrossRateAndLimitResult - type: object - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedAssetsPopulationResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - type: object - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedAssetsRiskResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - type: object - ApiResponseResultOfListOfMarginIsolatedLevelResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedLevelResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedLevelResult - type: object - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginIsolatedRateAndLimitResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - type: object - ApiResponseResultOfListOfMarginSystemResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: {} - properties: - code: - description: code - example: "00000" - type: string - data: - description: data - example: {} - items: - $ref: '#/components/schemas/MarginSystemResult' - type: array - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfListOfMarginSystemResult - type: object - ApiResponseResultOfMarginBatchCancelOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - failure: - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginBatchCancelOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginBatchCancelOrderResult - type: object - ApiResponseResultOfMarginBatchPlaceOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - failure: - - clientOid: clientOid - errorMsg: errorMsg - - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginBatchPlaceOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginBatchPlaceOrderResult - type: object - ApiResponseResultOfMarginCrossAssetsResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxTransferOutAmount: maxTransferOutAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossAssetsResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossAssetsResult - type: object - ApiResponseResultOfMarginCrossAssetsRiskResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - riskRate: riskRate - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossAssetsRiskResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossAssetsRiskResult - type: object - ApiResponseResultOfMarginCrossBorrowLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossBorrowLimitResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossBorrowLimitResult - type: object - ApiResponseResultOfMarginCrossFinFlowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossFinFlowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossFinFlowResult - type: object - ApiResponseResultOfMarginCrossMaxBorrowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossMaxBorrowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossMaxBorrowResult - type: object - ApiResponseResultOfMarginCrossRepayResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginCrossRepayResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginCrossRepayResult - type: object - ApiResponseResultOfMarginInterestInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginInterestInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginInterestInfoResult - type: object - ApiResponseResultOfMarginIsolatedAssetsResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxTransferOutAmount: maxTransferOutAmount - symbol: symbol - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedAssetsResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedAssetsResult - type: object - ApiResponseResultOfMarginIsolatedBorrowLimitResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedBorrowLimitResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedBorrowLimitResult - type: object - ApiResponseResultOfMarginIsolatedFinFlowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedFinFlowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedFinFlowResult - type: object - ApiResponseResultOfMarginIsolatedInterestInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedInterestInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedInterestInfoResult - type: object - ApiResponseResultOfMarginIsolatedLiquidationInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedLiquidationInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedLiquidationInfoResult - type: object - ApiResponseResultOfMarginIsolatedLoanInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedLoanInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedLoanInfoResult - type: object - ApiResponseResultOfMarginIsolatedMaxBorrowResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedMaxBorrowResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedMaxBorrowResult - type: object - ApiResponseResultOfMarginIsolatedRepayInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedRepayInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedRepayInfoResult - type: object - ApiResponseResultOfMarginIsolatedRepayResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - symbol: symbol - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginIsolatedRepayResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginIsolatedRepayResult - type: object - ApiResponseResultOfMarginLiquidationInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginLiquidationInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginLiquidationInfoResult - type: object - ApiResponseResultOfMarginLoanInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginLoanInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginLoanInfoResult - type: object - ApiResponseResultOfMarginOpenOrderInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - orderList: - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginOpenOrderInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginOpenOrderInfoResult - type: object - ApiResponseResultOfMarginPlaceOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - orderId: orderId - clientOid: clientOid - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginPlaceOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginPlaceOrderResult - type: object - ApiResponseResultOfMarginRepayInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - resultList: - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginRepayInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginRepayInfoResult - type: object - ApiResponseResultOfMarginTradeDetailInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - maxId: maxId - minId: minId - fills: - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MarginTradeDetailInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMarginTradeDetailInfoResult - type: object - ApiResponseResultOfMerchantAdvResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - advList: - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantAdvResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantAdvResult - type: object - ApiResponseResultOfMerchantInfoResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - minId: minId - resultList: - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantInfoResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantInfoResult - type: object - ApiResponseResultOfMerchantOrderResult: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - orderList: - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - minId: minId - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantOrderResult' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantOrderResult - type: object - ApiResponseResultOfMerchantPersonInfo: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - data: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - kycFlag: true - mobile: mobile - thirtyBuy: thirtyBuy - totalTrades: totalTrades - emailBindFlag: true - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - realName: realName - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - mobileBindFlag: true - email: email - properties: - code: - description: code - example: "00000" - type: string - data: - $ref: '#/components/schemas/MerchantPersonInfo' - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfMerchantPersonInfo - type: object - ApiResponseResultOfVoid: - example: - msg: success - requestTime: 1675044340493 - code: "00000" - properties: - code: - description: code - example: "00000" - type: string - msg: - description: msg - example: success - type: string - requestTime: - description: requestTime - example: 1675044340493 - format: int64 - type: integer - title: ApiResponseResultOfVoid - type: object - FiatPaymentDetailInfo: - example: - name: name - type: type - required: true - properties: - name: - type: string - required: - type: boolean - type: - type: string - title: FiatPaymentDetailInfo - type: object - FiatPaymentInfo: - example: - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - properties: - paymentId: - type: string - paymentInfo: - items: - $ref: '#/components/schemas/FiatPaymentDetailInfo' - type: array - paymentMethod: - type: string - title: FiatPaymentInfo - type: object - MarginBatchCancelOrderRequest: - example: - symbol: BTCUSDT_SPBL - clientOids: - - myId001 - orderIds: - - "34324234234234324" - properties: - clientOids: - description: clientOids - example: - - myId001 - items: - type: string - type: array - orderIds: - description: orderIds - example: - - "34324234234234324" - items: - type: string - type: array - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginBatchCancelOrderRequest - type: object - MarginBatchCancelOrderResult: - example: - failure: - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - failure: - items: - $ref: '#/components/schemas/MarginCancelOrderFailureResult' - type: array - resultList: - items: - $ref: '#/components/schemas/MarginCancelOrderResult' - type: array - title: MarginBatchCancelOrderResult - type: object - MarginBatchOrdersRequest: - example: - symbol: BTCUSDT_SPBL - ip: ip - channelApiCode: channelApiCode - orderList: - - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - properties: - channelApiCode: - type: string - ip: - type: string - orderList: - items: - $ref: '#/components/schemas/MarginOrderRequest' - type: array - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginBatchOrdersRequest - type: object - MarginBatchPlaceOrderFailureResult: - example: - clientOid: clientOid - errorMsg: errorMsg - properties: - clientOid: - type: string - errorMsg: - type: string - title: MarginBatchPlaceOrderFailureResult - type: object - MarginBatchPlaceOrderResult: - example: - failure: - - clientOid: clientOid - errorMsg: errorMsg - - clientOid: clientOid - errorMsg: errorMsg - resultList: - - orderId: orderId - clientOid: clientOid - - orderId: orderId - clientOid: clientOid - properties: - failure: - items: - $ref: '#/components/schemas/MarginBatchPlaceOrderFailureResult' - type: array - resultList: - items: - $ref: '#/components/schemas/MarginCancelOrderResult' - type: array - title: MarginBatchPlaceOrderResult - type: object - MarginCancelOrderFailureResult: - example: - orderId: orderId - clientOid: clientOid - errorMsg: errorMsg - properties: - clientOid: - type: string - errorMsg: - type: string - orderId: - type: string - title: MarginCancelOrderFailureResult - type: object - MarginCancelOrderRequest: - example: - symbol: BTCUSDT_SPBL - orderId: "324234234234234723647" - clientOid: myId0001 - properties: - clientOid: - description: clientOid - example: myId0001 - type: string - orderId: - description: orderId - example: "324234234234234723647" - type: string - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - required: - - symbol - title: MarginCancelOrderRequest - type: object - MarginCancelOrderResult: - example: - orderId: orderId - clientOid: clientOid - properties: - clientOid: - type: string - orderId: - type: string - title: MarginCancelOrderResult - type: object - MarginCrossAssetsPopulationResult: - properties: - available: - type: string - borrow: - type: string - coin: - type: string - ctime: - type: string - frozen: - type: string - interest: - type: string - net: - type: string - totalAmount: - type: string - title: MarginCrossAssetsPopulationResult - type: object - MarginCrossAssetsResult: - example: - maxTransferOutAmount: maxTransferOutAmount - coin: coin - properties: - coin: - type: string - maxTransferOutAmount: - type: string - title: MarginCrossAssetsResult - type: object - MarginCrossAssetsRiskResult: - example: - riskRate: riskRate - properties: - riskRate: - type: string - title: MarginCrossAssetsRiskResult - type: object - MarginCrossBorrowLimitResult: - example: - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - borrowAmount: - type: string - clientOid: - type: string - coin: - type: string - title: MarginCrossBorrowLimitResult - type: object - MarginCrossFinFlowInfo: - example: - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - amount: - type: string - balance: - type: string - coin: - type: string - ctime: - type: string - fee: - type: string - marginId: - type: string - marginType: - type: string - title: MarginCrossFinFlowInfo - type: object - MarginCrossFinFlowResult: - example: - maxId: maxId - minId: minId - resultList: - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginCrossFinFlowInfo' - type: array - title: MarginCrossFinFlowResult - type: object - MarginCrossLevelResult: - properties: - coin: - type: string - leverage: - type: string - maintainMarginRate: - type: string - maxBorrowableAmount: - type: string - tier: - type: string - title: MarginCrossLevelResult - type: object - MarginCrossLimitRequest: - example: - borrowAmount: "1.0" - coin: USDT - properties: - borrowAmount: - description: borrowAmount - example: "1.0" - type: string - coin: - description: coin - example: USDT - type: string - required: - - borrowAmount - - coin - title: MarginCrossLimitRequest - type: object - MarginCrossMaxBorrowRequest: - example: - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - required: - - coin - title: MarginCrossMaxBorrowRequest - type: object - MarginCrossMaxBorrowResult: - example: - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - coin: - type: string - maxBorrowableAmount: - type: string - title: MarginCrossMaxBorrowResult - type: object - MarginCrossRateAndLimitResult: - properties: - borrowAble: - type: boolean - coin: - type: string - dailyInterestRate: - type: string - leverage: - type: string - maxBorrowableAmount: - type: string - transferInAble: - type: boolean - vips: - items: - $ref: '#/components/schemas/MarginCrossVipResult' - type: array - yearlyInterestRate: - type: string - title: MarginCrossRateAndLimitResult - type: object - MarginCrossRepayRequest: - example: - repayAmount: "1.0" - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - repayAmount: - description: repayAmount - example: "1.0" - type: string - required: - - coin - - repayAmount - title: MarginCrossRepayRequest - type: object - MarginCrossRepayResult: - example: - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - clientOid: - type: string - coin: - type: string - remainDebtAmount: - type: string - repayAmount: - type: string - title: MarginCrossRepayResult - type: object - MarginCrossVipResult: - properties: - dailyInterestRate: - type: string - discountRate: - type: string - level: - type: string - yearlyInterestRate: - type: string - title: MarginCrossVipResult - type: object - MarginInterestInfo: - example: - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - amount: - type: string - ctime: - type: string - interestCoin: - type: string - interestId: - type: string - interestRate: - type: string - loanCoin: - type: string - type: - type: string - title: MarginInterestInfo - type: object - MarginInterestInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginInterestInfo' - type: array - title: MarginInterestInfoResult - type: object - MarginIsolatedAssetsPopulationResult: - properties: - available: - type: string - borrow: - type: string - coin: - type: string - ctime: - type: string - frozen: - type: string - interest: - type: string - net: - type: string - symbol: - type: string - totalAmount: - type: string - title: MarginIsolatedAssetsPopulationResult - type: object - MarginIsolatedAssetsResult: - example: - maxTransferOutAmount: maxTransferOutAmount - symbol: symbol - coin: coin - properties: - coin: - type: string - maxTransferOutAmount: - type: string - symbol: - type: string - title: MarginIsolatedAssetsResult - type: object - MarginIsolatedAssetsRiskRequest: - example: - symbol: BTCUSDT - pageSize: "100" - pageNum: "1" - properties: - pageNum: - description: pageNum - example: "1" - type: string - pageSize: - description: pageSize - example: "100" - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - symbol - title: MarginIsolatedAssetsRiskRequest - type: object - MarginIsolatedAssetsRiskResult: - properties: - riskRate: - type: string - symbol: - type: string - title: MarginIsolatedAssetsRiskResult - type: object - MarginIsolatedBorrowLimitResult: - example: - symbol: symbol - borrowAmount: borrowAmount - clientOid: clientOid - coin: coin - properties: - borrowAmount: - type: string - clientOid: - type: string - coin: - type: string - symbol: - type: string - title: MarginIsolatedBorrowLimitResult - type: object - MarginIsolatedFinFlowInfo: - example: - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - amount: - type: string - balance: - type: string - coin: - type: string - ctime: - type: string - fee: - type: string - marginId: - type: string - marginType: - type: string - symbol: - type: string - title: MarginIsolatedFinFlowInfo - type: object - MarginIsolatedFinFlowResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - - symbol: symbol - amount: amount - balance: balance - marginType: marginType - fee: fee - marginId: marginId - ctime: ctime - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedFinFlowInfo' - type: array - title: MarginIsolatedFinFlowResult - type: object - MarginIsolatedInterestInfo: - example: - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - amount: - type: string - ctime: - type: string - interestCoin: - type: string - interestId: - type: string - interestRate: - type: string - loanCoin: - type: string - symbol: - type: string - type: - type: string - title: MarginIsolatedInterestInfo - type: object - MarginIsolatedInterestInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - - interestRate: interestRate - symbol: symbol - amount: amount - interestId: interestId - loanCoin: loanCoin - ctime: ctime - type: type - interestCoin: interestCoin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedInterestInfo' - type: array - title: MarginIsolatedInterestInfoResult - type: object - MarginIsolatedLevelResult: - properties: - baseCoin: - type: string - baseMaxBorrowableAmount: - type: string - initRate: - type: string - leverage: - type: string - maintainMarginRate: - type: string - quoteCoin: - type: string - quoteMaxBorrowableAmount: - type: string - symbol: - type: string - tier: - type: string - title: MarginIsolatedLevelResult - type: object - MarginIsolatedLimitRequest: - example: - symbol: USDT - borrowAmount: "1.0" - coin: USDT - properties: - borrowAmount: - description: borrowAmount - example: "1.0" - type: string - coin: - description: coin - example: USDT - type: string - symbol: - description: symbol - example: USDT - type: string - required: - - borrowAmount - - coin - - symbol - title: MarginIsolatedLimitRequest - type: object - MarginIsolatedLiquidationInfo: - example: - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - ctime: - type: string - liqEndTime: - type: string - liqFee: - type: string - liqId: - type: string - liqRisk: - type: string - liqStartTime: - type: string - symbol: - type: string - totalAssets: - type: string - totalDebt: - type: string - title: MarginIsolatedLiquidationInfo - type: object - MarginIsolatedLiquidationInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - symbol: symbol - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedLiquidationInfo' - type: array - title: MarginIsolatedLiquidationInfoResult - type: object - MarginIsolatedLoanInfo: - example: - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - loanId: - type: string - symbol: - type: string - type: - type: string - title: MarginIsolatedLoanInfo - type: object - MarginIsolatedLoanInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - symbol: symbol - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedLoanInfo' - type: array - title: MarginIsolatedLoanInfoResult - type: object - MarginIsolatedMaxBorrowRequest: - example: - symbol: BTCUSDT - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - coin - - symbol - title: MarginIsolatedMaxBorrowRequest - type: object - MarginIsolatedMaxBorrowResult: - example: - symbol: symbol - maxBorrowableAmount: maxBorrowableAmount - coin: coin - properties: - coin: - type: string - maxBorrowableAmount: - type: string - symbol: - type: string - title: MarginIsolatedMaxBorrowResult - type: object - MarginIsolatedRateAndLimitResult: - properties: - baseBorrowAble: - type: boolean - baseCoin: - type: string - baseDailyInterestRate: - type: string - baseMaxBorrowableAmount: - type: string - baseTransferInAble: - type: boolean - baseVips: - items: - $ref: '#/components/schemas/MarginIsolatedVipResult' - type: array - baseYearlyInterestRate: - type: string - leverage: - type: string - quoteBorrowAble: - type: boolean - quoteCoin: - type: string - quoteDailyInterestRate: - type: string - quoteMaxBorrowableAmount: - type: string - quoteTransferInAble: - type: boolean - quoteVips: - items: - $ref: '#/components/schemas/MarginIsolatedVipResult' - type: array - quoteYearlyInterestRate: - type: string - symbol: - type: string - title: MarginIsolatedRateAndLimitResult - type: object - MarginIsolatedRepayInfo: - example: - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - interest: - type: string - repayId: - type: string - symbol: - type: string - totalAmount: - type: string - type: - type: string - title: MarginIsolatedRepayInfo - type: object - MarginIsolatedRepayInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - symbol: symbol - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginIsolatedRepayInfo' - type: array - title: MarginIsolatedRepayInfoResult - type: object - MarginIsolatedRepayRequest: - example: - symbol: BTCUSDT - repayAmount: "1.0" - coin: USDT - properties: - coin: - description: coin - example: USDT - type: string - repayAmount: - description: repayAmount - example: "1.0" - type: string - symbol: - description: symbol - example: BTCUSDT - type: string - required: - - coin - - repayAmount - - symbol - title: MarginIsolatedRepayRequest - type: object - MarginIsolatedRepayResult: - example: - symbol: symbol - remainDebtAmount: remainDebtAmount - repayAmount: repayAmount - clientOid: clientOid - coin: coin - properties: - clientOid: - type: string - coin: - type: string - remainDebtAmount: - type: string - repayAmount: - type: string - symbol: - type: string - title: MarginIsolatedRepayResult - type: object - MarginIsolatedVipResult: - properties: - dailyInterestRate: - type: string - discountRate: - type: string - level: - type: string - yearlyInterestRate: - type: string - title: MarginIsolatedVipResult - type: object - MarginLiquidationInfo: - example: - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - ctime: - type: string - liqEndTime: - type: string - liqFee: - type: string - liqId: - type: string - liqRisk: - type: string - liqStartTime: - type: string - totalAssets: - type: string - totalDebt: - type: string - title: MarginLiquidationInfo - type: object - MarginLiquidationInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - - totalAssets: totalAssets - liqFee: liqFee - totalDebt: totalDebt - ctime: ctime - liqEndTime: liqEndTime - liqStartTime: liqStartTime - liqId: liqId - liqRisk: liqRisk - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginLiquidationInfo' - type: array - title: MarginLiquidationInfoResult - type: object - MarginLoanInfo: - example: - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - loanId: - type: string - type: - type: string - title: MarginLoanInfo - type: object - MarginLoanInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - - amount: amount - ctime: ctime - type: type - loanId: loanId - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginLoanInfo' - type: array - title: MarginLoanInfoResult - type: object - MarginOpenOrderInfoResult: - example: - maxId: maxId - orderList: - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - minId: minId - properties: - maxId: - type: string - minId: - type: string - orderList: - items: - $ref: '#/components/schemas/MarginOrderInfo' - type: array - title: MarginOpenOrderInfoResult - type: object - MarginOrderInfo: - example: - orderType: orderType - symbol: symbol - side: side - loanType: loanType - orderId: orderId - fillTotalAmount: fillTotalAmount - source: source - fillPrice: fillPrice - baseQuantity: baseQuantity - price: price - quoteAmount: quoteAmount - ctime: ctime - fillQuantity: fillQuantity - clientOid: clientOid - status: status - properties: - baseQuantity: - type: string - clientOid: - type: string - ctime: - type: string - fillPrice: - type: string - fillQuantity: - type: string - fillTotalAmount: - type: string - loanType: - type: string - orderId: - type: string - orderType: - type: string - price: - type: string - quoteAmount: - type: string - side: - type: string - source: - type: string - status: - type: string - symbol: - type: string - title: MarginOrderInfo - type: object - MarginOrderRequest: - example: - orderType: limit/market - symbol: BTCUSDT_SPBL - side: sell/buy - loanType: normal/autoLoan/autoRepay - baseQuantity: "0.2" - price: "21000" - ip: ip - quoteAmount: "2000" - channelApiCode: channelApiCode - timeInForce: gtc - clientOid: myId0001 - properties: - baseQuantity: - description: baseQuantity - example: "0.2" - type: string - channelApiCode: - type: string - clientOid: - description: clientOid - example: myId0001 - type: string - ip: - type: string - loanType: - description: loanType - example: normal/autoLoan/autoRepay - type: string - orderType: - description: orderType - example: limit/market - type: string - price: - description: price - example: "21000" - type: string - quoteAmount: - description: quoteAmount - example: "2000" - type: string - side: - description: side - example: sell/buy - type: string - symbol: - description: symbol - example: BTCUSDT_SPBL - type: string - timeInForce: - description: timeInForce - example: gtc - type: string - required: - - loanType - - orderType - - side - - symbol - title: MarginOrderRequest - type: object - MarginPlaceOrderResult: - example: - orderId: orderId - clientOid: clientOid - properties: - clientOid: - type: string - orderId: - type: string - title: MarginPlaceOrderResult - type: object - MarginRepayInfo: - example: - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - amount: - type: string - coin: - type: string - ctime: - type: string - interest: - type: string - repayId: - type: string - totalAmount: - type: string - type: - type: string - title: MarginRepayInfo - type: object - MarginRepayInfoResult: - example: - maxId: maxId - minId: minId - resultList: - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - - totalAmount: totalAmount - amount: amount - interest: interest - repayId: repayId - ctime: ctime - type: type - coin: coin - properties: - maxId: - type: string - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MarginRepayInfo' - type: array - title: MarginRepayInfoResult - type: object - MarginSystemResult: - properties: - baseCoin: - type: string - isBorrowable: - type: boolean - liquidationRiskRatio: - type: string - makerFeeRate: - type: string - maxCrossLeverage: - type: string - maxIsolatedLeverage: - type: string - maxTradeAmount: - type: string - minTradeAmount: - type: string - minTradeUSDT: - type: string - priceScale: - type: string - quantityScale: - type: string - quoteCoin: - type: string - status: - type: string - symbol: - type: string - takerFeeRate: - type: string - userMinBorrow: - type: string - warningRiskRatio: - type: string - title: MarginSystemResult - type: object - MarginTradeDetailInfo: - example: - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - ctime: - type: string - feeCcy: - type: string - fees: - type: string - fillId: - type: string - fillPrice: - type: string - fillQuantity: - type: string - fillTotalAmount: - type: string - orderId: - type: string - orderType: - type: string - side: - type: string - title: MarginTradeDetailInfo - type: object - MarginTradeDetailInfoResult: - example: - maxId: maxId - minId: minId - fills: - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - - orderType: orderType - fees: fees - side: side - orderId: orderId - fillId: fillId - ctime: ctime - fillTotalAmount: fillTotalAmount - fillQuantity: fillQuantity - fillPrice: fillPrice - feeCcy: feeCcy - properties: - fills: - items: - $ref: '#/components/schemas/MarginTradeDetailInfo' - type: array - maxId: - type: string - minId: - type: string - title: MarginTradeDetailInfoResult - type: object - MerchantAdvInfo: - example: - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - properties: - advId: - type: string - advNo: - type: string - amount: - type: string - coin: - type: string - coinPrecision: - type: string - ctime: - type: string - dealAmount: - type: string - fiatCode: - type: string - fiatPrecision: - type: string - fiatSymbol: - type: string - hide: - type: string - maxAmount: - type: string - minAmount: - type: string - payDuration: - type: string - paymentMethod: - items: - $ref: '#/components/schemas/FiatPaymentInfo' - type: array - price: - type: string - remark: - type: string - status: - type: string - turnoverNum: - type: string - turnoverRate: - type: string - type: - type: string - userLimit: - $ref: '#/components/schemas/MerchantAdvUserLimitInfo' - title: MerchantAdvInfo - type: object - MerchantAdvResult: - example: - advList: - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - - minAmount: minAmount - amount: amount - fiatPrecision: fiatPrecision - payDuration: payDuration - dealAmount: dealAmount - advId: advId - remark: remark - fiatCode: fiatCode - type: type - advNo: advNo - hide: hide - coinPrecision: coinPrecision - turnoverNum: turnoverNum - price: price - turnoverRate: turnoverRate - ctime: ctime - fiatSymbol: fiatSymbol - paymentMethod: - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - - paymentId: paymentId - paymentMethod: paymentMethod - paymentInfo: - - name: name - type: type - required: true - - name: name - type: type - required: true - maxAmount: maxAmount - userLimit: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - coin: coin - status: status - minId: minId - properties: - advList: - items: - $ref: '#/components/schemas/MerchantAdvInfo' - type: array - minId: - type: string - title: MerchantAdvResult - type: object - MerchantAdvUserLimitInfo: - example: - placeOrderNum: placeOrderNum - country: country - maxCompleteNum: maxCompleteNum - thirtyCompleteRate: thirtyCompleteRate - minCompleteNum: minCompleteNum - allowMerchantPlace: allowMerchantPlace - properties: - allowMerchantPlace: - type: string - country: - type: string - maxCompleteNum: - type: string - minCompleteNum: - type: string - placeOrderNum: - type: string - thirtyCompleteRate: - type: string - title: MerchantAdvUserLimitInfo - type: object - MerchantInfo: - example: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - averagePayment: - type: string - averageRealese: - type: string - isOnline: - type: string - merchantId: - type: string - nickName: - type: string - registerTime: - type: string - thirtyBuy: - type: string - thirtyCompletionRate: - type: string - thirtySell: - type: string - thirtyTrades: - type: string - totalBuy: - type: string - totalCompletionRate: - type: string - totalSell: - type: string - totalTrades: - type: string - title: MerchantInfo - type: object - MerchantInfoResult: - example: - minId: minId - resultList: - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - thirtyBuy: thirtyBuy - isOnline: isOnline - totalTrades: totalTrades - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - properties: - minId: - type: string - resultList: - items: - $ref: '#/components/schemas/MerchantInfo' - type: array - title: MerchantInfoResult - type: object - MerchantOrderInfo: - example: - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - properties: - advNo: - type: string - amount: - type: string - buyerRealName: - type: string - coin: - type: string - count: - type: string - ctime: - type: string - fiat: - type: string - orderId: - type: string - orderNo: - type: string - paymentInfo: - $ref: '#/components/schemas/MerchantOrderPaymentInfo' - paymentTime: - type: string - price: - type: string - releaseCoinTime: - type: string - representTime: - type: string - sellerRealName: - type: string - status: - type: string - type: - type: string - withdrawTime: - type: string - title: MerchantOrderInfo - type: object - MerchantOrderPaymentInfo: - example: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - properties: - paymethodId: - type: string - paymethodInfo: - items: - $ref: '#/components/schemas/OrderPaymentDetailInfo' - type: array - paymethodName: - type: string - title: MerchantOrderPaymentInfo - type: object - MerchantOrderResult: - example: - orderList: - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - - amount: amount - orderNo: orderNo - orderId: orderId - count: count - buyerRealName: buyerRealName - type: type - sellerRealName: sellerRealName - advNo: advNo - price: price - releaseCoinTime: releaseCoinTime - representTime: representTime - ctime: ctime - fiat: fiat - withdrawTime: withdrawTime - paymentTime: paymentTime - paymentInfo: - paymethodName: paymethodName - paymethodInfo: - - name: name - type: type - value: value - required: true - - name: name - type: type - value: value - required: true - paymethodId: paymethodId - coin: coin - status: status - minId: minId - properties: - minId: - type: string - orderList: - items: - $ref: '#/components/schemas/MerchantOrderInfo' - type: array - title: MerchantOrderResult - type: object - MerchantPersonInfo: - example: - totalSell: totalSell - totalCompletionRate: totalCompletionRate - registerTime: registerTime - nickName: nickName - kycFlag: true - mobile: mobile - thirtyBuy: thirtyBuy - totalTrades: totalTrades - emailBindFlag: true - thirtySell: thirtySell - averagePayment: averagePayment - averageRealese: averageRealese - thirtyCompletionRate: thirtyCompletionRate - realName: realName - thirtyTrades: thirtyTrades - merchantId: merchantId - totalBuy: totalBuy - mobileBindFlag: true - email: email - properties: - averagePayment: - type: string - averageRealese: - type: string - email: - type: string - emailBindFlag: - type: boolean - kycFlag: - type: boolean - merchantId: - type: string - mobile: - type: string - mobileBindFlag: - type: boolean - nickName: - type: string - realName: - type: string - registerTime: - type: string - thirtyBuy: - type: string - thirtyCompletionRate: - type: string - thirtySell: - type: string - thirtyTrades: - type: string - totalBuy: - type: string - totalCompletionRate: - type: string - totalSell: - type: string - totalTrades: - type: string - title: MerchantPersonInfo - type: object - OrderPaymentDetailInfo: - example: - name: name - type: type - value: value - required: true - properties: - name: - type: string - required: - type: boolean - type: - type: string - value: - type: string - title: OrderPaymentDetailInfo - type: object - securitySchemes: - ACCESS_KEY: - in: header - name: ACCESS-KEY - type: apiKey - ACCESS_PASSPHRASE: - in: header - name: ACCESS-PASSPHRASE - type: apiKey - ACCESS_SIGN: - in: header - name: ACCESS-SIGN - type: apiKey - ACCESS_TIMESTAMP: - in: header - name: ACCESS-TIMESTAMP - type: apiKey - SECRET_KEY: - in: header - name: SECRET-KEY - type: apiKey -x-original-swagger-version: "2.0" - diff --git a/bitget-java-sdk-open-api/bitget-java-sdk-open-api.iml b/bitget-java-sdk-open-api/bitget-java-sdk-open-api.iml deleted file mode 100644 index 626d0162..00000000 --- a/bitget-java-sdk-open-api/bitget-java-sdk-open-api.iml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/bitget-java-sdk-open-api/build.gradle b/bitget-java-sdk-open-api/build.gradle deleted file mode 100644 index 2b89f7b4..00000000 --- a/bitget-java-sdk-open-api/build.gradle +++ /dev/null @@ -1,168 +0,0 @@ -apply plugin: 'idea' -apply plugin: 'eclipse' -apply plugin: 'java' -apply plugin: 'com.diffplug.spotless' - -group = 'com.upex.contract' -version = '1.0.0' - -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.3.+' - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' - classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0' - } -} - -repositories { - mavenCentral() -} -sourceSets { - main.java.srcDirs = ['src/main/java'] -} - -if(hasProperty('target') && target == 'android') { - - apply plugin: 'com.android.library' - apply plugin: 'com.github.dcendents.android-maven' - - android { - compileSdkVersion 25 - buildToolsVersion '25.0.2' - defaultConfig { - minSdkVersion 14 - targetSdkVersion 25 - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - // Rename the aar correctly - libraryVariants.all { variant -> - variant.outputs.each { output -> - def outputFile = output.outputFile - if (outputFile != null && outputFile.name.endsWith('.aar')) { - def fileName = "${project.name}-${variant.baseName}-${version}.aar" - output.outputFile = new File(outputFile.parent, fileName) - } - } - } - - dependencies { - provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - } - } - - afterEvaluate { - android.libraryVariants.all { variant -> - def task = project.tasks.create "jar${variant.name.capitalize()}", Jar - task.description = "Create jar artifact for ${variant.name}" - task.dependsOn variant.javaCompile - task.from variant.javaCompile.destinationDir - task.destinationDir = project.file("${project.buildDir}/outputs/jar") - task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" - artifacts.add('archives', task) - } - } - - task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' - } - - artifacts { - archives sourcesJar - } - -} else { - - apply plugin: 'java' - apply plugin: 'maven-publish' - - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - - publishing { - publications { - maven(MavenPublication) { - artifactId = 'bitget-java-sdk-open-api' - from components.java - } - } - } - - task execute(type:JavaExec) { - main = System.getProperty('mainClass') - classpath = sourceSets.main.runtimeClasspath - } -} - -ext { - jakarta_annotation_version = "1.3.5" -} - -dependencies { - implementation 'io.swagger:swagger-annotations:1.6.8' - implementation "com.google.code.findbugs:jsr305:3.0.2" - implementation 'com.squareup.okhttp3:okhttp:4.10.0' - implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' - implementation 'com.google.code.gson:gson:2.9.1' - implementation 'io.gsonfire:gson-fire:1.8.5' - implementation 'javax.ws.rs:jsr311-api:1.1.1' - implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' - implementation 'org.openapitools:jackson-databind-nullable:0.2.4' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' - implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1' - testImplementation 'org.mockito:mockito-core:3.12.4' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1' -} - -javadoc { - options.tags = [ "http.response.details:a:Http Response Details" ] -} - -// Use spotless plugin to automatically format code, remove unused import, etc -// To apply changes directly to the file, run `gradlew spotlessApply` -// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle -spotless { - // comment out below to run spotless as part of the `check` task - enforceCheck false - - format 'misc', { - // define the files (e.g. '*.gradle', '*.md') to apply `misc` to - target '.gitignore' - - // define the steps to apply to those files - trimTrailingWhitespace() - indentWithSpaces() // Takes an integer argument if you don't like 4 - endWithNewline() - } - java { - // don't need to set target, it is inferred from java - - // apply a specific flavor of google-java-format - googleJavaFormat('1.8').aosp().reflowLongStrings() - - removeUnusedImports() - importOrder() - } -} - -test { - // Enable JUnit 5 (Gradle 4.6+). - useJUnitPlatform() - - // Always run tests, even when nothing changed. - dependsOn 'cleanTest' - - // Show test results. - testLogging { - events "passed", "skipped", "failed" - } - -} diff --git a/bitget-java-sdk-open-api/build.sbt b/bitget-java-sdk-open-api/build.sbt deleted file mode 100644 index 6d41f6c2..00000000 --- a/bitget-java-sdk-open-api/build.sbt +++ /dev/null @@ -1,28 +0,0 @@ -lazy val root = (project in file(".")). - settings( - organization := "com.upex.contract", - name := "bitget-java-sdk-open-api", - version := "1.0.0", - scalaVersion := "2.11.4", - scalacOptions ++= Seq("-feature"), - javacOptions in compile ++= Seq("-Xlint:deprecation"), - publishArtifact in (Compile, packageDoc) := false, - resolvers += Resolver.mavenLocal, - libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.6.5", - "com.squareup.okhttp3" % "okhttp" % "4.10.0", - "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0", - "com.google.code.gson" % "gson" % "2.9.1", - "org.apache.commons" % "commons-lang3" % "3.12.0", - "javax.ws.rs" % "jsr311-api" % "1.1.1", - "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", - "org.openapitools" % "jackson-databind-nullable" % "0.2.4", - "io.gsonfire" % "gson-fire" % "1.8.5" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test", - "com.novocode" % "junit-interface" % "0.10" % "test", - "org.mockito" % "mockito-core" % "3.12.4" % "test" - ) - ) diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md deleted file mode 100644 index eb441fc7..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginCrossAssetsPopulationResult>**](MarginCrossAssetsPopulationResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md deleted file mode 100644 index 16315852..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossLevelResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginCrossLevelResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginCrossLevelResult>**](MarginCrossLevelResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md deleted file mode 100644 index 93e3fc5b..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginCrossRateAndLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginCrossRateAndLimitResult>**](MarginCrossRateAndLimitResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index 46419fb8..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginIsolatedAssetsPopulationResult>**](MarginIsolatedAssetsPopulationResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md deleted file mode 100644 index f13c93af..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginIsolatedAssetsRiskResult>**](MarginIsolatedAssetsRiskResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md deleted file mode 100644 index 534694b6..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedLevelResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginIsolatedLevelResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginIsolatedLevelResult>**](MarginIsolatedLevelResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md deleted file mode 100644 index 5dfaecf7..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginIsolatedRateAndLimitResult>**](MarginIsolatedRateAndLimitResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md deleted file mode 100644 index 709f2400..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfListOfMarginSystemResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfListOfMarginSystemResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**List<MarginSystemResult>**](MarginSystemResult.md) | data | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md deleted file mode 100644 index 19dea9c0..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchCancelOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginBatchCancelOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginBatchCancelOrderResult**](MarginBatchCancelOrderResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md deleted file mode 100644 index 493e4386..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginBatchPlaceOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginBatchPlaceOrderResult**](MarginBatchPlaceOrderResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md deleted file mode 100644 index 029e352a..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossAssetsResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossAssetsResult**](MarginCrossAssetsResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md deleted file mode 100644 index 7785416e..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossAssetsRiskResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossAssetsRiskResult**](MarginCrossAssetsRiskResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md deleted file mode 100644 index e8ffadfd..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossBorrowLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossBorrowLimitResult**](MarginCrossBorrowLimitResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md deleted file mode 100644 index ee23f2c2..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossFinFlowResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossFinFlowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossFinFlowResult**](MarginCrossFinFlowResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md deleted file mode 100644 index 80abaf5b..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossMaxBorrowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossMaxBorrowResult**](MarginCrossMaxBorrowResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md deleted file mode 100644 index 0b516d31..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginCrossRepayResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginCrossRepayResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginCrossRepayResult**](MarginCrossRepayResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md deleted file mode 100644 index 96dd4421..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginInterestInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginInterestInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginInterestInfoResult**](MarginInterestInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md deleted file mode 100644 index 6f6ba5f1..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedAssetsResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedAssetsResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedAssetsResult**](MarginIsolatedAssetsResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 60288f1b..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedBorrowLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedBorrowLimitResult**](MarginIsolatedBorrowLimitResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md deleted file mode 100644 index a9a31832..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedFinFlowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedFinFlowResult**](MarginIsolatedFinFlowResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md deleted file mode 100644 index d274304b..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedInterestInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedInterestInfoResult**](MarginIsolatedInterestInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index 7b99c72e..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedLiquidationInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedLiquidationInfoResult**](MarginIsolatedLiquidationInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md deleted file mode 100644 index 5d94e3d2..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedLoanInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedLoanInfoResult**](MarginIsolatedLoanInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 0d492231..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedMaxBorrowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedMaxBorrowResult**](MarginIsolatedMaxBorrowResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md deleted file mode 100644 index 69914096..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedRepayInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedRepayInfoResult**](MarginIsolatedRepayInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md deleted file mode 100644 index 4268c52f..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginIsolatedRepayResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginIsolatedRepayResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginIsolatedRepayResult**](MarginIsolatedRepayResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md deleted file mode 100644 index 01936cd5..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLiquidationInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginLiquidationInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginLiquidationInfoResult**](MarginLiquidationInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md deleted file mode 100644 index 8fa63433..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginLoanInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginLoanInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginLoanInfoResult**](MarginLoanInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md deleted file mode 100644 index e12911e5..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginOpenOrderInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginOpenOrderInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginOpenOrderInfoResult**](MarginOpenOrderInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md deleted file mode 100644 index b9627468..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginPlaceOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginPlaceOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginPlaceOrderResult**](MarginPlaceOrderResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md deleted file mode 100644 index 5013adc7..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginRepayInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginRepayInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginRepayInfoResult**](MarginRepayInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md deleted file mode 100644 index e1a77317..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMarginTradeDetailInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMarginTradeDetailInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MarginTradeDetailInfoResult**](MarginTradeDetailInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md deleted file mode 100644 index 6e54a0a4..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantAdvResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMerchantAdvResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MerchantAdvResult**](MerchantAdvResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md deleted file mode 100644 index c9ecd457..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantInfoResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMerchantInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MerchantInfoResult**](MerchantInfoResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md deleted file mode 100644 index cd928fb7..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMerchantOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MerchantOrderResult**](MerchantOrderResult.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md deleted file mode 100644 index d5a51ca6..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfMerchantPersonInfo.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ApiResponseResultOfMerchantPersonInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**data** | [**MerchantPersonInfo**](MerchantPersonInfo.md) | | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/ApiResponseResultOfVoid.md b/bitget-java-sdk-open-api/docs/ApiResponseResultOfVoid.md deleted file mode 100644 index 696fd529..00000000 --- a/bitget-java-sdk-open-api/docs/ApiResponseResultOfVoid.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ApiResponseResultOfVoid - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | code | [optional] | -|**msg** | **String** | msg | [optional] | -|**requestTime** | **Long** | requestTime | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/FiatPaymentDetailInfo.md b/bitget-java-sdk-open-api/docs/FiatPaymentDetailInfo.md deleted file mode 100644 index 12fb782a..00000000 --- a/bitget-java-sdk-open-api/docs/FiatPaymentDetailInfo.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# FiatPaymentDetailInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | -|**required** | **Boolean** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/FiatPaymentInfo.md b/bitget-java-sdk-open-api/docs/FiatPaymentInfo.md deleted file mode 100644 index 152f2325..00000000 --- a/bitget-java-sdk-open-api/docs/FiatPaymentInfo.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# FiatPaymentInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**paymentId** | **String** | | [optional] | -|**paymentInfo** | [**List<FiatPaymentDetailInfo>**](FiatPaymentDetailInfo.md) | | [optional] | -|**paymentMethod** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderRequest.md b/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderRequest.md deleted file mode 100644 index 71173d9f..00000000 --- a/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginBatchCancelOrderRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOids** | **List<String>** | clientOids | [optional] | -|**orderIds** | **List<String>** | orderIds | [optional] | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderResult.md b/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderResult.md deleted file mode 100644 index 9dfcca31..00000000 --- a/bitget-java-sdk-open-api/docs/MarginBatchCancelOrderResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginBatchCancelOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**failure** | [**List<MarginCancelOrderFailureResult>**](MarginCancelOrderFailureResult.md) | | [optional] | -|**resultList** | [**List<MarginCancelOrderResult>**](MarginCancelOrderResult.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginBatchOrdersRequest.md b/bitget-java-sdk-open-api/docs/MarginBatchOrdersRequest.md deleted file mode 100644 index 13444213..00000000 --- a/bitget-java-sdk-open-api/docs/MarginBatchOrdersRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MarginBatchOrdersRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**channelApiCode** | **String** | | [optional] | -|**ip** | **String** | | [optional] | -|**orderList** | [**List<MarginOrderRequest>**](MarginOrderRequest.md) | | [optional] | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md b/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md deleted file mode 100644 index f0eae702..00000000 --- a/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderFailureResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginBatchPlaceOrderFailureResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**errorMsg** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderResult.md b/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderResult.md deleted file mode 100644 index ee259911..00000000 --- a/bitget-java-sdk-open-api/docs/MarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginBatchPlaceOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**failure** | [**List<MarginBatchPlaceOrderFailureResult>**](MarginBatchPlaceOrderFailureResult.md) | | [optional] | -|**resultList** | [**List<MarginCancelOrderResult>**](MarginCancelOrderResult.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCancelOrderFailureResult.md b/bitget-java-sdk-open-api/docs/MarginCancelOrderFailureResult.md deleted file mode 100644 index b61c7175..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCancelOrderFailureResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginCancelOrderFailureResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**errorMsg** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCancelOrderRequest.md b/bitget-java-sdk-open-api/docs/MarginCancelOrderRequest.md deleted file mode 100644 index f1d8c1d0..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCancelOrderRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginCancelOrderRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | clientOid | [optional] | -|**orderId** | **String** | orderId | [optional] | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCancelOrderResult.md b/bitget-java-sdk-open-api/docs/MarginCancelOrderResult.md deleted file mode 100644 index 59065a58..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCancelOrderResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginCancelOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossAccountApi.md b/bitget-java-sdk-open-api/docs/MarginCrossAccountApi.md deleted file mode 100644 index c5f6c1da..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossAccountApi.md +++ /dev/null @@ -1,679 +0,0 @@ -# MarginCrossAccountApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**callVoid**](MarginCrossAccountApi.md#callVoid) | **GET** /api/margin/v1/cross/account/void | void | -| [**marginCrossAccountAssets**](MarginCrossAccountApi.md#marginCrossAccountAssets) | **GET** /api/margin/v1/cross/account/assets | assets | -| [**marginCrossAccountBorrow**](MarginCrossAccountApi.md#marginCrossAccountBorrow) | **POST** /api/margin/v1/cross/account/borrow | borrow | -| [**marginCrossAccountMaxBorrowableAmount**](MarginCrossAccountApi.md#marginCrossAccountMaxBorrowableAmount) | **POST** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount | -| [**marginCrossAccountMaxTransferOutAmount**](MarginCrossAccountApi.md#marginCrossAccountMaxTransferOutAmount) | **GET** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount | -| [**marginCrossAccountRepay**](MarginCrossAccountApi.md#marginCrossAccountRepay) | **POST** /api/margin/v1/cross/account/repay | repay | -| [**marginCrossAccountRiskRate**](MarginCrossAccountApi.md#marginCrossAccountRiskRate) | **GET** /api/margin/v1/cross/account/riskRate | riskRate | - - - -# **callVoid** -> ApiResponseResultOfVoid callVoid() - -void - -empty - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - try { - ApiResponseResultOfVoid result = apiInstance.callVoid(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#callVoid"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ApiResponseResultOfVoid**](ApiResponseResultOfVoid.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountAssets** -> ApiResponseResultOfListOfMarginCrossAssetsPopulationResult marginCrossAccountAssets(coin) - -assets - -Get Assets - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - String coin = "USDT"; // String | coin - try { - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult result = apiInstance.marginCrossAccountAssets(coin); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **coin** | **String**| coin | | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossAssetsPopulationResult**](ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountBorrow** -> ApiResponseResultOfMarginCrossBorrowLimitResult marginCrossAccountBorrow(marginCrossLimitRequest) - -borrow - -borrow - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - MarginCrossLimitRequest marginCrossLimitRequest = new MarginCrossLimitRequest(); // MarginCrossLimitRequest | marginCrossLimitRequest - try { - ApiResponseResultOfMarginCrossBorrowLimitResult result = apiInstance.marginCrossAccountBorrow(marginCrossLimitRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountBorrow"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginCrossLimitRequest** | [**MarginCrossLimitRequest**](MarginCrossLimitRequest.md)| marginCrossLimitRequest | | - -### Return type - -[**ApiResponseResultOfMarginCrossBorrowLimitResult**](ApiResponseResultOfMarginCrossBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountMaxBorrowableAmount** -> ApiResponseResultOfMarginCrossMaxBorrowResult marginCrossAccountMaxBorrowableAmount(marginCrossMaxBorrowRequest) - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest = new MarginCrossMaxBorrowRequest(); // MarginCrossMaxBorrowRequest | marginCrossMaxBorrowRequest - try { - ApiResponseResultOfMarginCrossMaxBorrowResult result = apiInstance.marginCrossAccountMaxBorrowableAmount(marginCrossMaxBorrowRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountMaxBorrowableAmount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginCrossMaxBorrowRequest** | [**MarginCrossMaxBorrowRequest**](MarginCrossMaxBorrowRequest.md)| marginCrossMaxBorrowRequest | | - -### Return type - -[**ApiResponseResultOfMarginCrossMaxBorrowResult**](ApiResponseResultOfMarginCrossMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountMaxTransferOutAmount** -> ApiResponseResultOfMarginCrossAssetsResult marginCrossAccountMaxTransferOutAmount(coin) - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - String coin = "USDT"; // String | coin - try { - ApiResponseResultOfMarginCrossAssetsResult result = apiInstance.marginCrossAccountMaxTransferOutAmount(coin); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountMaxTransferOutAmount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **coin** | **String**| coin | | - -### Return type - -[**ApiResponseResultOfMarginCrossAssetsResult**](ApiResponseResultOfMarginCrossAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountRepay** -> ApiResponseResultOfMarginCrossRepayResult marginCrossAccountRepay(marginCrossRepayRequest) - -repay - -repay - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - MarginCrossRepayRequest marginCrossRepayRequest = new MarginCrossRepayRequest(); // MarginCrossRepayRequest | marginCrossRepayRequest - try { - ApiResponseResultOfMarginCrossRepayResult result = apiInstance.marginCrossAccountRepay(marginCrossRepayRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountRepay"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginCrossRepayRequest** | [**MarginCrossRepayRequest**](MarginCrossRepayRequest.md)| marginCrossRepayRequest | | - -### Return type - -[**ApiResponseResultOfMarginCrossRepayResult**](ApiResponseResultOfMarginCrossRepayResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossAccountRiskRate** -> ApiResponseResultOfMarginCrossAssetsRiskResult marginCrossAccountRiskRate() - -riskRate - -riskRate - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossAccountApi apiInstance = new MarginCrossAccountApi(defaultClient); - try { - ApiResponseResultOfMarginCrossAssetsRiskResult result = apiInstance.marginCrossAccountRiskRate(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossAccountApi#marginCrossAccountRiskRate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ApiResponseResultOfMarginCrossAssetsRiskResult**](ApiResponseResultOfMarginCrossAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md b/bitget-java-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md deleted file mode 100644 index aa2b9deb..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginCrossAssetsPopulationResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**available** | **String** | | [optional] | -|**borrow** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**frozen** | **String** | | [optional] | -|**interest** | **String** | | [optional] | -|**net** | **String** | | [optional] | -|**totalAmount** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossAssetsResult.md b/bitget-java-sdk-open-api/docs/MarginCrossAssetsResult.md deleted file mode 100644 index 5e46b50d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossAssetsResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginCrossAssetsResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | | [optional] | -|**maxTransferOutAmount** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossAssetsRiskResult.md b/bitget-java-sdk-open-api/docs/MarginCrossAssetsRiskResult.md deleted file mode 100644 index e9a83991..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# MarginCrossAssetsRiskResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**riskRate** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossBorrowApi.md b/bitget-java-sdk-open-api/docs/MarginCrossBorrowApi.md deleted file mode 100644 index c7f6ce7f..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossBorrowApi.md +++ /dev/null @@ -1,115 +0,0 @@ -# MarginCrossBorrowApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**crossLoanList**](MarginCrossBorrowApi.md#crossLoanList) | **GET** /api/margin/v1/cross/loan/list | list | - - - -# **crossLoanList** -> ApiResponseResultOfMarginLoanInfoResult crossLoanList(startTime, coin, endTime, loanId, pageSize, pageId) - -list - -Get Loan List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossBorrowApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossBorrowApi apiInstance = new MarginCrossBorrowApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String endTime = "1678193338000"; // String | endTime - String loanId = "loanId_example"; // String | loanId - String pageSize = "10"; // String | pageSize - String pageId = "minId"; // String | pageId - try { - ApiResponseResultOfMarginLoanInfoResult result = apiInstance.crossLoanList(startTime, coin, endTime, loanId, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossBorrowApi#crossLoanList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **loanId** | **String**| loanId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginLoanInfoResult**](ApiResponseResultOfMarginLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossBorrowLimitResult.md b/bitget-java-sdk-open-api/docs/MarginCrossBorrowLimitResult.md deleted file mode 100644 index 2b8db373..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginCrossBorrowLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**borrowAmount** | **String** | | [optional] | -|**clientOid** | **String** | | [optional] | -|**coin** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossFinFlowInfo.md b/bitget-java-sdk-open-api/docs/MarginCrossFinFlowInfo.md deleted file mode 100644 index 96162605..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossFinFlowInfo.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# MarginCrossFinFlowInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**balance** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**fee** | **String** | | [optional] | -|**marginId** | **String** | | [optional] | -|**marginType** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossFinFlowResult.md b/bitget-java-sdk-open-api/docs/MarginCrossFinFlowResult.md deleted file mode 100644 index 045837e6..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossFinFlowResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginCrossFinFlowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginCrossFinFlowInfo>**](MarginCrossFinFlowInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossFinflowApi.md b/bitget-java-sdk-open-api/docs/MarginCrossFinflowApi.md deleted file mode 100644 index a8dc333d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossFinflowApi.md +++ /dev/null @@ -1,115 +0,0 @@ -# MarginCrossFinflowApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**crossFinList**](MarginCrossFinflowApi.md#crossFinList) | **GET** /api/margin/v1/cross/fin/list | list | - - - -# **crossFinList** -> ApiResponseResultOfMarginCrossFinFlowResult crossFinList(startTime, coin, endTime, marginType, pageSize, pageId) - -list - -Get finance flow List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossFinflowApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossFinflowApi apiInstance = new MarginCrossFinflowApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String endTime = "1678193338000"; // String | endTime - String marginType = "transfer_in"; // String | marginType - String pageSize = "10"; // String | pageSize - String pageId = "minId"; // String | pageId - try { - ApiResponseResultOfMarginCrossFinFlowResult result = apiInstance.crossFinList(startTime, coin, endTime, marginType, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossFinflowApi#crossFinList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **marginType** | **String**| marginType | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginCrossFinFlowResult**](ApiResponseResultOfMarginCrossFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossInterestApi.md b/bitget-java-sdk-open-api/docs/MarginCrossInterestApi.md deleted file mode 100644 index 8b1ca85d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossInterestApi.md +++ /dev/null @@ -1,111 +0,0 @@ -# MarginCrossInterestApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**crossInterestList**](MarginCrossInterestApi.md#crossInterestList) | **GET** /api/margin/v1/cross/interest/list | list | - - - -# **crossInterestList** -> ApiResponseResultOfMarginInterestInfoResult crossInterestList(startTime, coin, pageSize, pageId) - -list - -Get interest List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossInterestApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossInterestApi apiInstance = new MarginCrossInterestApi(defaultClient); - String startTime = "1678193138000"; // String | startTime - String coin = "USDT"; // String | coin - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginInterestInfoResult result = apiInstance.crossInterestList(startTime, coin, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossInterestApi#crossInterestList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginInterestInfoResult**](ApiResponseResultOfMarginInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossLevelResult.md b/bitget-java-sdk-open-api/docs/MarginCrossLevelResult.md deleted file mode 100644 index 56fe40f9..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossLevelResult.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# MarginCrossLevelResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | | [optional] | -|**leverage** | **String** | | [optional] | -|**maintainMarginRate** | **String** | | [optional] | -|**maxBorrowableAmount** | **String** | | [optional] | -|**tier** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossLimitRequest.md b/bitget-java-sdk-open-api/docs/MarginCrossLimitRequest.md deleted file mode 100644 index 96385a81..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossLimitRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginCrossLimitRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**borrowAmount** | **String** | borrowAmount | | -|**coin** | **String** | coin | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossLiquidationApi.md b/bitget-java-sdk-open-api/docs/MarginCrossLiquidationApi.md deleted file mode 100644 index d2485b67..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossLiquidationApi.md +++ /dev/null @@ -1,111 +0,0 @@ -# MarginCrossLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**crossLiquidationList**](MarginCrossLiquidationApi.md#crossLiquidationList) | **GET** /api/margin/v1/cross/liquidation/list | list | - - - -# **crossLiquidationList** -> ApiResponseResultOfMarginLiquidationInfoResult crossLiquidationList(startTime, endTime, pageSize, pageId) - -list - -Get liquidation List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossLiquidationApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossLiquidationApi apiInstance = new MarginCrossLiquidationApi(defaultClient); - String startTime = "1678193138000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginLiquidationInfoResult result = apiInstance.crossLiquidationList(startTime, endTime, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossLiquidationApi#crossLiquidationList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginLiquidationInfoResult**](ApiResponseResultOfMarginLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md b/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md deleted file mode 100644 index 76dee0f6..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# MarginCrossMaxBorrowRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | coin | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowResult.md b/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowResult.md deleted file mode 100644 index bf7193f5..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginCrossMaxBorrowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | | [optional] | -|**maxBorrowableAmount** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossOrderApi.md b/bitget-java-sdk-open-api/docs/MarginCrossOrderApi.md deleted file mode 100644 index 01333ce3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossOrderApi.md +++ /dev/null @@ -1,723 +0,0 @@ -# MarginCrossOrderApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginCrossBatchCancelOrder**](MarginCrossOrderApi.md#marginCrossBatchCancelOrder) | **POST** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder | -| [**marginCrossBatchPlaceOrder**](MarginCrossOrderApi.md#marginCrossBatchPlaceOrder) | **POST** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder | -| [**marginCrossCancelOrder**](MarginCrossOrderApi.md#marginCrossCancelOrder) | **POST** /api/margin/v1/cross/order/cancelOrder | cancelOrder | -| [**marginCrossFills**](MarginCrossOrderApi.md#marginCrossFills) | **GET** /api/margin/v1/cross/order/fills | fills | -| [**marginCrossHistoryOrders**](MarginCrossOrderApi.md#marginCrossHistoryOrders) | **GET** /api/margin/v1/cross/order/history | history | -| [**marginCrossOpenOrders**](MarginCrossOrderApi.md#marginCrossOpenOrders) | **GET** /api/margin/v1/cross/order/openOrders | openOrders | -| [**marginCrossPlaceOrder**](MarginCrossOrderApi.md#marginCrossPlaceOrder) | **POST** /api/margin/v1/cross/order/placeOrder | placeOrder | - - - -# **marginCrossBatchCancelOrder** -> ApiResponseResultOfMarginBatchCancelOrderResult marginCrossBatchCancelOrder(marginBatchCancelOrderRequest) - -batchCancelOrder - -Margin Cross BatchCancelOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - MarginBatchCancelOrderRequest marginBatchCancelOrderRequest = new MarginBatchCancelOrderRequest(); // MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - try { - ApiResponseResultOfMarginBatchCancelOrderResult result = apiInstance.marginCrossBatchCancelOrder(marginBatchCancelOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossBatchCancelOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginBatchCancelOrderRequest** | [**MarginBatchCancelOrderRequest**](MarginBatchCancelOrderRequest.md)| marginBatchCancelOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossBatchPlaceOrder** -> ApiResponseResultOfMarginBatchPlaceOrderResult marginCrossBatchPlaceOrder(marginOrderRequest) - -batchPlaceOrder - -Margin Cross PlaceOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - MarginBatchOrdersRequest marginOrderRequest = new MarginBatchOrdersRequest(); // MarginBatchOrdersRequest | marginOrderRequest - try { - ApiResponseResultOfMarginBatchPlaceOrderResult result = apiInstance.marginCrossBatchPlaceOrder(marginOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossBatchPlaceOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginOrderRequest** | [**MarginBatchOrdersRequest**](MarginBatchOrdersRequest.md)| marginOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossCancelOrder** -> ApiResponseResultOfMarginBatchCancelOrderResult marginCrossCancelOrder(marginCancelOrderRequest) - -cancelOrder - -Margin Cross CancelOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - MarginCancelOrderRequest marginCancelOrderRequest = new MarginCancelOrderRequest(); // MarginCancelOrderRequest | marginCancelOrderRequest - try { - ApiResponseResultOfMarginBatchCancelOrderResult result = apiInstance.marginCrossCancelOrder(marginCancelOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossCancelOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginCancelOrderRequest** | [**MarginCancelOrderRequest**](MarginCancelOrderRequest.md)| marginCancelOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossFills** -> ApiResponseResultOfMarginTradeDetailInfoResult marginCrossFills(symbol, startTime, source, endTime, orderId, lastFillId, pageSize) - -fills - -Margin Cross Fills - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String source = "API"; // String | source - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String lastFillId = "lastFillId_example"; // String | lastFillId - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMarginTradeDetailInfoResult result = apiInstance.marginCrossFills(symbol, startTime, source, endTime, orderId, lastFillId, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossFills"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **source** | **String**| source | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **lastFillId** | **String**| lastFillId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMarginTradeDetailInfoResult**](ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossHistoryOrders** -> ApiResponseResultOfMarginOpenOrderInfoResult marginCrossHistoryOrders(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize) - -history - -Margin Cross historyOrders - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String source = "API"; // String | source - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String clientOid = "123456"; // String | clientOid - String minId = "minId_example"; // String | minId - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMarginOpenOrderInfoResult result = apiInstance.marginCrossHistoryOrders(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossHistoryOrders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **source** | **String**| source | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **clientOid** | **String**| clientOid | [optional] | -| **minId** | **String**| minId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossOpenOrders** -> ApiResponseResultOfMarginOpenOrderInfoResult marginCrossOpenOrders(symbol, startTime, endTime, orderId, clientOid, pageSize) - -openOrders - -Margin Cross openOrders - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String clientOid = "123456"; // String | clientOid - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMarginOpenOrderInfoResult result = apiInstance.marginCrossOpenOrders(symbol, startTime, endTime, orderId, clientOid, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossOpenOrders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **clientOid** | **String**| clientOid | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossPlaceOrder** -> ApiResponseResultOfMarginPlaceOrderResult marginCrossPlaceOrder(marginOrderRequest) - -placeOrder - -Margin Cross PlaceOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossOrderApi apiInstance = new MarginCrossOrderApi(defaultClient); - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); // MarginOrderRequest | marginOrderRequest - try { - ApiResponseResultOfMarginPlaceOrderResult result = apiInstance.marginCrossPlaceOrder(marginOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossOrderApi#marginCrossPlaceOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginOrderRequest** | [**MarginOrderRequest**](MarginOrderRequest.md)| marginOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginPlaceOrderResult**](ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossPublicApi.md b/bitget-java-sdk-open-api/docs/MarginCrossPublicApi.md deleted file mode 100644 index 3c061376..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossPublicApi.md +++ /dev/null @@ -1,140 +0,0 @@ -# MarginCrossPublicApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginCrossPublicInterestRateAndLimit**](MarginCrossPublicApi.md#marginCrossPublicInterestRateAndLimit) | **GET** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit | -| [**marginCrossPublicTierData**](MarginCrossPublicApi.md#marginCrossPublicTierData) | **GET** /api/margin/v1/cross/public/tierData | tierData | - - - -# **marginCrossPublicInterestRateAndLimit** -> ApiResponseResultOfListOfMarginCrossRateAndLimitResult marginCrossPublicInterestRateAndLimit(coin) - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossPublicApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - MarginCrossPublicApi apiInstance = new MarginCrossPublicApi(defaultClient); - String coin = "USDT"; // String | coin - try { - ApiResponseResultOfListOfMarginCrossRateAndLimitResult result = apiInstance.marginCrossPublicInterestRateAndLimit(coin); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossPublicApi#marginCrossPublicInterestRateAndLimit"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **coin** | **String**| coin | | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossRateAndLimitResult**](ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginCrossPublicTierData** -> ApiResponseResultOfListOfMarginCrossLevelResult marginCrossPublicTierData(coin) - -tierData - -Get TierData - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossPublicApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - MarginCrossPublicApi apiInstance = new MarginCrossPublicApi(defaultClient); - String coin = "USDT"; // String | coin - try { - ApiResponseResultOfListOfMarginCrossLevelResult result = apiInstance.marginCrossPublicTierData(coin); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossPublicApi#marginCrossPublicTierData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **coin** | **String**| coin | | - -### Return type - -[**ApiResponseResultOfListOfMarginCrossLevelResult**](ApiResponseResultOfListOfMarginCrossLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossRateAndLimitResult.md b/bitget-java-sdk-open-api/docs/MarginCrossRateAndLimitResult.md deleted file mode 100644 index c0529bf7..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginCrossRateAndLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**borrowAble** | **Boolean** | | [optional] | -|**coin** | **String** | | [optional] | -|**dailyInterestRate** | **String** | | [optional] | -|**leverage** | **String** | | [optional] | -|**maxBorrowableAmount** | **String** | | [optional] | -|**transferInAble** | **Boolean** | | [optional] | -|**vips** | [**List<MarginCrossVipResult>**](MarginCrossVipResult.md) | | [optional] | -|**yearlyInterestRate** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossRepayApi.md b/bitget-java-sdk-open-api/docs/MarginCrossRepayApi.md deleted file mode 100644 index b1af3aa8..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossRepayApi.md +++ /dev/null @@ -1,115 +0,0 @@ -# MarginCrossRepayApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**crossRepayList**](MarginCrossRepayApi.md#crossRepayList) | **GET** /api/margin/v1/cross/repay/list | list | - - - -# **crossRepayList** -> ApiResponseResultOfMarginRepayInfoResult crossRepayList(startTime, coin, repayId, endTime, pageSize, pageId) - -list - -Get liquidation List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginCrossRepayApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginCrossRepayApi apiInstance = new MarginCrossRepayApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String repayId = "32428347234"; // String | repayId - String endTime = "1678193338000"; // String | endTime - String pageSize = "10"; // String | pageSize - String pageId = "minId"; // String | pageId - try { - ApiResponseResultOfMarginRepayInfoResult result = apiInstance.crossRepayList(startTime, coin, repayId, endTime, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginCrossRepayApi#crossRepayList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **repayId** | **String**| repayId | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginRepayInfoResult**](ApiResponseResultOfMarginRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossRepayRequest.md b/bitget-java-sdk-open-api/docs/MarginCrossRepayRequest.md deleted file mode 100644 index 6ad02017..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossRepayRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginCrossRepayRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | coin | | -|**repayAmount** | **String** | repayAmount | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossRepayResult.md b/bitget-java-sdk-open-api/docs/MarginCrossRepayResult.md deleted file mode 100644 index 16c68d1d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossRepayResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MarginCrossRepayResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**remainDebtAmount** | **String** | | [optional] | -|**repayAmount** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginCrossVipResult.md b/bitget-java-sdk-open-api/docs/MarginCrossVipResult.md deleted file mode 100644 index c1af82c3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginCrossVipResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MarginCrossVipResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dailyInterestRate** | **String** | | [optional] | -|**discountRate** | **String** | | [optional] | -|**level** | **String** | | [optional] | -|**yearlyInterestRate** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginInterestInfo.md b/bitget-java-sdk-open-api/docs/MarginInterestInfo.md deleted file mode 100644 index 8f842526..00000000 --- a/bitget-java-sdk-open-api/docs/MarginInterestInfo.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# MarginInterestInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**interestCoin** | **String** | | [optional] | -|**interestId** | **String** | | [optional] | -|**interestRate** | **String** | | [optional] | -|**loanCoin** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginInterestInfoResult.md b/bitget-java-sdk-open-api/docs/MarginInterestInfoResult.md deleted file mode 100644 index ae2e67a3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginInterestInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginInterestInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginInterestInfo>**](MarginInterestInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedAccountApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedAccountApi.md deleted file mode 100644 index 95ed80b9..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedAccountApi.md +++ /dev/null @@ -1,592 +0,0 @@ -# MarginIsolatedAccountApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginIsolatedAccountAssets**](MarginIsolatedAccountApi.md#marginIsolatedAccountAssets) | **GET** /api/margin/v1/isolated/account/assets | assets | -| [**marginIsolatedAccountBorrow**](MarginIsolatedAccountApi.md#marginIsolatedAccountBorrow) | **POST** /api/margin/v1/isolated/account/borrow | borrow | -| [**marginIsolatedAccountMaxBorrowableAmount**](MarginIsolatedAccountApi.md#marginIsolatedAccountMaxBorrowableAmount) | **POST** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount | -| [**marginIsolatedAccountMaxTransferOutAmount**](MarginIsolatedAccountApi.md#marginIsolatedAccountMaxTransferOutAmount) | **GET** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount | -| [**marginIsolatedAccountRepay**](MarginIsolatedAccountApi.md#marginIsolatedAccountRepay) | **POST** /api/margin/v1/isolated/account/repay | repay | -| [**marginIsolatedAccountRiskRate**](MarginIsolatedAccountApi.md#marginIsolatedAccountRiskRate) | **POST** /api/margin/v1/isolated/account/riskRate | riskRate | - - - -# **marginIsolatedAccountAssets** -> ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult marginIsolatedAccountAssets(symbol) - -assets - -Get Assets - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - try { - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult result = apiInstance.marginIsolatedAccountAssets(symbol); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult**](ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedAccountBorrow** -> ApiResponseResultOfMarginIsolatedBorrowLimitResult marginIsolatedAccountBorrow(marginIsolatedLimitRequest) - -borrow - -borrow - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - MarginIsolatedLimitRequest marginIsolatedLimitRequest = new MarginIsolatedLimitRequest(); // MarginIsolatedLimitRequest | marginIsolatedLimitRequest - try { - ApiResponseResultOfMarginIsolatedBorrowLimitResult result = apiInstance.marginIsolatedAccountBorrow(marginIsolatedLimitRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountBorrow"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginIsolatedLimitRequest** | [**MarginIsolatedLimitRequest**](MarginIsolatedLimitRequest.md)| marginIsolatedLimitRequest | | - -### Return type - -[**ApiResponseResultOfMarginIsolatedBorrowLimitResult**](ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedAccountMaxBorrowableAmount** -> ApiResponseResultOfMarginIsolatedMaxBorrowResult marginIsolatedAccountMaxBorrowableAmount(marginIsolatedMaxBorrowRequest) - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest = new MarginIsolatedMaxBorrowRequest(); // MarginIsolatedMaxBorrowRequest | marginIsolatedMaxBorrowRequest - try { - ApiResponseResultOfMarginIsolatedMaxBorrowResult result = apiInstance.marginIsolatedAccountMaxBorrowableAmount(marginIsolatedMaxBorrowRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountMaxBorrowableAmount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginIsolatedMaxBorrowRequest** | [**MarginIsolatedMaxBorrowRequest**](MarginIsolatedMaxBorrowRequest.md)| marginIsolatedMaxBorrowRequest | | - -### Return type - -[**ApiResponseResultOfMarginIsolatedMaxBorrowResult**](ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedAccountMaxTransferOutAmount** -> ApiResponseResultOfMarginIsolatedAssetsResult marginIsolatedAccountMaxTransferOutAmount(coin, symbol) - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - String coin = "USDT"; // String | coin - String symbol = "BTCUSDT"; // String | symbol - try { - ApiResponseResultOfMarginIsolatedAssetsResult result = apiInstance.marginIsolatedAccountMaxTransferOutAmount(coin, symbol); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountMaxTransferOutAmount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **coin** | **String**| coin | | -| **symbol** | **String**| symbol | | - -### Return type - -[**ApiResponseResultOfMarginIsolatedAssetsResult**](ApiResponseResultOfMarginIsolatedAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedAccountRepay** -> ApiResponseResultOfMarginIsolatedRepayResult marginIsolatedAccountRepay(marginIsolatedRepayRequest) - -repay - -repay - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - MarginIsolatedRepayRequest marginIsolatedRepayRequest = new MarginIsolatedRepayRequest(); // MarginIsolatedRepayRequest | marginIsolatedRepayRequest - try { - ApiResponseResultOfMarginIsolatedRepayResult result = apiInstance.marginIsolatedAccountRepay(marginIsolatedRepayRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountRepay"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginIsolatedRepayRequest** | [**MarginIsolatedRepayRequest**](MarginIsolatedRepayRequest.md)| marginIsolatedRepayRequest | | - -### Return type - -[**ApiResponseResultOfMarginIsolatedRepayResult**](ApiResponseResultOfMarginIsolatedRepayResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedAccountRiskRate** -> ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult marginIsolatedAccountRiskRate(marginIsolatedAssetsRiskRequest) - -riskRate - -riskRate - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedAccountApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedAccountApi apiInstance = new MarginIsolatedAccountApi(defaultClient); - MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest = new MarginIsolatedAssetsRiskRequest(); // MarginIsolatedAssetsRiskRequest | marginIsolatedAssetsRiskRequest - try { - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult result = apiInstance.marginIsolatedAccountRiskRate(marginIsolatedAssetsRiskRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedAccountApi#marginIsolatedAccountRiskRate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginIsolatedAssetsRiskRequest** | [**MarginIsolatedAssetsRiskRequest**](MarginIsolatedAssetsRiskRequest.md)| marginIsolatedAssetsRiskRequest | | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult**](ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index fbedff40..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# MarginIsolatedAssetsPopulationResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**available** | **String** | | [optional] | -|**borrow** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**frozen** | **String** | | [optional] | -|**interest** | **String** | | [optional] | -|**net** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**totalAmount** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsResult.md deleted file mode 100644 index 0ee6926c..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedAssetsResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | | [optional] | -|**maxTransferOutAmount** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md b/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md deleted file mode 100644 index ff9f467e..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedAssetsRiskRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**pageNum** | **String** | pageNum | [optional] | -|**pageSize** | **String** | pageSize | [optional] | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md deleted file mode 100644 index ca65503e..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginIsolatedAssetsRiskResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**riskRate** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowApi.md deleted file mode 100644 index 240784f3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowApi.md +++ /dev/null @@ -1,117 +0,0 @@ -# MarginIsolatedBorrowApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**isolatedLoanList**](MarginIsolatedBorrowApi.md#isolatedLoanList) | **GET** /api/margin/v1/isolated/loan/list | list | - - - -# **isolatedLoanList** -> ApiResponseResultOfMarginIsolatedLoanInfoResult isolatedLoanList(symbol, startTime, coin, endTime, loanId, pageSize, pageId) - -list - -Get Loan List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedBorrowApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedBorrowApi apiInstance = new MarginIsolatedBorrowApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String endTime = "1678193338000"; // String | endTime - String loanId = "loanId_example"; // String | loanId - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginIsolatedLoanInfoResult result = apiInstance.isolatedLoanList(symbol, startTime, coin, endTime, loanId, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedBorrowApi#isolatedLoanList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **loanId** | **String**| loanId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginIsolatedLoanInfoResult**](ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 775e1ef3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MarginIsolatedBorrowLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**borrowAmount** | **String** | | [optional] | -|**clientOid** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md b/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md deleted file mode 100644 index 96616f6d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowInfo.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginIsolatedFinFlowInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**balance** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**fee** | **String** | | [optional] | -|**marginId** | **String** | | [optional] | -|**marginType** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowResult.md deleted file mode 100644 index 8af836f8..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedFinFlowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginIsolatedFinFlowInfo>**](MarginIsolatedFinFlowInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedFinflowApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedFinflowApi.md deleted file mode 100644 index 8894a2bf..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedFinflowApi.md +++ /dev/null @@ -1,119 +0,0 @@ -# MarginIsolatedFinflowApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**isolatedFinList**](MarginIsolatedFinflowApi.md#isolatedFinList) | **GET** /api/margin/v1/isolated/fin/list | list | - - - -# **isolatedFinList** -> ApiResponseResultOfMarginIsolatedFinFlowResult isolatedFinList(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId) - -list - -Get finance flow List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedFinflowApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedFinflowApi apiInstance = new MarginIsolatedFinflowApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String marginType = "transfer_in"; // String | marginType - String endTime = "1678193338000"; // String | endTime - String loanId = "loanId_example"; // String | loanId - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginIsolatedFinFlowResult result = apiInstance.isolatedFinList(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedFinflowApi#isolatedFinList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **marginType** | **String**| marginType | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **loanId** | **String**| loanId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginIsolatedFinFlowResult**](ApiResponseResultOfMarginIsolatedFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedInterestApi.md deleted file mode 100644 index 07796486..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestApi.md +++ /dev/null @@ -1,113 +0,0 @@ -# MarginIsolatedInterestApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**isolatedInterestList**](MarginIsolatedInterestApi.md#isolatedInterestList) | **GET** /api/margin/v1/isolated/interest/list | list | - - - -# **isolatedInterestList** -> ApiResponseResultOfMarginIsolatedInterestInfoResult isolatedInterestList(symbol, startTime, coin, pageSize, pageId) - -list - -Get interest List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedInterestApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedInterestApi apiInstance = new MarginIsolatedInterestApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193138000"; // String | startTime - String coin = "USDT"; // String | coin - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginIsolatedInterestInfoResult result = apiInstance.isolatedInterestList(symbol, startTime, coin, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedInterestApi#isolatedInterestList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginIsolatedInterestInfoResult**](ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfo.md b/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfo.md deleted file mode 100644 index 0c5e3975..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfo.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginIsolatedInterestInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**interestCoin** | **String** | | [optional] | -|**interestId** | **String** | | [optional] | -|**interestRate** | **String** | | [optional] | -|**loanCoin** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md deleted file mode 100644 index 129eddfa..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedInterestInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginIsolatedInterestInfo>**](MarginIsolatedInterestInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLevelResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLevelResult.md deleted file mode 100644 index f2a07189..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLevelResult.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# MarginIsolatedLevelResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseCoin** | **String** | | [optional] | -|**baseMaxBorrowableAmount** | **String** | | [optional] | -|**initRate** | **String** | | [optional] | -|**leverage** | **String** | | [optional] | -|**maintainMarginRate** | **String** | | [optional] | -|**quoteCoin** | **String** | | [optional] | -|**quoteMaxBorrowableAmount** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**tier** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLimitRequest.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLimitRequest.md deleted file mode 100644 index 8c6015a1..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLimitRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedLimitRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**borrowAmount** | **String** | borrowAmount | | -|**coin** | **String** | coin | | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationApi.md deleted file mode 100644 index b5800609..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationApi.md +++ /dev/null @@ -1,113 +0,0 @@ -# MarginIsolatedLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**isolatedLiquidationList**](MarginIsolatedLiquidationApi.md#isolatedLiquidationList) | **GET** /api/margin/v1/isolated/liquidation/list | list | - - - -# **isolatedLiquidationList** -> ApiResponseResultOfMarginIsolatedLiquidationInfoResult isolatedLiquidationList(symbol, startTime, endTime, pageSize, pageId) - -list - -Get liquidation List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedLiquidationApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedLiquidationApi apiInstance = new MarginIsolatedLiquidationApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193138000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginIsolatedLiquidationInfoResult result = apiInstance.isolatedLiquidationList(symbol, startTime, endTime, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedLiquidationApi#isolatedLiquidationList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginIsolatedLiquidationInfoResult**](ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md deleted file mode 100644 index d20befe0..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfo.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# MarginIsolatedLiquidationInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ctime** | **String** | | [optional] | -|**liqEndTime** | **String** | | [optional] | -|**liqFee** | **String** | | [optional] | -|**liqId** | **String** | | [optional] | -|**liqRisk** | **String** | | [optional] | -|**liqStartTime** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**totalAssets** | **String** | | [optional] | -|**totalDebt** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index 9ca1fff3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedLiquidationInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginIsolatedLiquidationInfo>**](MarginIsolatedLiquidationInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfo.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfo.md deleted file mode 100644 index b39f1bd5..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfo.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# MarginIsolatedLoanInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**loanId** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md deleted file mode 100644 index 7bf126d2..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedLoanInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginIsolatedLoanInfo>**](MarginIsolatedLoanInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md b/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md deleted file mode 100644 index 798d0f72..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginIsolatedMaxBorrowRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | coin | | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 37d68fb3..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedMaxBorrowResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | | [optional] | -|**maxBorrowableAmount** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedOrderApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedOrderApi.md deleted file mode 100644 index b52015f5..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedOrderApi.md +++ /dev/null @@ -1,721 +0,0 @@ -# MarginIsolatedOrderApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginIsolatedBatchCancelOrder**](MarginIsolatedOrderApi.md#marginIsolatedBatchCancelOrder) | **POST** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder | -| [**marginIsolatedBatchPlaceOrder**](MarginIsolatedOrderApi.md#marginIsolatedBatchPlaceOrder) | **POST** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder | -| [**marginIsolatedCancelOrder**](MarginIsolatedOrderApi.md#marginIsolatedCancelOrder) | **POST** /api/margin/v1/isolated/order/cancelOrder | cancelOrder | -| [**marginIsolatedFills**](MarginIsolatedOrderApi.md#marginIsolatedFills) | **GET** /api/margin/v1/isolated/order/fills | fills | -| [**marginIsolatedHistoryOrders**](MarginIsolatedOrderApi.md#marginIsolatedHistoryOrders) | **GET** /api/margin/v1/isolated/order/history | history | -| [**marginIsolatedOpenOrders**](MarginIsolatedOrderApi.md#marginIsolatedOpenOrders) | **GET** /api/margin/v1/isolated/order/openOrders | openOrders | -| [**marginIsolatedPlaceOrder**](MarginIsolatedOrderApi.md#marginIsolatedPlaceOrder) | **POST** /api/margin/v1/isolated/order/placeOrder | placeOrder | - - - -# **marginIsolatedBatchCancelOrder** -> ApiResponseResultOfMarginBatchCancelOrderResult marginIsolatedBatchCancelOrder(marginBatchCancelOrderRequest) - -batchCancelOrder - -Margin Isolated BatchCancelOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - MarginBatchCancelOrderRequest marginBatchCancelOrderRequest = new MarginBatchCancelOrderRequest(); // MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - try { - ApiResponseResultOfMarginBatchCancelOrderResult result = apiInstance.marginIsolatedBatchCancelOrder(marginBatchCancelOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedBatchCancelOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginBatchCancelOrderRequest** | [**MarginBatchCancelOrderRequest**](MarginBatchCancelOrderRequest.md)| marginBatchCancelOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedBatchPlaceOrder** -> ApiResponseResultOfMarginBatchPlaceOrderResult marginIsolatedBatchPlaceOrder(marginOrderRequest) - -batchPlaceOrder - -Margin Isolated PlaceOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - MarginBatchOrdersRequest marginOrderRequest = new MarginBatchOrdersRequest(); // MarginBatchOrdersRequest | marginOrderRequest - try { - ApiResponseResultOfMarginBatchPlaceOrderResult result = apiInstance.marginIsolatedBatchPlaceOrder(marginOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedBatchPlaceOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginOrderRequest** | [**MarginBatchOrdersRequest**](MarginBatchOrdersRequest.md)| marginOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedCancelOrder** -> ApiResponseResultOfMarginBatchCancelOrderResult marginIsolatedCancelOrder(marginCancelOrderRequest) - -cancelOrder - -Margin Isolated CancelOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - MarginCancelOrderRequest marginCancelOrderRequest = new MarginCancelOrderRequest(); // MarginCancelOrderRequest | marginCancelOrderRequest - try { - ApiResponseResultOfMarginBatchCancelOrderResult result = apiInstance.marginIsolatedCancelOrder(marginCancelOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedCancelOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginCancelOrderRequest** | [**MarginCancelOrderRequest**](MarginCancelOrderRequest.md)| marginCancelOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginBatchCancelOrderResult**](ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedFills** -> ApiResponseResultOfMarginTradeDetailInfoResult marginIsolatedFills(startTime, symbol, endTime, orderId, lastFillId, pageSize) - -fills - -Margin Isolated Fills - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String symbol = "BTCUSDT"; // String | symbol - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String lastFillId = "lastFillId_example"; // String | lastFillId - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMarginTradeDetailInfoResult result = apiInstance.marginIsolatedFills(startTime, symbol, endTime, orderId, lastFillId, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedFills"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **symbol** | **String**| symbol | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **lastFillId** | **String**| lastFillId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMarginTradeDetailInfoResult**](ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedHistoryOrders** -> ApiResponseResultOfMarginOpenOrderInfoResult marginIsolatedHistoryOrders(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId) - -history - -Margin Isolated historyOrders - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String symbol = "BTCUSDT"; // String | symbol - String source = "API"; // String | source - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String clientOid = "123456"; // String | clientOid - String pageSize = "10"; // String | pageSize - String minId = "minId_example"; // String | minId - try { - ApiResponseResultOfMarginOpenOrderInfoResult result = apiInstance.marginIsolatedHistoryOrders(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedHistoryOrders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **symbol** | **String**| symbol | [optional] | -| **source** | **String**| source | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **clientOid** | **String**| clientOid | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **minId** | **String**| minId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedOpenOrders** -> ApiResponseResultOfMarginOpenOrderInfoResult marginIsolatedOpenOrders(symbol, startTime, endTime, orderId, clientOid, pageSize) - -openOrders - -Margin Isolated openOrders - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String orderId = "32428347234"; // String | orderId - String clientOid = "123456"; // String | clientOid - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMarginOpenOrderInfoResult result = apiInstance.marginIsolatedOpenOrders(symbol, startTime, endTime, orderId, clientOid, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedOpenOrders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **orderId** | **String**| orderId | [optional] | -| **clientOid** | **String**| clientOid | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMarginOpenOrderInfoResult**](ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedPlaceOrder** -> ApiResponseResultOfMarginPlaceOrderResult marginIsolatedPlaceOrder(marginOrderRequest) - -placeOrder - -Margin Isolated PlaceOrder - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedOrderApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedOrderApi apiInstance = new MarginIsolatedOrderApi(defaultClient); - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); // MarginOrderRequest | marginOrderRequest - try { - ApiResponseResultOfMarginPlaceOrderResult result = apiInstance.marginIsolatedPlaceOrder(marginOrderRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedOrderApi#marginIsolatedPlaceOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **marginOrderRequest** | [**MarginOrderRequest**](MarginOrderRequest.md)| marginOrderRequest | | - -### Return type - -[**ApiResponseResultOfMarginPlaceOrderResult**](ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedPublicApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedPublicApi.md deleted file mode 100644 index c8bfa061..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedPublicApi.md +++ /dev/null @@ -1,140 +0,0 @@ -# MarginIsolatedPublicApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginIsolatedPublicInterestRateAndLimit**](MarginIsolatedPublicApi.md#marginIsolatedPublicInterestRateAndLimit) | **GET** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit | -| [**marginIsolatedPublicTierData**](MarginIsolatedPublicApi.md#marginIsolatedPublicTierData) | **GET** /api/margin/v1/isolated/public/tierData | tierData | - - - -# **marginIsolatedPublicInterestRateAndLimit** -> ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult marginIsolatedPublicInterestRateAndLimit(symbol) - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedPublicApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - MarginIsolatedPublicApi apiInstance = new MarginIsolatedPublicApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - try { - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult result = apiInstance.marginIsolatedPublicInterestRateAndLimit(symbol); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedPublicApi#marginIsolatedPublicInterestRateAndLimit"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult**](ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **marginIsolatedPublicTierData** -> ApiResponseResultOfListOfMarginIsolatedLevelResult marginIsolatedPublicTierData(symbol) - -tierData - -Get TierData - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedPublicApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - MarginIsolatedPublicApi apiInstance = new MarginIsolatedPublicApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - try { - ApiResponseResultOfListOfMarginIsolatedLevelResult result = apiInstance.marginIsolatedPublicTierData(symbol); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedPublicApi#marginIsolatedPublicTierData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | - -### Return type - -[**ApiResponseResultOfListOfMarginIsolatedLevelResult**](ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md deleted file mode 100644 index 67f54b07..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# MarginIsolatedRateAndLimitResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseBorrowAble** | **Boolean** | | [optional] | -|**baseCoin** | **String** | | [optional] | -|**baseDailyInterestRate** | **String** | | [optional] | -|**baseMaxBorrowableAmount** | **String** | | [optional] | -|**baseTransferInAble** | **Boolean** | | [optional] | -|**baseVips** | [**List<MarginIsolatedVipResult>**](MarginIsolatedVipResult.md) | | [optional] | -|**baseYearlyInterestRate** | **String** | | [optional] | -|**leverage** | **String** | | [optional] | -|**quoteBorrowAble** | **Boolean** | | [optional] | -|**quoteCoin** | **String** | | [optional] | -|**quoteDailyInterestRate** | **String** | | [optional] | -|**quoteMaxBorrowableAmount** | **String** | | [optional] | -|**quoteTransferInAble** | **Boolean** | | [optional] | -|**quoteVips** | [**List<MarginIsolatedVipResult>**](MarginIsolatedVipResult.md) | | [optional] | -|**quoteYearlyInterestRate** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayApi.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRepayApi.md deleted file mode 100644 index 5b07dc8c..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayApi.md +++ /dev/null @@ -1,117 +0,0 @@ -# MarginIsolatedRepayApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**isolateRepayList**](MarginIsolatedRepayApi.md#isolateRepayList) | **GET** /api/margin/v1/isolated/repay/list | list | - - - -# **isolateRepayList** -> ApiResponseResultOfMarginIsolatedRepayInfoResult isolateRepayList(symbol, startTime, coin, repayId, endTime, pageSize, pageId) - -list - -Get liquidation List - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginIsolatedRepayApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - MarginIsolatedRepayApi apiInstance = new MarginIsolatedRepayApi(defaultClient); - String symbol = "BTCUSDT"; // String | symbol - String startTime = "1678193338000"; // String | startTime - String coin = "USDT"; // String | coin - String repayId = "repayId_example"; // String | repayId - String endTime = "1678193338000"; // String | endTime - String pageSize = "10"; // String | pageSize - String pageId = "pageId_example"; // String | pageId - try { - ApiResponseResultOfMarginIsolatedRepayInfoResult result = apiInstance.isolateRepayList(symbol, startTime, coin, repayId, endTime, pageSize, pageId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginIsolatedRepayApi#isolateRepayList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **symbol** | **String**| symbol | | -| **startTime** | **String**| startTime | | -| **coin** | **String**| coin | [optional] | -| **repayId** | **String**| repayId | [optional] | -| **endTime** | **String**| endTime | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **pageId** | **String**| pageId | [optional] | - -### Return type - -[**ApiResponseResultOfMarginIsolatedRepayInfoResult**](ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfo.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfo.md deleted file mode 100644 index afcaeed2..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfo.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginIsolatedRepayInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**interest** | **String** | | [optional] | -|**repayId** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**totalAmount** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md deleted file mode 100644 index a33cdd9d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedRepayInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginIsolatedRepayInfo>**](MarginIsolatedRepayInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayRequest.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRepayRequest.md deleted file mode 100644 index 86ae2d66..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginIsolatedRepayRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coin** | **String** | coin | | -|**repayAmount** | **String** | repayAmount | | -|**symbol** | **String** | symbol | | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedRepayResult.md deleted file mode 100644 index 3e972052..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedRepayResult.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# MarginIsolatedRepayResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**remainDebtAmount** | **String** | | [optional] | -|**repayAmount** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginIsolatedVipResult.md b/bitget-java-sdk-open-api/docs/MarginIsolatedVipResult.md deleted file mode 100644 index 8ff82611..00000000 --- a/bitget-java-sdk-open-api/docs/MarginIsolatedVipResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# MarginIsolatedVipResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dailyInterestRate** | **String** | | [optional] | -|**discountRate** | **String** | | [optional] | -|**level** | **String** | | [optional] | -|**yearlyInterestRate** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginLiquidationInfo.md b/bitget-java-sdk-open-api/docs/MarginLiquidationInfo.md deleted file mode 100644 index de5787d5..00000000 --- a/bitget-java-sdk-open-api/docs/MarginLiquidationInfo.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# MarginLiquidationInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ctime** | **String** | | [optional] | -|**liqEndTime** | **String** | | [optional] | -|**liqFee** | **String** | | [optional] | -|**liqId** | **String** | | [optional] | -|**liqRisk** | **String** | | [optional] | -|**liqStartTime** | **String** | | [optional] | -|**totalAssets** | **String** | | [optional] | -|**totalDebt** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginLiquidationInfoResult.md b/bitget-java-sdk-open-api/docs/MarginLiquidationInfoResult.md deleted file mode 100644 index d8f64210..00000000 --- a/bitget-java-sdk-open-api/docs/MarginLiquidationInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginLiquidationInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginLiquidationInfo>**](MarginLiquidationInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginLoanInfo.md b/bitget-java-sdk-open-api/docs/MarginLoanInfo.md deleted file mode 100644 index 7a6a7cd5..00000000 --- a/bitget-java-sdk-open-api/docs/MarginLoanInfo.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# MarginLoanInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**loanId** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginLoanInfoResult.md b/bitget-java-sdk-open-api/docs/MarginLoanInfoResult.md deleted file mode 100644 index f01c3b0d..00000000 --- a/bitget-java-sdk-open-api/docs/MarginLoanInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginLoanInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginLoanInfo>**](MarginLoanInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginOpenOrderInfoResult.md b/bitget-java-sdk-open-api/docs/MarginOpenOrderInfoResult.md deleted file mode 100644 index b68e3535..00000000 --- a/bitget-java-sdk-open-api/docs/MarginOpenOrderInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginOpenOrderInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**orderList** | [**List<MarginOrderInfo>**](MarginOrderInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginOrderInfo.md b/bitget-java-sdk-open-api/docs/MarginOrderInfo.md deleted file mode 100644 index 93ebfa7e..00000000 --- a/bitget-java-sdk-open-api/docs/MarginOrderInfo.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# MarginOrderInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseQuantity** | **String** | | [optional] | -|**clientOid** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**fillPrice** | **String** | | [optional] | -|**fillQuantity** | **String** | | [optional] | -|**fillTotalAmount** | **String** | | [optional] | -|**loanType** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | -|**orderType** | **String** | | [optional] | -|**price** | **String** | | [optional] | -|**quoteAmount** | **String** | | [optional] | -|**side** | **String** | | [optional] | -|**source** | **String** | | [optional] | -|**status** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginOrderRequest.md b/bitget-java-sdk-open-api/docs/MarginOrderRequest.md deleted file mode 100644 index b9a2fba4..00000000 --- a/bitget-java-sdk-open-api/docs/MarginOrderRequest.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# MarginOrderRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseQuantity** | **String** | baseQuantity | [optional] | -|**channelApiCode** | **String** | | [optional] | -|**clientOid** | **String** | clientOid | [optional] | -|**ip** | **String** | | [optional] | -|**loanType** | **String** | loanType | | -|**orderType** | **String** | orderType | | -|**price** | **String** | price | [optional] | -|**quoteAmount** | **String** | quoteAmount | [optional] | -|**side** | **String** | side | | -|**symbol** | **String** | symbol | | -|**timeInForce** | **String** | timeInForce | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginPlaceOrderResult.md b/bitget-java-sdk-open-api/docs/MarginPlaceOrderResult.md deleted file mode 100644 index c4e5c96a..00000000 --- a/bitget-java-sdk-open-api/docs/MarginPlaceOrderResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MarginPlaceOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**clientOid** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginPublicApi.md b/bitget-java-sdk-open-api/docs/MarginPublicApi.md deleted file mode 100644 index 79afdea7..00000000 --- a/bitget-java-sdk-open-api/docs/MarginPublicApi.md +++ /dev/null @@ -1,70 +0,0 @@ -# MarginPublicApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**marginPublicCurrencies**](MarginPublicApi.md#marginPublicCurrencies) | **GET** /api/margin/v1/public/currencies | currencies | - - - -# **marginPublicCurrencies** -> ApiResponseResultOfListOfMarginSystemResult marginPublicCurrencies() - -currencies - -Get Currencies - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.MarginPublicApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - MarginPublicApi apiInstance = new MarginPublicApi(defaultClient); - try { - ApiResponseResultOfListOfMarginSystemResult result = apiInstance.marginPublicCurrencies(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MarginPublicApi#marginPublicCurrencies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ApiResponseResultOfListOfMarginSystemResult**](ApiResponseResultOfListOfMarginSystemResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/docs/MarginRepayInfo.md b/bitget-java-sdk-open-api/docs/MarginRepayInfo.md deleted file mode 100644 index 6ef4225f..00000000 --- a/bitget-java-sdk-open-api/docs/MarginRepayInfo.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# MarginRepayInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**interest** | **String** | | [optional] | -|**repayId** | **String** | | [optional] | -|**totalAmount** | **String** | | [optional] | -|**type** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginRepayInfoResult.md b/bitget-java-sdk-open-api/docs/MarginRepayInfoResult.md deleted file mode 100644 index edbbbc6f..00000000 --- a/bitget-java-sdk-open-api/docs/MarginRepayInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginRepayInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MarginRepayInfo>**](MarginRepayInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginSystemResult.md b/bitget-java-sdk-open-api/docs/MarginSystemResult.md deleted file mode 100644 index aee93ce2..00000000 --- a/bitget-java-sdk-open-api/docs/MarginSystemResult.md +++ /dev/null @@ -1,29 +0,0 @@ - - -# MarginSystemResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseCoin** | **String** | | [optional] | -|**isBorrowable** | **Boolean** | | [optional] | -|**liquidationRiskRatio** | **String** | | [optional] | -|**makerFeeRate** | **String** | | [optional] | -|**maxCrossLeverage** | **String** | | [optional] | -|**maxIsolatedLeverage** | **String** | | [optional] | -|**maxTradeAmount** | **String** | | [optional] | -|**minTradeAmount** | **String** | | [optional] | -|**minTradeUSDT** | **String** | | [optional] | -|**priceScale** | **String** | | [optional] | -|**quantityScale** | **String** | | [optional] | -|**quoteCoin** | **String** | | [optional] | -|**status** | **String** | | [optional] | -|**symbol** | **String** | | [optional] | -|**takerFeeRate** | **String** | | [optional] | -|**userMinBorrow** | **String** | | [optional] | -|**warningRiskRatio** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginTradeDetailInfo.md b/bitget-java-sdk-open-api/docs/MarginTradeDetailInfo.md deleted file mode 100644 index 3453b283..00000000 --- a/bitget-java-sdk-open-api/docs/MarginTradeDetailInfo.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# MarginTradeDetailInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ctime** | **String** | | [optional] | -|**feeCcy** | **String** | | [optional] | -|**fees** | **String** | | [optional] | -|**fillId** | **String** | | [optional] | -|**fillPrice** | **String** | | [optional] | -|**fillQuantity** | **String** | | [optional] | -|**fillTotalAmount** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | -|**orderType** | **String** | | [optional] | -|**side** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MarginTradeDetailInfoResult.md b/bitget-java-sdk-open-api/docs/MarginTradeDetailInfoResult.md deleted file mode 100644 index d45dd2d7..00000000 --- a/bitget-java-sdk-open-api/docs/MarginTradeDetailInfoResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MarginTradeDetailInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**fills** | [**List<MarginTradeDetailInfo>**](MarginTradeDetailInfo.md) | | [optional] | -|**maxId** | **String** | | [optional] | -|**minId** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantAdvInfo.md b/bitget-java-sdk-open-api/docs/MerchantAdvInfo.md deleted file mode 100644 index afb9c140..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantAdvInfo.md +++ /dev/null @@ -1,34 +0,0 @@ - - -# MerchantAdvInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**advId** | **String** | | [optional] | -|**advNo** | **String** | | [optional] | -|**amount** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**coinPrecision** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**dealAmount** | **String** | | [optional] | -|**fiatCode** | **String** | | [optional] | -|**fiatPrecision** | **String** | | [optional] | -|**fiatSymbol** | **String** | | [optional] | -|**hide** | **String** | | [optional] | -|**maxAmount** | **String** | | [optional] | -|**minAmount** | **String** | | [optional] | -|**payDuration** | **String** | | [optional] | -|**paymentMethod** | [**List<FiatPaymentInfo>**](FiatPaymentInfo.md) | | [optional] | -|**price** | **String** | | [optional] | -|**remark** | **String** | | [optional] | -|**status** | **String** | | [optional] | -|**turnoverNum** | **String** | | [optional] | -|**turnoverRate** | **String** | | [optional] | -|**type** | **String** | | [optional] | -|**userLimit** | [**MerchantAdvUserLimitInfo**](MerchantAdvUserLimitInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantAdvResult.md b/bitget-java-sdk-open-api/docs/MerchantAdvResult.md deleted file mode 100644 index 1c2ebf80..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantAdvResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MerchantAdvResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**advList** | [**List<MerchantAdvInfo>**](MerchantAdvInfo.md) | | [optional] | -|**minId** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantAdvUserLimitInfo.md b/bitget-java-sdk-open-api/docs/MerchantAdvUserLimitInfo.md deleted file mode 100644 index 6078b409..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantAdvUserLimitInfo.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# MerchantAdvUserLimitInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allowMerchantPlace** | **String** | | [optional] | -|**country** | **String** | | [optional] | -|**maxCompleteNum** | **String** | | [optional] | -|**minCompleteNum** | **String** | | [optional] | -|**placeOrderNum** | **String** | | [optional] | -|**thirtyCompleteRate** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantInfo.md b/bitget-java-sdk-open-api/docs/MerchantInfo.md deleted file mode 100644 index af07af24..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantInfo.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# MerchantInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**averagePayment** | **String** | | [optional] | -|**averageRealese** | **String** | | [optional] | -|**isOnline** | **String** | | [optional] | -|**merchantId** | **String** | | [optional] | -|**nickName** | **String** | | [optional] | -|**registerTime** | **String** | | [optional] | -|**thirtyBuy** | **String** | | [optional] | -|**thirtyCompletionRate** | **String** | | [optional] | -|**thirtySell** | **String** | | [optional] | -|**thirtyTrades** | **String** | | [optional] | -|**totalBuy** | **String** | | [optional] | -|**totalCompletionRate** | **String** | | [optional] | -|**totalSell** | **String** | | [optional] | -|**totalTrades** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantInfoResult.md b/bitget-java-sdk-open-api/docs/MerchantInfoResult.md deleted file mode 100644 index 5de29fc8..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantInfoResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MerchantInfoResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**minId** | **String** | | [optional] | -|**resultList** | [**List<MerchantInfo>**](MerchantInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantOrderInfo.md b/bitget-java-sdk-open-api/docs/MerchantOrderInfo.md deleted file mode 100644 index 5f47db51..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantOrderInfo.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# MerchantOrderInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**advNo** | **String** | | [optional] | -|**amount** | **String** | | [optional] | -|**buyerRealName** | **String** | | [optional] | -|**coin** | **String** | | [optional] | -|**count** | **String** | | [optional] | -|**ctime** | **String** | | [optional] | -|**fiat** | **String** | | [optional] | -|**orderId** | **String** | | [optional] | -|**orderNo** | **String** | | [optional] | -|**paymentInfo** | [**MerchantOrderPaymentInfo**](MerchantOrderPaymentInfo.md) | | [optional] | -|**paymentTime** | **String** | | [optional] | -|**price** | **String** | | [optional] | -|**releaseCoinTime** | **String** | | [optional] | -|**representTime** | **String** | | [optional] | -|**sellerRealName** | **String** | | [optional] | -|**status** | **String** | | [optional] | -|**type** | **String** | | [optional] | -|**withdrawTime** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantOrderPaymentInfo.md b/bitget-java-sdk-open-api/docs/MerchantOrderPaymentInfo.md deleted file mode 100644 index 1df6417c..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantOrderPaymentInfo.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# MerchantOrderPaymentInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**paymethodId** | **String** | | [optional] | -|**paymethodInfo** | [**List<OrderPaymentDetailInfo>**](OrderPaymentDetailInfo.md) | | [optional] | -|**paymethodName** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantOrderResult.md b/bitget-java-sdk-open-api/docs/MerchantOrderResult.md deleted file mode 100644 index aec93a52..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantOrderResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# MerchantOrderResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**minId** | **String** | | [optional] | -|**orderList** | [**List<MerchantOrderInfo>**](MerchantOrderInfo.md) | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/MerchantPersonInfo.md b/bitget-java-sdk-open-api/docs/MerchantPersonInfo.md deleted file mode 100644 index 64502655..00000000 --- a/bitget-java-sdk-open-api/docs/MerchantPersonInfo.md +++ /dev/null @@ -1,31 +0,0 @@ - - -# MerchantPersonInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**averagePayment** | **String** | | [optional] | -|**averageRealese** | **String** | | [optional] | -|**email** | **String** | | [optional] | -|**emailBindFlag** | **Boolean** | | [optional] | -|**kycFlag** | **Boolean** | | [optional] | -|**merchantId** | **String** | | [optional] | -|**mobile** | **String** | | [optional] | -|**mobileBindFlag** | **Boolean** | | [optional] | -|**nickName** | **String** | | [optional] | -|**realName** | **String** | | [optional] | -|**registerTime** | **String** | | [optional] | -|**thirtyBuy** | **String** | | [optional] | -|**thirtyCompletionRate** | **String** | | [optional] | -|**thirtySell** | **String** | | [optional] | -|**thirtyTrades** | **String** | | [optional] | -|**totalBuy** | **String** | | [optional] | -|**totalCompletionRate** | **String** | | [optional] | -|**totalSell** | **String** | | [optional] | -|**totalTrades** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/OrderPaymentDetailInfo.md b/bitget-java-sdk-open-api/docs/OrderPaymentDetailInfo.md deleted file mode 100644 index 56739c72..00000000 --- a/bitget-java-sdk-open-api/docs/OrderPaymentDetailInfo.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# OrderPaymentDetailInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | -|**required** | **Boolean** | | [optional] | -|**type** | **String** | | [optional] | -|**value** | **String** | | [optional] | - - - diff --git a/bitget-java-sdk-open-api/docs/P2pMerchantApi.md b/bitget-java-sdk-open-api/docs/P2pMerchantApi.md deleted file mode 100644 index 43488df5..00000000 --- a/bitget-java-sdk-open-api/docs/P2pMerchantApi.md +++ /dev/null @@ -1,438 +0,0 @@ -# P2pMerchantApi - -All URIs are relative to *https://api.bitget.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**merchantAdvList**](P2pMerchantApi.md#merchantAdvList) | **GET** /api/p2p/v1/merchant/advList | advList | -| [**merchantInfo**](P2pMerchantApi.md#merchantInfo) | **GET** /api/p2p/v1/merchant/merchantInfo | merchantInfo | -| [**merchantList**](P2pMerchantApi.md#merchantList) | **GET** /api/p2p/v1/merchant/merchantList | merchantList | -| [**merchantOrderList**](P2pMerchantApi.md#merchantOrderList) | **GET** /api/p2p/v1/merchant/orderList | orderList | - - - -# **merchantAdvList** -> ApiResponseResultOfMerchantAdvResult merchantAdvList(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy) - -advList - -P2P merchant adv info - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.P2pMerchantApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - P2pMerchantApi apiInstance = new P2pMerchantApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String status = "upper"; // String | status - String type = "sell"; // String | type - String advNo = "1678193338000"; // String | advNo - String coin = "USDT"; // String | coin - String languageType = "en-US"; // String | languageType - String fiat = "USD"; // String | fiat - String lastMinId = "43534"; // String | languageType - String pageSize = "10"; // String | pageSize - String orderBy = "createTime"; // String | orderBy - try { - ApiResponseResultOfMerchantAdvResult result = apiInstance.merchantAdvList(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling P2pMerchantApi#merchantAdvList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **status** | **String**| status | [optional] | -| **type** | **String**| type | [optional] | -| **advNo** | **String**| advNo | [optional] | -| **coin** | **String**| coin | [optional] | -| **languageType** | **String**| languageType | [optional] | -| **fiat** | **String**| fiat | [optional] | -| **lastMinId** | **String**| languageType | [optional] | -| **pageSize** | **String**| pageSize | [optional] | -| **orderBy** | **String**| orderBy | [optional] | - -### Return type - -[**ApiResponseResultOfMerchantAdvResult**](ApiResponseResultOfMerchantAdvResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **merchantInfo** -> ApiResponseResultOfMerchantPersonInfo merchantInfo() - -merchantInfo - -P2P merchant info self - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.P2pMerchantApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - P2pMerchantApi apiInstance = new P2pMerchantApi(defaultClient); - try { - ApiResponseResultOfMerchantPersonInfo result = apiInstance.merchantInfo(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling P2pMerchantApi#merchantInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ApiResponseResultOfMerchantPersonInfo**](ApiResponseResultOfMerchantPersonInfo.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **merchantList** -> ApiResponseResultOfMerchantInfoResult merchantList(online, merchantId, lastMinId, pageSize) - -merchantList - -P2P merchant list - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.P2pMerchantApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - P2pMerchantApi apiInstance = new P2pMerchantApi(defaultClient); - String online = "yes"; // String | online - String merchantId = "4534534534"; // String | merchantId - String lastMinId = "1678193338000"; // String | lastMinId - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMerchantInfoResult result = apiInstance.merchantList(online, merchantId, lastMinId, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling P2pMerchantApi#merchantList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **online** | **String**| online | [optional] | -| **merchantId** | **String**| merchantId | [optional] | -| **lastMinId** | **String**| lastMinId | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMerchantInfoResult**](ApiResponseResultOfMerchantInfoResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - - -# **merchantOrderList** -> ApiResponseResultOfMerchantOrderResult merchantOrderList(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize) - -orderList - -P2P merchant order info - -### Example -```java -// Import classes: -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.auth.*; -import com.bitget.openapi.models.*; -import com.bitget.openapi.api.P2pMerchantApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.bitget.com"); - - // Configure API key authorization: ACCESS_KEY - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_KEY.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_PASSPHRASE - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_PASSPHRASE.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_SIGN - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_SIGN"); - ACCESS_SIGN.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_SIGN.setApiKeyPrefix("Token"); - - // Configure API key authorization: ACCESS_TIMESTAMP - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_TIMESTAMP"); - ACCESS_TIMESTAMP.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ACCESS_TIMESTAMP.setApiKeyPrefix("Token"); - - // Configure API key authorization: SECRET_KEY - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //SECRET_KEY.setApiKeyPrefix("Token"); - - P2pMerchantApi apiInstance = new P2pMerchantApi(defaultClient); - String startTime = "1678193338000"; // String | startTime - String endTime = "1678193338000"; // String | endTime - String status = "wait_pay"; // String | status - String type = "sell"; // String | type - String advNo = "1678193338000"; // String | advNo - String orderNo = "23842478324723423"; // String | orderNo - String coin = "USDT"; // String | coin - String languageType = "en-US"; // String | languageType - String fiat = "USD"; // String | fiat - String lastMinId = "43534"; // String | languageType - String pageSize = "10"; // String | pageSize - try { - ApiResponseResultOfMerchantOrderResult result = apiInstance.merchantOrderList(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling P2pMerchantApi#merchantOrderList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **startTime** | **String**| startTime | | -| **endTime** | **String**| endTime | [optional] | -| **status** | **String**| status | [optional] | -| **type** | **String**| type | [optional] | -| **advNo** | **String**| advNo | [optional] | -| **orderNo** | **String**| orderNo | [optional] | -| **coin** | **String**| coin | [optional] | -| **languageType** | **String**| languageType | [optional] | -| **fiat** | **String**| fiat | [optional] | -| **lastMinId** | **String**| languageType | [optional] | -| **pageSize** | **String**| pageSize | [optional] | - -### Return type - -[**ApiResponseResultOfMerchantOrderResult**](ApiResponseResultOfMerchantOrderResult.md) - -### Authorization - -[ACCESS_KEY](../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../README.md#SECRET_KEY) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad Request | - | -| **429** | Gateway Frequency Limit | - | -| **500** | Server Error | - | - diff --git a/bitget-java-sdk-open-api/git_push.sh b/bitget-java-sdk-open-api/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/bitget-java-sdk-open-api/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/bitget-java-sdk-open-api/gradle.properties b/bitget-java-sdk-open-api/gradle.properties deleted file mode 100644 index a3408578..00000000 --- a/bitget-java-sdk-open-api/gradle.properties +++ /dev/null @@ -1,6 +0,0 @@ -# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). -# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. -# -# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties -# For example, uncomment below to build for Android -#target = android diff --git a/bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.jar b/bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 7454180f2ae8848c63b8b4dea2cb829da983f2fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 59536 zcma&NbC71ylI~qywr$(CZQJHswz}-9F59+k+g;UV+cs{`J?GrGXYR~=-ydruB3JCa zB64N^cILAcWk5iofq)<(fq;O7{th4@;QxID0)qN`mJ?GIqLY#rX8-|G{5M0pdVW5^ zzXk$-2kQTAC?_N@B`&6-N-rmVFE=$QD?>*=4<|!MJu@}isLc4AW#{m2if&A5T5g&~ ziuMQeS*U5sL6J698wOd)K@oK@1{peP5&Esut<#VH^u)gp`9H4)`uE!2$>RTctN+^u z=ASkePDZA-X8)rp%D;p*~P?*a_=*Kwc<^>QSH|^<0>o37lt^+Mj1;4YvJ(JR-Y+?%Nu}JAYj5 z_Qc5%Ao#F?q32i?ZaN2OSNhWL;2oDEw_({7ZbgUjna!Fqn3NzLM@-EWFPZVmc>(fZ z0&bF-Ch#p9C{YJT9Rcr3+Y_uR^At1^BxZ#eo>$PLJF3=;t_$2|t+_6gg5(j{TmjYU zK12c&lE?Eh+2u2&6Gf*IdKS&6?rYbSEKBN!rv{YCm|Rt=UlPcW9j`0o6{66#y5t9C zruFA2iKd=H%jHf%ypOkxLnO8#H}#Zt{8p!oi6)7#NqoF({t6|J^?1e*oxqng9Q2Cc zg%5Vu!em)}Yuj?kaP!D?b?(C*w!1;>R=j90+RTkyEXz+9CufZ$C^umX^+4|JYaO<5 zmIM3#dv`DGM;@F6;(t!WngZSYzHx?9&$xEF70D1BvfVj<%+b#)vz)2iLCrTeYzUcL z(OBnNoG6Le%M+@2oo)&jdOg=iCszzv59e zDRCeaX8l1hC=8LbBt|k5?CXgep=3r9BXx1uR8!p%Z|0+4Xro=xi0G!e{c4U~1j6!) zH6adq0}#l{%*1U(Cb%4AJ}VLWKBPi0MoKFaQH6x?^hQ!6em@993xdtS%_dmevzeNl z(o?YlOI=jl(`L9^ z0O+H9k$_@`6L13eTT8ci-V0ljDMD|0ifUw|Q-Hep$xYj0hTO@0%IS^TD4b4n6EKDG z??uM;MEx`s98KYN(K0>c!C3HZdZ{+_53DO%9k5W%pr6yJusQAv_;IA}925Y%;+!tY z%2k!YQmLLOr{rF~!s<3-WEUs)`ix_mSU|cNRBIWxOox_Yb7Z=~Q45ZNe*u|m^|)d* zog=i>`=bTe!|;8F+#H>EjIMcgWcG2ORD`w0WD;YZAy5#s{65~qfI6o$+Ty&-hyMyJ z3Ra~t>R!p=5ZpxA;QkDAoPi4sYOP6>LT+}{xp}tk+<0k^CKCFdNYG(Es>p0gqD)jP zWOeX5G;9(m@?GOG7g;e74i_|SmE?`B2i;sLYwRWKLy0RLW!Hx`=!LH3&k=FuCsM=9M4|GqzA)anEHfxkB z?2iK-u(DC_T1};KaUT@3nP~LEcENT^UgPvp!QC@Dw&PVAhaEYrPey{nkcn(ro|r7XUz z%#(=$7D8uP_uU-oPHhd>>^adbCSQetgSG`e$U|7mr!`|bU0aHl_cmL)na-5x1#OsVE#m*+k84Y^+UMeSAa zbrVZHU=mFwXEaGHtXQq`2ZtjfS!B2H{5A<3(nb-6ARVV8kEmOkx6D2x7~-6hl;*-*}2Xz;J#a8Wn;_B5=m zl3dY;%krf?i-Ok^Pal-}4F`{F@TYPTwTEhxpZK5WCpfD^UmM_iYPe}wpE!Djai6_{ z*pGO=WB47#Xjb7!n2Ma)s^yeR*1rTxp`Mt4sfA+`HwZf%!7ZqGosPkw69`Ix5Ku6G z@Pa;pjzV&dn{M=QDx89t?p?d9gna*}jBly*#1!6}5K<*xDPJ{wv4& zM$17DFd~L*Te3A%yD;Dp9UGWTjRxAvMu!j^Tbc}2v~q^59d4bz zvu#!IJCy(BcWTc`;v$9tH;J%oiSJ_i7s;2`JXZF+qd4C)vY!hyCtl)sJIC{ebI*0> z@x>;EzyBv>AI-~{D6l6{ST=em*U( z(r$nuXY-#CCi^8Z2#v#UXOt`dbYN1z5jzNF2 z411?w)whZrfA20;nl&C1Gi+gk<`JSm+{|*2o<< zqM#@z_D`Cn|0H^9$|Tah)0M_X4c37|KQ*PmoT@%xHc3L1ZY6(p(sNXHa&49Frzto& zR`c~ClHpE~4Z=uKa5S(-?M8EJ$zt0&fJk~p$M#fGN1-y$7!37hld`Uw>Urri(DxLa;=#rK0g4J)pXMC zxzraOVw1+kNWpi#P=6(qxf`zSdUC?D$i`8ZI@F>k6k zz21?d+dw7b&i*>Kv5L(LH-?J%@WnqT7j#qZ9B>|Zl+=> z^U-pV@1y_ptHo4hl^cPRWewbLQ#g6XYQ@EkiP z;(=SU!yhjHp%1&MsU`FV1Z_#K1&(|5n(7IHbx&gG28HNT)*~-BQi372@|->2Aw5It z0CBpUcMA*QvsPy)#lr!lIdCi@1k4V2m!NH)%Px(vu-r(Q)HYc!p zJ^$|)j^E#q#QOgcb^pd74^JUi7fUmMiNP_o*lvx*q%_odv49Dsv$NV;6J z9GOXKomA{2Pb{w}&+yHtH?IkJJu~}Z?{Uk++2mB8zyvh*xhHKE``99>y#TdD z&(MH^^JHf;g(Tbb^&8P*;_i*2&fS$7${3WJtV7K&&(MBV2~)2KB3%cWg#1!VE~k#C z!;A;?p$s{ihyojEZz+$I1)L}&G~ml=udD9qh>Tu(ylv)?YcJT3ihapi!zgPtWb*CP zlLLJSRCj-^w?@;RU9aL2zDZY1`I3d<&OMuW=c3$o0#STpv_p3b9Wtbql>w^bBi~u4 z3D8KyF?YE?=HcKk!xcp@Cigvzy=lnFgc^9c%(^F22BWYNAYRSho@~*~S)4%AhEttv zvq>7X!!EWKG?mOd9&n>vvH1p4VzE?HCuxT-u+F&mnsfDI^}*-d00-KAauEaXqg3k@ zy#)MGX!X;&3&0s}F3q40ZmVM$(H3CLfpdL?hB6nVqMxX)q=1b}o_PG%r~hZ4gUfSp zOH4qlEOW4OMUc)_m)fMR_rl^pCfXc{$fQbI*E&mV77}kRF z&{<06AJyJ!e863o-V>FA1a9Eemx6>^F$~9ppt()ZbPGfg_NdRXBWoZnDy2;#ODgf! zgl?iOcF7Meo|{AF>KDwTgYrJLb$L2%%BEtO>T$C?|9bAB&}s;gI?lY#^tttY&hfr# zKhC+&b-rpg_?~uVK%S@mQleU#_xCsvIPK*<`E0fHE1&!J7!xD#IB|SSPW6-PyuqGn3^M^Rz%WT{e?OI^svARX&SAdU77V(C~ zM$H{Kg59op{<|8ry9ecfP%=kFm(-!W&?U0@<%z*+!*<e0XesMxRFu9QnGqun6R_%T+B%&9Dtk?*d$Q zb~>84jEAPi@&F@3wAa^Lzc(AJz5gsfZ7J53;@D<;Klpl?sK&u@gie`~vTsbOE~Cd4 z%kr56mI|#b(Jk&;p6plVwmNB0H@0SmgdmjIn5Ne@)}7Vty(yb2t3ev@22AE^s!KaN zyQ>j+F3w=wnx7w@FVCRe+`vUH)3gW%_72fxzqX!S&!dchdkRiHbXW1FMrIIBwjsai8`CB2r4mAbwp%rrO>3B$Zw;9=%fXI9B{d(UzVap7u z6piC-FQ)>}VOEuPpuqznpY`hN4dGa_1Xz9rVg(;H$5Te^F0dDv*gz9JS<|>>U0J^# z6)(4ICh+N_Q`Ft0hF|3fSHs*?a=XC;e`sJaU9&d>X4l?1W=|fr!5ShD|nv$GK;j46@BV6+{oRbWfqOBRb!ir88XD*SbC(LF}I1h#6@dvK%Toe%@ zhDyG$93H8Eu&gCYddP58iF3oQH*zLbNI;rN@E{T9%A8!=v#JLxKyUe}e}BJpB{~uN zqgxRgo0*-@-iaHPV8bTOH(rS(huwK1Xg0u+e!`(Irzu@Bld&s5&bWgVc@m7;JgELd zimVs`>vQ}B_1(2#rv#N9O`fJpVfPc7V2nv34PC);Dzbb;p!6pqHzvy?2pD&1NE)?A zt(t-ucqy@wn9`^MN5apa7K|L=9>ISC>xoc#>{@e}m#YAAa1*8-RUMKwbm|;5p>T`Z zNf*ph@tnF{gmDa3uwwN(g=`Rh)4!&)^oOy@VJaK4lMT&5#YbXkl`q?<*XtsqD z9PRK6bqb)fJw0g-^a@nu`^?71k|m3RPRjt;pIkCo1{*pdqbVs-Yl>4E>3fZx3Sv44grW=*qdSoiZ9?X0wWyO4`yDHh2E!9I!ZFi zVL8|VtW38}BOJHW(Ax#KL_KQzarbuE{(%TA)AY)@tY4%A%P%SqIU~8~-Lp3qY;U-} z`h_Gel7;K1h}7$_5ZZT0&%$Lxxr-<89V&&TCsu}LL#!xpQ1O31jaa{U34~^le*Y%L za?7$>Jk^k^pS^_M&cDs}NgXlR>16AHkSK-4TRaJSh#h&p!-!vQY%f+bmn6x`4fwTp z$727L^y`~!exvmE^W&#@uY!NxJi`g!i#(++!)?iJ(1)2Wk;RN zFK&O4eTkP$Xn~4bB|q8y(btx$R#D`O@epi4ofcETrx!IM(kWNEe42Qh(8*KqfP(c0 zouBl6>Fc_zM+V;F3znbo{x#%!?mH3`_ANJ?y7ppxS@glg#S9^MXu|FM&ynpz3o&Qh z2ujAHLF3($pH}0jXQsa#?t--TnF1P73b?4`KeJ9^qK-USHE)4!IYgMn-7z|=ALF5SNGkrtPG@Y~niUQV2?g$vzJN3nZ{7;HZHzWAeQ;5P|@Tl3YHpyznGG4-f4=XflwSJY+58-+wf?~Fg@1p1wkzuu-RF3j2JX37SQUc? zQ4v%`V8z9ZVZVqS8h|@@RpD?n0W<=hk=3Cf8R?d^9YK&e9ZybFY%jdnA)PeHvtBe- zhMLD+SSteHBq*q)d6x{)s1UrsO!byyLS$58WK;sqip$Mk{l)Y(_6hEIBsIjCr5t>( z7CdKUrJTrW%qZ#1z^n*Lb8#VdfzPw~OIL76aC+Rhr<~;4Tl!sw?Rj6hXj4XWa#6Tp z@)kJ~qOV)^Rh*-?aG>ic2*NlC2M7&LUzc9RT6WM%Cpe78`iAowe!>(T0jo&ivn8-7 zs{Qa@cGy$rE-3AY0V(l8wjI^uB8Lchj@?L}fYal^>T9z;8juH@?rG&g-t+R2dVDBe zq!K%{e-rT5jX19`(bP23LUN4+_zh2KD~EAYzhpEO3MUG8@}uBHH@4J zd`>_(K4q&>*k82(dDuC)X6JuPrBBubOg7qZ{?x!r@{%0);*`h*^F|%o?&1wX?Wr4b z1~&cy#PUuES{C#xJ84!z<1tp9sfrR(i%Tu^jnXy;4`Xk;AQCdFC@?V%|; zySdC7qS|uQRcH}EFZH%mMB~7gi}a0utE}ZE_}8PQH8f;H%PN41Cb9R%w5Oi5el^fd z$n{3SqLCnrF##x?4sa^r!O$7NX!}&}V;0ZGQ&K&i%6$3C_dR%I7%gdQ;KT6YZiQrW zk%q<74oVBV>@}CvJ4Wj!d^?#Zwq(b$E1ze4$99DuNg?6t9H}k_|D7KWD7i0-g*EO7 z;5{hSIYE4DMOK3H%|f5Edx+S0VI0Yw!tsaRS2&Il2)ea^8R5TG72BrJue|f_{2UHa z@w;^c|K3da#$TB0P3;MPlF7RuQeXT$ zS<<|C0OF(k)>fr&wOB=gP8!Qm>F41u;3esv7_0l%QHt(~+n; zf!G6%hp;Gfa9L9=AceiZs~tK+Tf*Wof=4!u{nIO90jH@iS0l+#%8=~%ASzFv7zqSB^?!@N7)kp0t&tCGLmzXSRMRyxCmCYUD2!B`? zhs$4%KO~m=VFk3Buv9osha{v+mAEq=ik3RdK@;WWTV_g&-$U4IM{1IhGX{pAu%Z&H zFfwCpUsX%RKg);B@7OUzZ{Hn{q6Vv!3#8fAg!P$IEx<0vAx;GU%}0{VIsmFBPq_mb zpe^BChDK>sc-WLKl<6 zwbW|e&d&dv9Wu0goueyu>(JyPx1mz0v4E?cJjFuKF71Q1)AL8jHO$!fYT3(;U3Re* zPPOe%*O+@JYt1bW`!W_1!mN&=w3G9ru1XsmwfS~BJ))PhD(+_J_^N6j)sx5VwbWK| zwRyC?W<`pOCY)b#AS?rluxuuGf-AJ=D!M36l{ua?@SJ5>e!IBr3CXIxWw5xUZ@Xrw z_R@%?{>d%Ld4p}nEsiA@v*nc6Ah!MUs?GA7e5Q5lPpp0@`%5xY$C;{%rz24$;vR#* zBP=a{)K#CwIY%p} zXVdxTQ^HS@O&~eIftU+Qt^~(DGxrdi3k}DdT^I7Iy5SMOp$QuD8s;+93YQ!OY{eB24%xY7ml@|M7I(Nb@K_-?F;2?et|CKkuZK_>+>Lvg!>JE~wN`BI|_h6$qi!P)+K-1Hh(1;a`os z55)4Q{oJiA(lQM#;w#Ta%T0jDNXIPM_bgESMCDEg6rM33anEr}=|Fn6)|jBP6Y}u{ zv9@%7*#RI9;fv;Yii5CI+KrRdr0DKh=L>)eO4q$1zmcSmglsV`*N(x=&Wx`*v!!hn6X-l0 zP_m;X??O(skcj+oS$cIdKhfT%ABAzz3w^la-Ucw?yBPEC+=Pe_vU8nd-HV5YX6X8r zZih&j^eLU=%*;VzhUyoLF;#8QsEfmByk+Y~caBqSvQaaWf2a{JKB9B>V&r?l^rXaC z8)6AdR@Qy_BxQrE2Fk?ewD!SwLuMj@&d_n5RZFf7=>O>hzVE*seW3U?_p|R^CfoY`?|#x9)-*yjv#lo&zP=uI`M?J zbzC<^3x7GfXA4{FZ72{PE*-mNHyy59Q;kYG@BB~NhTd6pm2Oj=_ zizmD?MKVRkT^KmXuhsk?eRQllPo2Ubk=uCKiZ&u3Xjj~<(!M94c)Tez@9M1Gfs5JV z->@II)CDJOXTtPrQudNjE}Eltbjq>6KiwAwqvAKd^|g!exgLG3;wP+#mZYr`cy3#39e653d=jrR-ulW|h#ddHu(m9mFoW~2yE zz5?dB%6vF}+`-&-W8vy^OCxm3_{02royjvmwjlp+eQDzFVEUiyO#gLv%QdDSI#3W* z?3!lL8clTaNo-DVJw@ynq?q!%6hTQi35&^>P85G$TqNt78%9_sSJt2RThO|JzM$iL zg|wjxdMC2|Icc5rX*qPL(coL!u>-xxz-rFiC!6hD1IR%|HSRsV3>Kq~&vJ=s3M5y8SG%YBQ|{^l#LGlg!D?E>2yR*eV%9m$_J6VGQ~AIh&P$_aFbh zULr0Z$QE!QpkP=aAeR4ny<#3Fwyw@rZf4?Ewq`;mCVv}xaz+3ni+}a=k~P+yaWt^L z@w67!DqVf7D%7XtXX5xBW;Co|HvQ8WR1k?r2cZD%U;2$bsM%u8{JUJ5Z0k= zZJARv^vFkmWx15CB=rb=D4${+#DVqy5$C%bf`!T0+epLJLnh1jwCdb*zuCL}eEFvE z{rO1%gxg>1!W(I!owu*mJZ0@6FM(?C+d*CeceZRW_4id*D9p5nzMY&{mWqrJomjIZ z97ZNnZ3_%Hx8dn;H>p8m7F#^2;T%yZ3H;a&N7tm=Lvs&lgJLW{V1@h&6Vy~!+Ffbb zv(n3+v)_D$}dqd!2>Y2B)#<+o}LH#%ogGi2-?xRIH)1!SD)u-L65B&bsJTC=LiaF+YOCif2dUX6uAA|#+vNR z>U+KQekVGon)Yi<93(d!(yw1h3&X0N(PxN2{%vn}cnV?rYw z$N^}_o!XUB!mckL`yO1rnUaI4wrOeQ(+&k?2mi47hzxSD`N#-byqd1IhEoh!PGq>t z_MRy{5B0eKY>;Ao3z$RUU7U+i?iX^&r739F)itdrTpAi-NN0=?^m%?{A9Ly2pVv>Lqs6moTP?T2-AHqFD-o_ znVr|7OAS#AEH}h8SRPQ@NGG47dO}l=t07__+iK8nHw^(AHx&Wb<%jPc$$jl6_p(b$ z)!pi(0fQodCHfM)KMEMUR&UID>}m^(!{C^U7sBDOA)$VThRCI0_+2=( zV8mMq0R(#z;C|7$m>$>`tX+T|xGt(+Y48@ZYu#z;0pCgYgmMVbFb!$?%yhZqP_nhn zy4<#3P1oQ#2b51NU1mGnHP$cf0j-YOgAA}A$QoL6JVLcmExs(kU{4z;PBHJD%_=0F z>+sQV`mzijSIT7xn%PiDKHOujX;n|M&qr1T@rOxTdxtZ!&u&3HHFLYD5$RLQ=heur zb>+AFokUVQeJy-#LP*^)spt{mb@Mqe=A~-4p0b+Bt|pZ+@CY+%x}9f}izU5;4&QFE zO1bhg&A4uC1)Zb67kuowWY4xbo&J=%yoXlFB)&$d*-}kjBu|w!^zbD1YPc0-#XTJr z)pm2RDy%J3jlqSMq|o%xGS$bPwn4AqitC6&e?pqWcjWPt{3I{>CBy;hg0Umh#c;hU3RhCUX=8aR>rmd` z7Orw(5tcM{|-^J?ZAA9KP|)X6n9$-kvr#j5YDecTM6n z&07(nD^qb8hpF0B^z^pQ*%5ePYkv&FabrlI61ntiVp!!C8y^}|<2xgAd#FY=8b*y( zuQOuvy2`Ii^`VBNJB&R!0{hABYX55ooCAJSSevl4RPqEGb)iy_0H}v@vFwFzD%>#I>)3PsouQ+_Kkbqy*kKdHdfkN7NBcq%V{x^fSxgXpg7$bF& zj!6AQbDY(1u#1_A#1UO9AxiZaCVN2F0wGXdY*g@x$ByvUA?ePdide0dmr#}udE%K| z3*k}Vv2Ew2u1FXBaVA6aerI36R&rzEZeDDCl5!t0J=ug6kuNZzH>3i_VN`%BsaVB3 zQYw|Xub_SGf{)F{$ZX5`Jc!X!;eybjP+o$I{Z^Hsj@D=E{MnnL+TbC@HEU2DjG{3-LDGIbq()U87x4eS;JXnSh;lRlJ z>EL3D>wHt-+wTjQF$fGyDO$>d+(fq@bPpLBS~xA~R=3JPbS{tzN(u~m#Po!?H;IYv zE;?8%^vle|%#oux(Lj!YzBKv+Fd}*Ur-dCBoX*t{KeNM*n~ZPYJ4NNKkI^MFbz9!v z4(Bvm*Kc!-$%VFEewYJKz-CQN{`2}KX4*CeJEs+Q(!kI%hN1!1P6iOq?ovz}X0IOi z)YfWpwW@pK08^69#wSyCZkX9?uZD?C^@rw^Y?gLS_xmFKkooyx$*^5#cPqntNTtSG zlP>XLMj2!VF^0k#ole7`-c~*~+_T5ls?x4)ah(j8vo_ zwb%S8qoaZqY0-$ZI+ViIA_1~~rAH7K_+yFS{0rT@eQtTAdz#8E5VpwnW!zJ_^{Utv zlW5Iar3V5t&H4D6A=>?mq;G92;1cg9a2sf;gY9pJDVKn$DYdQlvfXq}zz8#LyPGq@ z+`YUMD;^-6w&r-82JL7mA8&M~Pj@aK!m{0+^v<|t%APYf7`}jGEhdYLqsHW-Le9TL z_hZZ1gbrz7$f9^fAzVIP30^KIz!!#+DRLL+qMszvI_BpOSmjtl$hh;&UeM{ER@INV zcI}VbiVTPoN|iSna@=7XkP&-4#06C};8ajbxJ4Gcq8(vWv4*&X8bM^T$mBk75Q92j z1v&%a;OSKc8EIrodmIiw$lOES2hzGDcjjB`kEDfJe{r}yE6`eZL zEB`9u>Cl0IsQ+t}`-cx}{6jqcANucqIB>Qmga_&<+80E2Q|VHHQ$YlAt{6`Qu`HA3 z03s0-sSlwbvgi&_R8s={6<~M^pGvBNjKOa>tWenzS8s zR>L7R5aZ=mSU{f?ib4Grx$AeFvtO5N|D>9#)ChH#Fny2maHWHOf2G=#<9Myot#+4u zWVa6d^Vseq_0=#AYS(-m$Lp;*8nC_6jXIjEM`omUmtH@QDs3|G)i4j*#_?#UYVZvJ z?YjT-?!4Q{BNun;dKBWLEw2C-VeAz`%?A>p;)PL}TAZn5j~HK>v1W&anteARlE+~+ zj>c(F;?qO3pXBb|#OZdQnm<4xWmn~;DR5SDMxt0UK_F^&eD|KZ=O;tO3vy4@4h^;2 zUL~-z`-P1aOe?|ZC1BgVsL)2^J-&vIFI%q@40w0{jjEfeVl)i9(~bt2z#2Vm)p`V_ z1;6$Ae7=YXk#=Qkd24Y23t&GvRxaOoad~NbJ+6pxqzJ>FY#Td7@`N5xp!n(c!=RE& z&<<@^a$_Ys8jqz4|5Nk#FY$~|FPC0`*a5HH!|Gssa9=~66&xG9)|=pOOJ2KE5|YrR zw!w6K2aC=J$t?L-;}5hn6mHd%hC;p8P|Dgh6D>hGnXPgi;6r+eA=?f72y9(Cf_ho{ zH6#)uD&R=73^$$NE;5piWX2bzR67fQ)`b=85o0eOLGI4c-Tb@-KNi2pz=Ke@SDcPn za$AxXib84`!Sf;Z3B@TSo`Dz7GM5Kf(@PR>Ghzi=BBxK8wRp>YQoXm+iL>H*Jo9M3 z6w&E?BC8AFTFT&Tv8zf+m9<&S&%dIaZ)Aoqkak_$r-2{$d~0g2oLETx9Y`eOAf14QXEQw3tJne;fdzl@wV#TFXSLXM2428F-Q}t+n2g%vPRMUzYPvzQ9f# zu(liiJem9P*?0%V@RwA7F53r~|I!Ty)<*AsMX3J{_4&}{6pT%Tpw>)^|DJ)>gpS~1rNEh z0$D?uO8mG?H;2BwM5a*26^7YO$XjUm40XmBsb63MoR;bJh63J;OngS5sSI+o2HA;W zdZV#8pDpC9Oez&L8loZO)MClRz!_!WD&QRtQxnazhT%Vj6Wl4G11nUk8*vSeVab@N#oJ}`KyJv+8Mo@T1-pqZ1t|?cnaVOd;1(h9 z!$DrN=jcGsVYE-0-n?oCJ^4x)F}E;UaD-LZUIzcD?W^ficqJWM%QLy6QikrM1aKZC zi{?;oKwq^Vsr|&`i{jIphA8S6G4)$KGvpULjH%9u(Dq247;R#l&I0{IhcC|oBF*Al zvLo7Xte=C{aIt*otJD}BUq)|_pdR>{zBMT< z(^1RpZv*l*m*OV^8>9&asGBo8h*_4q*)-eCv*|Pq=XNGrZE)^(SF7^{QE_~4VDB(o zVcPA_!G+2CAtLbl+`=Q~9iW`4ZRLku!uB?;tWqVjB0lEOf}2RD7dJ=BExy=<9wkb- z9&7{XFA%n#JsHYN8t5d~=T~5DcW4$B%3M+nNvC2`0!#@sckqlzo5;hhGi(D9=*A4` z5ynobawSPRtWn&CDLEs3Xf`(8^zDP=NdF~F^s&={l7(aw&EG}KWpMjtmz7j_VLO;@ zM2NVLDxZ@GIv7*gzl1 zjq78tv*8#WSY`}Su0&C;2F$Ze(q>F(@Wm^Gw!)(j;dk9Ad{STaxn)IV9FZhm*n+U} zi;4y*3v%A`_c7a__DJ8D1b@dl0Std3F||4Wtvi)fCcBRh!X9$1x!_VzUh>*S5s!oq z;qd{J_r79EL2wIeiGAqFstWtkfIJpjVh%zFo*=55B9Zq~y0=^iqHWfQl@O!Ak;(o*m!pZqe9 z%U2oDOhR)BvW8&F70L;2TpkzIutIvNQaTjjs5V#8mV4!NQ}zN=i`i@WI1z0eN-iCS z;vL-Wxc^Vc_qK<5RPh(}*8dLT{~GzE{w2o$2kMFaEl&q zP{V=>&3kW7tWaK-Exy{~`v4J0U#OZBk{a9{&)&QG18L@6=bsZ1zC_d{{pKZ-Ey>I> z;8H0t4bwyQqgu4hmO`3|4K{R*5>qnQ&gOfdy?z`XD%e5+pTDzUt3`k^u~SaL&XMe= z9*h#kT(*Q9jO#w2Hd|Mr-%DV8i_1{J1MU~XJ3!WUplhXDYBpJH><0OU`**nIvPIof z|N8@I=wA)sf45SAvx||f?Z5uB$kz1qL3Ky_{%RPdP5iN-D2!p5scq}buuC00C@jom zhfGKm3|f?Z0iQ|K$Z~!`8{nmAS1r+fp6r#YDOS8V*;K&Gs7Lc&f^$RC66O|)28oh`NHy&vq zJh+hAw8+ybTB0@VhWN^0iiTnLsCWbS_y`^gs!LX!Lw{yE``!UVzrV24tP8o;I6-65 z1MUiHw^{bB15tmrVT*7-#sj6cs~z`wk52YQJ*TG{SE;KTm#Hf#a~|<(|ImHH17nNM z`Ub{+J3dMD!)mzC8b(2tZtokKW5pAwHa?NFiso~# z1*iaNh4lQ4TS)|@G)H4dZV@l*Vd;Rw;-;odDhW2&lJ%m@jz+Panv7LQm~2Js6rOW3 z0_&2cW^b^MYW3)@o;neZ<{B4c#m48dAl$GCc=$>ErDe|?y@z`$uq3xd(%aAsX)D%l z>y*SQ%My`yDP*zof|3@_w#cjaW_YW4BdA;#Glg1RQcJGY*CJ9`H{@|D+*e~*457kd z73p<%fB^PV!Ybw@)Dr%(ZJbX}xmCStCYv#K3O32ej{$9IzM^I{6FJ8!(=azt7RWf4 z7ib0UOPqN40X!wOnFOoddd8`!_IN~9O)#HRTyjfc#&MCZ zZAMzOVB=;qwt8gV?{Y2?b=iSZG~RF~uyx18K)IDFLl})G1v@$(s{O4@RJ%OTJyF+Cpcx4jmy|F3euCnMK!P2WTDu5j z{{gD$=M*pH!GGzL%P)V2*ROm>!$Y=z|D`!_yY6e7SU$~a5q8?hZGgaYqaiLnkK%?0 zs#oI%;zOxF@g*@(V4p!$7dS1rOr6GVs6uYCTt2h)eB4?(&w8{#o)s#%gN@BBosRUe z)@P@8_Zm89pr~)b>e{tbPC~&_MR--iB{=)y;INU5#)@Gix-YpgP<-c2Ms{9zuCX|3 z!p(?VaXww&(w&uBHzoT%!A2=3HAP>SDxcljrego7rY|%hxy3XlODWffO_%g|l+7Y_ zqV(xbu)s4lV=l7M;f>vJl{`6qBm>#ZeMA}kXb97Z)?R97EkoI?x6Lp0yu1Z>PS?2{ z0QQ(8D)|lc9CO3B~e(pQM&5(1y&y=e>C^X$`)_&XuaI!IgDTVqt31wX#n+@!a_A0ZQkA zCJ2@M_4Gb5MfCrm5UPggeyh)8 zO9?`B0J#rkoCx(R0I!ko_2?iO@|oRf1;3r+i)w-2&j?=;NVIdPFsB)`|IC0zk6r9c zRrkfxWsiJ(#8QndNJj@{@WP2Ackr|r1VxV{7S&rSU(^)-M8gV>@UzOLXu9K<{6e{T zXJ6b92r$!|lwjhmgqkdswY&}c)KW4A)-ac%sU;2^fvq7gfUW4Bw$b!i@duy1CAxSn z(pyh$^Z=&O-q<{bZUP+$U}=*#M9uVc>CQVgDs4swy5&8RAHZ~$)hrTF4W zPsSa~qYv_0mJnF89RnnJTH`3}w4?~epFl=D(35$ zWa07ON$`OMBOHgCmfO(9RFc<)?$x)N}Jd2A(<*Ll7+4jrRt9w zwGxExUXd9VB#I|DwfxvJ;HZ8Q{37^wDhaZ%O!oO(HpcqfLH%#a#!~;Jl7F5>EX_=8 z{()l2NqPz>La3qJR;_v+wlK>GsHl;uRA8%j`A|yH@k5r%55S9{*Cp%uw6t`qc1!*T za2OeqtQj7sAp#Q~=5Fs&aCR9v>5V+s&RdNvo&H~6FJOjvaj--2sYYBvMq;55%z8^o z|BJDA4vzfow#DO#ZQHh;Oq_{r+qP{R9ox2TOgwQiv7Ow!zjN+A@BN;0tA2lUb#+zO z(^b89eV)D7UVE+h{mcNc6&GtpOqDn_?VAQ)Vob$hlFwW%xh>D#wml{t&Ofmm_d_+; zKDxzdr}`n2Rw`DtyIjrG)eD0vut$}dJAZ0AohZ+ZQdWXn_Z@dI_y=7t3q8x#pDI-K z2VVc&EGq445Rq-j0=U=Zx`oBaBjsefY;%)Co>J3v4l8V(T8H?49_@;K6q#r~Wwppc z4XW0(4k}cP=5ex>-Xt3oATZ~bBWKv)aw|I|Lx=9C1s~&b77idz({&q3T(Y(KbWO?+ zmcZ6?WeUsGk6>km*~234YC+2e6Zxdl~<_g2J|IE`GH%n<%PRv-50; zH{tnVts*S5*_RxFT9eM0z-pksIb^drUq4>QSww=u;UFCv2AhOuXE*V4z?MM`|ABOC4P;OfhS(M{1|c%QZ=!%rQTDFx`+}?Kdx$&FU?Y<$x;j7z=(;Lyz+?EE>ov!8vvMtSzG!nMie zsBa9t8as#2nH}n8xzN%W%U$#MHNXmDUVr@GX{?(=yI=4vks|V)!-W5jHsU|h_&+kY zS_8^kd3jlYqOoiI`ZqBVY!(UfnAGny!FowZWY_@YR0z!nG7m{{)4OS$q&YDyw6vC$ zm4!$h>*|!2LbMbxS+VM6&DIrL*X4DeMO!@#EzMVfr)e4Tagn~AQHIU8?e61TuhcKD zr!F4(kEebk(Wdk-?4oXM(rJwanS>Jc%<>R(siF+>+5*CqJLecP_we33iTFTXr6W^G z7M?LPC-qFHK;E!fxCP)`8rkxZyFk{EV;G-|kwf4b$c1k0atD?85+|4V%YATWMG|?K zLyLrws36p%Qz6{}>7b>)$pe>mR+=IWuGrX{3ZPZXF3plvuv5Huax86}KX*lbPVr}L z{C#lDjdDeHr~?l|)Vp_}T|%$qF&q#U;ClHEPVuS+Jg~NjC1RP=17=aQKGOcJ6B3mp z8?4*-fAD~}sX*=E6!}^u8)+m2j<&FSW%pYr_d|p_{28DZ#Cz0@NF=gC-o$MY?8Ca8 zr5Y8DSR^*urS~rhpX^05r30Ik#2>*dIOGxRm0#0YX@YQ%Mg5b6dXlS!4{7O_kdaW8PFSdj1=ryI-=5$fiieGK{LZ+SX(1b=MNL!q#lN zv98?fqqTUH8r8C7v(cx#BQ5P9W>- zmW93;eH6T`vuJ~rqtIBg%A6>q>gnWb3X!r0wh_q;211+Om&?nvYzL1hhtjB zK_7G3!n7PL>d!kj){HQE zE8(%J%dWLh1_k%gVXTZt zEdT09XSKAx27Ncaq|(vzL3gm83q>6CAw<$fTnMU05*xAe&rDfCiu`u^1)CD<>sx0i z*hr^N_TeN89G(nunZoLBf^81#pmM}>JgD@Nn1l*lN#a=B=9pN%tmvYFjFIoKe_(GF z-26x{(KXdfsQL7Uv6UtDuYwV`;8V3w>oT_I<`Ccz3QqK9tYT5ZQzbop{=I=!pMOCb zCU68`n?^DT%^&m>A%+-~#lvF!7`L7a{z<3JqIlk1$<||_J}vW1U9Y&eX<}l8##6i( zZcTT@2`9(Mecptm@{3A_Y(X`w9K0EwtPq~O!16bq{7c0f7#(3wn-^)h zxV&M~iiF!{-6A@>o;$RzQ5A50kxXYj!tcgme=Qjrbje~;5X2xryU;vH|6bE(8z^<7 zQ>BG7_c*JG8~K7Oe68i#0~C$v?-t@~@r3t2inUnLT(c=URpA9kA8uq9PKU(Ps(LVH zqgcqW>Gm?6oV#AldDPKVRcEyQIdTT`Qa1j~vS{<;SwyTdr&3*t?J)y=M7q*CzucZ&B0M=joT zBbj@*SY;o2^_h*>R0e({!QHF0=)0hOj^B^d*m>SnRrwq>MolNSgl^~r8GR#mDWGYEIJA8B<|{{j?-7p zVnV$zancW3&JVDtVpIlI|5djKq0(w$KxEFzEiiL=h5Jw~4Le23@s(mYyXWL9SX6Ot zmb)sZaly_P%BeX_9 zw&{yBef8tFm+%=--m*J|o~+Xg3N+$IH)t)=fqD+|fEk4AAZ&!wcN5=mi~Vvo^i`}> z#_3ahR}Ju)(Px7kev#JGcSwPXJ2id9%Qd2A#Uc@t8~egZ8;iC{e! z%=CGJOD1}j!HW_sgbi_8suYnn4#Ou}%9u)dXd3huFIb!ytlX>Denx@pCS-Nj$`VO&j@(z!kKSP0hE4;YIP#w9ta=3DO$7f*x zc9M4&NK%IrVmZAe=r@skWD`AEWH=g+r|*13Ss$+{c_R!b?>?UaGXlw*8qDmY#xlR= z<0XFbs2t?8i^G~m?b|!Hal^ZjRjt<@a? z%({Gn14b4-a|#uY^=@iiKH+k?~~wTj5K1A&hU z2^9-HTC)7zpoWK|$JXaBL6C z#qSNYtY>65T@Zs&-0cHeu|RX(Pxz6vTITdzJdYippF zC-EB+n4}#lM7`2Ry~SO>FxhKboIAF#Z{1wqxaCb{#yEFhLuX;Rx(Lz%T`Xo1+a2M}7D+@wol2)OJs$TwtRNJ={( zD@#zTUEE}#Fz#&(EoD|SV#bayvr&E0vzmb%H?o~46|FAcx?r4$N z&67W3mdip-T1RIxwSm_&(%U|+WvtGBj*}t69XVd&ebn>KOuL(7Y8cV?THd-(+9>G7*Nt%T zcH;`p={`SOjaf7hNd(=37Lz3-51;58JffzIPgGs_7xIOsB5p2t&@v1mKS$2D$*GQ6 zM(IR*j4{nri7NMK9xlDy-hJW6sW|ZiDRaFiayj%;(%51DN!ZCCCXz+0Vm#};70nOx zJ#yA0P3p^1DED;jGdPbQWo0WATN=&2(QybbVdhd=Vq*liDk`c7iZ?*AKEYC#SY&2g z&Q(Ci)MJ{mEat$ZdSwTjf6h~roanYh2?9j$CF@4hjj_f35kTKuGHvIs9}Re@iKMxS-OI*`0S z6s)fOtz}O$T?PLFVSeOjSO26$@u`e<>k(OSP!&YstH3ANh>)mzmKGNOwOawq-MPXe zy4xbeUAl6tamnx))-`Gi2uV5>9n(73yS)Ukma4*7fI8PaEwa)dWHs6QA6>$}7?(L8 ztN8M}?{Tf!Zu22J5?2@95&rQ|F7=FK-hihT-vDp!5JCcWrVogEnp;CHenAZ)+E+K5 z$Cffk5sNwD_?4+ymgcHR(5xgt20Z8M`2*;MzOM#>yhk{r3x=EyM226wb&!+j`W<%* zSc&|`8!>dn9D@!pYow~(DsY_naSx7(Z4i>cu#hA5=;IuI88}7f%)bRkuY2B;+9Uep zpXcvFWkJ!mQai63BgNXG26$5kyhZ2&*3Q_tk)Ii4M>@p~_~q_cE!|^A;_MHB;7s#9 zKzMzK{lIxotjc};k67^Xsl-gS!^*m*m6kn|sbdun`O?dUkJ{0cmI0-_2y=lTAfn*Y zKg*A-2sJq)CCJgY0LF-VQvl&6HIXZyxo2#!O&6fOhbHXC?%1cMc6y^*dOS{f$=137Ds1m01qs`>iUQ49JijsaQ( zksqV9@&?il$|4Ua%4!O15>Zy&%gBY&wgqB>XA3!EldQ%1CRSM(pp#k~-pkcCg4LAT zXE=puHbgsw)!xtc@P4r~Z}nTF=D2~j(6D%gTBw$(`Fc=OOQ0kiW$_RDd=hcO0t97h zb86S5r=>(@VGy1&#S$Kg_H@7G^;8Ue)X5Y+IWUi`o;mpvoV)`fcVk4FpcT|;EG!;? zHG^zrVVZOm>1KFaHlaogcWj(v!S)O(Aa|Vo?S|P z5|6b{qkH(USa*Z7-y_Uvty_Z1|B{rTS^qmEMLEYUSk03_Fg&!O3BMo{b^*`3SHvl0 zhnLTe^_vVIdcSHe)SQE}r~2dq)VZJ!aSKR?RS<(9lzkYo&dQ?mubnWmgMM37Nudwo z3Vz@R{=m2gENUE3V4NbIzAA$H1z0pagz94-PTJyX{b$yndsdKptmlKQKaaHj@3=ED zc7L?p@%ui|RegVYutK$64q4pe9+5sv34QUpo)u{1ci?)_7gXQd{PL>b0l(LI#rJmN zGuO+%GO`xneFOOr4EU(Wg}_%bhzUf;d@TU+V*2#}!2OLwg~%D;1FAu=Un>OgjPb3S z7l(riiCwgghC=Lm5hWGf5NdGp#01xQ59`HJcLXbUR3&n%P(+W2q$h2Qd z*6+-QXJ*&Kvk9ht0f0*rO_|FMBALen{j7T1l%=Q>gf#kma zQlg#I9+HB+z*5BMxdesMND`_W;q5|FaEURFk|~&{@qY32N$G$2B=&Po{=!)x5b!#n zxLzblkq{yj05#O7(GRuT39(06FJlalyv<#K4m}+vs>9@q-&31@1(QBv82{}Zkns~K ze{eHC_RDX0#^A*JQTwF`a=IkE6Ze@j#-8Q`tTT?k9`^ZhA~3eCZJ-Jr{~7Cx;H4A3 zcZ+Zj{mzFZbVvQ6U~n>$U2ZotGsERZ@}VKrgGh0xM;Jzt29%TX6_&CWzg+YYMozrM z`nutuS)_0dCM8UVaKRj804J4i%z2BA_8A4OJRQ$N(P9Mfn-gF;4#q788C@9XR0O3< zsoS4wIoyt046d+LnSCJOy@B@Uz*#GGd#+Ln1ek5Dv>(ZtD@tgZlPnZZJGBLr^JK+!$$?A_fA3LOrkoDRH&l7 zcMcD$Hsjko3`-{bn)jPL6E9Ds{WskMrivsUu5apD z?grQO@W7i5+%X&E&p|RBaEZ(sGLR@~(y^BI@lDMot^Ll?!`90KT!JXUhYS`ZgX3jnu@Ja^seA*M5R@f`=`ynQV4rc$uT1mvE?@tz)TN<=&H1%Z?5yjxcpO+6y_R z6EPuPKM5uxKpmZfT(WKjRRNHs@ib)F5WAP7QCADvmCSD#hPz$V10wiD&{NXyEwx5S z6NE`3z!IS^$s7m}PCwQutVQ#~w+V z=+~->DI*bR2j0^@dMr9`p>q^Ny~NrAVxrJtX2DUveic5vM%#N*XO|?YAWwNI$Q)_) zvE|L(L1jP@F%gOGtnlXtIv2&1i8q<)Xfz8O3G^Ea~e*HJsQgBxWL(yuLY+jqUK zRE~`-zklrGog(X}$9@ZVUw!8*=l`6mzYLtsg`AvBYz(cxmAhr^j0~(rzXdiOEeu_p zE$sf2(w(BPAvO5DlaN&uQ$4@p-b?fRs}d7&2UQ4Fh?1Hzu*YVjcndqJLw0#q@fR4u zJCJ}>_7-|QbvOfylj+e^_L`5Ep9gqd>XI3-O?Wp z-gt*P29f$Tx(mtS`0d05nHH=gm~Po_^OxxUwV294BDKT>PHVlC5bndncxGR!n(OOm znsNt@Q&N{TLrmsoKFw0&_M9$&+C24`sIXGWgQaz=kY;S{?w`z^Q0JXXBKFLj0w0U6P*+jPKyZHX9F#b0D1$&(- zrm8PJd?+SrVf^JlfTM^qGDK&-p2Kdfg?f>^%>1n8bu&byH(huaocL>l@f%c*QkX2i znl}VZ4R1en4S&Bcqw?$=Zi7ohqB$Jw9x`aM#>pHc0x z0$!q7iFu zZ`tryM70qBI6JWWTF9EjgG@>6SRzsd}3h+4D8d~@CR07P$LJ}MFsYi-*O%XVvD@yT|rJ+Mk zDllJ7$n0V&A!0flbOf)HE6P_afPWZmbhpliqJuw=-h+r;WGk|ntkWN(8tKlYpq5Ow z(@%s>IN8nHRaYb*^d;M(D$zGCv5C|uqmsDjwy4g=Lz>*OhO3z=)VD}C<65;`89Ye} zSCxrv#ILzIpEx1KdLPlM&%Cctf@FqTKvNPXC&`*H9=l=D3r!GLM?UV zOxa(8ZsB`&+76S-_xuj?G#wXBfDY@Z_tMpXJS7^mp z@YX&u0jYw2A+Z+bD#6sgVK5ZgdPSJV3>{K^4~%HV?rn~4D)*2H!67Y>0aOmzup`{D zzDp3c9yEbGCY$U<8biJ_gB*`jluz1ShUd!QUIQJ$*1;MXCMApJ^m*Fiv88RZ zFopLViw}{$Tyhh_{MLGIE2~sZ)t0VvoW%=8qKZ>h=adTe3QM$&$PO2lfqH@brt!9j ziePM8$!CgE9iz6B<6_wyTQj?qYa;eC^{x_0wuwV~W+^fZmFco-o%wsKSnjXFEx02V zF5C2t)T6Gw$Kf^_c;Ei3G~uC8SM-xyycmXyC2hAVi-IfXqhu$$-C=*|X?R0~hu z8`J6TdgflslhrmDZq1f?GXF7*ALeMmOEpRDg(s*H`4>_NAr`2uqF;k;JQ+8>A|_6ZNsNLECC%NNEb1Y1dP zbIEmNpK)#XagtL4R6BC{C5T(+=yA-(Z|Ap}U-AfZM#gwVpus3(gPn}Q$CExObJ5AC z)ff9Yk?wZ}dZ-^)?cbb9Fw#EjqQ8jxF4G3=L?Ra zg_)0QDMV1y^A^>HRI$x?Op@t;oj&H@1xt4SZ9(kifQ zb59B*`M99Td7@aZ3UWvj1rD0sE)d=BsBuW*KwkCds7ay(7*01_+L}b~7)VHI>F_!{ zyxg-&nCO?v#KOUec0{OOKy+sjWA;8rTE|Lv6I9H?CI?H(mUm8VXGwU$49LGpz&{nQp2}dinE1@lZ1iox6{ghN&v^GZv9J${7WaXj)<0S4g_uiJ&JCZ zr8-hsu`U%N;+9N^@&Q0^kVPB3)wY(rr}p7{p0qFHb3NUUHJb672+wRZs`gd1UjKPX z4o6zljKKA+Kkj?H>Ew63o%QjyBk&1!P22;MkD>sM0=z_s-G{mTixJCT9@_|*(p^bz zJ8?ZZ&;pzV+7#6Mn`_U-)k8Pjg?a;|Oe^us^PoPY$Va~yi8|?+&=y$f+lABT<*pZr zP}D{~Pq1Qyni+@|aP;ixO~mbEW9#c0OU#YbDZIaw=_&$K%Ep2f%hO^&P67hApZe`x zv8b`Mz@?M_7-)b!lkQKk)JXXUuT|B8kJlvqRmRpxtQDgvrHMXC1B$M@Y%Me!BSx3P z#2Eawl$HleZhhTS6Txm>lN_+I`>eV$&v9fOg)%zVn3O5mI*lAl>QcHuW6!Kixmq`X zBCZ*Ck6OYtDiK!N47>jxI&O2a9x7M|i^IagRr-fmrmikEQGgw%J7bO|)*$2FW95O4 zeBs>KR)izRG1gRVL;F*sr8A}aRHO0gc$$j&ds8CIO1=Gwq1%_~E)CWNn9pCtBE}+`Jelk4{>S)M)`Ll=!~gnn1yq^EX(+y*ik@3Ou0qU`IgYi3*doM+5&dU!cho$pZ zn%lhKeZkS72P?Cf68<#kll_6OAO26bIbueZx**j6o;I0cS^XiL`y+>{cD}gd%lux} z)3N>MaE24WBZ}s0ApfdM;5J_Ny}rfUyxfkC``Awo2#sgLnGPewK};dORuT?@I6(5~ z?kE)Qh$L&fwJXzK){iYx!l5$Tt|^D~MkGZPA}(o6f7w~O2G6Vvzdo*a;iXzk$B66$ zwF#;wM7A+(;uFG4+UAY(2`*3XXx|V$K8AYu#ECJYSl@S=uZW$ksfC$~qrrbQj4??z-)uz0QL}>k^?fPnJTPw% zGz)~?B4}u0CzOf@l^um}HZzbaIwPmb<)< zi_3@E9lc)Qe2_`*Z^HH;1CXOceL=CHpHS{HySy3T%<^NrWQ}G0i4e1xm_K3(+~oi$ zoHl9wzb?Z4j#90DtURtjtgvi7uw8DzHYmtPb;?%8vb9n@bszT=1qr)V_>R%s!92_` zfnHQPANx z<#hIjIMm#*(v*!OXtF+w8kLu`o?VZ5k7{`vw{Yc^qYclpUGIM_PBN1+c{#Vxv&E*@ zxg=W2W~JuV{IuRYw3>LSI1)a!thID@R=bU+cU@DbR^_SXY`MC7HOsCN z!dO4OKV7(E_Z8T#8MA1H`99?Z!r0)qKW_#|29X3#Jb+5+>qUidbeP1NJ@)(qi2S-X zao|f0_tl(O+$R|Qwd$H{_ig|~I1fbp_$NkI!0E;Y z6JrnU{1Ra6^on{9gUUB0mwzP3S%B#h0fjo>JvV~#+X0P~JV=IG=yHG$O+p5O3NUgG zEQ}z6BTp^Fie)Sg<){Z&I8NwPR(=mO4joTLHkJ>|Tnk23E(Bo`FSbPc05lF2-+)X? z6vV3*m~IBHTy*^E!<0nA(tCOJW2G4DsH7)BxLV8kICn5lu6@U*R`w)o9;Ro$i8=Q^V%uH8n3q=+Yf;SFRZu z!+F&PKcH#8cG?aSK_Tl@K9P#8o+jry@gdexz&d(Q=47<7nw@e@FFfIRNL9^)1i@;A z28+$Z#rjv-wj#heI|<&J_DiJ*s}xd-f!{J8jfqOHE`TiHHZVIA8CjkNQ_u;Ery^^t zl1I75&u^`1_q)crO+JT4rx|z2ToSC>)Or@-D zy3S>jW*sNIZR-EBsfyaJ+Jq4BQE4?SePtD2+jY8*%FsSLZ9MY>+wk?}}}AFAw)vr{ml)8LUG-y9>^t!{~|sgpxYc0Gnkg`&~R z-pilJZjr@y5$>B=VMdZ73svct%##v%wdX~9fz6i3Q-zOKJ9wso+h?VME7}SjL=!NUG{J?M&i!>ma`eoEa@IX`5G>B1(7;%}M*%-# zfhJ(W{y;>MRz!Ic8=S}VaBKqh;~7KdnGEHxcL$kA-6E~=!hrN*zw9N+_=odt<$_H_8dbo;0=42wcAETPCVGUr~v(`Uai zb{=D!Qc!dOEU6v)2eHSZq%5iqK?B(JlCq%T6av$Cb4Rko6onlG&?CqaX7Y_C_cOC3 zYZ;_oI(}=>_07}Oep&Ws7x7-R)cc8zfe!SYxJYP``pi$FDS)4Fvw5HH=FiU6xfVqIM!hJ;Rx8c0cB7~aPtNH(Nmm5Vh{ibAoU#J6 zImRCr?(iyu_4W_6AWo3*vxTPUw@vPwy@E0`(>1Qi=%>5eSIrp^`` zK*Y?fK_6F1W>-7UsB)RPC4>>Ps9)f+^MqM}8AUm@tZ->j%&h1M8s*s!LX5&WxQcAh z8mciQej@RPm?660%>{_D+7er>%zX_{s|$Z+;G7_sfNfBgY(zLB4Ey}J9F>zX#K0f6 z?dVNIeEh?EIShmP6>M+d|0wMM85Sa4diw1hrg|ITJ}JDg@o8y>(rF9mXk5M z2@D|NA)-7>wD&wF;S_$KS=eE84`BGw3g0?6wGxu8ys4rwI?9U=*^VF22t3%mbGeOh z`!O-OpF7#Vceu~F`${bW0nYVU9ecmk31V{tF%iv&5hWofC>I~cqAt@u6|R+|HLMMX zVxuSlMFOK_EQ86#E8&KwxIr8S9tj_goWtLv4f@!&h8;Ov41{J~496vp9vX=(LK#j! zAwi*21RAV-LD>9Cw3bV_9X(X3)Kr0-UaB*7Y>t82EQ%!)(&(XuAYtTsYy-dz+w=$ir)VJpe!_$ z6SGpX^i(af3{o=VlFPC);|J8#(=_8#vdxDe|Cok+ANhYwbE*FO`Su2m1~w+&9<_9~ z-|tTU_ACGN`~CNW5WYYBn^B#SwZ(t4%3aPp z;o)|L6Rk569KGxFLUPx@!6OOa+5OjQLK5w&nAmwxkC5rZ|m&HT8G%GVZxB_@ME z>>{rnXUqyiJrT(8GMj_ap#yN_!9-lO5e8mR3cJiK3NE{_UM&=*vIU`YkiL$1%kf+1 z4=jk@7EEj`u(jy$HnzE33ZVW_J4bj}K;vT?T91YlO(|Y0FU4r+VdbmQ97%(J5 zkK*Bed8+C}FcZ@HIgdCMioV%A<*4pw_n}l*{Cr4}a(lq|injK#O?$tyvyE`S%(1`H z_wwRvk#13ElkZvij2MFGOj`fhy?nC^8`Zyo%yVcUAfEr8x&J#A{|moUBAV_^f$hpaUuyQeY3da^ zS9iRgf87YBwfe}>BO+T&Fl%rfpZh#+AM?Dq-k$Bq`vG6G_b4z%Kbd&v>qFjow*mBl z-OylnqOpLg}or7_VNwRg2za3VBK6FUfFX{|TD z`Wt0Vm2H$vdlRWYQJqDmM?JUbVqL*ZQY|5&sY*?!&%P8qhA~5+Af<{MaGo(dl&C5t zE%t!J0 zh6jqANt4ABdPxSTrVV}fLsRQal*)l&_*rFq(Ez}ClEH6LHv{J#v?+H-BZ2)Wy{K@9 z+ovXHq~DiDvm>O~r$LJo!cOuwL+Oa--6;UFE2q@g3N8Qkw5E>ytz^(&($!O47+i~$ zKM+tkAd-RbmP{s_rh+ugTD;lriL~`Xwkad#;_aM?nQ7L_muEFI}U_4$phjvYgleK~`Fo`;GiC07&Hq1F<%p;9Q;tv5b?*QnR%8DYJH3P>Svmv47Y>*LPZJy8_{9H`g6kQpyZU{oJ`m%&p~D=K#KpfoJ@ zn-3cqmHsdtN!f?~w+(t+I`*7GQA#EQC^lUA9(i6=i1PqSAc|ha91I%X&nXzjYaM{8$s&wEx@aVkQ6M{E2 zfzId#&r(XwUNtPcq4Ngze^+XaJA1EK-%&C9j>^9(secqe{}z>hR5CFNveMsVA)m#S zk)_%SidkY-XmMWlVnQ(mNJ>)ooszQ#vaK;!rPmGKXV7am^_F!Lz>;~{VrIO$;!#30XRhE1QqO_~#+Ux;B_D{Nk=grn z8Y0oR^4RqtcYM)7a%@B(XdbZCOqnX#fD{BQTeLvRHd(irHKq=4*jq34`6@VAQR8WG z^%)@5CXnD_T#f%@-l${>y$tfb>2LPmc{~5A82|16mH)R?&r#KKLs7xpN-D`=&Cm^R zvMA6#Ahr<3X>Q7|-qfTY)}32HkAz$_mibYV!I)u>bmjK`qwBe(>za^0Kt*HnFbSdO z1>+ryKCNxmm^)*$XfiDOF2|{-v3KKB?&!(S_Y=Ht@|ir^hLd978xuI&N{k>?(*f8H z=ClxVJK_%_z1TH0eUwm2J+2To7FK4o+n_na)&#VLn1m;!+CX+~WC+qg1?PA~KdOlC zW)C@pw75_xoe=w7i|r9KGIvQ$+3K?L{7TGHwrQM{dCp=Z*D}3kX7E-@sZnup!BImw z*T#a=+WcTwL78exTgBn|iNE3#EsOorO z*kt)gDzHiPt07fmisA2LWN?AymkdqTgr?=loT7z@d`wnlr6oN}@o|&JX!yPzC*Y8d zu6kWlTzE1)ckyBn+0Y^HMN+GA$wUO_LN6W>mxCo!0?oiQvT`z$jbSEu&{UHRU0E8# z%B^wOc@S!yhMT49Y)ww(Xta^8pmPCe@eI5C*ed96)AX9<>))nKx0(sci8gwob_1}4 z0DIL&vsJ1_s%<@y%U*-eX z5rN&(zef-5G~?@r79oZGW1d!WaTqQn0F6RIOa9tJ=0(kdd{d1{<*tHT#cCvl*i>YY zH+L7jq8xZNcTUBqj(S)ztTU!TM!RQ}In*n&Gn<>(60G7}4%WQL!o>hbJqNDSGwl#H z`4k+twp0cj%PsS+NKaxslAEu9!#U3xT1|_KB6`h=PI0SW`P9GTa7caD1}vKEglV8# zjKZR`pluCW19c2fM&ZG)c3T3Um;ir3y(tSCJ7Agl6|b524dy5El{^EQBG?E61H0XY z`bqg!;zhGhyMFl&(o=JWEJ8n~z)xI}A@C0d2hQGvw7nGv)?POU@(kS1m=%`|+^ika zXl8zjS?xqW$WlO?Ewa;vF~XbybHBor$f<%I&*t$F5fynwZlTGj|IjZtVfGa7l&tK} zW>I<69w(cZLu)QIVG|M2xzW@S+70NinQzk&Y0+3WT*cC)rx~04O-^<{JohU_&HL5XdUKW!uFy|i$FB|EMu0eUyW;gsf`XfIc!Z0V zeK&*hPL}f_cX=@iv>K%S5kL;cl_$v?n(Q9f_cChk8Lq$glT|=e+T*8O4H2n<=NGmn z+2*h+v;kBvF>}&0RDS>)B{1!_*XuE8A$Y=G8w^qGMtfudDBsD5>T5SB;Qo}fSkkiV ze^K^M(UthkwrD!&*tTsu>Dacdj_q`~V%r_twr$(Ct&_dKeeXE?fA&4&yASJWJ*}~- zel=@W)tusynfC_YqH4ll>4Eg`Xjs5F7Tj>tTLz<0N3)X<1px_d2yUY>X~y>>93*$) z5PuNMQLf9Bu?AAGO~a_|J2akO1M*@VYN^VxvP0F$2>;Zb9;d5Yfd8P%oFCCoZE$ z4#N$^J8rxYjUE_6{T%Y>MmWfHgScpuGv59#4u6fpTF%~KB^Ae`t1TD_^Ud#DhL+Dm zbY^VAM#MrAmFj{3-BpVSWph2b_Y6gCnCAombVa|1S@DU)2r9W<> zT5L8BB^er3zxKt1v(y&OYk!^aoQisqU zH(g@_o)D~BufUXcPt!Ydom)e|aW{XiMnes2z&rE?og>7|G+tp7&^;q?Qz5S5^yd$i z8lWr4g5nctBHtigX%0%XzIAB8U|T6&JsC4&^hZBw^*aIcuNO47de?|pGXJ4t}BB`L^d8tD`H`i zqrP8?#J@8T#;{^B!KO6J=@OWKhAerih(phML`(Rg7N1XWf1TN>=Z3Do{l_!d~DND&)O)D>ta20}@Lt77qSnVsA7>)uZAaT9bsB>u&aUQl+7GiY2|dAEg@%Al3i316y;&IhQL^8fw_nwS>f60M_-m+!5)S_6EPM7Y)(Nq^8gL7(3 zOiot`6Wy6%vw~a_H?1hLVzIT^i1;HedHgW9-P#)}Y6vF%C=P70X0Tk^z9Te@kPILI z_(gk!k+0%CG)%!WnBjjw*kAKs_lf#=5HXC00s-}oM-Q1aXYLj)(1d!_a7 z*Gg4Fe6F$*ujVjI|79Z5+Pr`us%zW@ln++2l+0hsngv<{mJ%?OfSo_3HJXOCys{Ug z00*YR-(fv<=&%Q!j%b-_ppA$JsTm^_L4x`$k{VpfLI(FMCap%LFAyq;#ns5bR7V+x zO!o;c5y~DyBPqdVQX)8G^G&jWkBy2|oWTw>)?5u}SAsI$RjT#)lTV&Rf8;>u*qXnb z8F%Xb=7#$m)83z%`E;49)t3fHInhtc#kx4wSLLms!*~Z$V?bTyUGiS&m>1P(952(H zuHdv=;o*{;5#X-uAyon`hP}d#U{uDlV?W?_5UjJvf%11hKwe&(&9_~{W)*y1nR5f_ z!N(R74nNK`y8>B!0Bt_Vr!;nc3W>~RiKtGSBkNlsR#-t^&;$W#)f9tTlZz>n*+Fjz z3zXZ;jf(sTM(oDzJt4FJS*8c&;PLTW(IQDFs_5QPy+7yhi1syPCarvqrHFcf&yTy)^O<1EBx;Ir`5W{TIM>{8w&PB>ro4;YD<5LF^TjTb0!zAP|QijA+1Vg>{Afv^% zmrkc4o6rvBI;Q8rj4*=AZacy*n8B{&G3VJc)so4$XUoie0)vr;qzPZVbb<#Fc=j+8CGBWe$n|3K& z_@%?{l|TzKSlUEO{U{{%Fz_pVDxs7i9H#bnbCw7@4DR=}r_qV!Zo~CvD4ZI*+j3kO zW6_=|S`)(*gM0Z;;}nj`73OigF4p6_NPZQ-Od~e$c_);;4-7sR>+2u$6m$Gf%T{aq zle>e3(*Rt(TPD}03n5)!Ca8Pu!V}m6v0o1;5<1h$*|7z|^(3$Y&;KHKTT}hV056wuF0Xo@mK-52~r=6^SI1NC%c~CC?n>yX6wPTgiWYVz!Sx^atLby9YNn1Rk{g?|pJaxD4|9cUf|V1_I*w zzxK)hRh9%zOl=*$?XUjly5z8?jPMy%vEN)f%T*|WO|bp5NWv@B(K3D6LMl!-6dQg0 zXNE&O>Oyf%K@`ngCvbGPR>HRg5!1IV$_}m@3dWB7x3t&KFyOJn9pxRXCAzFr&%37wXG;z^xaO$ekR=LJG ztIHpY8F5xBP{mtQidqNRoz= z@){+N3(VO5bD+VrmS^YjG@+JO{EOIW)9=F4v_$Ed8rZtHvjpiEp{r^c4F6Ic#ChlC zJX^DtSK+v(YdCW)^EFcs=XP7S>Y!4=xgmv>{S$~@h=xW-G4FF9?I@zYN$e5oF9g$# zb!eVU#J+NjLyX;yb)%SY)xJdvGhsnE*JEkuOVo^k5PyS=o#vq!KD46UTW_%R=Y&0G zFj6bV{`Y6)YoKgqnir2&+sl+i6foAn-**Zd1{_;Zb7Ki=u394C5J{l^H@XN`_6XTKY%X1AgQM6KycJ+= zYO=&t#5oSKB^pYhNdzPgH~aEGW2=ec1O#s-KG z71}LOg@4UEFtp3GY1PBemXpNs6UK-ax*)#$J^pC_me;Z$Je(OqLoh|ZrW*mAMBFn< zHttjwC&fkVfMnQeen8`Rvy^$pNRFVaiEN4Pih*Y3@jo!T0nsClN)pdrr9AYLcZxZ| zJ5Wlj+4q~($hbtuY zVQ7hl>4-+@6g1i`1a)rvtp-;b0>^`Dloy(#{z~ytgv=j4q^Kl}wD>K_Y!l~ zp(_&7sh`vfO(1*MO!B%<6E_bx1)&s+Ae`O)a|X=J9y~XDa@UB`m)`tSG4AUhoM=5& znWoHlA-(z@3n0=l{E)R-p8sB9XkV zZ#D8wietfHL?J5X0%&fGg@MH~(rNS2`GHS4xTo7L$>TPme+Is~!|79=^}QbPF>m%J zFMkGzSndiPO|E~hrhCeo@&Ea{M(ieIgRWMf)E}qeTxT8Q#g-!Lu*x$v8W^M^>?-g= zwMJ$dThI|~M06rG$Sv@C@tWR>_YgaG&!BAbkGggVQa#KdtDB)lMLNVLN|51C@F^y8 zCRvMB^{GO@j=cHfmy}_pCGbP%xb{pNN>? z?7tBz$1^zVaP|uaatYaIN+#xEN4jBzwZ|YI_)p(4CUAz1ZEbDk>J~Y|63SZaak~#0 zoYKruYsWHoOlC1(MhTnsdUOwQfz5p6-D0}4;DO$B;7#M{3lSE^jnTT;ns`>!G%i*F?@pR1JO{QTuD0U+~SlZxcc8~>IB{)@8p`P&+nDxNj`*gh|u?yrv$phpQcW)Us)bi`kT%qLj(fi{dWRZ%Es2!=3mI~UxiW0$-v3vUl?#g{p6eF zMEUAqo5-L0Ar(s{VlR9g=j7+lt!gP!UN2ICMokAZ5(Agd>})#gkA2w|5+<%-CuEP# zqgcM}u@3(QIC^Gx<2dbLj?cFSws_f3e%f4jeR?4M^M3cx1f+Qr6ydQ>n)kz1s##2w zk}UyQc+Z5G-d-1}{WzjkLXgS-2P7auWSJ%pSnD|Uivj5u!xk0 z_^-N9r9o;(rFDt~q1PvE#iJZ_f>J3gcP$)SOqhE~pD2|$=GvpL^d!r z6u=sp-CrMoF7;)}Zd7XO4XihC4ji?>V&(t^?@3Q&t9Mx=qex6C9d%{FE6dvU6%d94 zIE;hJ1J)cCqjv?F``7I*6bc#X)JW2b4f$L^>j{*$R`%5VHFi*+Q$2;nyieduE}qdS{L8y8F08yLs?w}{>8>$3236T-VMh@B zq-nujsb_1aUv_7g#)*rf9h%sFj*^mIcImRV*k~Vmw;%;YH(&ylYpy!&UjUVqqtfG` zox3esju?`unJJA_zKXRJP)rA3nXc$m^{S&-p|v|-0x9LHJm;XIww7C#R$?00l&Yyj z=e}gKUOpsImwW?N)+E(awoF@HyP^EhL+GlNB#k?R<2>95hz!h9sF@U20DHSB3~WMa zk90+858r@-+vWwkawJ)8ougd(i#1m3GLN{iSTylYz$brAsP%=&m$mQQrH$g%3-^VR zE%B`Vi&m8f3T~&myTEK28BDWCVzfWir1I?03;pX))|kY5ClO^+bae z*7E?g=3g7EiisYOrE+lA)2?Ln6q2*HLNpZEWMB|O-JI_oaHZB%CvYB(%=tU= zE*OY%QY58fW#RG5=gm0NR#iMB=EuNF@)%oZJ}nmm=tsJ?eGjia{e{yuU0l3{d^D@)kVDt=1PE)&tf_hHC%0MB znL|CRCPC}SeuVTdf>-QV70`0(EHizc21s^sU>y%hW0t!0&y<7}Wi-wGy>m%(-jsDj zP?mF|>p_K>liZ6ZP(w5(|9Ga%>tLgb$|doDDfkdW>Z z`)>V2XC?NJT26mL^@ zf+IKr27TfM!UbZ@?zRddC7#6ss1sw%CXJ4FWC+t3lHZupzM77m^=9 z&(a?-LxIq}*nvv)y?27lZ{j zifdl9hyJudyP2LpU$-kXctshbJDKS{WfulP5Dk~xU4Le4c#h^(YjJit4#R8_khheS z|8(>2ibaHES4+J|DBM7I#QF5u-*EdN{n=Kt@4Zt?@Tv{JZA{`4 zU#kYOv{#A&gGPwT+$Ud}AXlK3K7hYzo$(fBSFjrP{QQ zeaKg--L&jh$9N}`pu{Bs>?eDFPaWY4|9|foN%}i;3%;@4{dc+iw>m}{3rELqH21G! z`8@;w-zsJ1H(N3%|1B@#ioLOjib)j`EiJqPQVSbPSPVHCj6t5J&(NcWzBrzCiDt{4 zdlPAUKldz%6x5II1H_+jv)(xVL+a;P+-1hv_pM>gMRr%04@k;DTokASSKKhU1Qms| zrWh3a!b(J3n0>-tipg{a?UaKsP7?+|@A+1WPDiQIW1Sf@qDU~M_P65_s}7(gjTn0X zucyEm)o;f8UyshMy&>^SC3I|C6jR*R_GFwGranWZe*I>K+0k}pBuET&M~ z;Odo*ZcT?ZpduHyrf8E%IBFtv;JQ!N_m>!sV6ly$_1D{(&nO~w)G~Y`7sD3#hQk%^ zp}ucDF_$!6DAz*PM8yE(&~;%|=+h(Rn-=1Wykas_-@d&z#=S}rDf`4w(rVlcF&lF! z=1)M3YVz7orwk^BXhslJ8jR);sh^knJW(Qmm(QdSgIAIdlN4Te5KJisifjr?eB{FjAX1a0AB>d?qY4Wx>BZ8&}5K0fA+d{l8 z?^s&l8#j7pR&ijD?0b%;lL9l$P_mi2^*_OL+b}4kuLR$GAf85sOo02?Y#90}CCDiS zZ%rbCw>=H~CBO=C_JVV=xgDe%b4FaEFtuS7Q1##y686r%F6I)s-~2(}PWK|Z8M+Gu zl$y~5@#0Ka%$M<&Cv%L`a8X^@tY&T7<0|(6dNT=EsRe0%kp1Qyq!^43VAKYnr*A5~ zsI%lK1ewqO;0TpLrT9v}!@vJK{QoVa_+N4FYT#h?Y8rS1S&-G+m$FNMP?(8N`MZP zels(*?kK{{^g9DOzkuZXJ2;SrOQsp9T$hwRB1(phw1c7`!Q!by?Q#YsSM#I12RhU{$Q+{xj83axHcftEc$mNJ8_T7A-BQc*k(sZ+~NsO~xAA zxnbb%dam_fZlHvW7fKXrB~F&jS<4FD2FqY?VG?ix*r~MDXCE^WQ|W|WM;gsIA4lQP zJ2hAK@CF*3*VqPr2eeg6GzWFlICi8S>nO>5HvWzyZTE)hlkdC_>pBej*>o0EOHR|) z$?};&I4+_?wvL*g#PJ9)!bc#9BJu1(*RdNEn>#Oxta(VWeM40ola<0aOe2kSS~{^P zDJBd}0L-P#O-CzX*%+$#v;(x%<*SPgAje=F{Zh-@ucd2DA(yC|N_|ocs*|-!H%wEw z@Q!>siv2W;C^^j^59OAX03&}&D*W4EjCvfi(ygcL#~t8XGa#|NPO+*M@Y-)ctFA@I z-p7npT1#5zOLo>7q?aZpCZ=iecn3QYklP;gF0bq@>oyBq94f6C=;Csw3PkZ|5q=(c zfs`aw?II0e(h=|7o&T+hq&m$; zBrE09Twxd9BJ2P+QPN}*OdZ-JZV7%av@OM7v!!NL8R;%WFq*?{9T3{ct@2EKgc8h) zMxoM$SaF#p<`65BwIDfmXG6+OiK0e)`I=!A3E`+K@61f}0e z!2a*FOaDrOe>U`q%K!QN`&=&0C~)CaL3R4VY(NDt{Xz(Xpqru5=r#uQN1L$Je1*dkdqQ*=lofQaN%lO!<5z9ZlHgxt|`THd>2 zsWfU$9=p;yLyJyM^t zS2w9w?Bpto`@H^xJpZDKR1@~^30Il6oFGfk5%g6w*C+VM)+%R@gfIwNprOV5{F^M2 zO?n3DEzpT+EoSV-%OdvZvNF+pDd-ZVZ&d8 zKeIyrrfPN=EcFRCPEDCVflX#3-)Ik_HCkL(ejmY8vzcf-MTA{oHk!R2*36`O68$7J zf}zJC+bbQk--9Xm!u#lgLvx8TXx2J258E5^*IZ(FXMpq$2LUUvhWQPs((z1+2{Op% z?J}9k5^N=z;7ja~zi8a_-exIqWUBJwohe#4QJ`|FF*$C{lM18z^#hX6!5B8KAkLUX ziP=oti-gpV(BsLD{0(3*dw}4JxK23Y7M{BeFPucw!sHpY&l%Ws4pSm`+~V7;bZ%Dx zeI)MK=4vC&5#;2MT7fS?^ch9?2;%<8Jlu-IB&N~gg8t;6S-#C@!NU{`p7M8@2iGc& zg|JPg%@gCoCQ&s6JvDU&`X2S<57f(k8nJ1wvBu{8r?;q3_kpZZ${?|( z+^)UvR33sjSd)aT!UPkA;ylO6{aE3MQa{g%Mcf$1KONcjO@&g5zPHWtzM1rYC{_K> zgQNcs<{&X{OA=cEWw5JGqpr0O>x*Tfak2PE9?FuWtz^DDNI}rwAaT0(bdo-<+SJ6A z&}S%boGMWIS0L}=S>|-#kRX;e^sUsotry(MjE|3_9duvfc|nwF#NHuM-w7ZU!5ei8 z6Mkf>2)WunY2eU@C-Uj-A zG(z0Tz2YoBk>zCz_9-)4a>T46$(~kF+Y{#sA9MWH%5z#zNoz)sdXq7ZR_+`RZ%0(q zC7&GyS_|BGHNFl8Xa%@>iWh%Gr?=J5<(!OEjauj5jyrA-QXBjn0OAhJJ9+v=!LK`` z@g(`^*84Q4jcDL`OA&ZV60djgwG`|bcD*i50O}Q{9_noRg|~?dj%VtKOnyRs$Uzqg z191aWoR^rDX#@iSq0n z?9Sg$WSRPqSeI<}&n1T3!6%Wj@5iw5`*`Btni~G=&;J+4`7g#OQTa>u`{4ZZ(c@s$ zK0y;ySOGD-UTjREKbru{QaS>HjN<2)R%Nn-TZiQ(Twe4p@-saNa3~p{?^V9Nixz@a zykPv~<@lu6-Ng9i$Lrk(xi2Tri3q=RW`BJYOPC;S0Yly%77c727Yj-d1vF!Fuk{Xh z)lMbA69y7*5ufET>P*gXQrxsW+ zz)*MbHZv*eJPEXYE<6g6_M7N%#%mR{#awV3i^PafNv(zyI)&bH?F}2s8_rR(6%!V4SOWlup`TKAb@ee>!9JKPM=&8g#BeYRH9FpFybxBXQI2|g}FGJfJ+ zY-*2hB?o{TVL;Wt_ek;AP5PBqfDR4@Z->_182W z{P@Mc27j6jE*9xG{R$>6_;i=y{qf(c`5w9fa*`rEzX6t!KJ(p1H|>J1pC-2zqWENF zmm=Z5B4u{cY2XYl(PfrInB*~WGWik3@1oRhiMOS|D;acnf-Bs(QCm#wR;@Vf!hOPJ zgjhDCfDj$HcyVLJ=AaTbQ{@vIv14LWWF$=i-BDoC11}V;2V8A`S>_x)vIq44-VB-v z*w-d}$G+Ql?En8j!~ZkCpQ$|cA0|+rrY>tiCeWxkRGPoarxlGU2?7%k#F693RHT24 z-?JsiXlT2PTqZqNb&sSc>$d;O4V@|b6VKSWQb~bUaWn1Cf0+K%`Q&Wc<>mQ>*iEGB zbZ;aYOotBZ{vH3y<0A*L0QVM|#rf*LIsGx(O*-7)r@yyBIzJnBFSKBUSl1e|8lxU* zzFL+YDVVkIuzFWeJ8AbgN&w(4-7zbiaMn{5!JQXu)SELk*CNL+Fro|2v|YO)1l15t zs(0^&EB6DPMyaqvY>=KL>)tEpsn;N5Q#yJj<9}ImL((SqErWN3Q=;tBO~ExTCs9hB z2E$7eN#5wX4<3m^5pdjm#5o>s#eS_Q^P)tm$@SawTqF*1dj_i#)3};JslbLKHXl_N z)Fxzf>FN)EK&Rz&*|6&%Hs-^f{V|+_vL1S;-1K-l$5xiC@}%uDuwHYhmsV?YcOUlk zOYkG5v2+`+UWqpn0aaaqrD3lYdh0*!L`3FAsNKu=Q!vJu?Yc8n|CoYyDo_`r0mPoo z8>XCo$W4>l(==h?2~PoRR*kEe)&IH{1sM41mO#-36`02m#nTX{r*r`Q5rZ2-sE|nA zhnn5T#s#v`52T5|?GNS`%HgS2;R(*|^egNPDzzH_z^W)-Q98~$#YAe)cEZ%vge965AS_am#DK#pjPRr-!^za8>`kksCAUj(Xr*1NW5~e zpypt_eJpD&4_bl_y?G%>^L}=>xAaV>KR6;^aBytqpiHe%!j;&MzI_>Sx7O%F%D*8s zSN}cS^<{iiK)=Ji`FpO#^zY!_|D)qeRNAtgmH)m;qC|mq^j(|hL`7uBz+ULUj37gj zksdbnU+LSVo35riSX_4z{UX=%n&}7s0{WuZYoSfwAP`8aKN9P@%e=~1`~1ASL-z%# zw>DO&ixr}c9%4InGc*_y42bdEk)ZdG7-mTu0bD@_vGAr*NcFoMW;@r?@LUhRI zCUJgHb`O?M3!w)|CPu~ej%fddw20lod?Ufp8Dmt0PbnA0J%KE^2~AIcnKP()025V> zG>noSM3$5Btmc$GZoyP^v1@Poz0FD(6YSTH@aD0}BXva?LphAiSz9f&Y(aDAzBnUh z?d2m``~{z;{}kZJ>a^wYI?ry(V9hIoh;|EFc0*-#*`$T0DRQ1;WsqInG;YPS+I4{g zJGpKk%%Sdc5xBa$Q^_I~(F97eqDO7AN3EN0u)PNBAb+n+ zWBTxQx^;O9o0`=g+Zrt_{lP!sgWZHW?8bLYS$;1a@&7w9rD9|Ge;Gb?sEjFoF9-6v z#!2)t{DMHZ2@0W*fCx;62d#;jouz`R5Y(t{BT=$N4yr^^o$ON8d{PQ=!O zX17^CrdM~7D-;ZrC!||<+FEOxI_WI3CA<35va%4v>gc zEX-@h8esj=a4szW7x{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1* znV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI z##W$P9M{B3c3Si9gw^jlPU-JqD~Cye;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP> zrp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ueg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{ zlB`9HUl-WWCG|<1XANN3JVAkRYvr5U4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvx zK%p23>M&=KTCgR!Ee8c?DAO2_R?B zkaqr6^BSP!8dHXxj%N1l+V$_%vzHjqvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rU zHfcog>kv3UZAEB*g7Er@t6CF8kHDmKTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B zZ+jjWgjJ!043F+&#_;D*mz%Q60=L9Ove|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw- z19qI#oB(RSNydn0t~;tAmK!P-d{b-@@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^8 z2zk8VXx|>#R^JCcWdBCy{0nPmYFOxN55#^-rlqobe0#L6)bi?E?SPymF*a5oDDeSd zO0gx?#KMoOd&G(2O@*W)HgX6y_aa6iMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H z`oa=g0SyiLd~BxAj2~l$zRSDHxvDs;I4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*( ze-417=bO2q{492SWrqDK+L3#ChUHtz*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEX zATx4K*hcO`sY$jk#jN5WD<=C3nvuVsRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_ zl3F^#f_rDu8l}l8qcAz0FFa)EAt32IUy_JLIhU_J^l~FRH&6-ivSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPm zZi-noqS!^Ftb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@ zfFGJtW3r>qV>1Z0r|L>7I3un^gcep$AAWfZHRvB|E*kktY$qQP_$YG60C@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn` zEgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czP zg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-&SFp;!k?uFayytV$8HPwuyELSXOs^27XvK-D zOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2S43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@ zK^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf z9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^&X%=?`6lCy~?`&WSWt z?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6VjA#>1f@EYiS8MRHZphp zMA_5`znM=pzUpBPO)pXGYpQ6gkine{6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ z<1SE2Edkfk9C!0t%}8Yio09^F`YGzpaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8p zT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{eSyybt)m<=zXoA^RALYG-2t zouH|L*BLvmm9cdMmn+KGopyR@4*=&0&4g|FLoreZOhRmh=)R0bg~ zT2(8V_q7~42-zvb)+y959OAv!V$u(O3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+ zMWQoJI_r$HxL5km1#6(e@{lK3Udc~n0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai< z6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF# zMnbr-f55(cTa^q4+#)=s+ThMaV~E`B8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg% zbOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$18Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9Sq zuGh<9<=AO&g6BZte6hn>Qmvv;Rt)*cJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapi zPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wB zxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5o}_(P;=!y-AjFrERh%8la!z6Fn@lR?^E~H12D?8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2 zwG1|5ikb^qHv&9hT8w83+yv&BQXOQyMVJSBL(Ky~p)gU3#%|blG?IR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-} z9?*x{y(`509qhCV*B47f2hLrGl^<@SuRGR!KwHei?!CM10Tq*YDIoBNyRuO*>3FU? zHjipIE#B~y3FSfOsMfj~F9PNr*H?0oHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R% zrq|ic4fzJ#USpTm;X7K+E%xsT_3VHKe?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>Jm ziU#?2^`>arnsl#)*R&nf_%>A+qwl%o{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVD zM8AI6MM2V*^_M^sQ0dmHu11fy^kOqXqzpr?K$`}BKWG`=Es(9&S@K@)ZjA{lj3ea7_MBP zk(|hBFRjHVMN!sNUkrB;(cTP)T97M$0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5 zI7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIo zIZSVls9kFGsTwvr4{T_LidcWtt$u{kJlW7moRaH6+A5hW&;;2O#$oKyEN8kx`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41Uw z`P+tft^E2B$domKT@|nNW`EHwyj>&}K;eDpe z1bNOh=fvIfk`&B61+S8ND<(KC%>y&?>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xo zaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$itm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H z?n6^}l{D``Me90`^o|q!olsF?UX3YSq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfw zR!gX_%AR=L3BFsf8LxI|K^J}deh0ZdV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z z-G6kzA01M?rba+G_mwNMQD1mbVbNTWmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bA zv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$ z8p_}t*XIOehezolNa-a2x0BS})Y9}&*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWK zDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~VCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjMsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3 z-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$)WL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>I zgy8p#i4GN{>#v=pFYUQT(g&b$OeTy-X_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6< znXs{W!bkP|s_YI*Yx%4stI`=ZO45IK6rBs`g7sP40ic}GZ58s?Mc$&i`kq_tfci>N zIHrC0H+Qpam1bNa=(`SRKjixBTtm&e`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_ z%7SUeH6=TrXt3J@js`4iDD0=IoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bUpX9ATD#moByY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOx zXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+pmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X z?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L z*&?(77!-=zvnCVW&kUcZMb6;2!83si518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j( ziTaS4HhQ)ldR=r)_7vYFUr%THE}cPF{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVA zdDZRybv?H|>`9f$AKVjFWJ=wegO7hOOIYCtd?Vj{EYLT*^gl35|HQ`R=ti+ADm{jyQE7K@kdjuqJhWVSks>b^ zxha88-h3s;%3_5b1TqFCPTxVjvuB5U>v=HyZ$?JSk+&I%)M7KE*wOg<)1-Iy)8-K! z^XpIt|0ibmk9RtMmlUd7#Ap3Q!q9N4atQy)TmrhrFhfx1DAN`^vq@Q_SRl|V z#lU<~n67$mT)NvHh`%als+G-)x1`Y%4Bp*6Un5Ri9h=_Db zA-AdP!f>f0m@~>7X#uBM?diI@)Egjuz@jXKvm zJo+==juc9_<;CqeRaU9_Mz@;3e=E4=6TK+c`|uu#pIqhSyNm`G(X)&)B`8q0RBv#> z`gGlw(Q=1Xmf55VHj%C#^1lpc>LY8kfA@|rlC1EA<1#`iuyNO z(=;irt{_&K=i4)^x%;U(Xv<)+o=dczC5H3W~+e|f~{*ucxj@{Yi-cw^MqYr3fN zF5D+~!wd$#al?UfMnz(@K#wn`_5na@rRr8XqN@&M&FGEC@`+OEv}sI1hw>Up0qAWf zL#e4~&oM;TVfjRE+10B_gFlLEP9?Q-dARr3xi6nQqnw>k-S;~b z;!0s2VS4}W8b&pGuK=7im+t(`nz@FnT#VD|!)eQNp-W6)@>aA+j~K*H{$G`y2|QHY z|Hmy+CR@#jWY4~)lr1qBJB_RfHJFfP<}pK5(#ZZGSqcpyS&}01LnTWk5fzmXMGHkJ zTP6L^B+uj;lmB_W<~4=${+v0>z31M!-_O@o-O9GyW)j_mjx}!0@br_LE-7SIuPP84 z;5=O(U*g_um0tyG|61N@d9lEuOeiRd+#NY^{nd5;-CVlw&Ap7J?qwM^?E29wvS}2d zbzar4Fz&RSR(-|s!Z6+za&Z zY#D<5q_JUktIzvL0)yq_kLWG6DO{ri=?c!y!f(Dk%G{8)k`Gym%j#!OgXVDD3;$&v@qy#ISJfp=Vm>pls@9-mapVQChAHHd-x+OGx)(*Yr zC1qDUTZ6mM(b_hi!TuFF2k#8uI2;kD70AQ&di$L*4P*Y-@p`jdm%_c3f)XhYD^6M8&#Y$ZpzQMcR|6nsH>b=*R_Von!$BTRj7yGCXokoAQ z&ANvx0-Epw`QIEPgI(^cS2f(Y85yV@ygI{ewyv5Frng)e}KCZF7JbR(&W618_dcEh(#+^zZFY;o<815<5sOHQdeax9_!PyM&;{P zkBa5xymca0#)c#tke@3KNEM8a_mT&1gm;p&&JlMGH(cL(b)BckgMQ^9&vRwj!~3@l zY?L5}=Jzr080OGKb|y`ee(+`flQg|!lo6>=H)X4`$Gz~hLmu2a%kYW_Uu8x09Pa0J zKZ`E$BKJ=2GPj_3l*TEcZ*uYRr<*J^#5pILTT;k_cgto1ZL-%slyc16J~OH-(RgDA z%;EjEnoUkZ&acS{Q8`{i6T5^nywgqQI5bDIymoa7CSZG|WWVk>GM9)zy*bNih|QIm z%0+(Nnc*a_xo;$=!HQYaapLms>J1ToyjtFByY`C2H1wT#178#4+|{H0BBqtCdd$L% z_3Hc60j@{t9~MjM@LBalR&6@>B;9?r<7J~F+WXyYu*y3?px*=8MAK@EA+jRX8{CG?GI-< z54?Dc9CAh>QTAvyOEm0^+x;r2BWX|{3$Y7)L5l*qVE*y0`7J>l2wCmW zL1?|a`pJ-l{fb_N;R(Z9UMiSj6pQjOvQ^%DvhIJF!+Th7jO2~1f1N+(-TyCFYQZYw z4)>7caf^Ki_KJ^Zx2JUb z&$3zJy!*+rCV4%jqwyuNY3j1ZEiltS0xTzd+=itTb;IPYpaf?8Y+RSdVdpacB(bVQ zC(JupLfFp8y43%PMj2}T|VS@%LVp>hv4Y!RPMF?pp8U_$xCJ)S zQx!69>bphNTIb9yn*_yfj{N%bY)t{L1cs8<8|!f$;UQ*}IN=2<6lA;x^(`8t?;+ST zh)z4qeYYgZkIy{$4x28O-pugO&gauRh3;lti9)9Pvw+^)0!h~%m&8Q!AKX%urEMnl z?yEz?g#ODn$UM`+Q#$Q!6|zsq_`dLO5YK-6bJM6ya>}H+vnW^h?o$z;V&wvuM$dR& zeEq;uUUh$XR`TWeC$$c&Jjau2it3#%J-y}Qm>nW*s?En?R&6w@sDXMEr#8~$=b(gk zwDC3)NtAP;M2BW_lL^5ShpK$D%@|BnD{=!Tq)o(5@z3i7Z){} zGr}Exom_qDO{kAVkZ*MbLNHE666Kina#D{&>Jy%~w7yX$oj;cYCd^p9zy z8*+wgSEcj$4{WxKmCF(5o7U4jqwEvO&dm1H#7z}%VXAbW&W24v-tS6N3}qrm1OnE)fUkoE8yMMn9S$?IswS88tQWm4#Oid#ckgr6 zRtHm!mfNl-`d>O*1~d7%;~n+{Rph6BBy^95zqI{K((E!iFQ+h*C3EsbxNo_aRm5gj zKYug($r*Q#W9`p%Bf{bi6;IY0v`pB^^qu)gbg9QHQ7 zWBj(a1YSu)~2RK8Pi#C>{DMlrqFb9e_RehEHyI{n?e3vL_}L>kYJC z_ly$$)zFi*SFyNrnOt(B*7E$??s67EO%DgoZL2XNk8iVx~X_)o++4oaK1M|ou73vA0K^503j@uuVmLcHH4ya-kOIDfM%5%(E z+Xpt~#7y2!KB&)PoyCA+$~DXqxPxxALy!g-O?<9+9KTk4Pgq4AIdUkl`1<1#j^cJg zgU3`0hkHj_jxV>`Y~%LAZl^3o0}`Sm@iw7kwff{M%VwtN)|~!p{AsfA6vB5UolF~d zHWS%*uBDt<9y!9v2Xe|au&1j&iR1HXCdyCjxSgG*L{wmTD4(NQ=mFjpa~xooc6kju z`~+d{j7$h-;HAB04H!Zscu^hZffL#9!p$)9>sRI|Yovm)g@F>ZnosF2EgkU3ln0bR zTA}|+E(tt)!SG)-bEJi_0m{l+(cAz^pi}`9=~n?y&;2eG;d9{M6nj>BHGn(KA2n|O zt}$=FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL diff --git a/bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.properties b/bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index ffed3a25..00000000 --- a/bitget-java-sdk-open-api/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/bitget-java-sdk-open-api/gradlew b/bitget-java-sdk-open-api/gradlew deleted file mode 100644 index 005bcde0..00000000 --- a/bitget-java-sdk-open-api/gradlew +++ /dev/null @@ -1,234 +0,0 @@ -#!/bin/sh - -# -# Copyright © 2015-2021 the original authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -# -# Gradle start up script for POSIX generated by Gradle. -# -# Important for running: -# -# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -# noncompliant, but you have some other compliant shell such as ksh or -# bash, then to run this script, type that shell name before the whole -# command line, like: -# -# ksh Gradle -# -# Busybox and similar reduced shells will NOT work, because this script -# requires all of these POSIX shell features: -# * functions; -# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», -# «${var#prefix}», «${var%suffix}», and «$( cmd )»; -# * compound commands having a testable exit status, especially «case»; -# * various built-in commands including «command», «set», and «ulimit». -# -# Important for patching: -# -# (2) This script targets any POSIX shell, so it avoids extensions provided -# by Bash, Ksh, etc; in particular arrays are avoided. -# -# The "traditional" practice of packing multiple parameters into a -# space-separated string is a well documented source of bugs and security -# problems, so this is (mostly) avoided, by progressively accumulating -# options in "$@", and eventually passing that to Java. -# -# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -# see the in-line comments for details. -# -# There are tweaks for specific operating systems such as AIX, CygWin, -# Darwin, MinGW, and NonStop. -# -# (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -# within the Gradle project. -# -# You can find Gradle at https://github.com/gradle/gradle/. -# -############################################################################## - -# Attempt to set APP_HOME - -# Resolve links: $0 may be a link -app_path=$0 - -# Need this for daisy-chained symlinks. -while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] -do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac -done - -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" -APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { - echo "$*" -} >&2 - -die () { - echo - echo "$*" - echo - exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done -fi - -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. - -set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/bitget-java-sdk-open-api/gradlew.bat b/bitget-java-sdk-open-api/gradlew.bat deleted file mode 100644 index 6a68175e..00000000 --- a/bitget-java-sdk-open-api/gradlew.bat +++ /dev/null @@ -1,89 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/bitget-java-sdk-open-api/pom.xml b/bitget-java-sdk-open-api/pom.xml deleted file mode 100644 index e514a4a5..00000000 --- a/bitget-java-sdk-open-api/pom.xml +++ /dev/null @@ -1,368 +0,0 @@ - - 4.0.0 - com.upex.contract - bitget-java-sdk-open-api - jar - bitget-java-sdk-open-api - 1.0.0 - https://github.com/openapitools/openapi-generator - OpenAPI Java - - scm:git:git@github.com:openapitools/openapi-generator.git - scm:git:git@github.com:openapitools/openapi-generator.git - https://github.com/openapitools/openapi-generator - - - - - Unlicense - http://unlicense.org - repo - - - - - - OpenAPI-Generator Contributors - team@openapitools.org - OpenAPITools.org - http://openapitools.org - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - true - 128m - 512m - - -Xlint:all - -J-Xss4m - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.1.0 - - - enforce-maven - - enforce - - - - - 2.2.0 - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - - loggerPath - conf/log4j.properties - - - -Xms512m -Xmx1500m - methods - 10 - - - - - org.junit.jupiter - junit-jupiter-engine - ${junit-version} - - - - - maven-dependency-plugin - 3.3.0 - - - package - - copy-dependencies - - - ${project.build.directory}/lib - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.3.0 - - - - test-jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add_sources - generate-sources - - add-source - - - - src/main/java - - - - - add_test_sources - generate-test-sources - - add-test-source - - - - src/test/java - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - attach-javadocs - - jar - - - - - none - - - http.response.details - a - Http Response Details: - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar-no-fork - - - - - - - com.diffplug.spotless - spotless-maven-plugin - ${spotless.version} - - - - - - - .gitignore - - - - - - true - 4 - - - - - - - - - - 1.8 - - true - - - - - - - - - - - - - - sign-artifacts - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.0.1 - - - sign-artifacts - verify - - sign - - - - - - - - - - - - io.swagger - swagger-annotations - ${swagger-core-version} - - - - com.google.code.findbugs - jsr305 - 3.0.2 - - - com.squareup.okhttp3 - okhttp - ${okhttp-version} - - - com.squareup.okhttp3 - logging-interceptor - ${okhttp-version} - - - com.google.code.gson - gson - ${gson-version} - - - io.gsonfire - gson-fire - ${gson-fire-version} - - - org.apache.commons - commons-lang3 - ${commons-lang3-version} - - - jakarta.annotation - jakarta.annotation-api - ${jakarta-annotation-version} - provided - - - org.openapitools - jackson-databind-nullable - ${jackson-databind-nullable-version} - - - javax.ws.rs - jsr311-api - ${jsr311-api-version} - - - javax.ws.rs - javax.ws.rs-api - ${javax.ws.rs-api-version} - - - - org.junit.jupiter - junit-jupiter-engine - ${junit-version} - test - - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - - - org.mockito - mockito-core - ${mockito-core-version} - test - - - org.assertj - assertj-core - 3.11.1 - test - - - org.projectlombok - lombok - 1.18.20 - - - - 1.8 - ${java.version} - ${java.version} - 1.8.5 - 1.6.5 - 4.10.0 - 2.9.1 - 3.12.0 - 0.2.4 - 1.3.5 - 5.9.1 - 1.9.1 - 3.12.4 - 2.1.1 - 1.1.1 - UTF-8 - 2.27.2 - - diff --git a/bitget-java-sdk-open-api/settings.gradle b/bitget-java-sdk-open-api/settings.gradle deleted file mode 100644 index 9999e775..00000000 --- a/bitget-java-sdk-open-api/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "bitget-java-sdk-open-api" \ No newline at end of file diff --git a/bitget-java-sdk-open-api/src/main/AndroidManifest.xml b/bitget-java-sdk-open-api/src/main/AndroidManifest.xml deleted file mode 100644 index 069b04ed..00000000 --- a/bitget-java-sdk-open-api/src/main/AndroidManifest.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiCallback.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiCallback.java deleted file mode 100644 index 24dc7325..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiCallback.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import java.io.IOException; - -import java.util.Map; -import java.util.List; - -/** - * Callback for asynchronous API call. - * - * @param The return type - */ -public interface ApiCallback { - /** - * This is called when the API call fails. - * - * @param e The exception causing the failure - * @param statusCode Status code of the response if available, otherwise it would be 0 - * @param responseHeaders Headers of the response if available, otherwise it would be null - */ - void onFailure(ApiException e, int statusCode, Map> responseHeaders); - - /** - * This is called when the API call succeeded. - * - * @param result The result deserialized from response - * @param statusCode Status code of the response - * @param responseHeaders Headers of the response - */ - void onSuccess(T result, int statusCode, Map> responseHeaders); - - /** - * This is called when the API upload processing. - * - * @param bytesWritten bytes Written - * @param contentLength content length of request body - * @param done write end - */ - void onUploadProgress(long bytesWritten, long contentLength, boolean done); - - /** - * This is called when the API download processing. - * - * @param bytesRead bytes Read - * @param contentLength content length of the response - * @param done Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiClient.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiClient.java deleted file mode 100644 index be673b66..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiClient.java +++ /dev/null @@ -1,1515 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import okhttp3.*; -import okhttp3.internal.http.HttpMethod; -import okhttp3.internal.tls.OkHostnameVerifier; -import okhttp3.logging.HttpLoggingInterceptor; -import okhttp3.logging.HttpLoggingInterceptor.Level; -import okio.Buffer; -import okio.BufferedSink; -import okio.Okio; - -import javax.net.ssl.*; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.UnsupportedEncodingException; -import java.lang.reflect.Type; -import java.net.URI; -import java.net.URLConnection; -import java.net.URLEncoder; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.security.GeneralSecurityException; -import java.security.KeyStore; -import java.security.SecureRandom; -import java.security.cert.Certificate; -import java.security.cert.CertificateException; -import java.security.cert.CertificateFactory; -import java.security.cert.X509Certificate; -import java.text.DateFormat; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; -import java.util.Map.Entry; -import java.util.concurrent.TimeUnit; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import com.bitget.openapi.auth.Authentication; -import com.bitget.openapi.auth.HttpBasicAuth; -import com.bitget.openapi.auth.HttpBearerAuth; -import com.bitget.openapi.auth.ApiKeyAuth; - -/** - *

ApiClient class.

- */ -public class ApiClient { - - private String basePath = "https://api.bitget.com"; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; - - private Map authentications; - - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; - - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; - - private OkHttpClient httpClient; - private JSON json; - - private HttpLoggingInterceptor loggingInterceptor; - - /** - * Basic constructor for ApiClient - */ - public ApiClient() { - init(); - initHttpClient(); - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("ACCESS_KEY", new ApiKeyAuth("header", "ACCESS-KEY")); - authentications.put("ACCESS_PASSPHRASE", new ApiKeyAuth("header", "ACCESS-PASSPHRASE")); - authentications.put("ACCESS_SIGN", new ApiKeyAuth("header", "ACCESS-SIGN")); - authentications.put("ACCESS_TIMESTAMP", new ApiKeyAuth("header", "ACCESS-TIMESTAMP")); - authentications.put("SECRET_KEY", new ApiKeyAuth("header", "SECRET-KEY")); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Basic constructor with custom OkHttpClient - * - * @param client a {@link okhttp3.OkHttpClient} object - */ - public ApiClient(OkHttpClient client) { - init(); - - httpClient = client; - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("ACCESS_KEY", new ApiKeyAuth("header", "ACCESS-KEY")); - authentications.put("ACCESS_PASSPHRASE", new ApiKeyAuth("header", "ACCESS-PASSPHRASE")); - authentications.put("ACCESS_SIGN", new ApiKeyAuth("header", "ACCESS-SIGN")); - authentications.put("ACCESS_TIMESTAMP", new ApiKeyAuth("header", "ACCESS-TIMESTAMP")); - authentications.put("SECRET_KEY", new ApiKeyAuth("header", "SECRET-KEY")); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - private void initHttpClient() { - initHttpClient(Collections.emptyList()); - } - - private void initHttpClient(List interceptors) { - OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.addNetworkInterceptor(getProgressInterceptor()); - for (Interceptor interceptor: interceptors) { - builder.addInterceptor(interceptor); - } - - httpClient = builder.build(); - } - - private void init() { - verifyingSsl = true; - - json = new JSON(); - - // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.0.0/java"); - - authentications = new HashMap(); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath Base path of the URL (e.g https://api.bitget.com - * @return An instance of OkHttpClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client, which must never be null. - * - * @param newHttpClient An instance of OkHttpClient - * @return Api Client - * @throws java.lang.NullPointerException when newHttpClient is null - */ - public ApiClient setHttpClient(OkHttpClient newHttpClient) { - this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); - return this; - } - - /** - * Get JSON - * - * @return JSON object - */ - public JSON getJSON() { - return json; - } - - /** - * Set JSON - * - * @param json JSON object - * @return Api client - */ - public ApiClient setJSON(JSON json) { - this.json = json; - return this; - } - - /** - * True if isVerifyingSsl flag is on - * - * @return True if isVerifySsl flag is on - */ - public boolean isVerifyingSsl() { - return verifyingSsl; - } - - /** - * Configure whether to verify certificate and hostname when making https requests. - * Default to true. - * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. - * - * @param verifyingSsl True to verify TLS/SSL connection - * @return ApiClient - */ - public ApiClient setVerifyingSsl(boolean verifyingSsl) { - this.verifyingSsl = verifyingSsl; - applySslSettings(); - return this; - } - - /** - * Get SSL CA cert. - * - * @return Input stream to the SSL CA cert - */ - public InputStream getSslCaCert() { - return sslCaCert; - } - - /** - * Configure the CA certificate to be trusted when making https requests. - * Use null to reset to default. - * - * @param sslCaCert input stream for SSL CA cert - * @return ApiClient - */ - public ApiClient setSslCaCert(InputStream sslCaCert) { - this.sslCaCert = sslCaCert; - applySslSettings(); - return this; - } - - /** - *

Getter for the field keyManagers.

- * - * @return an array of {@link javax.net.ssl.KeyManager} objects - */ - public KeyManager[] getKeyManagers() { - return keyManagers; - } - - /** - * Configure client keys to use for authorization in an SSL session. - * Use null to reset to default. - * - * @param managers The KeyManagers to use - * @return ApiClient - */ - public ApiClient setKeyManagers(KeyManager[] managers) { - this.keyManagers = managers; - applySslSettings(); - return this; - } - - /** - *

Getter for the field dateFormat.

- * - * @return a {@link java.text.DateFormat} object - */ - public DateFormat getDateFormat() { - return dateFormat; - } - - /** - *

Setter for the field dateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.bitget.openapi.ApiClient} object - */ - public ApiClient setDateFormat(DateFormat dateFormat) { - JSON.setDateFormat(dateFormat); - return this; - } - - /** - *

Set SqlDateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.bitget.openapi.ApiClient} object - */ - public ApiClient setSqlDateFormat(DateFormat dateFormat) { - JSON.setSqlDateFormat(dateFormat); - return this; - } - - /** - *

Set OffsetDateTimeFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.bitget.openapi.ApiClient} object - */ - public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - JSON.setOffsetDateTimeFormat(dateFormat); - return this; - } - - /** - *

Set LocalDateFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.bitget.openapi.ApiClient} object - */ - public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - JSON.setLocalDateFormat(dateFormat); - return this; - } - - /** - *

Set LenientOnJson.

- * - * @param lenientOnJson a boolean - * @return a {@link com.bitget.openapi.ApiClient} object - */ - public ApiClient setLenientOnJson(boolean lenientOnJson) { - JSON.setLenientOnJson(lenientOnJson); - return this; - } - - /** - * Get authentications (key: authentication name, value: authentication). - * - * @return Map of authentication objects - */ - public Map getAuthentications() { - return authentications; - } - - /** - * Get authentication for the given name. - * - * @param authName The authentication name - * @return The authentication, null if not found - */ - public Authentication getAuthentication(String authName) { - return authentications.get(authName); - } - - - /** - * Helper method to set username for the first HTTP basic authentication. - * - * @param username Username - */ - public void setUsername(String username) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setUsername(username); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set password for the first HTTP basic authentication. - * - * @param password Password - */ - public void setPassword(String password) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setPassword(password); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set API key value for the first API key authentication. - * - * @param apiKey API key - */ - public void setApiKey(String apiKey) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKey(apiKey); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set API key prefix for the first API key authentication. - * - * @param apiKeyPrefix API key prefix - */ - public void setApiKeyPrefix(String apiKeyPrefix) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set access token for the first OAuth2 authentication. - * - * @param accessToken Access token - */ - public void setAccessToken(String accessToken) { - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Set the User-Agent header's value (by adding to the default header map). - * - * @param userAgent HTTP request's user agent - * @return ApiClient - */ - public ApiClient setUserAgent(String userAgent) { - addDefaultHeader("User-Agent", userAgent); - return this; - } - - /** - * Add a default header. - * - * @param key The header's key - * @param value The header's value - * @return ApiClient - */ - public ApiClient addDefaultHeader(String key, String value) { - defaultHeaderMap.put(key, value); - return this; - } - - /** - * Add a default cookie. - * - * @param key The cookie's key - * @param value The cookie's value - * @return ApiClient - */ - public ApiClient addDefaultCookie(String key, String value) { - defaultCookieMap.put(key, value); - return this; - } - - /** - * Check that whether debugging is enabled for this API client. - * - * @return True if debugging is enabled, false otherwise. - */ - public boolean isDebugging() { - return debugging; - } - - /** - * Enable/disable debugging for this API client. - * - * @param debugging To enable (true) or disable (false) debugging - * @return ApiClient - */ - public ApiClient setDebugging(boolean debugging) { - if (debugging != this.debugging) { - if (debugging) { - loggingInterceptor = new HttpLoggingInterceptor(); - loggingInterceptor.setLevel(Level.BODY); - httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); - } else { - final OkHttpClient.Builder builder = httpClient.newBuilder(); - builder.interceptors().remove(loggingInterceptor); - httpClient = builder.build(); - loggingInterceptor = null; - } - } - this.debugging = debugging; - return this; - } - - /** - * The path of temporary folder used to store downloaded files from endpoints - * with file response. The default value is null, i.e. using - * the system's default temporary folder. - * - * @see
createTempFile - * @return Temporary folder path - */ - public String getTempFolderPath() { - return tempFolderPath; - } - - /** - * Set the temporary folder path (for downloading files) - * - * @param tempFolderPath Temporary folder path - * @return ApiClient - */ - public ApiClient setTempFolderPath(String tempFolderPath) { - this.tempFolderPath = tempFolderPath; - return this; - } - - /** - * Get connection timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getConnectTimeout() { - return httpClient.connectTimeoutMillis(); - } - - /** - * Sets the connect timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param connectionTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get read timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getReadTimeout() { - return httpClient.readTimeoutMillis(); - } - - /** - * Sets the read timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param readTimeout read timeout in milliseconds - * @return Api client - */ - public ApiClient setReadTimeout(int readTimeout) { - httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get write timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getWriteTimeout() { - return httpClient.writeTimeoutMillis(); - } - - /** - * Sets the write timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param writeTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setWriteTimeout(int writeTimeout) { - httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - - /** - * Format the given parameter object into string. - * - * @param param Parameter - * @return String representation of the parameter - */ - public String parameterToString(Object param) { - if (param == null) { - return ""; - } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { - //Serialize to json string and remove the " enclosing characters - String jsonStr = JSON.serialize(param); - return jsonStr.substring(1, jsonStr.length() - 1); - } else if (param instanceof Collection) { - StringBuilder b = new StringBuilder(); - for (Object o : (Collection) param) { - if (b.length() > 0) { - b.append(","); - } - b.append(o); - } - return b.toString(); - } else { - return String.valueOf(param); - } - } - - /** - * Formats the specified query parameter to a list containing a single {@code Pair} object. - * - * Note that {@code value} must not be a collection. - * - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list containing a single {@code Pair} object. - */ - public List parameterToPair(String name, Object value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value instanceof Collection) { - return params; - } - - params.add(new Pair(name, parameterToString(value))); - return params; - } - - /** - * Formats the specified collection query parameters to a list of {@code Pair} objects. - * - * Note that the values of each of the returned Pair objects are percent-encoded. - * - * @param collectionFormat The collection format of the parameter. - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list of {@code Pair} objects. - */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value.isEmpty()) { - return params; - } - - // create the params based on the collection format - if ("multi".equals(collectionFormat)) { - for (Object item : value) { - params.add(new Pair(name, escapeString(parameterToString(item)))); - } - return params; - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - // escape all delimiters except commas, which are URI reserved - // characters - if ("ssv".equals(collectionFormat)) { - delimiter = escapeString(" "); - } else if ("tsv".equals(collectionFormat)) { - delimiter = escapeString("\t"); - } else if ("pipes".equals(collectionFormat)) { - delimiter = escapeString("|"); - } - - StringBuilder sb = new StringBuilder(); - for (Object item : value) { - sb.append(delimiter); - sb.append(escapeString(parameterToString(item))); - } - - params.add(new Pair(name, sb.substring(delimiter.length()))); - - return params; - } - - /** - * Formats the specified collection path parameter to a string value. - * - * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. - * @return String representation of the parameter - */ - public String collectionPathParameterToString(String collectionFormat, Collection value) { - // create the value based on the collection format - if ("multi".equals(collectionFormat)) { - // not valid for path params - return parameterToString(value); - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - if ("ssv".equals(collectionFormat)) { - delimiter = " "; - } else if ("tsv".equals(collectionFormat)) { - delimiter = "\t"; - } else if ("pipes".equals(collectionFormat)) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder() ; - for (Object item : value) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - return sb.substring(delimiter.length()); - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param filename The filename to be sanitized - * @return The sanitized filename - */ - public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * "* / *" is also default to JSON - * @param mime MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); - } - - /** - * Select the Accept header's value from the given accepts array: - * if JSON exists in the given array, use it; - * otherwise use all of them (joining into a string) - * - * @param accepts The accepts array to select from - * @return The Accept header to use. If the given array is empty, - * null will be returned (not to set the Accept header explicitly). - */ - public String selectHeaderAccept(String[] accepts) { - if (accepts.length == 0) { - return null; - } - for (String accept : accepts) { - if (isJsonMime(accept)) { - return accept; - } - } - return StringUtil.join(accepts, ","); - } - - /** - * Select the Content-Type header's value from the given array: - * if JSON exists in the given array, use it; - * otherwise use the first one of the array. - * - * @param contentTypes The Content-Type array to select from - * @return The Content-Type header to use. If the given array is empty, - * returns null. If it matches "any", JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return null; - } - - if (contentTypes[0].equals("*/*")) { - return "application/json"; - } - - for (String contentType : contentTypes) { - if (isJsonMime(contentType)) { - return contentType; - } - } - - return contentTypes[0]; - } - - /** - * Escape the given string to be used as URL query value. - * - * @param str String to be escaped - * @return Escaped string - */ - public String escapeString(String str) { - try { - return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); - } catch (UnsupportedEncodingException e) { - return str; - } - } - - /** - * Deserialize response body to Java object, according to the return type and - * the Content-Type response header. - * - * @param Type - * @param response HTTP response - * @param returnType The type of the Java object - * @return The deserialized Java object - * @throws com.bitget.openapi.ApiException If fail to deserialize response body, i.e. cannot read response body - * or the Content-Type of the response is not supported. - */ - @SuppressWarnings("unchecked") - public T deserialize(Response response, Type returnType) throws ApiException { - if (response == null || returnType == null) { - return null; - } - - if ("byte[]".equals(returnType.toString())) { - // Handle binary response (byte array). - try { - return (T) response.body().bytes(); - } catch (IOException e) { - throw new ApiException(e); - } - } else if (returnType.equals(File.class)) { - // Handle file downloading. - return (T) downloadFileFromResponse(response); - } - - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { - return null; - } - - String contentType = response.headers().get("Content-Type"); - if (contentType == null) { - // ensuring a default content type - contentType = "application/json"; - } - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( - "Content type \"" + contentType + "\" is not supported for type: " + returnType, - response.code(), - response.headers().toMultimap(), - respBody); - } - } - - /** - * Serialize the given Java object into request body according to the object's - * class and the request Content-Type. - * - * @param obj The Java object - * @param contentType The request Content-Type - * @return The serialized request body - * @throws com.bitget.openapi.ApiException If fail to serialize the given object - */ - public RequestBody serialize(Object obj, String contentType) throws ApiException { - if (obj instanceof byte[]) { - // Binary (byte array) body parameter support. - return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create((File) obj, MediaType.parse(contentType)); - } else if ("text/plain".equals(contentType) && obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - return RequestBody.create(content, MediaType.parse(contentType)); - } else if (obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else { - throw new ApiException("Content type \"" + contentType + "\" is not supported"); - } - } - - /** - * Download file from the given response. - * - * @param response An instance of the Response object - * @throws com.bitget.openapi.ApiException If fail to read file content from response and write to disk - * @return Downloaded file - */ - public File downloadFileFromResponse(Response response) throws ApiException { - try { - File file = prepareDownloadFile(response); - BufferedSink sink = Okio.buffer(Okio.sink(file)); - sink.writeAll(response.body().source()); - sink.close(); - return file; - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * Prepare file for download - * - * @param response An instance of the Response object - * @return Prepared file for the download - * @throws java.io.IOException If fail to prepare file for download - */ - public File prepareDownloadFile(Response response) throws IOException { - String filename = null; - String contentDisposition = response.header("Content-Disposition"); - if (contentDisposition != null && !"".equals(contentDisposition)) { - // Get filename from the Content-Disposition header. - Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); - Matcher matcher = pattern.matcher(contentDisposition); - if (matcher.find()) { - filename = sanitizeFilename(matcher.group(1)); - } - } - - String prefix = null; - String suffix = null; - if (filename == null) { - prefix = "download-"; - suffix = ""; - } else { - int pos = filename.lastIndexOf("."); - if (pos == -1) { - prefix = filename + "-"; - } else { - prefix = filename.substring(0, pos) + "-"; - suffix = filename.substring(pos); - } - // Files.createTempFile requires the prefix to be at least three characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return Files.createTempFile(prefix, suffix).toFile(); - else - return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); - } - - /** - * {@link #execute(Call, Type)} - * - * @param Type - * @param call An instance of the Call object - * @return ApiResponse<T> - * @throws com.bitget.openapi.ApiException If fail to execute the call - */ - public ApiResponse execute(Call call) throws ApiException { - return execute(call, null); - } - - /** - * Execute HTTP call and deserialize the HTTP response body into the given return type. - * - * @param returnType The return type used to deserialize HTTP response body - * @param The return type corresponding to (same with) returnType - * @param call Call - * @return ApiResponse object containing response status, headers and - * data, which is a Java object deserialized from response body and would be null - * when returnType is null. - * @throws com.bitget.openapi.ApiException If fail to execute the call - */ - public ApiResponse execute(Call call, Type returnType) throws ApiException { - try { - Response response = call.execute(); - T data = handleResponse(response, returnType); - return new ApiResponse(response.code(), response.headers().toMultimap(), data); - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * {@link #executeAsync(Call, Type, ApiCallback)} - * - * @param Type - * @param call An instance of the Call object - * @param callback ApiCallback<T> - */ - public void executeAsync(Call call, ApiCallback callback) { - executeAsync(call, null, callback); - } - - /** - * Execute HTTP call asynchronously. - * - * @param Type - * @param call The callback to be executed when the API call finishes - * @param returnType Return type - * @param callback ApiCallback - * @see #execute(Call, Type) - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Call call, Response response) throws IOException { - T result; - try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } catch (Exception e) { - callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); - return; - } - callback.onSuccess(result, response.code(), response.headers().toMultimap()); - } - }); - } - - /** - * Handle the given response, return the deserialized object when the response is successful. - * - * @param Type - * @param response Response - * @param returnType Return type - * @return Type - * @throws com.bitget.openapi.ApiException If the response has an unsuccessful status code or - * fail to deserialize the response body - */ - public T handleResponse(Response response, Type returnType) throws ApiException { - if (response.isSuccessful()) { - if (returnType == null || response.code() == 204) { - // returning null if the returnType is not defined, - // or the status code is 204 (No Content) - if (response.body() != null) { - try { - response.body().close(); - } catch (Exception e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - return null; - } else { - return deserialize(response, returnType); - } - } else { - String respBody = null; - if (response.body() != null) { - try { - respBody = response.body().string(); - } catch (IOException e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); - } - } - - /** - * Build HTTP call with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP call - * @throws com.bitget.openapi.ApiException If fail to serialize the request body object - */ - public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); - - return httpClient.newCall(request); - } - - /** - * Build an HTTP request with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP request - * @throws com.bitget.openapi.ApiException If fail to serialize the request body object - */ - public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); - - // prepare HTTP request body - RequestBody reqBody; - String contentType = headerParams.get("Content-Type"); - - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentType)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentType)) { - reqBody = buildRequestBodyMultipart(formParams); - } else if (body == null) { - if ("DELETE".equals(method)) { - // allow calling DELETE without sending a request body - reqBody = null; - } else { - // use an empty request body (for POST, PUT and PATCH) - reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType)); - } - } else { - reqBody = serialize(body, contentType); - } - - // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - - final Request.Builder reqBuilder = new Request.Builder().url(url); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); - - // Associate callback with request (if not null) so interceptor can - // access it when creating ProgressResponseBody - reqBuilder.tag(callback); - - Request request = null; - - if (callback != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); - request = reqBuilder.method(method, progressRequestBody).build(); - } else { - request = reqBuilder.method(method, reqBody).build(); - } - - return request; - } - - /** - * Build full URL by concatenating base path, the given sub path and query parameters. - * - * @param baseUrl The base URL - * @param path The sub path - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @return The full URL - */ - public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { - final StringBuilder url = new StringBuilder(); - if (baseUrl != null) { - url.append(baseUrl).append(path); - } else { - url.append(basePath).append(path); - } - - if (queryParams != null && !queryParams.isEmpty()) { - // support (constant) query string in `path`, e.g. "/posts?draft=1" - String prefix = path.contains("?") ? "&" : "?"; - for (Pair param : queryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - url.append(escapeString(param.getName())).append("=").append(escapeString(value)); - } - } - } - - if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { - String prefix = url.toString().contains("?") ? "&" : "?"; - for (Pair param : collectionQueryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - // collection query parameter value already escaped as part of parameterToPairs - url.append(escapeString(param.getName())).append("=").append(value); - } - } - } - - return url.toString(); - } - - /** - * Set header parameters to the request builder, including default headers. - * - * @param headerParams Header parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { - for (Entry param : headerParams.entrySet()) { - reqBuilder.header(param.getKey(), parameterToString(param.getValue())); - } - for (Entry header : defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(header.getKey())) { - reqBuilder.header(header.getKey(), parameterToString(header.getValue())); - } - } - } - - /** - * Set cookie parameters to the request builder, including default cookies. - * - * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { - for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - for (Entry param : defaultCookieMap.entrySet()) { - if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - } - } - - /** - * Update query and header parameters based on authentication settings. - * - * @param authNames The authentications to apply - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws com.bitget.openapi.ApiException If fails to update the parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) throws ApiException { - for (String authName : authNames) { - Authentication auth = authentications.get(authName); - if (auth == null) { - throw new RuntimeException("Authentication undefined: " + authName); - } - auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); - } - - try { - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) authentications.get("SECRET_KEY"); - ApiKeyAuth ACCESS_SIGN = (ApiKeyAuth) authentications.get("ACCESS_SIGN"); - ApiKeyAuth ACCESS_TIMESTAMP = (ApiKeyAuth) authentications.get("ACCESS_TIMESTAMP"); - String timestamp = String.valueOf(System.currentTimeMillis()); - String sign = SignatureUtils.generate(timestamp, - method, //original.method(), - uri.getPath(), // original.url().url().getPath(), - uri.getQuery(), //original.url().encodedQuery(), - payload, // original.body() == null ? "" : bodyToString(original), - SECRET_KEY.getApiKey()); //clientParameter.getSecretKey()); - headerParams.put(ACCESS_SIGN.getParamName(), sign); - headerParams.put(ACCESS_TIMESTAMP.getParamName(), timestamp); - headerParams.remove(SECRET_KEY.getParamName()); - } catch (Exception e) { - throw new RuntimeException("gen sign error", e); - } - } - - /** - * Build a form-encoding request body with the given form parameters. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyFormEncoding(Map formParams) { - okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); - for (Entry param : formParams.entrySet()) { - formBuilder.add(param.getKey(), parameterToString(param.getValue())); - } - return formBuilder.build(); - } - - /** - * Build a multipart (file uploading) request body with the given form parameters, - * which could contain text fields and file fields. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyMultipart(Map formParams) { - MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - for (Entry param : formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); - } else if (param.getValue() instanceof List) { - List list = (List) param.getValue(); - for (Object item: list) { - if (item instanceof File) { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } - } - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } - } - return mpBuilder.build(); - } - - /** - * Guess Content-Type header from the given file (defaults to "application/octet-stream"). - * - * @param file The given file - * @return The guessed Content-Type - */ - public String guessContentTypeFromFile(File file) { - String contentType = URLConnection.guessContentTypeFromName(file.getName()); - if (contentType == null) { - return "application/octet-stream"; - } else { - return contentType; - } - } - - /** - * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param file The file to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); - } - - /** - * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param obj The complex object to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { - RequestBody requestBody; - if (obj instanceof String) { - requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); - } else { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - requestBody = RequestBody.create(content, MediaType.parse("application/json")); - } - - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); - mpBuilder.addPart(partHeaders, requestBody); - } - - /** - * Get network interceptor to add it to the httpClient to track download progress for - * async requests. - */ - private Interceptor getProgressInterceptor() { - return new Interceptor() { - @Override - public Response intercept(Interceptor.Chain chain) throws IOException { - final Request request = chain.request(); - final Response originalResponse = chain.proceed(request); - if (request.tag() instanceof ApiCallback) { - final ApiCallback callback = (ApiCallback) request.tag(); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); - } - return originalResponse; - } - }; - } - - /** - * Apply SSL related settings to httpClient according to the current values of - * verifyingSsl and sslCaCert. - */ - private void applySslSettings() { - try { - TrustManager[] trustManagers; - HostnameVerifier hostnameVerifier; - if (!verifyingSsl) { - trustManagers = new TrustManager[]{ - new X509TrustManager() { - @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[]{}; - } - } - }; - hostnameVerifier = new HostnameVerifier() { - @Override - public boolean verify(String hostname, SSLSession session) { - return true; - } - }; - } else { - TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - - if (sslCaCert == null) { - trustManagerFactory.init((KeyStore) null); - } else { - char[] password = null; // Any password will work. - CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); - Collection certificates = certificateFactory.generateCertificates(sslCaCert); - if (certificates.isEmpty()) { - throw new IllegalArgumentException("expected non-empty set of trusted certificates"); - } - KeyStore caKeyStore = newEmptyKeyStore(password); - int index = 0; - for (Certificate certificate : certificates) { - String certificateAlias = "ca" + (index++); - caKeyStore.setCertificateEntry(certificateAlias, certificate); - } - trustManagerFactory.init(caKeyStore); - } - trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; - } - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } - - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { - try { - KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); - keyStore.load(null, password); - return keyStore; - } catch (IOException e) { - throw new AssertionError(e); - } - } - - /** - * Convert the HTTP request body to a string. - * - * @param requestBody The HTTP request object - * @return The string representation of the HTTP request body - * @throws com.bitget.openapi.ApiException If fail to serialize the request body object into a string - */ - private String requestBodyToString(RequestBody requestBody) throws ApiException { - if (requestBody != null) { - try { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return buffer.readUtf8(); - } catch (final IOException e) { - throw new ApiException(e); - } - } - - // empty http request body - return ""; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiConfig.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiConfig.java deleted file mode 100644 index 4dfc3a1a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiConfig.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bitget.openapi; - -import com.bitget.openapi.auth.ApiKeyAuth; - -public class ApiConfig { - public static String BASE_PATH = "https://api.bitget.com"; - public static String SECRET_KEY = "your value"; - public static String API_KEY = "your value"; - public static String PASSPHRASE = "your value"; - - public static ApiClient getConfig() { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath(ApiConfig.BASE_PATH); - - ApiKeyAuth SECRET_KEY = (ApiKeyAuth) defaultClient.getAuthentication("SECRET_KEY"); - SECRET_KEY.setApiKey(ApiConfig.SECRET_KEY); - - ApiKeyAuth ACCESS_KEY = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_KEY"); - ACCESS_KEY.setApiKey(ApiConfig.API_KEY); - - ApiKeyAuth ACCESS_PASSPHRASE = (ApiKeyAuth) defaultClient.getAuthentication("ACCESS_PASSPHRASE"); - ACCESS_PASSPHRASE.setApiKey(ApiConfig.PASSPHRASE); - - return defaultClient; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiException.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiException.java deleted file mode 100644 index cccfad0f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiException.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import java.util.Map; -import java.util.List; - -import javax.ws.rs.core.GenericType; - -/** - *

ApiException class.

- */ -@SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiException extends Exception { - private int code = 0; - private Map> responseHeaders = null; - private String responseBody = null; - - /** - *

Constructor for ApiException.

- */ - public ApiException() {} - - /** - *

Constructor for ApiException.

- * - * @param throwable a {@link java.lang.Throwable} object - */ - public ApiException(Throwable throwable) { - super(throwable); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - */ - public ApiException(String message) { - super(message); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - super(message, throwable); - this.code = code; - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, int code, Map> responseHeaders, String responseBody) { - this(message, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { - this(message, throwable, code, responseHeaders, null); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, Map> responseHeaders, String responseBody) { - this((String) null, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message a {@link java.lang.String} object - */ - public ApiException(int code, String message) { - super(message); - this.code = code; - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message the error message - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, String message, Map> responseHeaders, String responseBody) { - this(code, message); - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - * Get the HTTP status code. - * - * @return HTTP status code - */ - public int getCode() { - return code; - } - - /** - * Get the HTTP response headers. - * - * @return A map of list of string - */ - public Map> getResponseHeaders() { - return responseHeaders; - } - - /** - * Get the HTTP response body. - * - * @return Response body in the form of string - */ - public String getResponseBody() { - return responseBody; - } - - /** - * Get the exception message including HTTP response data. - * - * @return The exception message - */ - public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", - super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiResponse.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiResponse.java deleted file mode 100644 index 3e49fd6e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ApiResponse.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import java.util.List; -import java.util.Map; - -/** - * API response returned by API call. - */ -public class ApiResponse { - final private int statusCode; - final private Map> headers; - final private T data; - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - */ - public ApiResponse(int statusCode, Map> headers) { - this(statusCode, headers, null); - } - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - * @param data The object deserialized from response bod - */ - public ApiResponse(int statusCode, Map> headers, T data) { - this.statusCode = statusCode; - this.headers = headers; - this.data = data; - } - - /** - *

Get the status code.

- * - * @return the status code - */ - public int getStatusCode() { - return statusCode; - } - - /** - *

Get the headers.

- * - * @return a {@link java.util.Map} of headers - */ - public Map> getHeaders() { - return headers; - } - - /** - *

Get the data.

- * - * @return the data - */ - public T getData() { - return data; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Configuration.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Configuration.java deleted file mode 100644 index 04c77559..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Configuration.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Configuration { - private static ApiClient defaultApiClient = new ApiClient(); - - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; - } - - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/GzipRequestInterceptor.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/GzipRequestInterceptor.java deleted file mode 100644 index 4a97b639..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/GzipRequestInterceptor.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import okhttp3.*; -import okio.Buffer; -import okio.BufferedSink; -import okio.GzipSink; -import okio.Okio; - -import java.io.IOException; - -/** - * Encodes request bodies using gzip. - * - * Taken from https://github.com/square/okhttp/issues/350 - */ -class GzipRequestInterceptor implements Interceptor { - @Override - public Response intercept(Chain chain) throws IOException { - Request originalRequest = chain.request(); - if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { - return chain.proceed(originalRequest); - } - - Request compressedRequest = originalRequest.newBuilder() - .header("Content-Encoding", "gzip") - .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) - .build(); - return chain.proceed(compressedRequest); - } - - private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return new RequestBody() { - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() { - return buffer.size(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - sink.write(buffer.snapshot()); - } - }; - } - - private RequestBody gzip(final RequestBody body) { - return new RequestBody() { - @Override - public MediaType contentType() { - return body.contentType(); - } - - @Override - public long contentLength() { - return -1; // We don't know the compressed length in advance! - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); - body.writeTo(gzipSink); - gzipSink.close(); - } - }; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/JSON.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/JSON.java deleted file mode 100644 index c64321cb..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/JSON.java +++ /dev/null @@ -1,509 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.internal.bind.util.ISO8601Utils; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonElement; -import io.gsonfire.GsonFireBuilder; -import io.gsonfire.TypeSelector; - -import okio.ByteString; - -import java.io.IOException; -import java.io.StringReader; -import java.lang.reflect.Type; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.ParsePosition; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Date; -import java.util.Locale; -import java.util.Map; -import java.util.HashMap; - -/* - * A JSON utility class - * - * NOTE: in the future, this class may be converted to static, which may break - * backward-compatibility - */ -public class JSON { - private static Gson gson; - private static boolean isLenientOnJson = false; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); - private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - - @SuppressWarnings("unchecked") - public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder() - ; - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; - } - - private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { - JsonElement element = readElement.getAsJsonObject().get(discriminatorField); - if (null == element) { - throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); - } - return element.getAsString(); - } - - /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. - * - * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. - * @return The Java class that implements the OpenAPI schema - */ - private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { - Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); - if (null == clazz) { - throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); - } - return clazz; - } - - { - GsonBuilder gsonBuilder = createGson(); - gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); - gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); - gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); - gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); - gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossLevelResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossRateAndLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedLevelResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfListOfMarginSystemResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginBatchCancelOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginBatchPlaceOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossAssetsResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossAssetsRiskResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossBorrowLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossFinFlowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossMaxBorrowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginCrossRepayResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginInterestInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedAssetsResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedBorrowLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedFinFlowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedInterestInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLiquidationInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLoanInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedMaxBorrowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedRepayInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedRepayResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginLiquidationInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginLoanInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginOpenOrderInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginPlaceOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginRepayInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMarginTradeDetailInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMerchantAdvResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMerchantInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMerchantOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfMerchantPersonInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.ApiResponseResultOfVoid.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.FiatPaymentDetailInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.FiatPaymentInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginBatchCancelOrderRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginBatchCancelOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginBatchOrdersRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginBatchPlaceOrderFailureResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginBatchPlaceOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCancelOrderFailureResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCancelOrderRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCancelOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossAssetsPopulationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossAssetsResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossAssetsRiskResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossBorrowLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossFinFlowInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossFinFlowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossLevelResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossLimitRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossMaxBorrowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossMaxBorrowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossRateAndLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossRepayRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossRepayResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginCrossVipResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginInterestInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginInterestInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedAssetsPopulationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedAssetsResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedAssetsRiskRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedAssetsRiskResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedBorrowLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedFinFlowInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedFinFlowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedInterestInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedInterestInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLevelResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLimitRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLiquidationInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLiquidationInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLoanInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedLoanInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedMaxBorrowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedMaxBorrowResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedRateAndLimitResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedRepayInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedRepayInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedRepayRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedRepayResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginIsolatedVipResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginLiquidationInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginLiquidationInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginLoanInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginLoanInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginOpenOrderInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginOrderInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginOrderRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginPlaceOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginRepayInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginRepayInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginSystemResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginTradeDetailInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MarginTradeDetailInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantAdvInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantAdvResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantAdvUserLimitInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantInfoResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantOrderInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantOrderPaymentInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantOrderResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.MerchantPersonInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.bitget.openapi.model.OrderPaymentDetailInfo.CustomTypeAdapterFactory()); - gson = gsonBuilder.create(); - } - - /** - * Get Gson. - * - * @return Gson - */ - public static Gson getGson() { - return gson; - } - - /** - * Set Gson. - * - * @param gson Gson - */ - public static void setGson(Gson gson) { - JSON.gson = gson; - } - - public static void setLenientOnJson(boolean lenientOnJson) { - isLenientOnJson = lenientOnJson; - } - - /** - * Serialize the given Java object into JSON string. - * - * @param obj Object - * @return String representation of the JSON - */ - public static String serialize(Object obj) { - return gson.toJson(obj); - } - - /** - * Deserialize the given JSON string to Java object. - * - * @param Type - * @param body The JSON string - * @param returnType The type to deserialize into - * @return The deserialized Java object - */ - @SuppressWarnings("unchecked") - public static T deserialize(String body, Type returnType) { - try { - if (isLenientOnJson) { - JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) - jsonReader.setLenient(true); - return gson.fromJson(jsonReader, returnType); - } else { - return gson.fromJson(body, returnType); - } - } catch (JsonParseException e) { - // Fallback processing when failed to parse JSON form response body: - // return the response body string directly for the String return type; - if (returnType.equals(String.class)) { - return (T) body; - } else { - throw (e); - } - } - } - - /** - * Gson TypeAdapter for Byte Array type - */ - public static class ByteArrayAdapter extends TypeAdapter { - - @Override - public void write(JsonWriter out, byte[] value) throws IOException { - if (value == null) { - out.nullValue(); - } else { - out.value(ByteString.of(value).base64()); - } - } - - @Override - public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } - } - - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ - public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public OffsetDateTimeTypeAdapter() { - this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } - - public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, OffsetDateTime date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public OffsetDateTime read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - if (date.endsWith("+0000")) { - date = date.substring(0, date.length()-5) + "Z"; - } - return OffsetDateTime.parse(date, formatter); - } - } - } - - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ - public static class LocalDateTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public LocalDateTypeAdapter() { - this(DateTimeFormatter.ISO_LOCAL_DATE); - } - - public LocalDateTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, LocalDate date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public LocalDate read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return LocalDate.parse(date, formatter); - } - } - } - - public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - offsetDateTimeTypeAdapter.setFormat(dateFormat); - } - - public static void setLocalDateFormat(DateTimeFormatter dateFormat) { - localDateTypeAdapter.setFormat(dateFormat); - } - - /** - * Gson TypeAdapter for java.sql.Date type - * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used - * (more efficient than SimpleDateFormat). - */ - public static class SqlDateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public SqlDateTypeAdapter() {} - - public SqlDateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, java.sql.Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = date.toString(); - } - out.value(value); - } - } - - @Override - public java.sql.Date read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return new java.sql.Date(dateFormat.parse(date).getTime()); - } - return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } - } - - /** - * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, ISO8601Utils will be used. - */ - public static class DateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public DateTypeAdapter() {} - - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = ISO8601Utils.format(date, true); - } - out.value(value); - } - } - - @Override - public Date read(JsonReader in) throws IOException { - try { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return dateFormat.parse(date); - } - return ISO8601Utils.parse(date, new ParsePosition(0)); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } catch (IllegalArgumentException e) { - throw new JsonParseException(e); - } - } - } - - public static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } - - public static void setSqlDateFormat(DateFormat dateFormat) { - sqlDateTypeAdapter.setFormat(dateFormat); - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Pair.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Pair.java deleted file mode 100644 index 3c92c583..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/Pair.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Pair { - private String name = ""; - private String value = ""; - - public Pair (String name, String value) { - setName(name); - setValue(value); - } - - private void setName(String name) { - if (!isValidString(name)) { - return; - } - - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressRequestBody.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressRequestBody.java deleted file mode 100644 index ff138c48..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressRequestBody.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import okhttp3.MediaType; -import okhttp3.RequestBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSink; -import okio.ForwardingSink; -import okio.Okio; -import okio.Sink; - -public class ProgressRequestBody extends RequestBody { - - private final RequestBody requestBody; - - private final ApiCallback callback; - - public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { - this.requestBody = requestBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() throws IOException { - return requestBody.contentLength(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink bufferedSink = Okio.buffer(sink(sink)); - requestBody.writeTo(bufferedSink); - bufferedSink.flush(); - } - - private Sink sink(Sink sink) { - return new ForwardingSink(sink) { - - long bytesWritten = 0L; - long contentLength = 0L; - - @Override - public void write(Buffer source, long byteCount) throws IOException { - super.write(source, byteCount); - if (contentLength == 0) { - contentLength = contentLength(); - } - - bytesWritten += byteCount; - callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); - } - }; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressResponseBody.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressResponseBody.java deleted file mode 100644 index f9d287e9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ProgressResponseBody.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import okhttp3.MediaType; -import okhttp3.ResponseBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSource; -import okio.ForwardingSource; -import okio.Okio; -import okio.Source; - -public class ProgressResponseBody extends ResponseBody { - - private final ResponseBody responseBody; - private final ApiCallback callback; - private BufferedSource bufferedSource; - - public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { - this.responseBody = responseBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return responseBody.contentType(); - } - - @Override - public long contentLength() { - return responseBody.contentLength(); - } - - @Override - public BufferedSource source() { - if (bufferedSource == null) { - bufferedSource = Okio.buffer(source(responseBody.source())); - } - return bufferedSource; - } - - private Source source(Source source) { - return new ForwardingSource(source) { - long totalBytesRead = 0L; - - @Override - public long read(Buffer sink, long byteCount) throws IOException { - long bytesRead = super.read(sink, byteCount); - // read() returns the number of bytes read, or -1 if this source is exhausted. - totalBytesRead += bytesRead != -1 ? bytesRead : 0; - callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); - return bytesRead; - } - }; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerConfiguration.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerConfiguration.java deleted file mode 100644 index a7400e73..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerConfiguration.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.bitget.openapi; - -import java.util.Map; - -/** - * Representing a Server configuration. - */ -public class ServerConfiguration { - public String URL; - public String description; - public Map variables; - - /** - * @param URL A URL to the target host. - * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. - */ - public ServerConfiguration(String URL, String description, Map variables) { - this.URL = URL; - this.description = description; - this.variables = variables; - } - - /** - * Format URL template using given variables. - * - * @param variables A map between a variable name and its value. - * @return Formatted URL. - */ - public String URL(Map variables) { - String url = this.URL; - - // go through variables and replace placeholders - for (Map.Entry variable: this.variables.entrySet()) { - String name = variable.getKey(); - ServerVariable serverVariable = variable.getValue(); - String value = serverVariable.defaultValue; - - if (variables != null && variables.containsKey(name)) { - value = variables.get(name); - if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); - } - } - url = url.replace("{" + name + "}", value); - } - return url; - } - - /** - * Format URL template using default server variables. - * - * @return Formatted URL. - */ - public String URL() { - return URL(null); - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerVariable.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerVariable.java deleted file mode 100644 index 05371d2f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/ServerVariable.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.bitget.openapi; - -import java.util.HashSet; - -/** - * Representing a Server Variable for server URL template substitution. - */ -public class ServerVariable { - public String description; - public String defaultValue; - public HashSet enumValues = null; - - /** - * @param description A description for the server variable. - * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. - */ - public ServerVariable(String description, String defaultValue, HashSet enumValues) { - this.description = description; - this.defaultValue = defaultValue; - this.enumValues = enumValues; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/SignatureUtils.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/SignatureUtils.java deleted file mode 100644 index 980b6833..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/SignatureUtils.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.bitget.openapi; - -import org.apache.commons.lang3.StringUtils; - -import javax.crypto.Mac; -import javax.crypto.spec.SecretKeySpec; -import javax.management.RuntimeErrorException; -import java.io.UnsupportedEncodingException; -import java.security.InvalidKeyException; -import java.security.NoSuchAlgorithmException; -import java.util.Base64; - -public class SignatureUtils { - public static final String HMAC_SHA256 = "HmacSHA256"; - public static final String CHARSET = "UTF-8"; - public static Mac MAC; - - static { - try { - SignatureUtils.MAC = Mac.getInstance(SignatureUtils.HMAC_SHA256); - } catch (NoSuchAlgorithmException var1) { - throw new RuntimeErrorException(new Error("Can't get Mac's instance.")); - } - } - - /** - * signature algorithm - * - * @param timestamp - * @param method - * @param requestPath - * @param queryString - * @param body - * @param secretKey - * @return java.lang.String - * @description ACCESS-SIGN of The request header is correct timestamp + method + requestPath - * + "?" + queryString + body The string (+indicates string connection) is encrypted using the HMAC SHA256 method and output through BASE64 encoding。 - * @author jian.li - * @date 2020-06-02 17:04 - */ - public static String generate(String timestamp, String method, String requestPath, - String queryString, String body, String secretKey) - throws CloneNotSupportedException, InvalidKeyException, UnsupportedEncodingException { - - method = method.toUpperCase(); - body = StringUtils.defaultIfBlank(body, StringUtils.EMPTY); - queryString = StringUtils.isBlank(queryString) ? StringUtils.EMPTY : "?" + queryString; - - String preHash = timestamp + method + requestPath + queryString + body; - byte[] secretKeyBytes = secretKey.getBytes(SignatureUtils.CHARSET); - SecretKeySpec secretKeySpec = new SecretKeySpec(secretKeyBytes, SignatureUtils.HMAC_SHA256); - Mac mac = (Mac) SignatureUtils.MAC.clone(); - mac.init(secretKeySpec); - return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); - } - - /** - * websocket Signature encryption - * - * @param timestamp - * @param method - * @param requestPath - * @param secretKey - * @return - * @throws CloneNotSupportedException - * @throws InvalidKeyException - * @throws UnsupportedEncodingException - */ - public static String ws_sign(String timestamp, String method, String requestPath, String secretKey) - throws CloneNotSupportedException, InvalidKeyException, UnsupportedEncodingException { - method = method.toUpperCase(); - String preHash = timestamp + method + requestPath; - byte[] secretKeyBytes = secretKey.getBytes(SignatureUtils.CHARSET); - SecretKeySpec secretKeySpec = new SecretKeySpec(secretKeyBytes, SignatureUtils.HMAC_SHA256); - Mac mac = (Mac) SignatureUtils.MAC.clone(); - mac.init(secretKeySpec); - return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); - } - - /** - * Ws signature - * - * @param timestamp - * @param secretKey - * @return - */ - public static String wsGenerateSign(String timestamp, String secretKey) throws CloneNotSupportedException, - InvalidKeyException, UnsupportedEncodingException { - String preHash = timestamp + "GET" + "/user/verify"; - byte[] secretKeyBytes = secretKey.getBytes(SignatureUtils.CHARSET); - SecretKeySpec secretKeySpec = new SecretKeySpec(secretKeyBytes, SignatureUtils.HMAC_SHA256); - Mac mac = (Mac) SignatureUtils.MAC.clone(); - mac.init(secretKeySpec); - return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); - } -} \ No newline at end of file diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/StringUtil.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/StringUtil.java deleted file mode 100644 index fd994f63..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/StringUtil.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi; - -import java.util.Collection; -import java.util.Iterator; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) { - return true; - } - if (value != null && value.equalsIgnoreCase(str)) { - return true; - } - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) { - return ""; - } - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } - - /** - * Join a list of strings with the given separator. - * - * @param list The list of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(Collection list, String separator) { - Iterator iterator = list.iterator(); - StringBuilder out = new StringBuilder(); - if (iterator.hasNext()) { - out.append(iterator.next()); - } - while (iterator.hasNext()) { - out.append(separator).append(iterator.next()); - } - return out.toString(); - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossAccountApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossAccountApi.java deleted file mode 100644 index 312f6cbb..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossAccountApi.java +++ /dev/null @@ -1,1016 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossAssetsPopulationResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossAssetsResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossAssetsRiskResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossBorrowLimitResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossMaxBorrowResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossRepayResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginCrossLimitRequest; -import com.bitget.openapi.model.MarginCrossMaxBorrowRequest; -import com.bitget.openapi.model.MarginCrossRepayRequest; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossAccountApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossAccountApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossAccountApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for callVoid - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call callVoidCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/void"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call callVoidValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return callVoidCall(_callback); - - } - - /** - * void - * empty - * @return ApiResponseResultOfVoid - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfVoid callVoid() throws ApiException { - ApiResponse localVarResp = callVoidWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * void - * empty - * @return ApiResponse<ApiResponseResultOfVoid> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse callVoidWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = callVoidValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * void (asynchronously) - * empty - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call callVoidAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = callVoidValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountAssets - * @param coin coin (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountAssetsCall(String coin, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/assets"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountAssetsValidateBeforeCall(String coin, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'coin' is set - if (coin == null) { - throw new ApiException("Missing the required parameter 'coin' when calling marginCrossAccountAssets(Async)"); - } - - return marginCrossAccountAssetsCall(coin, _callback); - - } - - /** - * assets - * Get Assets - * @param coin coin (required) - * @return ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult marginCrossAccountAssets(String coin) throws ApiException { - ApiResponse localVarResp = marginCrossAccountAssetsWithHttpInfo(coin); - return localVarResp.getData(); - } - - /** - * assets - * Get Assets - * @param coin coin (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginCrossAssetsPopulationResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountAssetsWithHttpInfo(String coin) throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountAssetsValidateBeforeCall(coin, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * assets (asynchronously) - * Get Assets - * @param coin coin (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountAssetsAsync(String coin, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountAssetsValidateBeforeCall(coin, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountBorrow - * @param marginCrossLimitRequest marginCrossLimitRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountBorrowCall(MarginCrossLimitRequest marginCrossLimitRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginCrossLimitRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/borrow"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountBorrowValidateBeforeCall(MarginCrossLimitRequest marginCrossLimitRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginCrossLimitRequest' is set - if (marginCrossLimitRequest == null) { - throw new ApiException("Missing the required parameter 'marginCrossLimitRequest' when calling marginCrossAccountBorrow(Async)"); - } - - return marginCrossAccountBorrowCall(marginCrossLimitRequest, _callback); - - } - - /** - * borrow - * borrow - * @param marginCrossLimitRequest marginCrossLimitRequest (required) - * @return ApiResponseResultOfMarginCrossBorrowLimitResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossBorrowLimitResult marginCrossAccountBorrow(MarginCrossLimitRequest marginCrossLimitRequest) throws ApiException { - ApiResponse localVarResp = marginCrossAccountBorrowWithHttpInfo(marginCrossLimitRequest); - return localVarResp.getData(); - } - - /** - * borrow - * borrow - * @param marginCrossLimitRequest marginCrossLimitRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginCrossBorrowLimitResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountBorrowWithHttpInfo(MarginCrossLimitRequest marginCrossLimitRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountBorrowValidateBeforeCall(marginCrossLimitRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * borrow (asynchronously) - * borrow - * @param marginCrossLimitRequest marginCrossLimitRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountBorrowAsync(MarginCrossLimitRequest marginCrossLimitRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountBorrowValidateBeforeCall(marginCrossLimitRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountMaxBorrowableAmount - * @param marginCrossMaxBorrowRequest marginCrossMaxBorrowRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountMaxBorrowableAmountCall(MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginCrossMaxBorrowRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/maxBorrowableAmount"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountMaxBorrowableAmountValidateBeforeCall(MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginCrossMaxBorrowRequest' is set - if (marginCrossMaxBorrowRequest == null) { - throw new ApiException("Missing the required parameter 'marginCrossMaxBorrowRequest' when calling marginCrossAccountMaxBorrowableAmount(Async)"); - } - - return marginCrossAccountMaxBorrowableAmountCall(marginCrossMaxBorrowRequest, _callback); - - } - - /** - * maxBorrowableAmount - * Get MaxBorrowableAmount - * @param marginCrossMaxBorrowRequest marginCrossMaxBorrowRequest (required) - * @return ApiResponseResultOfMarginCrossMaxBorrowResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossMaxBorrowResult marginCrossAccountMaxBorrowableAmount(MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest) throws ApiException { - ApiResponse localVarResp = marginCrossAccountMaxBorrowableAmountWithHttpInfo(marginCrossMaxBorrowRequest); - return localVarResp.getData(); - } - - /** - * maxBorrowableAmount - * Get MaxBorrowableAmount - * @param marginCrossMaxBorrowRequest marginCrossMaxBorrowRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginCrossMaxBorrowResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountMaxBorrowableAmountWithHttpInfo(MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountMaxBorrowableAmountValidateBeforeCall(marginCrossMaxBorrowRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * maxBorrowableAmount (asynchronously) - * Get MaxBorrowableAmount - * @param marginCrossMaxBorrowRequest marginCrossMaxBorrowRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountMaxBorrowableAmountAsync(MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountMaxBorrowableAmountValidateBeforeCall(marginCrossMaxBorrowRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountMaxTransferOutAmount - * @param coin coin (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountMaxTransferOutAmountCall(String coin, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/maxTransferOutAmount"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountMaxTransferOutAmountValidateBeforeCall(String coin, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'coin' is set - if (coin == null) { - throw new ApiException("Missing the required parameter 'coin' when calling marginCrossAccountMaxTransferOutAmount(Async)"); - } - - return marginCrossAccountMaxTransferOutAmountCall(coin, _callback); - - } - - /** - * maxTransferOutAmount - * Get Max TransferOutAmount - * @param coin coin (required) - * @return ApiResponseResultOfMarginCrossAssetsResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossAssetsResult marginCrossAccountMaxTransferOutAmount(String coin) throws ApiException { - ApiResponse localVarResp = marginCrossAccountMaxTransferOutAmountWithHttpInfo(coin); - return localVarResp.getData(); - } - - /** - * maxTransferOutAmount - * Get Max TransferOutAmount - * @param coin coin (required) - * @return ApiResponse<ApiResponseResultOfMarginCrossAssetsResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountMaxTransferOutAmountWithHttpInfo(String coin) throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountMaxTransferOutAmountValidateBeforeCall(coin, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * maxTransferOutAmount (asynchronously) - * Get Max TransferOutAmount - * @param coin coin (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountMaxTransferOutAmountAsync(String coin, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountMaxTransferOutAmountValidateBeforeCall(coin, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountRepay - * @param marginCrossRepayRequest marginCrossRepayRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountRepayCall(MarginCrossRepayRequest marginCrossRepayRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginCrossRepayRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/repay"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountRepayValidateBeforeCall(MarginCrossRepayRequest marginCrossRepayRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginCrossRepayRequest' is set - if (marginCrossRepayRequest == null) { - throw new ApiException("Missing the required parameter 'marginCrossRepayRequest' when calling marginCrossAccountRepay(Async)"); - } - - return marginCrossAccountRepayCall(marginCrossRepayRequest, _callback); - - } - - /** - * repay - * repay - * @param marginCrossRepayRequest marginCrossRepayRequest (required) - * @return ApiResponseResultOfMarginCrossRepayResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossRepayResult marginCrossAccountRepay(MarginCrossRepayRequest marginCrossRepayRequest) throws ApiException { - ApiResponse localVarResp = marginCrossAccountRepayWithHttpInfo(marginCrossRepayRequest); - return localVarResp.getData(); - } - - /** - * repay - * repay - * @param marginCrossRepayRequest marginCrossRepayRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginCrossRepayResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountRepayWithHttpInfo(MarginCrossRepayRequest marginCrossRepayRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountRepayValidateBeforeCall(marginCrossRepayRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * repay (asynchronously) - * repay - * @param marginCrossRepayRequest marginCrossRepayRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountRepayAsync(MarginCrossRepayRequest marginCrossRepayRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountRepayValidateBeforeCall(marginCrossRepayRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossAccountRiskRate - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountRiskRateCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/account/riskRate"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossAccountRiskRateValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return marginCrossAccountRiskRateCall(_callback); - - } - - /** - * riskRate - * riskRate - * @return ApiResponseResultOfMarginCrossAssetsRiskResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossAssetsRiskResult marginCrossAccountRiskRate() throws ApiException { - ApiResponse localVarResp = marginCrossAccountRiskRateWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * riskRate - * riskRate - * @return ApiResponse<ApiResponseResultOfMarginCrossAssetsRiskResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossAccountRiskRateWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = marginCrossAccountRiskRateValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * riskRate (asynchronously) - * riskRate - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossAccountRiskRateAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossAccountRiskRateValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossBorrowApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossBorrowApi.java deleted file mode 100644 index 5da8cea9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossBorrowApi.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginLoanInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossBorrowApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossBorrowApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossBorrowApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for crossLoanList - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossLoanListCall(String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/loan/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (loanId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loanId", loanId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call crossLoanListValidateBeforeCall(String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling crossLoanList(Async)"); - } - - return crossLoanListCall(startTime, coin, endTime, loanId, pageSize, pageId, _callback); - - } - - /** - * list - * Get Loan List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginLoanInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginLoanInfoResult crossLoanList(String startTime, String coin, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = crossLoanListWithHttpInfo(startTime, coin, endTime, loanId, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get Loan List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginLoanInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse crossLoanListWithHttpInfo(String startTime, String coin, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = crossLoanListValidateBeforeCall(startTime, coin, endTime, loanId, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get Loan List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossLoanListAsync(String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = crossLoanListValidateBeforeCall(startTime, coin, endTime, loanId, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossFinflowApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossFinflowApi.java deleted file mode 100644 index 858c972a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossFinflowApi.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossFinFlowResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossFinflowApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossFinflowApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossFinflowApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for crossFinList - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param marginType marginType (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossFinListCall(String startTime, String coin, String endTime, String marginType, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/fin/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (marginType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("marginType", marginType)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call crossFinListValidateBeforeCall(String startTime, String coin, String endTime, String marginType, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling crossFinList(Async)"); - } - - return crossFinListCall(startTime, coin, endTime, marginType, pageSize, pageId, _callback); - - } - - /** - * list - * Get finance flow List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param marginType marginType (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginCrossFinFlowResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginCrossFinFlowResult crossFinList(String startTime, String coin, String endTime, String marginType, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = crossFinListWithHttpInfo(startTime, coin, endTime, marginType, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get finance flow List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param marginType marginType (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginCrossFinFlowResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse crossFinListWithHttpInfo(String startTime, String coin, String endTime, String marginType, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = crossFinListValidateBeforeCall(startTime, coin, endTime, marginType, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get finance flow List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param marginType marginType (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossFinListAsync(String startTime, String coin, String endTime, String marginType, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = crossFinListValidateBeforeCall(startTime, coin, endTime, marginType, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossInterestApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossInterestApi.java deleted file mode 100644 index 36393c8d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossInterestApi.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginInterestInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossInterestApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossInterestApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossInterestApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for crossInterestList - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossInterestListCall(String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/interest/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call crossInterestListValidateBeforeCall(String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling crossInterestList(Async)"); - } - - return crossInterestListCall(startTime, coin, pageSize, pageId, _callback); - - } - - /** - * list - * Get interest List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginInterestInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginInterestInfoResult crossInterestList(String startTime, String coin, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = crossInterestListWithHttpInfo(startTime, coin, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get interest List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginInterestInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse crossInterestListWithHttpInfo(String startTime, String coin, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = crossInterestListValidateBeforeCall(startTime, coin, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get interest List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossInterestListAsync(String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = crossInterestListValidateBeforeCall(startTime, coin, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossLiquidationApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossLiquidationApi.java deleted file mode 100644 index 73869971..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossLiquidationApi.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginLiquidationInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossLiquidationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossLiquidationApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossLiquidationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for crossLiquidationList - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossLiquidationListCall(String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/liquidation/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call crossLiquidationListValidateBeforeCall(String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling crossLiquidationList(Async)"); - } - - return crossLiquidationListCall(startTime, endTime, pageSize, pageId, _callback); - - } - - /** - * list - * Get liquidation List - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginLiquidationInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginLiquidationInfoResult crossLiquidationList(String startTime, String endTime, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = crossLiquidationListWithHttpInfo(startTime, endTime, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get liquidation List - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginLiquidationInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse crossLiquidationListWithHttpInfo(String startTime, String endTime, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = crossLiquidationListValidateBeforeCall(startTime, endTime, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get liquidation List - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossLiquidationListAsync(String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = crossLiquidationListValidateBeforeCall(startTime, endTime, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossOrderApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossOrderApi.java deleted file mode 100644 index 95021ba2..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossOrderApi.java +++ /dev/null @@ -1,1198 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginBatchCancelOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginBatchPlaceOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginOpenOrderInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginPlaceOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginTradeDetailInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginBatchCancelOrderRequest; -import com.bitget.openapi.model.MarginBatchOrdersRequest; -import com.bitget.openapi.model.MarginCancelOrderRequest; -import com.bitget.openapi.model.MarginOrderRequest; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossOrderApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossOrderApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossOrderApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginCrossBatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossBatchCancelOrderCall(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginBatchCancelOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/batchCancelOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossBatchCancelOrderValidateBeforeCall(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginBatchCancelOrderRequest' is set - if (marginBatchCancelOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginBatchCancelOrderRequest' when calling marginCrossBatchCancelOrder(Async)"); - } - - return marginCrossBatchCancelOrderCall(marginBatchCancelOrderRequest, _callback); - - } - - /** - * batchCancelOrder - * Margin Cross BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @return ApiResponseResultOfMarginBatchCancelOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchCancelOrderResult marginCrossBatchCancelOrder(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest) throws ApiException { - ApiResponse localVarResp = marginCrossBatchCancelOrderWithHttpInfo(marginBatchCancelOrderRequest); - return localVarResp.getData(); - } - - /** - * batchCancelOrder - * Margin Cross BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchCancelOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossBatchCancelOrderWithHttpInfo(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossBatchCancelOrderValidateBeforeCall(marginBatchCancelOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * batchCancelOrder (asynchronously) - * Margin Cross BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossBatchCancelOrderAsync(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossBatchCancelOrderValidateBeforeCall(marginBatchCancelOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossBatchPlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossBatchPlaceOrderCall(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/batchPlaceOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossBatchPlaceOrderValidateBeforeCall(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginOrderRequest' is set - if (marginOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginOrderRequest' when calling marginCrossBatchPlaceOrder(Async)"); - } - - return marginCrossBatchPlaceOrderCall(marginOrderRequest, _callback); - - } - - /** - * batchPlaceOrder - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponseResultOfMarginBatchPlaceOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchPlaceOrderResult marginCrossBatchPlaceOrder(MarginBatchOrdersRequest marginOrderRequest) throws ApiException { - ApiResponse localVarResp = marginCrossBatchPlaceOrderWithHttpInfo(marginOrderRequest); - return localVarResp.getData(); - } - - /** - * batchPlaceOrder - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchPlaceOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossBatchPlaceOrderWithHttpInfo(MarginBatchOrdersRequest marginOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossBatchPlaceOrderValidateBeforeCall(marginOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * batchPlaceOrder (asynchronously) - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossBatchPlaceOrderAsync(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossBatchPlaceOrderValidateBeforeCall(marginOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossCancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossCancelOrderCall(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginCancelOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/cancelOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossCancelOrderValidateBeforeCall(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginCancelOrderRequest' is set - if (marginCancelOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginCancelOrderRequest' when calling marginCrossCancelOrder(Async)"); - } - - return marginCrossCancelOrderCall(marginCancelOrderRequest, _callback); - - } - - /** - * cancelOrder - * Margin Cross CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @return ApiResponseResultOfMarginBatchCancelOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchCancelOrderResult marginCrossCancelOrder(MarginCancelOrderRequest marginCancelOrderRequest) throws ApiException { - ApiResponse localVarResp = marginCrossCancelOrderWithHttpInfo(marginCancelOrderRequest); - return localVarResp.getData(); - } - - /** - * cancelOrder - * Margin Cross CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchCancelOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossCancelOrderWithHttpInfo(MarginCancelOrderRequest marginCancelOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossCancelOrderValidateBeforeCall(marginCancelOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * cancelOrder (asynchronously) - * Margin Cross CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossCancelOrderAsync(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossCancelOrderValidateBeforeCall(marginCancelOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossFills - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossFillsCall(String symbol, String startTime, String source, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/fills"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (source != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("source", source)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (lastFillId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("lastFillId", lastFillId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossFillsValidateBeforeCall(String symbol, String startTime, String source, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginCrossFills(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginCrossFills(Async)"); - } - - return marginCrossFillsCall(symbol, startTime, source, endTime, orderId, lastFillId, pageSize, _callback); - - } - - /** - * fills - * Margin Cross Fills - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMarginTradeDetailInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginTradeDetailInfoResult marginCrossFills(String symbol, String startTime, String source, String endTime, String orderId, String lastFillId, String pageSize) throws ApiException { - ApiResponse localVarResp = marginCrossFillsWithHttpInfo(symbol, startTime, source, endTime, orderId, lastFillId, pageSize); - return localVarResp.getData(); - } - - /** - * fills - * Margin Cross Fills - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMarginTradeDetailInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossFillsWithHttpInfo(String symbol, String startTime, String source, String endTime, String orderId, String lastFillId, String pageSize) throws ApiException { - okhttp3.Call localVarCall = marginCrossFillsValidateBeforeCall(symbol, startTime, source, endTime, orderId, lastFillId, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * fills (asynchronously) - * Margin Cross Fills - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossFillsAsync(String symbol, String startTime, String source, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossFillsValidateBeforeCall(symbol, startTime, source, endTime, orderId, lastFillId, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossHistoryOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param minId minId (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossHistoryOrdersCall(String symbol, String startTime, String source, String endTime, String orderId, String clientOid, String minId, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/history"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (source != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("source", source)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (clientOid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("clientOid", clientOid)); - } - - if (minId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("minId", minId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossHistoryOrdersValidateBeforeCall(String symbol, String startTime, String source, String endTime, String orderId, String clientOid, String minId, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginCrossHistoryOrders(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginCrossHistoryOrders(Async)"); - } - - return marginCrossHistoryOrdersCall(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize, _callback); - - } - - /** - * history - * Margin Cross historyOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param minId minId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMarginOpenOrderInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginOpenOrderInfoResult marginCrossHistoryOrders(String symbol, String startTime, String source, String endTime, String orderId, String clientOid, String minId, String pageSize) throws ApiException { - ApiResponse localVarResp = marginCrossHistoryOrdersWithHttpInfo(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize); - return localVarResp.getData(); - } - - /** - * history - * Margin Cross historyOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param minId minId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMarginOpenOrderInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossHistoryOrdersWithHttpInfo(String symbol, String startTime, String source, String endTime, String orderId, String clientOid, String minId, String pageSize) throws ApiException { - okhttp3.Call localVarCall = marginCrossHistoryOrdersValidateBeforeCall(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * history (asynchronously) - * Margin Cross historyOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param minId minId (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossHistoryOrdersAsync(String symbol, String startTime, String source, String endTime, String orderId, String clientOid, String minId, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossHistoryOrdersValidateBeforeCall(symbol, startTime, source, endTime, orderId, clientOid, minId, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossOpenOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossOpenOrdersCall(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/openOrders"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (clientOid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("clientOid", clientOid)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossOpenOrdersValidateBeforeCall(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginCrossOpenOrders(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginCrossOpenOrders(Async)"); - } - - return marginCrossOpenOrdersCall(symbol, startTime, endTime, orderId, clientOid, pageSize, _callback); - - } - - /** - * openOrders - * Margin Cross openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMarginOpenOrderInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginOpenOrderInfoResult marginCrossOpenOrders(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize) throws ApiException { - ApiResponse localVarResp = marginCrossOpenOrdersWithHttpInfo(symbol, startTime, endTime, orderId, clientOid, pageSize); - return localVarResp.getData(); - } - - /** - * openOrders - * Margin Cross openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMarginOpenOrderInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossOpenOrdersWithHttpInfo(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize) throws ApiException { - okhttp3.Call localVarCall = marginCrossOpenOrdersValidateBeforeCall(symbol, startTime, endTime, orderId, clientOid, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * openOrders (asynchronously) - * Margin Cross openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossOpenOrdersAsync(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossOpenOrdersValidateBeforeCall(symbol, startTime, endTime, orderId, clientOid, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossPlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPlaceOrderCall(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/order/placeOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossPlaceOrderValidateBeforeCall(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginOrderRequest' is set - if (marginOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginOrderRequest' when calling marginCrossPlaceOrder(Async)"); - } - - return marginCrossPlaceOrderCall(marginOrderRequest, _callback); - - } - - /** - * placeOrder - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponseResultOfMarginPlaceOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginPlaceOrderResult marginCrossPlaceOrder(MarginOrderRequest marginOrderRequest) throws ApiException { - ApiResponse localVarResp = marginCrossPlaceOrderWithHttpInfo(marginOrderRequest); - return localVarResp.getData(); - } - - /** - * placeOrder - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginPlaceOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossPlaceOrderWithHttpInfo(MarginOrderRequest marginOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginCrossPlaceOrderValidateBeforeCall(marginOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * placeOrder (asynchronously) - * Margin Cross PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPlaceOrderAsync(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossPlaceOrderValidateBeforeCall(marginOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossPublicApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossPublicApi.java deleted file mode 100644 index 13b97fc5..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossPublicApi.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossLevelResult; -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginCrossRateAndLimitResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossPublicApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossPublicApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossPublicApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginCrossPublicInterestRateAndLimit - * @param coin coin (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPublicInterestRateAndLimitCall(String coin, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/public/interestRateAndLimit"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossPublicInterestRateAndLimitValidateBeforeCall(String coin, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'coin' is set - if (coin == null) { - throw new ApiException("Missing the required parameter 'coin' when calling marginCrossPublicInterestRateAndLimit(Async)"); - } - - return marginCrossPublicInterestRateAndLimitCall(coin, _callback); - - } - - /** - * interestRateAndLimit - * Get InterestRateAndLimit - * @param coin coin (required) - * @return ApiResponseResultOfListOfMarginCrossRateAndLimitResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult marginCrossPublicInterestRateAndLimit(String coin) throws ApiException { - ApiResponse localVarResp = marginCrossPublicInterestRateAndLimitWithHttpInfo(coin); - return localVarResp.getData(); - } - - /** - * interestRateAndLimit - * Get InterestRateAndLimit - * @param coin coin (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginCrossRateAndLimitResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossPublicInterestRateAndLimitWithHttpInfo(String coin) throws ApiException { - okhttp3.Call localVarCall = marginCrossPublicInterestRateAndLimitValidateBeforeCall(coin, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * interestRateAndLimit (asynchronously) - * Get InterestRateAndLimit - * @param coin coin (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPublicInterestRateAndLimitAsync(String coin, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossPublicInterestRateAndLimitValidateBeforeCall(coin, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginCrossPublicTierData - * @param coin coin (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPublicTierDataCall(String coin, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/public/tierData"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginCrossPublicTierDataValidateBeforeCall(String coin, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'coin' is set - if (coin == null) { - throw new ApiException("Missing the required parameter 'coin' when calling marginCrossPublicTierData(Async)"); - } - - return marginCrossPublicTierDataCall(coin, _callback); - - } - - /** - * tierData - * Get TierData - * @param coin coin (required) - * @return ApiResponseResultOfListOfMarginCrossLevelResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginCrossLevelResult marginCrossPublicTierData(String coin) throws ApiException { - ApiResponse localVarResp = marginCrossPublicTierDataWithHttpInfo(coin); - return localVarResp.getData(); - } - - /** - * tierData - * Get TierData - * @param coin coin (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginCrossLevelResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginCrossPublicTierDataWithHttpInfo(String coin) throws ApiException { - okhttp3.Call localVarCall = marginCrossPublicTierDataValidateBeforeCall(coin, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * tierData (asynchronously) - * Get TierData - * @param coin coin (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginCrossPublicTierDataAsync(String coin, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginCrossPublicTierDataValidateBeforeCall(coin, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossRepayApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossRepayApi.java deleted file mode 100644 index 6582245e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginCrossRepayApi.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginRepayInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginCrossRepayApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginCrossRepayApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginCrossRepayApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for crossRepayList - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossRepayListCall(String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/cross/repay/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (repayId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("repayId", repayId)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call crossRepayListValidateBeforeCall(String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling crossRepayList(Async)"); - } - - return crossRepayListCall(startTime, coin, repayId, endTime, pageSize, pageId, _callback); - - } - - /** - * list - * Get liquidation List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginRepayInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginRepayInfoResult crossRepayList(String startTime, String coin, String repayId, String endTime, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = crossRepayListWithHttpInfo(startTime, coin, repayId, endTime, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get liquidation List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginRepayInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse crossRepayListWithHttpInfo(String startTime, String coin, String repayId, String endTime, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = crossRepayListValidateBeforeCall(startTime, coin, repayId, endTime, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get liquidation List - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call crossRepayListAsync(String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = crossRepayListValidateBeforeCall(startTime, coin, repayId, endTime, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedAccountApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedAccountApi.java deleted file mode 100644 index f3f3cf99..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedAccountApi.java +++ /dev/null @@ -1,915 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult; -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedAssetsResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedBorrowLimitResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedMaxBorrowResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedRepayResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginIsolatedAssetsRiskRequest; -import com.bitget.openapi.model.MarginIsolatedLimitRequest; -import com.bitget.openapi.model.MarginIsolatedMaxBorrowRequest; -import com.bitget.openapi.model.MarginIsolatedRepayRequest; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedAccountApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedAccountApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedAccountApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginIsolatedAccountAssets - * @param symbol symbol (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountAssetsCall(String symbol, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/assets"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountAssetsValidateBeforeCall(String symbol, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginIsolatedAccountAssets(Async)"); - } - - return marginIsolatedAccountAssetsCall(symbol, _callback); - - } - - /** - * assets - * Get Assets - * @param symbol symbol (required) - * @return ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult marginIsolatedAccountAssets(String symbol) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountAssetsWithHttpInfo(symbol); - return localVarResp.getData(); - } - - /** - * assets - * Get Assets - * @param symbol symbol (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountAssetsWithHttpInfo(String symbol) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountAssetsValidateBeforeCall(symbol, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * assets (asynchronously) - * Get Assets - * @param symbol symbol (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountAssetsAsync(String symbol, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountAssetsValidateBeforeCall(symbol, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedAccountBorrow - * @param marginIsolatedLimitRequest marginIsolatedLimitRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountBorrowCall(MarginIsolatedLimitRequest marginIsolatedLimitRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginIsolatedLimitRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/borrow"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountBorrowValidateBeforeCall(MarginIsolatedLimitRequest marginIsolatedLimitRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginIsolatedLimitRequest' is set - if (marginIsolatedLimitRequest == null) { - throw new ApiException("Missing the required parameter 'marginIsolatedLimitRequest' when calling marginIsolatedAccountBorrow(Async)"); - } - - return marginIsolatedAccountBorrowCall(marginIsolatedLimitRequest, _callback); - - } - - /** - * borrow - * borrow - * @param marginIsolatedLimitRequest marginIsolatedLimitRequest (required) - * @return ApiResponseResultOfMarginIsolatedBorrowLimitResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedBorrowLimitResult marginIsolatedAccountBorrow(MarginIsolatedLimitRequest marginIsolatedLimitRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountBorrowWithHttpInfo(marginIsolatedLimitRequest); - return localVarResp.getData(); - } - - /** - * borrow - * borrow - * @param marginIsolatedLimitRequest marginIsolatedLimitRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedBorrowLimitResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountBorrowWithHttpInfo(MarginIsolatedLimitRequest marginIsolatedLimitRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountBorrowValidateBeforeCall(marginIsolatedLimitRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * borrow (asynchronously) - * borrow - * @param marginIsolatedLimitRequest marginIsolatedLimitRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountBorrowAsync(MarginIsolatedLimitRequest marginIsolatedLimitRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountBorrowValidateBeforeCall(marginIsolatedLimitRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedAccountMaxBorrowableAmount - * @param marginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountMaxBorrowableAmountCall(MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginIsolatedMaxBorrowRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/maxBorrowableAmount"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountMaxBorrowableAmountValidateBeforeCall(MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginIsolatedMaxBorrowRequest' is set - if (marginIsolatedMaxBorrowRequest == null) { - throw new ApiException("Missing the required parameter 'marginIsolatedMaxBorrowRequest' when calling marginIsolatedAccountMaxBorrowableAmount(Async)"); - } - - return marginIsolatedAccountMaxBorrowableAmountCall(marginIsolatedMaxBorrowRequest, _callback); - - } - - /** - * maxBorrowableAmount - * Get MaxBorrowableAmount - * @param marginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest (required) - * @return ApiResponseResultOfMarginIsolatedMaxBorrowResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedMaxBorrowResult marginIsolatedAccountMaxBorrowableAmount(MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountMaxBorrowableAmountWithHttpInfo(marginIsolatedMaxBorrowRequest); - return localVarResp.getData(); - } - - /** - * maxBorrowableAmount - * Get MaxBorrowableAmount - * @param marginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedMaxBorrowResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountMaxBorrowableAmountWithHttpInfo(MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountMaxBorrowableAmountValidateBeforeCall(marginIsolatedMaxBorrowRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * maxBorrowableAmount (asynchronously) - * Get MaxBorrowableAmount - * @param marginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountMaxBorrowableAmountAsync(MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountMaxBorrowableAmountValidateBeforeCall(marginIsolatedMaxBorrowRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedAccountMaxTransferOutAmount - * @param coin coin (required) - * @param symbol symbol (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountMaxTransferOutAmountCall(String coin, String symbol, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/maxTransferOutAmount"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountMaxTransferOutAmountValidateBeforeCall(String coin, String symbol, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'coin' is set - if (coin == null) { - throw new ApiException("Missing the required parameter 'coin' when calling marginIsolatedAccountMaxTransferOutAmount(Async)"); - } - - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginIsolatedAccountMaxTransferOutAmount(Async)"); - } - - return marginIsolatedAccountMaxTransferOutAmountCall(coin, symbol, _callback); - - } - - /** - * maxTransferOutAmount - * Get Max TransferOutAmount - * @param coin coin (required) - * @param symbol symbol (required) - * @return ApiResponseResultOfMarginIsolatedAssetsResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedAssetsResult marginIsolatedAccountMaxTransferOutAmount(String coin, String symbol) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountMaxTransferOutAmountWithHttpInfo(coin, symbol); - return localVarResp.getData(); - } - - /** - * maxTransferOutAmount - * Get Max TransferOutAmount - * @param coin coin (required) - * @param symbol symbol (required) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedAssetsResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountMaxTransferOutAmountWithHttpInfo(String coin, String symbol) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountMaxTransferOutAmountValidateBeforeCall(coin, symbol, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * maxTransferOutAmount (asynchronously) - * Get Max TransferOutAmount - * @param coin coin (required) - * @param symbol symbol (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountMaxTransferOutAmountAsync(String coin, String symbol, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountMaxTransferOutAmountValidateBeforeCall(coin, symbol, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedAccountRepay - * @param marginIsolatedRepayRequest marginIsolatedRepayRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountRepayCall(MarginIsolatedRepayRequest marginIsolatedRepayRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginIsolatedRepayRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/repay"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountRepayValidateBeforeCall(MarginIsolatedRepayRequest marginIsolatedRepayRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginIsolatedRepayRequest' is set - if (marginIsolatedRepayRequest == null) { - throw new ApiException("Missing the required parameter 'marginIsolatedRepayRequest' when calling marginIsolatedAccountRepay(Async)"); - } - - return marginIsolatedAccountRepayCall(marginIsolatedRepayRequest, _callback); - - } - - /** - * repay - * repay - * @param marginIsolatedRepayRequest marginIsolatedRepayRequest (required) - * @return ApiResponseResultOfMarginIsolatedRepayResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedRepayResult marginIsolatedAccountRepay(MarginIsolatedRepayRequest marginIsolatedRepayRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountRepayWithHttpInfo(marginIsolatedRepayRequest); - return localVarResp.getData(); - } - - /** - * repay - * repay - * @param marginIsolatedRepayRequest marginIsolatedRepayRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedRepayResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountRepayWithHttpInfo(MarginIsolatedRepayRequest marginIsolatedRepayRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountRepayValidateBeforeCall(marginIsolatedRepayRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * repay (asynchronously) - * repay - * @param marginIsolatedRepayRequest marginIsolatedRepayRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountRepayAsync(MarginIsolatedRepayRequest marginIsolatedRepayRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountRepayValidateBeforeCall(marginIsolatedRepayRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedAccountRiskRate - * @param marginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountRiskRateCall(MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginIsolatedAssetsRiskRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/account/riskRate"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedAccountRiskRateValidateBeforeCall(MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginIsolatedAssetsRiskRequest' is set - if (marginIsolatedAssetsRiskRequest == null) { - throw new ApiException("Missing the required parameter 'marginIsolatedAssetsRiskRequest' when calling marginIsolatedAccountRiskRate(Async)"); - } - - return marginIsolatedAccountRiskRateCall(marginIsolatedAssetsRiskRequest, _callback); - - } - - /** - * riskRate - * riskRate - * @param marginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest (required) - * @return ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult marginIsolatedAccountRiskRate(MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedAccountRiskRateWithHttpInfo(marginIsolatedAssetsRiskRequest); - return localVarResp.getData(); - } - - /** - * riskRate - * riskRate - * @param marginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedAccountRiskRateWithHttpInfo(MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedAccountRiskRateValidateBeforeCall(marginIsolatedAssetsRiskRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * riskRate (asynchronously) - * riskRate - * @param marginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedAccountRiskRateAsync(MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedAccountRiskRateValidateBeforeCall(marginIsolatedAssetsRiskRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedBorrowApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedBorrowApi.java deleted file mode 100644 index 1b8c56de..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedBorrowApi.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLoanInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedBorrowApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedBorrowApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedBorrowApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for isolatedLoanList - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedLoanListCall(String symbol, String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/loan/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (loanId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loanId", loanId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call isolatedLoanListValidateBeforeCall(String symbol, String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling isolatedLoanList(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling isolatedLoanList(Async)"); - } - - return isolatedLoanListCall(symbol, startTime, coin, endTime, loanId, pageSize, pageId, _callback); - - } - - /** - * list - * Get Loan List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginIsolatedLoanInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedLoanInfoResult isolatedLoanList(String symbol, String startTime, String coin, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = isolatedLoanListWithHttpInfo(symbol, startTime, coin, endTime, loanId, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get Loan List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedLoanInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse isolatedLoanListWithHttpInfo(String symbol, String startTime, String coin, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = isolatedLoanListValidateBeforeCall(symbol, startTime, coin, endTime, loanId, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get Loan List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedLoanListAsync(String symbol, String startTime, String coin, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = isolatedLoanListValidateBeforeCall(symbol, startTime, coin, endTime, loanId, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedFinflowApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedFinflowApi.java deleted file mode 100644 index 28ddf4b6..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedFinflowApi.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedFinFlowResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedFinflowApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedFinflowApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedFinflowApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for isolatedFinList - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param marginType marginType (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedFinListCall(String symbol, String startTime, String coin, String marginType, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/fin/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (marginType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("marginType", marginType)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (loanId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loanId", loanId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call isolatedFinListValidateBeforeCall(String symbol, String startTime, String coin, String marginType, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling isolatedFinList(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling isolatedFinList(Async)"); - } - - return isolatedFinListCall(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId, _callback); - - } - - /** - * list - * Get finance flow List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param marginType marginType (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginIsolatedFinFlowResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedFinFlowResult isolatedFinList(String symbol, String startTime, String coin, String marginType, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = isolatedFinListWithHttpInfo(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get finance flow List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param marginType marginType (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedFinFlowResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse isolatedFinListWithHttpInfo(String symbol, String startTime, String coin, String marginType, String endTime, String loanId, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = isolatedFinListValidateBeforeCall(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get finance flow List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param marginType marginType (optional) - * @param endTime endTime (optional) - * @param loanId loanId (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedFinListAsync(String symbol, String startTime, String coin, String marginType, String endTime, String loanId, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = isolatedFinListValidateBeforeCall(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedInterestApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedInterestApi.java deleted file mode 100644 index 1a6f3499..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedInterestApi.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedInterestInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedInterestApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedInterestApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedInterestApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for isolatedInterestList - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedInterestListCall(String symbol, String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/interest/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call isolatedInterestListValidateBeforeCall(String symbol, String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling isolatedInterestList(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling isolatedInterestList(Async)"); - } - - return isolatedInterestListCall(symbol, startTime, coin, pageSize, pageId, _callback); - - } - - /** - * list - * Get interest List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginIsolatedInterestInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedInterestInfoResult isolatedInterestList(String symbol, String startTime, String coin, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = isolatedInterestListWithHttpInfo(symbol, startTime, coin, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get interest List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedInterestInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse isolatedInterestListWithHttpInfo(String symbol, String startTime, String coin, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = isolatedInterestListValidateBeforeCall(symbol, startTime, coin, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get interest List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedInterestListAsync(String symbol, String startTime, String coin, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = isolatedInterestListValidateBeforeCall(symbol, startTime, coin, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedLiquidationApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedLiquidationApi.java deleted file mode 100644 index 55c08485..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedLiquidationApi.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLiquidationInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedLiquidationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedLiquidationApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedLiquidationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for isolatedLiquidationList - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedLiquidationListCall(String symbol, String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/liquidation/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call isolatedLiquidationListValidateBeforeCall(String symbol, String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling isolatedLiquidationList(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling isolatedLiquidationList(Async)"); - } - - return isolatedLiquidationListCall(symbol, startTime, endTime, pageSize, pageId, _callback); - - } - - /** - * list - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginIsolatedLiquidationInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult isolatedLiquidationList(String symbol, String startTime, String endTime, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = isolatedLiquidationListWithHttpInfo(symbol, startTime, endTime, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedLiquidationInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse isolatedLiquidationListWithHttpInfo(String symbol, String startTime, String endTime, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = isolatedLiquidationListValidateBeforeCall(symbol, startTime, endTime, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolatedLiquidationListAsync(String symbol, String startTime, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = isolatedLiquidationListValidateBeforeCall(symbol, startTime, endTime, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedOrderApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedOrderApi.java deleted file mode 100644 index fb50e3d2..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedOrderApi.java +++ /dev/null @@ -1,1180 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginBatchCancelOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginBatchPlaceOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginOpenOrderInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginPlaceOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMarginTradeDetailInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginBatchCancelOrderRequest; -import com.bitget.openapi.model.MarginBatchOrdersRequest; -import com.bitget.openapi.model.MarginCancelOrderRequest; -import com.bitget.openapi.model.MarginOrderRequest; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedOrderApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedOrderApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedOrderApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginIsolatedBatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedBatchCancelOrderCall(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginBatchCancelOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/batchCancelOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedBatchCancelOrderValidateBeforeCall(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginBatchCancelOrderRequest' is set - if (marginBatchCancelOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginBatchCancelOrderRequest' when calling marginIsolatedBatchCancelOrder(Async)"); - } - - return marginIsolatedBatchCancelOrderCall(marginBatchCancelOrderRequest, _callback); - - } - - /** - * batchCancelOrder - * Margin Isolated BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @return ApiResponseResultOfMarginBatchCancelOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchCancelOrderResult marginIsolatedBatchCancelOrder(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedBatchCancelOrderWithHttpInfo(marginBatchCancelOrderRequest); - return localVarResp.getData(); - } - - /** - * batchCancelOrder - * Margin Isolated BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchCancelOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedBatchCancelOrderWithHttpInfo(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedBatchCancelOrderValidateBeforeCall(marginBatchCancelOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * batchCancelOrder (asynchronously) - * Margin Isolated BatchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedBatchCancelOrderAsync(MarginBatchCancelOrderRequest marginBatchCancelOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedBatchCancelOrderValidateBeforeCall(marginBatchCancelOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedBatchPlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedBatchPlaceOrderCall(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/batchPlaceOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedBatchPlaceOrderValidateBeforeCall(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginOrderRequest' is set - if (marginOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginOrderRequest' when calling marginIsolatedBatchPlaceOrder(Async)"); - } - - return marginIsolatedBatchPlaceOrderCall(marginOrderRequest, _callback); - - } - - /** - * batchPlaceOrder - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponseResultOfMarginBatchPlaceOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchPlaceOrderResult marginIsolatedBatchPlaceOrder(MarginBatchOrdersRequest marginOrderRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedBatchPlaceOrderWithHttpInfo(marginOrderRequest); - return localVarResp.getData(); - } - - /** - * batchPlaceOrder - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchPlaceOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedBatchPlaceOrderWithHttpInfo(MarginBatchOrdersRequest marginOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedBatchPlaceOrderValidateBeforeCall(marginOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * batchPlaceOrder (asynchronously) - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedBatchPlaceOrderAsync(MarginBatchOrdersRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedBatchPlaceOrderValidateBeforeCall(marginOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedCancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedCancelOrderCall(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginCancelOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/cancelOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedCancelOrderValidateBeforeCall(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginCancelOrderRequest' is set - if (marginCancelOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginCancelOrderRequest' when calling marginIsolatedCancelOrder(Async)"); - } - - return marginIsolatedCancelOrderCall(marginCancelOrderRequest, _callback); - - } - - /** - * cancelOrder - * Margin Isolated CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @return ApiResponseResultOfMarginBatchCancelOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginBatchCancelOrderResult marginIsolatedCancelOrder(MarginCancelOrderRequest marginCancelOrderRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedCancelOrderWithHttpInfo(marginCancelOrderRequest); - return localVarResp.getData(); - } - - /** - * cancelOrder - * Margin Isolated CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginBatchCancelOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedCancelOrderWithHttpInfo(MarginCancelOrderRequest marginCancelOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedCancelOrderValidateBeforeCall(marginCancelOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * cancelOrder (asynchronously) - * Margin Isolated CancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedCancelOrderAsync(MarginCancelOrderRequest marginCancelOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedCancelOrderValidateBeforeCall(marginCancelOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedFills - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedFillsCall(String startTime, String symbol, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/fills"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (lastFillId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("lastFillId", lastFillId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedFillsValidateBeforeCall(String startTime, String symbol, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginIsolatedFills(Async)"); - } - - return marginIsolatedFillsCall(startTime, symbol, endTime, orderId, lastFillId, pageSize, _callback); - - } - - /** - * fills - * Margin Isolated Fills - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMarginTradeDetailInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginTradeDetailInfoResult marginIsolatedFills(String startTime, String symbol, String endTime, String orderId, String lastFillId, String pageSize) throws ApiException { - ApiResponse localVarResp = marginIsolatedFillsWithHttpInfo(startTime, symbol, endTime, orderId, lastFillId, pageSize); - return localVarResp.getData(); - } - - /** - * fills - * Margin Isolated Fills - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMarginTradeDetailInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedFillsWithHttpInfo(String startTime, String symbol, String endTime, String orderId, String lastFillId, String pageSize) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedFillsValidateBeforeCall(startTime, symbol, endTime, orderId, lastFillId, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * fills (asynchronously) - * Margin Isolated Fills - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param lastFillId lastFillId (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedFillsAsync(String startTime, String symbol, String endTime, String orderId, String lastFillId, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedFillsValidateBeforeCall(startTime, symbol, endTime, orderId, lastFillId, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedHistoryOrders - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param minId minId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedHistoryOrdersCall(String startTime, String symbol, String source, String endTime, String orderId, String clientOid, String pageSize, String minId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/history"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (source != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("source", source)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (clientOid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("clientOid", clientOid)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (minId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("minId", minId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedHistoryOrdersValidateBeforeCall(String startTime, String symbol, String source, String endTime, String orderId, String clientOid, String pageSize, String minId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginIsolatedHistoryOrders(Async)"); - } - - return marginIsolatedHistoryOrdersCall(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId, _callback); - - } - - /** - * history - * Margin Isolated historyOrders - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param minId minId (optional) - * @return ApiResponseResultOfMarginOpenOrderInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginOpenOrderInfoResult marginIsolatedHistoryOrders(String startTime, String symbol, String source, String endTime, String orderId, String clientOid, String pageSize, String minId) throws ApiException { - ApiResponse localVarResp = marginIsolatedHistoryOrdersWithHttpInfo(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId); - return localVarResp.getData(); - } - - /** - * history - * Margin Isolated historyOrders - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param minId minId (optional) - * @return ApiResponse<ApiResponseResultOfMarginOpenOrderInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedHistoryOrdersWithHttpInfo(String startTime, String symbol, String source, String endTime, String orderId, String clientOid, String pageSize, String minId) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedHistoryOrdersValidateBeforeCall(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * history (asynchronously) - * Margin Isolated historyOrders - * @param startTime startTime (required) - * @param symbol symbol (optional) - * @param source source (optional) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param minId minId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedHistoryOrdersAsync(String startTime, String symbol, String source, String endTime, String orderId, String clientOid, String pageSize, String minId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedHistoryOrdersValidateBeforeCall(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedOpenOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedOpenOrdersCall(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/openOrders"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (orderId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderId", orderId)); - } - - if (clientOid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("clientOid", clientOid)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedOpenOrdersValidateBeforeCall(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginIsolatedOpenOrders(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling marginIsolatedOpenOrders(Async)"); - } - - return marginIsolatedOpenOrdersCall(symbol, startTime, endTime, orderId, clientOid, pageSize, _callback); - - } - - /** - * openOrders - * Margin Isolated openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMarginOpenOrderInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginOpenOrderInfoResult marginIsolatedOpenOrders(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize) throws ApiException { - ApiResponse localVarResp = marginIsolatedOpenOrdersWithHttpInfo(symbol, startTime, endTime, orderId, clientOid, pageSize); - return localVarResp.getData(); - } - - /** - * openOrders - * Margin Isolated openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMarginOpenOrderInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedOpenOrdersWithHttpInfo(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedOpenOrdersValidateBeforeCall(symbol, startTime, endTime, orderId, clientOid, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * openOrders (asynchronously) - * Margin Isolated openOrders - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param orderId orderId (optional) - * @param clientOid clientOid (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedOpenOrdersAsync(String symbol, String startTime, String endTime, String orderId, String clientOid, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedOpenOrdersValidateBeforeCall(symbol, startTime, endTime, orderId, clientOid, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedPlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPlaceOrderCall(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = marginOrderRequest; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/order/placeOrder"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedPlaceOrderValidateBeforeCall(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'marginOrderRequest' is set - if (marginOrderRequest == null) { - throw new ApiException("Missing the required parameter 'marginOrderRequest' when calling marginIsolatedPlaceOrder(Async)"); - } - - return marginIsolatedPlaceOrderCall(marginOrderRequest, _callback); - - } - - /** - * placeOrder - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponseResultOfMarginPlaceOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginPlaceOrderResult marginIsolatedPlaceOrder(MarginOrderRequest marginOrderRequest) throws ApiException { - ApiResponse localVarResp = marginIsolatedPlaceOrderWithHttpInfo(marginOrderRequest); - return localVarResp.getData(); - } - - /** - * placeOrder - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @return ApiResponse<ApiResponseResultOfMarginPlaceOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedPlaceOrderWithHttpInfo(MarginOrderRequest marginOrderRequest) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedPlaceOrderValidateBeforeCall(marginOrderRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * placeOrder (asynchronously) - * Margin Isolated PlaceOrder - * @param marginOrderRequest marginOrderRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPlaceOrderAsync(MarginOrderRequest marginOrderRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedPlaceOrderValidateBeforeCall(marginOrderRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedPublicApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedPublicApi.java deleted file mode 100644 index bcfc9cf6..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedPublicApi.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedLevelResult; -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedPublicApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedPublicApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedPublicApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginIsolatedPublicInterestRateAndLimit - * @param symbol symbol (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPublicInterestRateAndLimitCall(String symbol, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/public/interestRateAndLimit"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedPublicInterestRateAndLimitValidateBeforeCall(String symbol, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginIsolatedPublicInterestRateAndLimit(Async)"); - } - - return marginIsolatedPublicInterestRateAndLimitCall(symbol, _callback); - - } - - /** - * interestRateAndLimit - * Get InterestRateAndLimit - * @param symbol symbol (required) - * @return ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult marginIsolatedPublicInterestRateAndLimit(String symbol) throws ApiException { - ApiResponse localVarResp = marginIsolatedPublicInterestRateAndLimitWithHttpInfo(symbol); - return localVarResp.getData(); - } - - /** - * interestRateAndLimit - * Get InterestRateAndLimit - * @param symbol symbol (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedPublicInterestRateAndLimitWithHttpInfo(String symbol) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedPublicInterestRateAndLimitValidateBeforeCall(symbol, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * interestRateAndLimit (asynchronously) - * Get InterestRateAndLimit - * @param symbol symbol (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPublicInterestRateAndLimitAsync(String symbol, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedPublicInterestRateAndLimitValidateBeforeCall(symbol, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for marginIsolatedPublicTierData - * @param symbol symbol (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPublicTierDataCall(String symbol, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/public/tierData"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginIsolatedPublicTierDataValidateBeforeCall(String symbol, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling marginIsolatedPublicTierData(Async)"); - } - - return marginIsolatedPublicTierDataCall(symbol, _callback); - - } - - /** - * tierData - * Get TierData - * @param symbol symbol (required) - * @return ApiResponseResultOfListOfMarginIsolatedLevelResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginIsolatedLevelResult marginIsolatedPublicTierData(String symbol) throws ApiException { - ApiResponse localVarResp = marginIsolatedPublicTierDataWithHttpInfo(symbol); - return localVarResp.getData(); - } - - /** - * tierData - * Get TierData - * @param symbol symbol (required) - * @return ApiResponse<ApiResponseResultOfListOfMarginIsolatedLevelResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginIsolatedPublicTierDataWithHttpInfo(String symbol) throws ApiException { - okhttp3.Call localVarCall = marginIsolatedPublicTierDataValidateBeforeCall(symbol, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * tierData (asynchronously) - * Get TierData - * @param symbol symbol (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginIsolatedPublicTierDataAsync(String symbol, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginIsolatedPublicTierDataValidateBeforeCall(symbol, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedRepayApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedRepayApi.java deleted file mode 100644 index c3a4419b..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginIsolatedRepayApi.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedRepayInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginIsolatedRepayApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginIsolatedRepayApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginIsolatedRepayApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for isolateRepayList - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolateRepayListCall(String symbol, String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/isolated/repay/list"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (symbol != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("symbol", symbol)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (repayId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("repayId", repayId)); - } - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageId", pageId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call isolateRepayListValidateBeforeCall(String symbol, String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'symbol' is set - if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling isolateRepayList(Async)"); - } - - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling isolateRepayList(Async)"); - } - - return isolateRepayListCall(symbol, startTime, coin, repayId, endTime, pageSize, pageId, _callback); - - } - - /** - * list - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponseResultOfMarginIsolatedRepayInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMarginIsolatedRepayInfoResult isolateRepayList(String symbol, String startTime, String coin, String repayId, String endTime, String pageSize, String pageId) throws ApiException { - ApiResponse localVarResp = isolateRepayListWithHttpInfo(symbol, startTime, coin, repayId, endTime, pageSize, pageId); - return localVarResp.getData(); - } - - /** - * list - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @return ApiResponse<ApiResponseResultOfMarginIsolatedRepayInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse isolateRepayListWithHttpInfo(String symbol, String startTime, String coin, String repayId, String endTime, String pageSize, String pageId) throws ApiException { - okhttp3.Call localVarCall = isolateRepayListValidateBeforeCall(symbol, startTime, coin, repayId, endTime, pageSize, pageId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * list (asynchronously) - * Get liquidation List - * @param symbol symbol (required) - * @param startTime startTime (required) - * @param coin coin (optional) - * @param repayId repayId (optional) - * @param endTime endTime (optional) - * @param pageSize pageSize (optional) - * @param pageId pageId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call isolateRepayListAsync(String symbol, String startTime, String coin, String repayId, String endTime, String pageSize, String pageId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = isolateRepayListValidateBeforeCall(symbol, startTime, coin, repayId, endTime, pageSize, pageId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginPublicApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginPublicApi.java deleted file mode 100644 index bc439797..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/MarginPublicApi.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginSystemResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class MarginPublicApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MarginPublicApi() { - this(Configuration.getDefaultApiClient()); - } - - public MarginPublicApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for marginPublicCurrencies - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginPublicCurrenciesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/margin/v1/public/currencies"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call marginPublicCurrenciesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return marginPublicCurrenciesCall(_callback); - - } - - /** - * currencies - * Get Currencies - * @return ApiResponseResultOfListOfMarginSystemResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfListOfMarginSystemResult marginPublicCurrencies() throws ApiException { - ApiResponse localVarResp = marginPublicCurrenciesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * currencies - * Get Currencies - * @return ApiResponse<ApiResponseResultOfListOfMarginSystemResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse marginPublicCurrenciesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = marginPublicCurrenciesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * currencies (asynchronously) - * Get Currencies - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call marginPublicCurrenciesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = marginPublicCurrenciesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/P2pMerchantApi.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/P2pMerchantApi.java deleted file mode 100644 index 0d1c1647..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/api/P2pMerchantApi.java +++ /dev/null @@ -1,798 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiCallback; -import com.bitget.openapi.ApiClient; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.ApiResponse; -import com.bitget.openapi.Configuration; -import com.bitget.openapi.Pair; -import com.bitget.openapi.ProgressRequestBody; -import com.bitget.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.bitget.openapi.model.ApiResponseResultOfMerchantAdvResult; -import com.bitget.openapi.model.ApiResponseResultOfMerchantInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfMerchantOrderResult; -import com.bitget.openapi.model.ApiResponseResultOfMerchantPersonInfo; -import com.bitget.openapi.model.ApiResponseResultOfVoid; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class P2pMerchantApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public P2pMerchantApi() { - this(Configuration.getDefaultApiClient()); - } - - public P2pMerchantApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for merchantAdvList - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param orderBy orderBy (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantAdvListCall(String startTime, String endTime, String status, String type, String advNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, String orderBy, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/p2p/v1/merchant/advList"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (advNo != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("advNo", advNo)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (languageType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("languageType", languageType)); - } - - if (fiat != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fiat", fiat)); - } - - if (lastMinId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("lastMinId", lastMinId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (orderBy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderBy", orderBy)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call merchantAdvListValidateBeforeCall(String startTime, String endTime, String status, String type, String advNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, String orderBy, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling merchantAdvList(Async)"); - } - - return merchantAdvListCall(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy, _callback); - - } - - /** - * advList - * P2P merchant adv info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param orderBy orderBy (optional) - * @return ApiResponseResultOfMerchantAdvResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMerchantAdvResult merchantAdvList(String startTime, String endTime, String status, String type, String advNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, String orderBy) throws ApiException { - ApiResponse localVarResp = merchantAdvListWithHttpInfo(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy); - return localVarResp.getData(); - } - - /** - * advList - * P2P merchant adv info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param orderBy orderBy (optional) - * @return ApiResponse<ApiResponseResultOfMerchantAdvResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse merchantAdvListWithHttpInfo(String startTime, String endTime, String status, String type, String advNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, String orderBy) throws ApiException { - okhttp3.Call localVarCall = merchantAdvListValidateBeforeCall(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * advList (asynchronously) - * P2P merchant adv info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param orderBy orderBy (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantAdvListAsync(String startTime, String endTime, String status, String type, String advNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, String orderBy, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = merchantAdvListValidateBeforeCall(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for merchantInfo - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantInfoCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/p2p/v1/merchant/merchantInfo"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call merchantInfoValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return merchantInfoCall(_callback); - - } - - /** - * merchantInfo - * P2P merchant info self - * @return ApiResponseResultOfMerchantPersonInfo - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMerchantPersonInfo merchantInfo() throws ApiException { - ApiResponse localVarResp = merchantInfoWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * merchantInfo - * P2P merchant info self - * @return ApiResponse<ApiResponseResultOfMerchantPersonInfo> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse merchantInfoWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = merchantInfoValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * merchantInfo (asynchronously) - * P2P merchant info self - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantInfoAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = merchantInfoValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for merchantList - * @param online online (optional) - * @param merchantId merchantId (optional) - * @param lastMinId lastMinId (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantListCall(String online, String merchantId, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/p2p/v1/merchant/merchantList"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (online != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("online", online)); - } - - if (merchantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("merchantId", merchantId)); - } - - if (lastMinId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("lastMinId", lastMinId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call merchantListValidateBeforeCall(String online, String merchantId, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - return merchantListCall(online, merchantId, lastMinId, pageSize, _callback); - - } - - /** - * merchantList - * P2P merchant list - * @param online online (optional) - * @param merchantId merchantId (optional) - * @param lastMinId lastMinId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMerchantInfoResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMerchantInfoResult merchantList(String online, String merchantId, String lastMinId, String pageSize) throws ApiException { - ApiResponse localVarResp = merchantListWithHttpInfo(online, merchantId, lastMinId, pageSize); - return localVarResp.getData(); - } - - /** - * merchantList - * P2P merchant list - * @param online online (optional) - * @param merchantId merchantId (optional) - * @param lastMinId lastMinId (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMerchantInfoResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse merchantListWithHttpInfo(String online, String merchantId, String lastMinId, String pageSize) throws ApiException { - okhttp3.Call localVarCall = merchantListValidateBeforeCall(online, merchantId, lastMinId, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * merchantList (asynchronously) - * P2P merchant list - * @param online online (optional) - * @param merchantId merchantId (optional) - * @param lastMinId lastMinId (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantListAsync(String online, String merchantId, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = merchantListValidateBeforeCall(online, merchantId, lastMinId, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for merchantOrderList - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param orderNo orderNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantOrderListCall(String startTime, String endTime, String status, String type, String advNo, String orderNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/api/p2p/v1/merchant/orderList"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (startTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); - } - - if (endTime != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); - } - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - if (type != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); - } - - if (advNo != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("advNo", advNo)); - } - - if (orderNo != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderNo", orderNo)); - } - - if (coin != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("coin", coin)); - } - - if (languageType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("languageType", languageType)); - } - - if (fiat != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fiat", fiat)); - } - - if (lastMinId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("lastMinId", lastMinId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ACCESS_KEY", "ACCESS_PASSPHRASE", "ACCESS_SIGN", "ACCESS_TIMESTAMP", "SECRET_KEY" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call merchantOrderListValidateBeforeCall(String startTime, String endTime, String status, String type, String advNo, String orderNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'startTime' is set - if (startTime == null) { - throw new ApiException("Missing the required parameter 'startTime' when calling merchantOrderList(Async)"); - } - - return merchantOrderListCall(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize, _callback); - - } - - /** - * orderList - * P2P merchant order info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param orderNo orderNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @return ApiResponseResultOfMerchantOrderResult - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponseResultOfMerchantOrderResult merchantOrderList(String startTime, String endTime, String status, String type, String advNo, String orderNo, String coin, String languageType, String fiat, String lastMinId, String pageSize) throws ApiException { - ApiResponse localVarResp = merchantOrderListWithHttpInfo(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize); - return localVarResp.getData(); - } - - /** - * orderList - * P2P merchant order info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param orderNo orderNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @return ApiResponse<ApiResponseResultOfMerchantOrderResult> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public ApiResponse merchantOrderListWithHttpInfo(String startTime, String endTime, String status, String type, String advNo, String orderNo, String coin, String languageType, String fiat, String lastMinId, String pageSize) throws ApiException { - okhttp3.Call localVarCall = merchantOrderListValidateBeforeCall(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * orderList (asynchronously) - * P2P merchant order info - * @param startTime startTime (required) - * @param endTime endTime (optional) - * @param status status (optional) - * @param type type (optional) - * @param advNo advNo (optional) - * @param orderNo orderNo (optional) - * @param coin coin (optional) - * @param languageType languageType (optional) - * @param fiat fiat (optional) - * @param lastMinId languageType (optional) - * @param pageSize pageSize (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 Gateway Frequency Limit -
500 Server Error -
- */ - public okhttp3.Call merchantOrderListAsync(String startTime, String endTime, String status, String type, String advNo, String orderNo, String coin, String languageType, String fiat, String lastMinId, String pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = merchantOrderListValidateBeforeCall(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/ApiKeyAuth.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/ApiKeyAuth.java deleted file mode 100644 index 70f32bf7..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/ApiKeyAuth.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.auth; - -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiKeyAuth implements Authentication { - private final String location; - private final String paramName; - - private String apiKey; - private String apiKeyPrefix; - - public ApiKeyAuth(String location, String paramName) { - this.location = location; - this.paramName = paramName; - } - - public String getLocation() { - return location; - } - - public String getParamName() { - return paramName; - } - - public String getApiKey() { - return apiKey; - } - - public void setApiKey(String apiKey) { - this.apiKey = apiKey; - } - - public String getApiKeyPrefix() { - return apiKeyPrefix; - } - - public void setApiKeyPrefix(String apiKeyPrefix) { - this.apiKeyPrefix = apiKeyPrefix; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (apiKey == null) { - return; - } - String value; - if (apiKeyPrefix != null) { - value = apiKeyPrefix + " " + apiKey; - } else { - value = apiKey; - } - if ("query".equals(location)) { - queryParams.add(new Pair(paramName, value)); - } else if ("header".equals(location)) { - headerParams.put(paramName, value); - } else if ("cookie".equals(location)) { - cookieParams.put(paramName, value); - } - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/Authentication.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/Authentication.java deleted file mode 100644 index cf8ca367..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/Authentication.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.auth; - -import com.bitget.openapi.Pair; -import com.bitget.openapi.ApiException; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException if failed to update the parameters - */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBasicAuth.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBasicAuth.java deleted file mode 100644 index 0bb2d8ac..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBasicAuth.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.auth; - -import com.bitget.openapi.Pair; -import com.bitget.openapi.ApiException; - -import okhttp3.Credentials; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -import java.io.UnsupportedEncodingException; - -public class HttpBasicAuth implements Authentication { - private String username; - private String password; - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (username == null && password == null) { - return; - } - headerParams.put("Authorization", Credentials.basic( - username == null ? "" : username, - password == null ? "" : password)); - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBearerAuth.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBearerAuth.java deleted file mode 100644 index 8ba83ffc..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/auth/HttpBearerAuth.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.auth; - -import com.bitget.openapi.ApiException; -import com.bitget.openapi.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class HttpBearerAuth implements Authentication { - private final String scheme; - private String bearerToken; - - public HttpBearerAuth(String scheme) { - this.scheme = scheme; - } - - /** - * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @return The bearer token - */ - public String getBearerToken() { - return bearerToken; - } - - /** - * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @param bearerToken The bearer token to send in the Authorization header - */ - public void setBearerToken(String bearerToken) { - this.bearerToken = bearerToken; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (bearerToken == null) { - return; - } - - headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); - } - - private static String upperCaseBearer(String scheme) { - return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; - } -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/AbstractOpenApiSchema.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/AbstractOpenApiSchema.java deleted file mode 100644 index a45806ce..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/AbstractOpenApiSchema.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.ApiException; -import java.util.Objects; -import java.lang.reflect.Type; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -//import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public abstract class AbstractOpenApiSchema { - - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - //@JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - if (Boolean.TRUE.equals(isNullable)) { - return Boolean.TRUE; - } else { - return Boolean.FALSE; - } - } - - - -} diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.java deleted file mode 100644 index 70102d29..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossAssetsPopulationResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult() { - } - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult addDataItem(MarginCrossAssetsPopulationResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginCrossAssetsPopulationResult instance itself - */ - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult apiResponseResultOfListOfMarginCrossAssetsPopulationResult = (ApiResponseResultOfListOfMarginCrossAssetsPopulationResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginCrossAssetsPopulationResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginCrossAssetsPopulationResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginCrossAssetsPopulationResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginCrossAssetsPopulationResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginCrossAssetsPopulationResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginCrossAssetsPopulationResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginCrossAssetsPopulationResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginCrossAssetsPopulationResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginCrossAssetsPopulationResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginCrossAssetsPopulationResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginCrossAssetsPopulationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - */ - public static ApiResponseResultOfListOfMarginCrossAssetsPopulationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginCrossAssetsPopulationResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResult.java deleted file mode 100644 index 204aedaa..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossLevelResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginCrossLevelResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginCrossLevelResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginCrossLevelResult() { - } - - public ApiResponseResultOfListOfMarginCrossLevelResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginCrossLevelResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginCrossLevelResult addDataItem(MarginCrossLevelResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginCrossLevelResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginCrossLevelResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginCrossLevelResult instance itself - */ - public ApiResponseResultOfListOfMarginCrossLevelResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginCrossLevelResult apiResponseResultOfListOfMarginCrossLevelResult = (ApiResponseResultOfListOfMarginCrossLevelResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginCrossLevelResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginCrossLevelResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginCrossLevelResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginCrossLevelResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginCrossLevelResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginCrossLevelResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginCrossLevelResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginCrossLevelResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginCrossLevelResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginCrossLevelResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginCrossLevelResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginCrossLevelResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginCrossLevelResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginCrossLevelResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginCrossLevelResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginCrossLevelResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginCrossLevelResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginCrossLevelResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginCrossLevelResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginCrossLevelResult - */ - public static ApiResponseResultOfListOfMarginCrossLevelResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginCrossLevelResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginCrossLevelResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.java deleted file mode 100644 index 6518c7a8..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossRateAndLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginCrossRateAndLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginCrossRateAndLimitResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult() { - } - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult addDataItem(MarginCrossRateAndLimitResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginCrossRateAndLimitResult instance itself - */ - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginCrossRateAndLimitResult apiResponseResultOfListOfMarginCrossRateAndLimitResult = (ApiResponseResultOfListOfMarginCrossRateAndLimitResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginCrossRateAndLimitResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginCrossRateAndLimitResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginCrossRateAndLimitResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginCrossRateAndLimitResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginCrossRateAndLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginCrossRateAndLimitResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginCrossRateAndLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginCrossRateAndLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginCrossRateAndLimitResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginCrossRateAndLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginCrossRateAndLimitResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginCrossRateAndLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginCrossRateAndLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginCrossRateAndLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginCrossRateAndLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginCrossRateAndLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginCrossRateAndLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginCrossRateAndLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginCrossRateAndLimitResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginCrossRateAndLimitResult - */ - public static ApiResponseResultOfListOfMarginCrossRateAndLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginCrossRateAndLimitResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginCrossRateAndLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.java deleted file mode 100644 index 33bc5c28..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedAssetsPopulationResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult() { - } - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult addDataItem(MarginIsolatedAssetsPopulationResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult instance itself - */ - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult = (ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginIsolatedAssetsPopulationResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - */ - public static ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.java deleted file mode 100644 index ef2a683a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedAssetsRiskResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult() { - } - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult addDataItem(MarginIsolatedAssetsRiskResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult instance itself - */ - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult apiResponseResultOfListOfMarginIsolatedAssetsRiskResult = (ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginIsolatedAssetsRiskResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - */ - public static ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResult.java deleted file mode 100644 index 81679207..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedLevelResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginIsolatedLevelResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginIsolatedLevelResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginIsolatedLevelResult() { - } - - public ApiResponseResultOfListOfMarginIsolatedLevelResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginIsolatedLevelResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginIsolatedLevelResult addDataItem(MarginIsolatedLevelResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginIsolatedLevelResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginIsolatedLevelResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginIsolatedLevelResult instance itself - */ - public ApiResponseResultOfListOfMarginIsolatedLevelResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginIsolatedLevelResult apiResponseResultOfListOfMarginIsolatedLevelResult = (ApiResponseResultOfListOfMarginIsolatedLevelResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginIsolatedLevelResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginIsolatedLevelResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginIsolatedLevelResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginIsolatedLevelResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginIsolatedLevelResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginIsolatedLevelResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginIsolatedLevelResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginIsolatedLevelResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginIsolatedLevelResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginIsolatedLevelResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginIsolatedLevelResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginIsolatedLevelResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginIsolatedLevelResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginIsolatedLevelResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginIsolatedLevelResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginIsolatedLevelResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginIsolatedLevelResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginIsolatedLevelResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginIsolatedLevelResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginIsolatedLevelResult - */ - public static ApiResponseResultOfListOfMarginIsolatedLevelResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginIsolatedLevelResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginIsolatedLevelResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.java deleted file mode 100644 index 274d8676..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedRateAndLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult() { - } - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult addDataItem(MarginIsolatedRateAndLimitResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult instance itself - */ - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult apiResponseResultOfListOfMarginIsolatedRateAndLimitResult = (ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginIsolatedRateAndLimitResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - */ - public static ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResult.java deleted file mode 100644 index 73813bc4..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResult.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginSystemResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfListOfMarginSystemResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfListOfMarginSystemResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfListOfMarginSystemResult() { - } - - public ApiResponseResultOfListOfMarginSystemResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfListOfMarginSystemResult data(List data) { - - this.data = data; - return this; - } - - public ApiResponseResultOfListOfMarginSystemResult addDataItem(MarginSystemResult dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "{}", value = "data") - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseResultOfListOfMarginSystemResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfListOfMarginSystemResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfListOfMarginSystemResult instance itself - */ - public ApiResponseResultOfListOfMarginSystemResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfListOfMarginSystemResult apiResponseResultOfListOfMarginSystemResult = (ApiResponseResultOfListOfMarginSystemResult) o; - return Objects.equals(this.code, apiResponseResultOfListOfMarginSystemResult.code) && - Objects.equals(this.data, apiResponseResultOfListOfMarginSystemResult.data) && - Objects.equals(this.msg, apiResponseResultOfListOfMarginSystemResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfListOfMarginSystemResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfListOfMarginSystemResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfListOfMarginSystemResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfListOfMarginSystemResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfListOfMarginSystemResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfListOfMarginSystemResult is not found in the empty JSON string", ApiResponseResultOfListOfMarginSystemResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - MarginSystemResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfListOfMarginSystemResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfListOfMarginSystemResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfListOfMarginSystemResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfListOfMarginSystemResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfListOfMarginSystemResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfListOfMarginSystemResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfListOfMarginSystemResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfListOfMarginSystemResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfListOfMarginSystemResult - */ - public static ApiResponseResultOfListOfMarginSystemResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfListOfMarginSystemResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfListOfMarginSystemResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResult.java deleted file mode 100644 index b319ed7e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginBatchCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginBatchCancelOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginBatchCancelOrderResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginBatchCancelOrderResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginBatchCancelOrderResult() { - } - - public ApiResponseResultOfMarginBatchCancelOrderResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginBatchCancelOrderResult data(MarginBatchCancelOrderResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginBatchCancelOrderResult getData() { - return data; - } - - - public void setData(MarginBatchCancelOrderResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginBatchCancelOrderResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginBatchCancelOrderResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginBatchCancelOrderResult instance itself - */ - public ApiResponseResultOfMarginBatchCancelOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginBatchCancelOrderResult apiResponseResultOfMarginBatchCancelOrderResult = (ApiResponseResultOfMarginBatchCancelOrderResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginBatchCancelOrderResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginBatchCancelOrderResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginBatchCancelOrderResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginBatchCancelOrderResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginBatchCancelOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginBatchCancelOrderResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginBatchCancelOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginBatchCancelOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginBatchCancelOrderResult is not found in the empty JSON string", ApiResponseResultOfMarginBatchCancelOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginBatchCancelOrderResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginBatchCancelOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginBatchCancelOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginBatchCancelOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginBatchCancelOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginBatchCancelOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginBatchCancelOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginBatchCancelOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginBatchCancelOrderResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginBatchCancelOrderResult - */ - public static ApiResponseResultOfMarginBatchCancelOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginBatchCancelOrderResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginBatchCancelOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResult.java deleted file mode 100644 index 2f1778e0..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginBatchPlaceOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginBatchPlaceOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginBatchPlaceOrderResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginBatchPlaceOrderResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginBatchPlaceOrderResult() { - } - - public ApiResponseResultOfMarginBatchPlaceOrderResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginBatchPlaceOrderResult data(MarginBatchPlaceOrderResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginBatchPlaceOrderResult getData() { - return data; - } - - - public void setData(MarginBatchPlaceOrderResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginBatchPlaceOrderResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginBatchPlaceOrderResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginBatchPlaceOrderResult instance itself - */ - public ApiResponseResultOfMarginBatchPlaceOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginBatchPlaceOrderResult apiResponseResultOfMarginBatchPlaceOrderResult = (ApiResponseResultOfMarginBatchPlaceOrderResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginBatchPlaceOrderResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginBatchPlaceOrderResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginBatchPlaceOrderResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginBatchPlaceOrderResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginBatchPlaceOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginBatchPlaceOrderResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginBatchPlaceOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginBatchPlaceOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginBatchPlaceOrderResult is not found in the empty JSON string", ApiResponseResultOfMarginBatchPlaceOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginBatchPlaceOrderResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginBatchPlaceOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginBatchPlaceOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginBatchPlaceOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginBatchPlaceOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginBatchPlaceOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginBatchPlaceOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginBatchPlaceOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginBatchPlaceOrderResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginBatchPlaceOrderResult - */ - public static ApiResponseResultOfMarginBatchPlaceOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginBatchPlaceOrderResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginBatchPlaceOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResult.java deleted file mode 100644 index 9af465c4..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossAssetsResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossAssetsResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossAssetsResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossAssetsResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossAssetsResult() { - } - - public ApiResponseResultOfMarginCrossAssetsResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossAssetsResult data(MarginCrossAssetsResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossAssetsResult getData() { - return data; - } - - - public void setData(MarginCrossAssetsResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossAssetsResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossAssetsResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossAssetsResult instance itself - */ - public ApiResponseResultOfMarginCrossAssetsResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossAssetsResult apiResponseResultOfMarginCrossAssetsResult = (ApiResponseResultOfMarginCrossAssetsResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossAssetsResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossAssetsResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossAssetsResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossAssetsResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossAssetsResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossAssetsResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossAssetsResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossAssetsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossAssetsResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossAssetsResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossAssetsResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossAssetsResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossAssetsResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossAssetsResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossAssetsResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossAssetsResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossAssetsResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossAssetsResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossAssetsResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossAssetsResult - */ - public static ApiResponseResultOfMarginCrossAssetsResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossAssetsResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossAssetsResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResult.java deleted file mode 100644 index e1e9a3fc..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossAssetsRiskResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossAssetsRiskResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossAssetsRiskResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossAssetsRiskResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossAssetsRiskResult() { - } - - public ApiResponseResultOfMarginCrossAssetsRiskResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossAssetsRiskResult data(MarginCrossAssetsRiskResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossAssetsRiskResult getData() { - return data; - } - - - public void setData(MarginCrossAssetsRiskResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossAssetsRiskResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossAssetsRiskResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossAssetsRiskResult instance itself - */ - public ApiResponseResultOfMarginCrossAssetsRiskResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossAssetsRiskResult apiResponseResultOfMarginCrossAssetsRiskResult = (ApiResponseResultOfMarginCrossAssetsRiskResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossAssetsRiskResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossAssetsRiskResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossAssetsRiskResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossAssetsRiskResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossAssetsRiskResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossAssetsRiskResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossAssetsRiskResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossAssetsRiskResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossAssetsRiskResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossAssetsRiskResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossAssetsRiskResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossAssetsRiskResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossAssetsRiskResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossAssetsRiskResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossAssetsRiskResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossAssetsRiskResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossAssetsRiskResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossAssetsRiskResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossAssetsRiskResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossAssetsRiskResult - */ - public static ApiResponseResultOfMarginCrossAssetsRiskResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossAssetsRiskResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossAssetsRiskResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResult.java deleted file mode 100644 index acb6ca54..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossBorrowLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossBorrowLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossBorrowLimitResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossBorrowLimitResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossBorrowLimitResult() { - } - - public ApiResponseResultOfMarginCrossBorrowLimitResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossBorrowLimitResult data(MarginCrossBorrowLimitResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossBorrowLimitResult getData() { - return data; - } - - - public void setData(MarginCrossBorrowLimitResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossBorrowLimitResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossBorrowLimitResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossBorrowLimitResult instance itself - */ - public ApiResponseResultOfMarginCrossBorrowLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossBorrowLimitResult apiResponseResultOfMarginCrossBorrowLimitResult = (ApiResponseResultOfMarginCrossBorrowLimitResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossBorrowLimitResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossBorrowLimitResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossBorrowLimitResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossBorrowLimitResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossBorrowLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossBorrowLimitResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossBorrowLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossBorrowLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossBorrowLimitResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossBorrowLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossBorrowLimitResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossBorrowLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossBorrowLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossBorrowLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossBorrowLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossBorrowLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossBorrowLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossBorrowLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossBorrowLimitResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossBorrowLimitResult - */ - public static ApiResponseResultOfMarginCrossBorrowLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossBorrowLimitResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossBorrowLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResult.java deleted file mode 100644 index c8eb7d48..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossFinFlowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossFinFlowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossFinFlowResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossFinFlowResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossFinFlowResult() { - } - - public ApiResponseResultOfMarginCrossFinFlowResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossFinFlowResult data(MarginCrossFinFlowResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossFinFlowResult getData() { - return data; - } - - - public void setData(MarginCrossFinFlowResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossFinFlowResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossFinFlowResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossFinFlowResult instance itself - */ - public ApiResponseResultOfMarginCrossFinFlowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossFinFlowResult apiResponseResultOfMarginCrossFinFlowResult = (ApiResponseResultOfMarginCrossFinFlowResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossFinFlowResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossFinFlowResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossFinFlowResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossFinFlowResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossFinFlowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossFinFlowResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossFinFlowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossFinFlowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossFinFlowResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossFinFlowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossFinFlowResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossFinFlowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossFinFlowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossFinFlowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossFinFlowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossFinFlowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossFinFlowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossFinFlowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossFinFlowResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossFinFlowResult - */ - public static ApiResponseResultOfMarginCrossFinFlowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossFinFlowResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossFinFlowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResult.java deleted file mode 100644 index 2d51afc7..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossMaxBorrowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossMaxBorrowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossMaxBorrowResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossMaxBorrowResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossMaxBorrowResult() { - } - - public ApiResponseResultOfMarginCrossMaxBorrowResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossMaxBorrowResult data(MarginCrossMaxBorrowResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossMaxBorrowResult getData() { - return data; - } - - - public void setData(MarginCrossMaxBorrowResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossMaxBorrowResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossMaxBorrowResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossMaxBorrowResult instance itself - */ - public ApiResponseResultOfMarginCrossMaxBorrowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossMaxBorrowResult apiResponseResultOfMarginCrossMaxBorrowResult = (ApiResponseResultOfMarginCrossMaxBorrowResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossMaxBorrowResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossMaxBorrowResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossMaxBorrowResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossMaxBorrowResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossMaxBorrowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossMaxBorrowResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossMaxBorrowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossMaxBorrowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossMaxBorrowResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossMaxBorrowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossMaxBorrowResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossMaxBorrowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossMaxBorrowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossMaxBorrowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossMaxBorrowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossMaxBorrowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossMaxBorrowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossMaxBorrowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossMaxBorrowResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossMaxBorrowResult - */ - public static ApiResponseResultOfMarginCrossMaxBorrowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossMaxBorrowResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossMaxBorrowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResult.java deleted file mode 100644 index d497d979..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossRepayResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginCrossRepayResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginCrossRepayResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginCrossRepayResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginCrossRepayResult() { - } - - public ApiResponseResultOfMarginCrossRepayResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginCrossRepayResult data(MarginCrossRepayResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginCrossRepayResult getData() { - return data; - } - - - public void setData(MarginCrossRepayResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginCrossRepayResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginCrossRepayResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginCrossRepayResult instance itself - */ - public ApiResponseResultOfMarginCrossRepayResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginCrossRepayResult apiResponseResultOfMarginCrossRepayResult = (ApiResponseResultOfMarginCrossRepayResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginCrossRepayResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginCrossRepayResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginCrossRepayResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginCrossRepayResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginCrossRepayResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginCrossRepayResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginCrossRepayResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginCrossRepayResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginCrossRepayResult is not found in the empty JSON string", ApiResponseResultOfMarginCrossRepayResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginCrossRepayResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginCrossRepayResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginCrossRepayResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginCrossRepayResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginCrossRepayResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginCrossRepayResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginCrossRepayResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginCrossRepayResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginCrossRepayResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginCrossRepayResult - */ - public static ApiResponseResultOfMarginCrossRepayResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginCrossRepayResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginCrossRepayResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResult.java deleted file mode 100644 index a7543b9b..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginInterestInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginInterestInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginInterestInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginInterestInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginInterestInfoResult() { - } - - public ApiResponseResultOfMarginInterestInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginInterestInfoResult data(MarginInterestInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginInterestInfoResult getData() { - return data; - } - - - public void setData(MarginInterestInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginInterestInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginInterestInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginInterestInfoResult instance itself - */ - public ApiResponseResultOfMarginInterestInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginInterestInfoResult apiResponseResultOfMarginInterestInfoResult = (ApiResponseResultOfMarginInterestInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginInterestInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginInterestInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginInterestInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginInterestInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginInterestInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginInterestInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginInterestInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginInterestInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginInterestInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginInterestInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginInterestInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginInterestInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginInterestInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginInterestInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginInterestInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginInterestInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginInterestInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginInterestInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginInterestInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginInterestInfoResult - */ - public static ApiResponseResultOfMarginInterestInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginInterestInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginInterestInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResult.java deleted file mode 100644 index bc99748d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedAssetsResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedAssetsResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedAssetsResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedAssetsResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedAssetsResult() { - } - - public ApiResponseResultOfMarginIsolatedAssetsResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedAssetsResult data(MarginIsolatedAssetsResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedAssetsResult getData() { - return data; - } - - - public void setData(MarginIsolatedAssetsResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedAssetsResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedAssetsResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedAssetsResult instance itself - */ - public ApiResponseResultOfMarginIsolatedAssetsResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedAssetsResult apiResponseResultOfMarginIsolatedAssetsResult = (ApiResponseResultOfMarginIsolatedAssetsResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedAssetsResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedAssetsResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedAssetsResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedAssetsResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedAssetsResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedAssetsResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedAssetsResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedAssetsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedAssetsResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedAssetsResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedAssetsResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedAssetsResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedAssetsResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedAssetsResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedAssetsResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedAssetsResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedAssetsResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedAssetsResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedAssetsResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedAssetsResult - */ - public static ApiResponseResultOfMarginIsolatedAssetsResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedAssetsResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedAssetsResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.java deleted file mode 100644 index 2868d635..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedBorrowLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedBorrowLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedBorrowLimitResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedBorrowLimitResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedBorrowLimitResult() { - } - - public ApiResponseResultOfMarginIsolatedBorrowLimitResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedBorrowLimitResult data(MarginIsolatedBorrowLimitResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedBorrowLimitResult getData() { - return data; - } - - - public void setData(MarginIsolatedBorrowLimitResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedBorrowLimitResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedBorrowLimitResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedBorrowLimitResult instance itself - */ - public ApiResponseResultOfMarginIsolatedBorrowLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedBorrowLimitResult apiResponseResultOfMarginIsolatedBorrowLimitResult = (ApiResponseResultOfMarginIsolatedBorrowLimitResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedBorrowLimitResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedBorrowLimitResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedBorrowLimitResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedBorrowLimitResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedBorrowLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedBorrowLimitResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedBorrowLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedBorrowLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedBorrowLimitResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedBorrowLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedBorrowLimitResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedBorrowLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedBorrowLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedBorrowLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedBorrowLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedBorrowLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedBorrowLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedBorrowLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedBorrowLimitResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedBorrowLimitResult - */ - public static ApiResponseResultOfMarginIsolatedBorrowLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedBorrowLimitResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedBorrowLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResult.java deleted file mode 100644 index 9c45eaf1..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedFinFlowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedFinFlowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedFinFlowResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedFinFlowResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedFinFlowResult() { - } - - public ApiResponseResultOfMarginIsolatedFinFlowResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedFinFlowResult data(MarginIsolatedFinFlowResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedFinFlowResult getData() { - return data; - } - - - public void setData(MarginIsolatedFinFlowResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedFinFlowResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedFinFlowResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedFinFlowResult instance itself - */ - public ApiResponseResultOfMarginIsolatedFinFlowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedFinFlowResult apiResponseResultOfMarginIsolatedFinFlowResult = (ApiResponseResultOfMarginIsolatedFinFlowResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedFinFlowResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedFinFlowResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedFinFlowResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedFinFlowResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedFinFlowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedFinFlowResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedFinFlowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedFinFlowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedFinFlowResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedFinFlowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedFinFlowResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedFinFlowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedFinFlowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedFinFlowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedFinFlowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedFinFlowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedFinFlowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedFinFlowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedFinFlowResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedFinFlowResult - */ - public static ApiResponseResultOfMarginIsolatedFinFlowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedFinFlowResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedFinFlowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResult.java deleted file mode 100644 index 4c8caf91..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedInterestInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedInterestInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedInterestInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedInterestInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedInterestInfoResult() { - } - - public ApiResponseResultOfMarginIsolatedInterestInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedInterestInfoResult data(MarginIsolatedInterestInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedInterestInfoResult getData() { - return data; - } - - - public void setData(MarginIsolatedInterestInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedInterestInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedInterestInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedInterestInfoResult instance itself - */ - public ApiResponseResultOfMarginIsolatedInterestInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedInterestInfoResult apiResponseResultOfMarginIsolatedInterestInfoResult = (ApiResponseResultOfMarginIsolatedInterestInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedInterestInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedInterestInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedInterestInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedInterestInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedInterestInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedInterestInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedInterestInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedInterestInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedInterestInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedInterestInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedInterestInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedInterestInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedInterestInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedInterestInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedInterestInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedInterestInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedInterestInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedInterestInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedInterestInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedInterestInfoResult - */ - public static ApiResponseResultOfMarginIsolatedInterestInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedInterestInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedInterestInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.java deleted file mode 100644 index 5a6c65ff..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedLiquidationInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedLiquidationInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedLiquidationInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedLiquidationInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult() { - } - - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult data(MarginIsolatedLiquidationInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedLiquidationInfoResult getData() { - return data; - } - - - public void setData(MarginIsolatedLiquidationInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedLiquidationInfoResult instance itself - */ - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedLiquidationInfoResult apiResponseResultOfMarginIsolatedLiquidationInfoResult = (ApiResponseResultOfMarginIsolatedLiquidationInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedLiquidationInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedLiquidationInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedLiquidationInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedLiquidationInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedLiquidationInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedLiquidationInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedLiquidationInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedLiquidationInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedLiquidationInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedLiquidationInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedLiquidationInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedLiquidationInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedLiquidationInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedLiquidationInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedLiquidationInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedLiquidationInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedLiquidationInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedLiquidationInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedLiquidationInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedLiquidationInfoResult - */ - public static ApiResponseResultOfMarginIsolatedLiquidationInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedLiquidationInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedLiquidationInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResult.java deleted file mode 100644 index 328c0589..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedLoanInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedLoanInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedLoanInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedLoanInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedLoanInfoResult() { - } - - public ApiResponseResultOfMarginIsolatedLoanInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedLoanInfoResult data(MarginIsolatedLoanInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedLoanInfoResult getData() { - return data; - } - - - public void setData(MarginIsolatedLoanInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedLoanInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedLoanInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedLoanInfoResult instance itself - */ - public ApiResponseResultOfMarginIsolatedLoanInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedLoanInfoResult apiResponseResultOfMarginIsolatedLoanInfoResult = (ApiResponseResultOfMarginIsolatedLoanInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedLoanInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedLoanInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedLoanInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedLoanInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedLoanInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedLoanInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedLoanInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedLoanInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedLoanInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedLoanInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedLoanInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedLoanInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedLoanInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedLoanInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedLoanInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedLoanInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedLoanInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedLoanInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedLoanInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedLoanInfoResult - */ - public static ApiResponseResultOfMarginIsolatedLoanInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedLoanInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedLoanInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.java deleted file mode 100644 index 72cb6fd2..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedMaxBorrowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedMaxBorrowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedMaxBorrowResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedMaxBorrowResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedMaxBorrowResult() { - } - - public ApiResponseResultOfMarginIsolatedMaxBorrowResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedMaxBorrowResult data(MarginIsolatedMaxBorrowResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedMaxBorrowResult getData() { - return data; - } - - - public void setData(MarginIsolatedMaxBorrowResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedMaxBorrowResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedMaxBorrowResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedMaxBorrowResult instance itself - */ - public ApiResponseResultOfMarginIsolatedMaxBorrowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedMaxBorrowResult apiResponseResultOfMarginIsolatedMaxBorrowResult = (ApiResponseResultOfMarginIsolatedMaxBorrowResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedMaxBorrowResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedMaxBorrowResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedMaxBorrowResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedMaxBorrowResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedMaxBorrowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedMaxBorrowResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedMaxBorrowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedMaxBorrowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedMaxBorrowResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedMaxBorrowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedMaxBorrowResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedMaxBorrowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedMaxBorrowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedMaxBorrowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedMaxBorrowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedMaxBorrowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedMaxBorrowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedMaxBorrowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedMaxBorrowResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedMaxBorrowResult - */ - public static ApiResponseResultOfMarginIsolatedMaxBorrowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedMaxBorrowResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedMaxBorrowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResult.java deleted file mode 100644 index dd97602a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedRepayInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedRepayInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedRepayInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedRepayInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedRepayInfoResult() { - } - - public ApiResponseResultOfMarginIsolatedRepayInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedRepayInfoResult data(MarginIsolatedRepayInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedRepayInfoResult getData() { - return data; - } - - - public void setData(MarginIsolatedRepayInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedRepayInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedRepayInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedRepayInfoResult instance itself - */ - public ApiResponseResultOfMarginIsolatedRepayInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedRepayInfoResult apiResponseResultOfMarginIsolatedRepayInfoResult = (ApiResponseResultOfMarginIsolatedRepayInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedRepayInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedRepayInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedRepayInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedRepayInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedRepayInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedRepayInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedRepayInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedRepayInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedRepayInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedRepayInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedRepayInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedRepayInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedRepayInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedRepayInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedRepayInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedRepayInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedRepayInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedRepayInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedRepayInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedRepayInfoResult - */ - public static ApiResponseResultOfMarginIsolatedRepayInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedRepayInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedRepayInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResult.java deleted file mode 100644 index e4e7f209..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedRepayResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginIsolatedRepayResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginIsolatedRepayResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginIsolatedRepayResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginIsolatedRepayResult() { - } - - public ApiResponseResultOfMarginIsolatedRepayResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginIsolatedRepayResult data(MarginIsolatedRepayResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginIsolatedRepayResult getData() { - return data; - } - - - public void setData(MarginIsolatedRepayResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginIsolatedRepayResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginIsolatedRepayResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginIsolatedRepayResult instance itself - */ - public ApiResponseResultOfMarginIsolatedRepayResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginIsolatedRepayResult apiResponseResultOfMarginIsolatedRepayResult = (ApiResponseResultOfMarginIsolatedRepayResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginIsolatedRepayResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginIsolatedRepayResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginIsolatedRepayResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginIsolatedRepayResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginIsolatedRepayResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginIsolatedRepayResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginIsolatedRepayResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginIsolatedRepayResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginIsolatedRepayResult is not found in the empty JSON string", ApiResponseResultOfMarginIsolatedRepayResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginIsolatedRepayResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginIsolatedRepayResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginIsolatedRepayResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginIsolatedRepayResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginIsolatedRepayResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginIsolatedRepayResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginIsolatedRepayResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginIsolatedRepayResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginIsolatedRepayResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginIsolatedRepayResult - */ - public static ApiResponseResultOfMarginIsolatedRepayResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginIsolatedRepayResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginIsolatedRepayResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResult.java deleted file mode 100644 index b80e8e41..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginLiquidationInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginLiquidationInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginLiquidationInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginLiquidationInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginLiquidationInfoResult() { - } - - public ApiResponseResultOfMarginLiquidationInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginLiquidationInfoResult data(MarginLiquidationInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginLiquidationInfoResult getData() { - return data; - } - - - public void setData(MarginLiquidationInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginLiquidationInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginLiquidationInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginLiquidationInfoResult instance itself - */ - public ApiResponseResultOfMarginLiquidationInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginLiquidationInfoResult apiResponseResultOfMarginLiquidationInfoResult = (ApiResponseResultOfMarginLiquidationInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginLiquidationInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginLiquidationInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginLiquidationInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginLiquidationInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginLiquidationInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginLiquidationInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginLiquidationInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginLiquidationInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginLiquidationInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginLiquidationInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginLiquidationInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginLiquidationInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginLiquidationInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginLiquidationInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginLiquidationInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginLiquidationInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginLiquidationInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginLiquidationInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginLiquidationInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginLiquidationInfoResult - */ - public static ApiResponseResultOfMarginLiquidationInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginLiquidationInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginLiquidationInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResult.java deleted file mode 100644 index 9bfc3207..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginLoanInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginLoanInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginLoanInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginLoanInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginLoanInfoResult() { - } - - public ApiResponseResultOfMarginLoanInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginLoanInfoResult data(MarginLoanInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginLoanInfoResult getData() { - return data; - } - - - public void setData(MarginLoanInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginLoanInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginLoanInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginLoanInfoResult instance itself - */ - public ApiResponseResultOfMarginLoanInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginLoanInfoResult apiResponseResultOfMarginLoanInfoResult = (ApiResponseResultOfMarginLoanInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginLoanInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginLoanInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginLoanInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginLoanInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginLoanInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginLoanInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginLoanInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginLoanInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginLoanInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginLoanInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginLoanInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginLoanInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginLoanInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginLoanInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginLoanInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginLoanInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginLoanInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginLoanInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginLoanInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginLoanInfoResult - */ - public static ApiResponseResultOfMarginLoanInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginLoanInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginLoanInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResult.java deleted file mode 100644 index 2f2f763d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginOpenOrderInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginOpenOrderInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginOpenOrderInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginOpenOrderInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginOpenOrderInfoResult() { - } - - public ApiResponseResultOfMarginOpenOrderInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginOpenOrderInfoResult data(MarginOpenOrderInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginOpenOrderInfoResult getData() { - return data; - } - - - public void setData(MarginOpenOrderInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginOpenOrderInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginOpenOrderInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginOpenOrderInfoResult instance itself - */ - public ApiResponseResultOfMarginOpenOrderInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginOpenOrderInfoResult apiResponseResultOfMarginOpenOrderInfoResult = (ApiResponseResultOfMarginOpenOrderInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginOpenOrderInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginOpenOrderInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginOpenOrderInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginOpenOrderInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginOpenOrderInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginOpenOrderInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginOpenOrderInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginOpenOrderInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginOpenOrderInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginOpenOrderInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginOpenOrderInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginOpenOrderInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginOpenOrderInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginOpenOrderInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginOpenOrderInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginOpenOrderInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginOpenOrderInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginOpenOrderInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginOpenOrderInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginOpenOrderInfoResult - */ - public static ApiResponseResultOfMarginOpenOrderInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginOpenOrderInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginOpenOrderInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResult.java deleted file mode 100644 index b312c05b..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginPlaceOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginPlaceOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginPlaceOrderResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginPlaceOrderResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginPlaceOrderResult() { - } - - public ApiResponseResultOfMarginPlaceOrderResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginPlaceOrderResult data(MarginPlaceOrderResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginPlaceOrderResult getData() { - return data; - } - - - public void setData(MarginPlaceOrderResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginPlaceOrderResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginPlaceOrderResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginPlaceOrderResult instance itself - */ - public ApiResponseResultOfMarginPlaceOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginPlaceOrderResult apiResponseResultOfMarginPlaceOrderResult = (ApiResponseResultOfMarginPlaceOrderResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginPlaceOrderResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginPlaceOrderResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginPlaceOrderResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginPlaceOrderResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginPlaceOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginPlaceOrderResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginPlaceOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginPlaceOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginPlaceOrderResult is not found in the empty JSON string", ApiResponseResultOfMarginPlaceOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginPlaceOrderResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginPlaceOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginPlaceOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginPlaceOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginPlaceOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginPlaceOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginPlaceOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginPlaceOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginPlaceOrderResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginPlaceOrderResult - */ - public static ApiResponseResultOfMarginPlaceOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginPlaceOrderResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginPlaceOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResult.java deleted file mode 100644 index dac87389..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginRepayInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginRepayInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginRepayInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginRepayInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginRepayInfoResult() { - } - - public ApiResponseResultOfMarginRepayInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginRepayInfoResult data(MarginRepayInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginRepayInfoResult getData() { - return data; - } - - - public void setData(MarginRepayInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginRepayInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginRepayInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginRepayInfoResult instance itself - */ - public ApiResponseResultOfMarginRepayInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginRepayInfoResult apiResponseResultOfMarginRepayInfoResult = (ApiResponseResultOfMarginRepayInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginRepayInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginRepayInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginRepayInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginRepayInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginRepayInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginRepayInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginRepayInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginRepayInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginRepayInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginRepayInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginRepayInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginRepayInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginRepayInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginRepayInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginRepayInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginRepayInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginRepayInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginRepayInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginRepayInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginRepayInfoResult - */ - public static ApiResponseResultOfMarginRepayInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginRepayInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginRepayInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResult.java deleted file mode 100644 index d3daf70a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginTradeDetailInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMarginTradeDetailInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMarginTradeDetailInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MarginTradeDetailInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMarginTradeDetailInfoResult() { - } - - public ApiResponseResultOfMarginTradeDetailInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMarginTradeDetailInfoResult data(MarginTradeDetailInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MarginTradeDetailInfoResult getData() { - return data; - } - - - public void setData(MarginTradeDetailInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMarginTradeDetailInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMarginTradeDetailInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMarginTradeDetailInfoResult instance itself - */ - public ApiResponseResultOfMarginTradeDetailInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMarginTradeDetailInfoResult apiResponseResultOfMarginTradeDetailInfoResult = (ApiResponseResultOfMarginTradeDetailInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMarginTradeDetailInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMarginTradeDetailInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMarginTradeDetailInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMarginTradeDetailInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMarginTradeDetailInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMarginTradeDetailInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMarginTradeDetailInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMarginTradeDetailInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMarginTradeDetailInfoResult is not found in the empty JSON string", ApiResponseResultOfMarginTradeDetailInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MarginTradeDetailInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMarginTradeDetailInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMarginTradeDetailInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMarginTradeDetailInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMarginTradeDetailInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMarginTradeDetailInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMarginTradeDetailInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMarginTradeDetailInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMarginTradeDetailInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMarginTradeDetailInfoResult - */ - public static ApiResponseResultOfMarginTradeDetailInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMarginTradeDetailInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMarginTradeDetailInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResult.java deleted file mode 100644 index 7490e9bb..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantAdvResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMerchantAdvResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMerchantAdvResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MerchantAdvResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMerchantAdvResult() { - } - - public ApiResponseResultOfMerchantAdvResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMerchantAdvResult data(MerchantAdvResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantAdvResult getData() { - return data; - } - - - public void setData(MerchantAdvResult data) { - this.data = data; - } - - - public ApiResponseResultOfMerchantAdvResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMerchantAdvResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMerchantAdvResult instance itself - */ - public ApiResponseResultOfMerchantAdvResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMerchantAdvResult apiResponseResultOfMerchantAdvResult = (ApiResponseResultOfMerchantAdvResult) o; - return Objects.equals(this.code, apiResponseResultOfMerchantAdvResult.code) && - Objects.equals(this.data, apiResponseResultOfMerchantAdvResult.data) && - Objects.equals(this.msg, apiResponseResultOfMerchantAdvResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMerchantAdvResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMerchantAdvResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMerchantAdvResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMerchantAdvResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMerchantAdvResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMerchantAdvResult is not found in the empty JSON string", ApiResponseResultOfMerchantAdvResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MerchantAdvResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMerchantAdvResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMerchantAdvResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMerchantAdvResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMerchantAdvResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMerchantAdvResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMerchantAdvResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMerchantAdvResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMerchantAdvResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMerchantAdvResult - */ - public static ApiResponseResultOfMerchantAdvResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMerchantAdvResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMerchantAdvResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResult.java deleted file mode 100644 index d54ffb0d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMerchantInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMerchantInfoResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MerchantInfoResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMerchantInfoResult() { - } - - public ApiResponseResultOfMerchantInfoResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMerchantInfoResult data(MerchantInfoResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantInfoResult getData() { - return data; - } - - - public void setData(MerchantInfoResult data) { - this.data = data; - } - - - public ApiResponseResultOfMerchantInfoResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMerchantInfoResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMerchantInfoResult instance itself - */ - public ApiResponseResultOfMerchantInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMerchantInfoResult apiResponseResultOfMerchantInfoResult = (ApiResponseResultOfMerchantInfoResult) o; - return Objects.equals(this.code, apiResponseResultOfMerchantInfoResult.code) && - Objects.equals(this.data, apiResponseResultOfMerchantInfoResult.data) && - Objects.equals(this.msg, apiResponseResultOfMerchantInfoResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMerchantInfoResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMerchantInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMerchantInfoResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMerchantInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMerchantInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMerchantInfoResult is not found in the empty JSON string", ApiResponseResultOfMerchantInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MerchantInfoResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMerchantInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMerchantInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMerchantInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMerchantInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMerchantInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMerchantInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMerchantInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMerchantInfoResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMerchantInfoResult - */ - public static ApiResponseResultOfMerchantInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMerchantInfoResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMerchantInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResult.java deleted file mode 100644 index 62f5dfd5..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResult.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMerchantOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMerchantOrderResult { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MerchantOrderResult data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMerchantOrderResult() { - } - - public ApiResponseResultOfMerchantOrderResult code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMerchantOrderResult data(MerchantOrderResult data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantOrderResult getData() { - return data; - } - - - public void setData(MerchantOrderResult data) { - this.data = data; - } - - - public ApiResponseResultOfMerchantOrderResult msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMerchantOrderResult requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMerchantOrderResult instance itself - */ - public ApiResponseResultOfMerchantOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMerchantOrderResult apiResponseResultOfMerchantOrderResult = (ApiResponseResultOfMerchantOrderResult) o; - return Objects.equals(this.code, apiResponseResultOfMerchantOrderResult.code) && - Objects.equals(this.data, apiResponseResultOfMerchantOrderResult.data) && - Objects.equals(this.msg, apiResponseResultOfMerchantOrderResult.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMerchantOrderResult.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMerchantOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMerchantOrderResult {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMerchantOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMerchantOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMerchantOrderResult is not found in the empty JSON string", ApiResponseResultOfMerchantOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MerchantOrderResult.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMerchantOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMerchantOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMerchantOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMerchantOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMerchantOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMerchantOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMerchantOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMerchantOrderResult - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMerchantOrderResult - */ - public static ApiResponseResultOfMerchantOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMerchantOrderResult.class); - } - - /** - * Convert an instance of ApiResponseResultOfMerchantOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfo.java deleted file mode 100644 index e0d6582a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfo.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantPersonInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfMerchantPersonInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfMerchantPersonInfo { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private MerchantPersonInfo data; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfMerchantPersonInfo() { - } - - public ApiResponseResultOfMerchantPersonInfo code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfMerchantPersonInfo data(MerchantPersonInfo data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantPersonInfo getData() { - return data; - } - - - public void setData(MerchantPersonInfo data) { - this.data = data; - } - - - public ApiResponseResultOfMerchantPersonInfo msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfMerchantPersonInfo requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfMerchantPersonInfo instance itself - */ - public ApiResponseResultOfMerchantPersonInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfMerchantPersonInfo apiResponseResultOfMerchantPersonInfo = (ApiResponseResultOfMerchantPersonInfo) o; - return Objects.equals(this.code, apiResponseResultOfMerchantPersonInfo.code) && - Objects.equals(this.data, apiResponseResultOfMerchantPersonInfo.data) && - Objects.equals(this.msg, apiResponseResultOfMerchantPersonInfo.msg) && - Objects.equals(this.requestTime, apiResponseResultOfMerchantPersonInfo.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfMerchantPersonInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfMerchantPersonInfo {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfMerchantPersonInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfMerchantPersonInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfMerchantPersonInfo is not found in the empty JSON string", ApiResponseResultOfMerchantPersonInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - MerchantPersonInfo.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfMerchantPersonInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfMerchantPersonInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfMerchantPersonInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfMerchantPersonInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfMerchantPersonInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfMerchantPersonInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfMerchantPersonInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfMerchantPersonInfo - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfMerchantPersonInfo - */ - public static ApiResponseResultOfMerchantPersonInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfMerchantPersonInfo.class); - } - - /** - * Convert an instance of ApiResponseResultOfMerchantPersonInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfVoid.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfVoid.java deleted file mode 100644 index 8a8b956b..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/ApiResponseResultOfVoid.java +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * ApiResponseResultOfVoid - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseResultOfVoid { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - - public static final String SERIALIZED_NAME_MSG = "msg"; - @SerializedName(SERIALIZED_NAME_MSG) - private String msg; - - public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; - @SerializedName(SERIALIZED_NAME_REQUEST_TIME) - private Long requestTime; - - public ApiResponseResultOfVoid() { - } - - public ApiResponseResultOfVoid code(String code) { - - this.code = code; - return this; - } - - /** - * code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "00000", value = "code") - - public String getCode() { - return code; - } - - - public void setCode(String code) { - this.code = code; - } - - - public ApiResponseResultOfVoid msg(String msg) { - - this.msg = msg; - return this; - } - - /** - * msg - * @return msg - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "success", value = "msg") - - public String getMsg() { - return msg; - } - - - public void setMsg(String msg) { - this.msg = msg; - } - - - public ApiResponseResultOfVoid requestTime(Long requestTime) { - - this.requestTime = requestTime; - return this; - } - - /** - * requestTime - * @return requestTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1675044340493", value = "requestTime") - - public Long getRequestTime() { - return requestTime; - } - - - public void setRequestTime(Long requestTime) { - this.requestTime = requestTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ApiResponseResultOfVoid instance itself - */ - public ApiResponseResultOfVoid putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseResultOfVoid apiResponseResultOfVoid = (ApiResponseResultOfVoid) o; - return Objects.equals(this.code, apiResponseResultOfVoid.code) && - Objects.equals(this.msg, apiResponseResultOfVoid.msg) && - Objects.equals(this.requestTime, apiResponseResultOfVoid.requestTime)&& - Objects.equals(this.additionalProperties, apiResponseResultOfVoid.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, msg, requestTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseResultOfVoid {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - sb.append(" requestTime: ").append(toIndentedString(requestTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("msg"); - openapiFields.add("requestTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ApiResponseResultOfVoid - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ApiResponseResultOfVoid.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseResultOfVoid is not found in the empty JSON string", ApiResponseResultOfVoid.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); - } - if ((jsonObj.get("msg") != null && !jsonObj.get("msg").isJsonNull()) && !jsonObj.get("msg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseResultOfVoid.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseResultOfVoid' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseResultOfVoid.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseResultOfVoid value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseResultOfVoid read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ApiResponseResultOfVoid instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseResultOfVoid given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseResultOfVoid - * @throws IOException if the JSON string is invalid with respect to ApiResponseResultOfVoid - */ - public static ApiResponseResultOfVoid fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseResultOfVoid.class); - } - - /** - * Convert an instance of ApiResponseResultOfVoid to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentDetailInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentDetailInfo.java deleted file mode 100644 index 650fcaa5..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentDetailInfo.java +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * FiatPaymentDetailInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FiatPaymentDetailInfo { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_REQUIRED = "required"; - @SerializedName(SERIALIZED_NAME_REQUIRED) - private Boolean required; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public FiatPaymentDetailInfo() { - } - - public FiatPaymentDetailInfo name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public FiatPaymentDetailInfo required(Boolean required) { - - this.required = required; - return this; - } - - /** - * Get required - * @return required - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getRequired() { - return required; - } - - - public void setRequired(Boolean required) { - this.required = required; - } - - - public FiatPaymentDetailInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FiatPaymentDetailInfo instance itself - */ - public FiatPaymentDetailInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FiatPaymentDetailInfo fiatPaymentDetailInfo = (FiatPaymentDetailInfo) o; - return Objects.equals(this.name, fiatPaymentDetailInfo.name) && - Objects.equals(this.required, fiatPaymentDetailInfo.required) && - Objects.equals(this.type, fiatPaymentDetailInfo.type)&& - Objects.equals(this.additionalProperties, fiatPaymentDetailInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, required, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FiatPaymentDetailInfo {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" required: ").append(toIndentedString(required)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("required"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FiatPaymentDetailInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!FiatPaymentDetailInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FiatPaymentDetailInfo is not found in the empty JSON string", FiatPaymentDetailInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FiatPaymentDetailInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FiatPaymentDetailInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FiatPaymentDetailInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FiatPaymentDetailInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FiatPaymentDetailInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FiatPaymentDetailInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FiatPaymentDetailInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of FiatPaymentDetailInfo - * @throws IOException if the JSON string is invalid with respect to FiatPaymentDetailInfo - */ - public static FiatPaymentDetailInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FiatPaymentDetailInfo.class); - } - - /** - * Convert an instance of FiatPaymentDetailInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentInfo.java deleted file mode 100644 index bc62676e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/FiatPaymentInfo.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.FiatPaymentDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * FiatPaymentInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FiatPaymentInfo { - public static final String SERIALIZED_NAME_PAYMENT_ID = "paymentId"; - @SerializedName(SERIALIZED_NAME_PAYMENT_ID) - private String paymentId; - - public static final String SERIALIZED_NAME_PAYMENT_INFO = "paymentInfo"; - @SerializedName(SERIALIZED_NAME_PAYMENT_INFO) - private List paymentInfo = null; - - public static final String SERIALIZED_NAME_PAYMENT_METHOD = "paymentMethod"; - @SerializedName(SERIALIZED_NAME_PAYMENT_METHOD) - private String paymentMethod; - - public FiatPaymentInfo() { - } - - public FiatPaymentInfo paymentId(String paymentId) { - - this.paymentId = paymentId; - return this; - } - - /** - * Get paymentId - * @return paymentId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPaymentId() { - return paymentId; - } - - - public void setPaymentId(String paymentId) { - this.paymentId = paymentId; - } - - - public FiatPaymentInfo paymentInfo(List paymentInfo) { - - this.paymentInfo = paymentInfo; - return this; - } - - public FiatPaymentInfo addPaymentInfoItem(FiatPaymentDetailInfo paymentInfoItem) { - if (this.paymentInfo == null) { - this.paymentInfo = new ArrayList<>(); - } - this.paymentInfo.add(paymentInfoItem); - return this; - } - - /** - * Get paymentInfo - * @return paymentInfo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getPaymentInfo() { - return paymentInfo; - } - - - public void setPaymentInfo(List paymentInfo) { - this.paymentInfo = paymentInfo; - } - - - public FiatPaymentInfo paymentMethod(String paymentMethod) { - - this.paymentMethod = paymentMethod; - return this; - } - - /** - * Get paymentMethod - * @return paymentMethod - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPaymentMethod() { - return paymentMethod; - } - - - public void setPaymentMethod(String paymentMethod) { - this.paymentMethod = paymentMethod; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the FiatPaymentInfo instance itself - */ - public FiatPaymentInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FiatPaymentInfo fiatPaymentInfo = (FiatPaymentInfo) o; - return Objects.equals(this.paymentId, fiatPaymentInfo.paymentId) && - Objects.equals(this.paymentInfo, fiatPaymentInfo.paymentInfo) && - Objects.equals(this.paymentMethod, fiatPaymentInfo.paymentMethod)&& - Objects.equals(this.additionalProperties, fiatPaymentInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(paymentId, paymentInfo, paymentMethod, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FiatPaymentInfo {\n"); - sb.append(" paymentId: ").append(toIndentedString(paymentId)).append("\n"); - sb.append(" paymentInfo: ").append(toIndentedString(paymentInfo)).append("\n"); - sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("paymentId"); - openapiFields.add("paymentInfo"); - openapiFields.add("paymentMethod"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to FiatPaymentInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!FiatPaymentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FiatPaymentInfo is not found in the empty JSON string", FiatPaymentInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("paymentId") != null && !jsonObj.get("paymentId").isJsonNull()) && !jsonObj.get("paymentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `paymentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("paymentId").toString())); - } - if (jsonObj.get("paymentInfo") != null && !jsonObj.get("paymentInfo").isJsonNull()) { - JsonArray jsonArraypaymentInfo = jsonObj.getAsJsonArray("paymentInfo"); - if (jsonArraypaymentInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("paymentInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `paymentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("paymentInfo").toString())); - } - - // validate the optional field `paymentInfo` (array) - for (int i = 0; i < jsonArraypaymentInfo.size(); i++) { - FiatPaymentDetailInfo.validateJsonObject(jsonArraypaymentInfo.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("paymentMethod") != null && !jsonObj.get("paymentMethod").isJsonNull()) && !jsonObj.get("paymentMethod").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `paymentMethod` to be a primitive type in the JSON string but got `%s`", jsonObj.get("paymentMethod").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FiatPaymentInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FiatPaymentInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FiatPaymentInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FiatPaymentInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public FiatPaymentInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - FiatPaymentInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FiatPaymentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of FiatPaymentInfo - * @throws IOException if the JSON string is invalid with respect to FiatPaymentInfo - */ - public static FiatPaymentInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FiatPaymentInfo.class); - } - - /** - * Convert an instance of FiatPaymentInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderRequest.java deleted file mode 100644 index 28e8b4db..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderRequest.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginBatchCancelOrderRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginBatchCancelOrderRequest { - public static final String SERIALIZED_NAME_CLIENT_OIDS = "clientOids"; - @SerializedName(SERIALIZED_NAME_CLIENT_OIDS) - private List clientOids = null; - - public static final String SERIALIZED_NAME_ORDER_IDS = "orderIds"; - @SerializedName(SERIALIZED_NAME_ORDER_IDS) - private List orderIds = null; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginBatchCancelOrderRequest() { - } - - public MarginBatchCancelOrderRequest clientOids(List clientOids) { - - this.clientOids = clientOids; - return this; - } - - public MarginBatchCancelOrderRequest addClientOidsItem(String clientOidsItem) { - if (this.clientOids == null) { - this.clientOids = new ArrayList<>(); - } - this.clientOids.add(clientOidsItem); - return this; - } - - /** - * clientOids - * @return clientOids - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "[myId001]", value = "clientOids") - - public List getClientOids() { - return clientOids; - } - - - public void setClientOids(List clientOids) { - this.clientOids = clientOids; - } - - - public MarginBatchCancelOrderRequest orderIds(List orderIds) { - - this.orderIds = orderIds; - return this; - } - - public MarginBatchCancelOrderRequest addOrderIdsItem(String orderIdsItem) { - if (this.orderIds == null) { - this.orderIds = new ArrayList<>(); - } - this.orderIds.add(orderIdsItem); - return this; - } - - /** - * orderIds - * @return orderIds - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "[34324234234234324]", value = "orderIds") - - public List getOrderIds() { - return orderIds; - } - - - public void setOrderIds(List orderIds) { - this.orderIds = orderIds; - } - - - public MarginBatchCancelOrderRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT_SPBL", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginBatchCancelOrderRequest instance itself - */ - public MarginBatchCancelOrderRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginBatchCancelOrderRequest marginBatchCancelOrderRequest = (MarginBatchCancelOrderRequest) o; - return Objects.equals(this.clientOids, marginBatchCancelOrderRequest.clientOids) && - Objects.equals(this.orderIds, marginBatchCancelOrderRequest.orderIds) && - Objects.equals(this.symbol, marginBatchCancelOrderRequest.symbol)&& - Objects.equals(this.additionalProperties, marginBatchCancelOrderRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOids, orderIds, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginBatchCancelOrderRequest {\n"); - sb.append(" clientOids: ").append(toIndentedString(clientOids)).append("\n"); - sb.append(" orderIds: ").append(toIndentedString(orderIds)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOids"); - openapiFields.add("orderIds"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginBatchCancelOrderRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginBatchCancelOrderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginBatchCancelOrderRequest is not found in the empty JSON string", MarginBatchCancelOrderRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginBatchCancelOrderRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // ensure the optional json data is an array if present - if (jsonObj.get("clientOids") != null && !jsonObj.get("clientOids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOids` to be an array in the JSON string but got `%s`", jsonObj.get("clientOids").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("orderIds") != null && !jsonObj.get("orderIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `orderIds` to be an array in the JSON string but got `%s`", jsonObj.get("orderIds").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginBatchCancelOrderRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginBatchCancelOrderRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginBatchCancelOrderRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginBatchCancelOrderRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginBatchCancelOrderRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginBatchCancelOrderRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginBatchCancelOrderRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginBatchCancelOrderRequest - * @throws IOException if the JSON string is invalid with respect to MarginBatchCancelOrderRequest - */ - public static MarginBatchCancelOrderRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginBatchCancelOrderRequest.class); - } - - /** - * Convert an instance of MarginBatchCancelOrderRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderResult.java deleted file mode 100644 index ecc19201..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchCancelOrderResult.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCancelOrderFailureResult; -import com.bitget.openapi.model.MarginCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginBatchCancelOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginBatchCancelOrderResult { - public static final String SERIALIZED_NAME_FAILURE = "failure"; - @SerializedName(SERIALIZED_NAME_FAILURE) - private List failure = null; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginBatchCancelOrderResult() { - } - - public MarginBatchCancelOrderResult failure(List failure) { - - this.failure = failure; - return this; - } - - public MarginBatchCancelOrderResult addFailureItem(MarginCancelOrderFailureResult failureItem) { - if (this.failure == null) { - this.failure = new ArrayList<>(); - } - this.failure.add(failureItem); - return this; - } - - /** - * Get failure - * @return failure - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFailure() { - return failure; - } - - - public void setFailure(List failure) { - this.failure = failure; - } - - - public MarginBatchCancelOrderResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginBatchCancelOrderResult addResultListItem(MarginCancelOrderResult resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginBatchCancelOrderResult instance itself - */ - public MarginBatchCancelOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginBatchCancelOrderResult marginBatchCancelOrderResult = (MarginBatchCancelOrderResult) o; - return Objects.equals(this.failure, marginBatchCancelOrderResult.failure) && - Objects.equals(this.resultList, marginBatchCancelOrderResult.resultList)&& - Objects.equals(this.additionalProperties, marginBatchCancelOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(failure, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginBatchCancelOrderResult {\n"); - sb.append(" failure: ").append(toIndentedString(failure)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("failure"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginBatchCancelOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginBatchCancelOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginBatchCancelOrderResult is not found in the empty JSON string", MarginBatchCancelOrderResult.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("failure") != null && !jsonObj.get("failure").isJsonNull()) { - JsonArray jsonArrayfailure = jsonObj.getAsJsonArray("failure"); - if (jsonArrayfailure != null) { - // ensure the json data is an array - if (!jsonObj.get("failure").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `failure` to be an array in the JSON string but got `%s`", jsonObj.get("failure").toString())); - } - - // validate the optional field `failure` (array) - for (int i = 0; i < jsonArrayfailure.size(); i++) { - MarginCancelOrderFailureResult.validateJsonObject(jsonArrayfailure.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginCancelOrderResult.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginBatchCancelOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginBatchCancelOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginBatchCancelOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginBatchCancelOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginBatchCancelOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginBatchCancelOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginBatchCancelOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginBatchCancelOrderResult - * @throws IOException if the JSON string is invalid with respect to MarginBatchCancelOrderResult - */ - public static MarginBatchCancelOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginBatchCancelOrderResult.class); - } - - /** - * Convert an instance of MarginBatchCancelOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchOrdersRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchOrdersRequest.java deleted file mode 100644 index deb11692..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchOrdersRequest.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginOrderRequest; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginBatchOrdersRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginBatchOrdersRequest { - public static final String SERIALIZED_NAME_CHANNEL_API_CODE = "channelApiCode"; - @SerializedName(SERIALIZED_NAME_CHANNEL_API_CODE) - private String channelApiCode; - - public static final String SERIALIZED_NAME_IP = "ip"; - @SerializedName(SERIALIZED_NAME_IP) - private String ip; - - public static final String SERIALIZED_NAME_ORDER_LIST = "orderList"; - @SerializedName(SERIALIZED_NAME_ORDER_LIST) - private List orderList = null; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginBatchOrdersRequest() { - } - - public MarginBatchOrdersRequest channelApiCode(String channelApiCode) { - - this.channelApiCode = channelApiCode; - return this; - } - - /** - * Get channelApiCode - * @return channelApiCode - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getChannelApiCode() { - return channelApiCode; - } - - - public void setChannelApiCode(String channelApiCode) { - this.channelApiCode = channelApiCode; - } - - - public MarginBatchOrdersRequest ip(String ip) { - - this.ip = ip; - return this; - } - - /** - * Get ip - * @return ip - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getIp() { - return ip; - } - - - public void setIp(String ip) { - this.ip = ip; - } - - - public MarginBatchOrdersRequest orderList(List orderList) { - - this.orderList = orderList; - return this; - } - - public MarginBatchOrdersRequest addOrderListItem(MarginOrderRequest orderListItem) { - if (this.orderList == null) { - this.orderList = new ArrayList<>(); - } - this.orderList.add(orderListItem); - return this; - } - - /** - * Get orderList - * @return orderList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getOrderList() { - return orderList; - } - - - public void setOrderList(List orderList) { - this.orderList = orderList; - } - - - public MarginBatchOrdersRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT_SPBL", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginBatchOrdersRequest instance itself - */ - public MarginBatchOrdersRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginBatchOrdersRequest marginBatchOrdersRequest = (MarginBatchOrdersRequest) o; - return Objects.equals(this.channelApiCode, marginBatchOrdersRequest.channelApiCode) && - Objects.equals(this.ip, marginBatchOrdersRequest.ip) && - Objects.equals(this.orderList, marginBatchOrdersRequest.orderList) && - Objects.equals(this.symbol, marginBatchOrdersRequest.symbol)&& - Objects.equals(this.additionalProperties, marginBatchOrdersRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(channelApiCode, ip, orderList, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginBatchOrdersRequest {\n"); - sb.append(" channelApiCode: ").append(toIndentedString(channelApiCode)).append("\n"); - sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); - sb.append(" orderList: ").append(toIndentedString(orderList)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("channelApiCode"); - openapiFields.add("ip"); - openapiFields.add("orderList"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginBatchOrdersRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginBatchOrdersRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginBatchOrdersRequest is not found in the empty JSON string", MarginBatchOrdersRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginBatchOrdersRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if ((jsonObj.get("channelApiCode") != null && !jsonObj.get("channelApiCode").isJsonNull()) && !jsonObj.get("channelApiCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `channelApiCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("channelApiCode").toString())); - } - if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); - } - if (jsonObj.get("orderList") != null && !jsonObj.get("orderList").isJsonNull()) { - JsonArray jsonArrayorderList = jsonObj.getAsJsonArray("orderList"); - if (jsonArrayorderList != null) { - // ensure the json data is an array - if (!jsonObj.get("orderList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `orderList` to be an array in the JSON string but got `%s`", jsonObj.get("orderList").toString())); - } - - // validate the optional field `orderList` (array) - for (int i = 0; i < jsonArrayorderList.size(); i++) { - MarginOrderRequest.validateJsonObject(jsonArrayorderList.get(i).getAsJsonObject()); - }; - } - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginBatchOrdersRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginBatchOrdersRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginBatchOrdersRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginBatchOrdersRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginBatchOrdersRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginBatchOrdersRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginBatchOrdersRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginBatchOrdersRequest - * @throws IOException if the JSON string is invalid with respect to MarginBatchOrdersRequest - */ - public static MarginBatchOrdersRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginBatchOrdersRequest.class); - } - - /** - * Convert an instance of MarginBatchOrdersRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResult.java deleted file mode 100644 index 159b7f10..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginBatchPlaceOrderFailureResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginBatchPlaceOrderFailureResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_ERROR_MSG = "errorMsg"; - @SerializedName(SERIALIZED_NAME_ERROR_MSG) - private String errorMsg; - - public MarginBatchPlaceOrderFailureResult() { - } - - public MarginBatchPlaceOrderFailureResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginBatchPlaceOrderFailureResult errorMsg(String errorMsg) { - - this.errorMsg = errorMsg; - return this; - } - - /** - * Get errorMsg - * @return errorMsg - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getErrorMsg() { - return errorMsg; - } - - - public void setErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginBatchPlaceOrderFailureResult instance itself - */ - public MarginBatchPlaceOrderFailureResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginBatchPlaceOrderFailureResult marginBatchPlaceOrderFailureResult = (MarginBatchPlaceOrderFailureResult) o; - return Objects.equals(this.clientOid, marginBatchPlaceOrderFailureResult.clientOid) && - Objects.equals(this.errorMsg, marginBatchPlaceOrderFailureResult.errorMsg)&& - Objects.equals(this.additionalProperties, marginBatchPlaceOrderFailureResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, errorMsg, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginBatchPlaceOrderFailureResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("errorMsg"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginBatchPlaceOrderFailureResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginBatchPlaceOrderFailureResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginBatchPlaceOrderFailureResult is not found in the empty JSON string", MarginBatchPlaceOrderFailureResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("errorMsg") != null && !jsonObj.get("errorMsg").isJsonNull()) && !jsonObj.get("errorMsg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorMsg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMsg").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginBatchPlaceOrderFailureResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginBatchPlaceOrderFailureResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginBatchPlaceOrderFailureResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginBatchPlaceOrderFailureResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginBatchPlaceOrderFailureResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginBatchPlaceOrderFailureResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginBatchPlaceOrderFailureResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginBatchPlaceOrderFailureResult - * @throws IOException if the JSON string is invalid with respect to MarginBatchPlaceOrderFailureResult - */ - public static MarginBatchPlaceOrderFailureResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginBatchPlaceOrderFailureResult.class); - } - - /** - * Convert an instance of MarginBatchPlaceOrderFailureResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderResult.java deleted file mode 100644 index b7fade2f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginBatchPlaceOrderResult.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginBatchPlaceOrderFailureResult; -import com.bitget.openapi.model.MarginCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginBatchPlaceOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginBatchPlaceOrderResult { - public static final String SERIALIZED_NAME_FAILURE = "failure"; - @SerializedName(SERIALIZED_NAME_FAILURE) - private List failure = null; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginBatchPlaceOrderResult() { - } - - public MarginBatchPlaceOrderResult failure(List failure) { - - this.failure = failure; - return this; - } - - public MarginBatchPlaceOrderResult addFailureItem(MarginBatchPlaceOrderFailureResult failureItem) { - if (this.failure == null) { - this.failure = new ArrayList<>(); - } - this.failure.add(failureItem); - return this; - } - - /** - * Get failure - * @return failure - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFailure() { - return failure; - } - - - public void setFailure(List failure) { - this.failure = failure; - } - - - public MarginBatchPlaceOrderResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginBatchPlaceOrderResult addResultListItem(MarginCancelOrderResult resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginBatchPlaceOrderResult instance itself - */ - public MarginBatchPlaceOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginBatchPlaceOrderResult marginBatchPlaceOrderResult = (MarginBatchPlaceOrderResult) o; - return Objects.equals(this.failure, marginBatchPlaceOrderResult.failure) && - Objects.equals(this.resultList, marginBatchPlaceOrderResult.resultList)&& - Objects.equals(this.additionalProperties, marginBatchPlaceOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(failure, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginBatchPlaceOrderResult {\n"); - sb.append(" failure: ").append(toIndentedString(failure)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("failure"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginBatchPlaceOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginBatchPlaceOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginBatchPlaceOrderResult is not found in the empty JSON string", MarginBatchPlaceOrderResult.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("failure") != null && !jsonObj.get("failure").isJsonNull()) { - JsonArray jsonArrayfailure = jsonObj.getAsJsonArray("failure"); - if (jsonArrayfailure != null) { - // ensure the json data is an array - if (!jsonObj.get("failure").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `failure` to be an array in the JSON string but got `%s`", jsonObj.get("failure").toString())); - } - - // validate the optional field `failure` (array) - for (int i = 0; i < jsonArrayfailure.size(); i++) { - MarginBatchPlaceOrderFailureResult.validateJsonObject(jsonArrayfailure.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginCancelOrderResult.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginBatchPlaceOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginBatchPlaceOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginBatchPlaceOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginBatchPlaceOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginBatchPlaceOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginBatchPlaceOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginBatchPlaceOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginBatchPlaceOrderResult - * @throws IOException if the JSON string is invalid with respect to MarginBatchPlaceOrderResult - */ - public static MarginBatchPlaceOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginBatchPlaceOrderResult.class); - } - - /** - * Convert an instance of MarginBatchPlaceOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderFailureResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderFailureResult.java deleted file mode 100644 index 7fff456d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderFailureResult.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCancelOrderFailureResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCancelOrderFailureResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_ERROR_MSG = "errorMsg"; - @SerializedName(SERIALIZED_NAME_ERROR_MSG) - private String errorMsg; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public MarginCancelOrderFailureResult() { - } - - public MarginCancelOrderFailureResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginCancelOrderFailureResult errorMsg(String errorMsg) { - - this.errorMsg = errorMsg; - return this; - } - - /** - * Get errorMsg - * @return errorMsg - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getErrorMsg() { - return errorMsg; - } - - - public void setErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - } - - - public MarginCancelOrderFailureResult orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCancelOrderFailureResult instance itself - */ - public MarginCancelOrderFailureResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCancelOrderFailureResult marginCancelOrderFailureResult = (MarginCancelOrderFailureResult) o; - return Objects.equals(this.clientOid, marginCancelOrderFailureResult.clientOid) && - Objects.equals(this.errorMsg, marginCancelOrderFailureResult.errorMsg) && - Objects.equals(this.orderId, marginCancelOrderFailureResult.orderId)&& - Objects.equals(this.additionalProperties, marginCancelOrderFailureResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, errorMsg, orderId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCancelOrderFailureResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("errorMsg"); - openapiFields.add("orderId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCancelOrderFailureResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCancelOrderFailureResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCancelOrderFailureResult is not found in the empty JSON string", MarginCancelOrderFailureResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("errorMsg") != null && !jsonObj.get("errorMsg").isJsonNull()) && !jsonObj.get("errorMsg").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorMsg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMsg").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCancelOrderFailureResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCancelOrderFailureResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCancelOrderFailureResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCancelOrderFailureResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCancelOrderFailureResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCancelOrderFailureResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCancelOrderFailureResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCancelOrderFailureResult - * @throws IOException if the JSON string is invalid with respect to MarginCancelOrderFailureResult - */ - public static MarginCancelOrderFailureResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCancelOrderFailureResult.class); - } - - /** - * Convert an instance of MarginCancelOrderFailureResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderRequest.java deleted file mode 100644 index 8f4c5e87..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderRequest.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCancelOrderRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCancelOrderRequest { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginCancelOrderRequest() { - } - - public MarginCancelOrderRequest clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "myId0001", value = "clientOid") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginCancelOrderRequest orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "324234234234234723647", value = "orderId") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - - public MarginCancelOrderRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT_SPBL", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCancelOrderRequest instance itself - */ - public MarginCancelOrderRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCancelOrderRequest marginCancelOrderRequest = (MarginCancelOrderRequest) o; - return Objects.equals(this.clientOid, marginCancelOrderRequest.clientOid) && - Objects.equals(this.orderId, marginCancelOrderRequest.orderId) && - Objects.equals(this.symbol, marginCancelOrderRequest.symbol)&& - Objects.equals(this.additionalProperties, marginCancelOrderRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, orderId, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCancelOrderRequest {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("orderId"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCancelOrderRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCancelOrderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCancelOrderRequest is not found in the empty JSON string", MarginCancelOrderRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginCancelOrderRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCancelOrderRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCancelOrderRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCancelOrderRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCancelOrderRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCancelOrderRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCancelOrderRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCancelOrderRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCancelOrderRequest - * @throws IOException if the JSON string is invalid with respect to MarginCancelOrderRequest - */ - public static MarginCancelOrderRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCancelOrderRequest.class); - } - - /** - * Convert an instance of MarginCancelOrderRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderResult.java deleted file mode 100644 index 24b75885..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCancelOrderResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCancelOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCancelOrderResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public MarginCancelOrderResult() { - } - - public MarginCancelOrderResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginCancelOrderResult orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCancelOrderResult instance itself - */ - public MarginCancelOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCancelOrderResult marginCancelOrderResult = (MarginCancelOrderResult) o; - return Objects.equals(this.clientOid, marginCancelOrderResult.clientOid) && - Objects.equals(this.orderId, marginCancelOrderResult.orderId)&& - Objects.equals(this.additionalProperties, marginCancelOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, orderId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCancelOrderResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("orderId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCancelOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCancelOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCancelOrderResult is not found in the empty JSON string", MarginCancelOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCancelOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCancelOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCancelOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCancelOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCancelOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCancelOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCancelOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCancelOrderResult - * @throws IOException if the JSON string is invalid with respect to MarginCancelOrderResult - */ - public static MarginCancelOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCancelOrderResult.class); - } - - /** - * Convert an instance of MarginCancelOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResult.java deleted file mode 100644 index 78e8bf39..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResult.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossAssetsPopulationResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossAssetsPopulationResult { - public static final String SERIALIZED_NAME_AVAILABLE = "available"; - @SerializedName(SERIALIZED_NAME_AVAILABLE) - private String available; - - public static final String SERIALIZED_NAME_BORROW = "borrow"; - @SerializedName(SERIALIZED_NAME_BORROW) - private String borrow; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FROZEN = "frozen"; - @SerializedName(SERIALIZED_NAME_FROZEN) - private String frozen; - - public static final String SERIALIZED_NAME_INTEREST = "interest"; - @SerializedName(SERIALIZED_NAME_INTEREST) - private String interest; - - public static final String SERIALIZED_NAME_NET = "net"; - @SerializedName(SERIALIZED_NAME_NET) - private String net; - - public static final String SERIALIZED_NAME_TOTAL_AMOUNT = "totalAmount"; - @SerializedName(SERIALIZED_NAME_TOTAL_AMOUNT) - private String totalAmount; - - public MarginCrossAssetsPopulationResult() { - } - - public MarginCrossAssetsPopulationResult available(String available) { - - this.available = available; - return this; - } - - /** - * Get available - * @return available - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAvailable() { - return available; - } - - - public void setAvailable(String available) { - this.available = available; - } - - - public MarginCrossAssetsPopulationResult borrow(String borrow) { - - this.borrow = borrow; - return this; - } - - /** - * Get borrow - * @return borrow - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBorrow() { - return borrow; - } - - - public void setBorrow(String borrow) { - this.borrow = borrow; - } - - - public MarginCrossAssetsPopulationResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossAssetsPopulationResult ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginCrossAssetsPopulationResult frozen(String frozen) { - - this.frozen = frozen; - return this; - } - - /** - * Get frozen - * @return frozen - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFrozen() { - return frozen; - } - - - public void setFrozen(String frozen) { - this.frozen = frozen; - } - - - public MarginCrossAssetsPopulationResult interest(String interest) { - - this.interest = interest; - return this; - } - - /** - * Get interest - * @return interest - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterest() { - return interest; - } - - - public void setInterest(String interest) { - this.interest = interest; - } - - - public MarginCrossAssetsPopulationResult net(String net) { - - this.net = net; - return this; - } - - /** - * Get net - * @return net - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getNet() { - return net; - } - - - public void setNet(String net) { - this.net = net; - } - - - public MarginCrossAssetsPopulationResult totalAmount(String totalAmount) { - - this.totalAmount = totalAmount; - return this; - } - - /** - * Get totalAmount - * @return totalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAmount() { - return totalAmount; - } - - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossAssetsPopulationResult instance itself - */ - public MarginCrossAssetsPopulationResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossAssetsPopulationResult marginCrossAssetsPopulationResult = (MarginCrossAssetsPopulationResult) o; - return Objects.equals(this.available, marginCrossAssetsPopulationResult.available) && - Objects.equals(this.borrow, marginCrossAssetsPopulationResult.borrow) && - Objects.equals(this.coin, marginCrossAssetsPopulationResult.coin) && - Objects.equals(this.ctime, marginCrossAssetsPopulationResult.ctime) && - Objects.equals(this.frozen, marginCrossAssetsPopulationResult.frozen) && - Objects.equals(this.interest, marginCrossAssetsPopulationResult.interest) && - Objects.equals(this.net, marginCrossAssetsPopulationResult.net) && - Objects.equals(this.totalAmount, marginCrossAssetsPopulationResult.totalAmount)&& - Objects.equals(this.additionalProperties, marginCrossAssetsPopulationResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(available, borrow, coin, ctime, frozen, interest, net, totalAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossAssetsPopulationResult {\n"); - sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" borrow: ").append(toIndentedString(borrow)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" frozen: ").append(toIndentedString(frozen)).append("\n"); - sb.append(" interest: ").append(toIndentedString(interest)).append("\n"); - sb.append(" net: ").append(toIndentedString(net)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("available"); - openapiFields.add("borrow"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("frozen"); - openapiFields.add("interest"); - openapiFields.add("net"); - openapiFields.add("totalAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossAssetsPopulationResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossAssetsPopulationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossAssetsPopulationResult is not found in the empty JSON string", MarginCrossAssetsPopulationResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("available") != null && !jsonObj.get("available").isJsonNull()) && !jsonObj.get("available").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `available` to be a primitive type in the JSON string but got `%s`", jsonObj.get("available").toString())); - } - if ((jsonObj.get("borrow") != null && !jsonObj.get("borrow").isJsonNull()) && !jsonObj.get("borrow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrow").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("frozen") != null && !jsonObj.get("frozen").isJsonNull()) && !jsonObj.get("frozen").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `frozen` to be a primitive type in the JSON string but got `%s`", jsonObj.get("frozen").toString())); - } - if ((jsonObj.get("interest") != null && !jsonObj.get("interest").isJsonNull()) && !jsonObj.get("interest").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interest").toString())); - } - if ((jsonObj.get("net") != null && !jsonObj.get("net").isJsonNull()) && !jsonObj.get("net").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `net` to be a primitive type in the JSON string but got `%s`", jsonObj.get("net").toString())); - } - if ((jsonObj.get("totalAmount") != null && !jsonObj.get("totalAmount").isJsonNull()) && !jsonObj.get("totalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossAssetsPopulationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossAssetsPopulationResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossAssetsPopulationResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossAssetsPopulationResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossAssetsPopulationResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossAssetsPopulationResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossAssetsPopulationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossAssetsPopulationResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossAssetsPopulationResult - */ - public static MarginCrossAssetsPopulationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossAssetsPopulationResult.class); - } - - /** - * Convert an instance of MarginCrossAssetsPopulationResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsResult.java deleted file mode 100644 index 5e7fad35..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossAssetsResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossAssetsResult { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_MAX_TRANSFER_OUT_AMOUNT = "maxTransferOutAmount"; - @SerializedName(SERIALIZED_NAME_MAX_TRANSFER_OUT_AMOUNT) - private String maxTransferOutAmount; - - public MarginCrossAssetsResult() { - } - - public MarginCrossAssetsResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossAssetsResult maxTransferOutAmount(String maxTransferOutAmount) { - - this.maxTransferOutAmount = maxTransferOutAmount; - return this; - } - - /** - * Get maxTransferOutAmount - * @return maxTransferOutAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxTransferOutAmount() { - return maxTransferOutAmount; - } - - - public void setMaxTransferOutAmount(String maxTransferOutAmount) { - this.maxTransferOutAmount = maxTransferOutAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossAssetsResult instance itself - */ - public MarginCrossAssetsResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossAssetsResult marginCrossAssetsResult = (MarginCrossAssetsResult) o; - return Objects.equals(this.coin, marginCrossAssetsResult.coin) && - Objects.equals(this.maxTransferOutAmount, marginCrossAssetsResult.maxTransferOutAmount)&& - Objects.equals(this.additionalProperties, marginCrossAssetsResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, maxTransferOutAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossAssetsResult {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" maxTransferOutAmount: ").append(toIndentedString(maxTransferOutAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("maxTransferOutAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossAssetsResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossAssetsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossAssetsResult is not found in the empty JSON string", MarginCrossAssetsResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("maxTransferOutAmount") != null && !jsonObj.get("maxTransferOutAmount").isJsonNull()) && !jsonObj.get("maxTransferOutAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxTransferOutAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxTransferOutAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossAssetsResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossAssetsResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossAssetsResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossAssetsResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossAssetsResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossAssetsResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossAssetsResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossAssetsResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossAssetsResult - */ - public static MarginCrossAssetsResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossAssetsResult.class); - } - - /** - * Convert an instance of MarginCrossAssetsResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsRiskResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsRiskResult.java deleted file mode 100644 index 3e4b4239..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossAssetsRiskResult.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossAssetsRiskResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossAssetsRiskResult { - public static final String SERIALIZED_NAME_RISK_RATE = "riskRate"; - @SerializedName(SERIALIZED_NAME_RISK_RATE) - private String riskRate; - - public MarginCrossAssetsRiskResult() { - } - - public MarginCrossAssetsRiskResult riskRate(String riskRate) { - - this.riskRate = riskRate; - return this; - } - - /** - * Get riskRate - * @return riskRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRiskRate() { - return riskRate; - } - - - public void setRiskRate(String riskRate) { - this.riskRate = riskRate; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossAssetsRiskResult instance itself - */ - public MarginCrossAssetsRiskResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossAssetsRiskResult marginCrossAssetsRiskResult = (MarginCrossAssetsRiskResult) o; - return Objects.equals(this.riskRate, marginCrossAssetsRiskResult.riskRate)&& - Objects.equals(this.additionalProperties, marginCrossAssetsRiskResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(riskRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossAssetsRiskResult {\n"); - sb.append(" riskRate: ").append(toIndentedString(riskRate)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("riskRate"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossAssetsRiskResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossAssetsRiskResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossAssetsRiskResult is not found in the empty JSON string", MarginCrossAssetsRiskResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("riskRate") != null && !jsonObj.get("riskRate").isJsonNull()) && !jsonObj.get("riskRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `riskRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("riskRate").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossAssetsRiskResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossAssetsRiskResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossAssetsRiskResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossAssetsRiskResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossAssetsRiskResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossAssetsRiskResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossAssetsRiskResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossAssetsRiskResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossAssetsRiskResult - */ - public static MarginCrossAssetsRiskResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossAssetsRiskResult.class); - } - - /** - * Convert an instance of MarginCrossAssetsRiskResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossBorrowLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossBorrowLimitResult.java deleted file mode 100644 index b48a2c39..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossBorrowLimitResult.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossBorrowLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossBorrowLimitResult { - public static final String SERIALIZED_NAME_BORROW_AMOUNT = "borrowAmount"; - @SerializedName(SERIALIZED_NAME_BORROW_AMOUNT) - private String borrowAmount; - - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public MarginCrossBorrowLimitResult() { - } - - public MarginCrossBorrowLimitResult borrowAmount(String borrowAmount) { - - this.borrowAmount = borrowAmount; - return this; - } - - /** - * Get borrowAmount - * @return borrowAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBorrowAmount() { - return borrowAmount; - } - - - public void setBorrowAmount(String borrowAmount) { - this.borrowAmount = borrowAmount; - } - - - public MarginCrossBorrowLimitResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginCrossBorrowLimitResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossBorrowLimitResult instance itself - */ - public MarginCrossBorrowLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossBorrowLimitResult marginCrossBorrowLimitResult = (MarginCrossBorrowLimitResult) o; - return Objects.equals(this.borrowAmount, marginCrossBorrowLimitResult.borrowAmount) && - Objects.equals(this.clientOid, marginCrossBorrowLimitResult.clientOid) && - Objects.equals(this.coin, marginCrossBorrowLimitResult.coin)&& - Objects.equals(this.additionalProperties, marginCrossBorrowLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(borrowAmount, clientOid, coin, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossBorrowLimitResult {\n"); - sb.append(" borrowAmount: ").append(toIndentedString(borrowAmount)).append("\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("borrowAmount"); - openapiFields.add("clientOid"); - openapiFields.add("coin"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossBorrowLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossBorrowLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossBorrowLimitResult is not found in the empty JSON string", MarginCrossBorrowLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("borrowAmount") != null && !jsonObj.get("borrowAmount").isJsonNull()) && !jsonObj.get("borrowAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrowAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrowAmount").toString())); - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossBorrowLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossBorrowLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossBorrowLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossBorrowLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossBorrowLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossBorrowLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossBorrowLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossBorrowLimitResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossBorrowLimitResult - */ - public static MarginCrossBorrowLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossBorrowLimitResult.class); - } - - /** - * Convert an instance of MarginCrossBorrowLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowInfo.java deleted file mode 100644 index cd9bfa32..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowInfo.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossFinFlowInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossFinFlowInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_BALANCE = "balance"; - @SerializedName(SERIALIZED_NAME_BALANCE) - private String balance; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FEE = "fee"; - @SerializedName(SERIALIZED_NAME_FEE) - private String fee; - - public static final String SERIALIZED_NAME_MARGIN_ID = "marginId"; - @SerializedName(SERIALIZED_NAME_MARGIN_ID) - private String marginId; - - public static final String SERIALIZED_NAME_MARGIN_TYPE = "marginType"; - @SerializedName(SERIALIZED_NAME_MARGIN_TYPE) - private String marginType; - - public MarginCrossFinFlowInfo() { - } - - public MarginCrossFinFlowInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginCrossFinFlowInfo balance(String balance) { - - this.balance = balance; - return this; - } - - /** - * Get balance - * @return balance - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBalance() { - return balance; - } - - - public void setBalance(String balance) { - this.balance = balance; - } - - - public MarginCrossFinFlowInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossFinFlowInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginCrossFinFlowInfo fee(String fee) { - - this.fee = fee; - return this; - } - - /** - * Get fee - * @return fee - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFee() { - return fee; - } - - - public void setFee(String fee) { - this.fee = fee; - } - - - public MarginCrossFinFlowInfo marginId(String marginId) { - - this.marginId = marginId; - return this; - } - - /** - * Get marginId - * @return marginId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMarginId() { - return marginId; - } - - - public void setMarginId(String marginId) { - this.marginId = marginId; - } - - - public MarginCrossFinFlowInfo marginType(String marginType) { - - this.marginType = marginType; - return this; - } - - /** - * Get marginType - * @return marginType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMarginType() { - return marginType; - } - - - public void setMarginType(String marginType) { - this.marginType = marginType; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossFinFlowInfo instance itself - */ - public MarginCrossFinFlowInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossFinFlowInfo marginCrossFinFlowInfo = (MarginCrossFinFlowInfo) o; - return Objects.equals(this.amount, marginCrossFinFlowInfo.amount) && - Objects.equals(this.balance, marginCrossFinFlowInfo.balance) && - Objects.equals(this.coin, marginCrossFinFlowInfo.coin) && - Objects.equals(this.ctime, marginCrossFinFlowInfo.ctime) && - Objects.equals(this.fee, marginCrossFinFlowInfo.fee) && - Objects.equals(this.marginId, marginCrossFinFlowInfo.marginId) && - Objects.equals(this.marginType, marginCrossFinFlowInfo.marginType)&& - Objects.equals(this.additionalProperties, marginCrossFinFlowInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, balance, coin, ctime, fee, marginId, marginType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossFinFlowInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" balance: ").append(toIndentedString(balance)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" marginId: ").append(toIndentedString(marginId)).append("\n"); - sb.append(" marginType: ").append(toIndentedString(marginType)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("balance"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("fee"); - openapiFields.add("marginId"); - openapiFields.add("marginType"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossFinFlowInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossFinFlowInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossFinFlowInfo is not found in the empty JSON string", MarginCrossFinFlowInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("balance") != null && !jsonObj.get("balance").isJsonNull()) && !jsonObj.get("balance").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `balance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("balance").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("fee") != null && !jsonObj.get("fee").isJsonNull()) && !jsonObj.get("fee").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fee` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fee").toString())); - } - if ((jsonObj.get("marginId") != null && !jsonObj.get("marginId").isJsonNull()) && !jsonObj.get("marginId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `marginId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marginId").toString())); - } - if ((jsonObj.get("marginType") != null && !jsonObj.get("marginType").isJsonNull()) && !jsonObj.get("marginType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `marginType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marginType").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossFinFlowInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossFinFlowInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossFinFlowInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossFinFlowInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossFinFlowInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossFinFlowInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossFinFlowInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossFinFlowInfo - * @throws IOException if the JSON string is invalid with respect to MarginCrossFinFlowInfo - */ - public static MarginCrossFinFlowInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossFinFlowInfo.class); - } - - /** - * Convert an instance of MarginCrossFinFlowInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowResult.java deleted file mode 100644 index af6f74db..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossFinFlowResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossFinFlowInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossFinFlowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossFinFlowResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginCrossFinFlowResult() { - } - - public MarginCrossFinFlowResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginCrossFinFlowResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginCrossFinFlowResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginCrossFinFlowResult addResultListItem(MarginCrossFinFlowInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossFinFlowResult instance itself - */ - public MarginCrossFinFlowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossFinFlowResult marginCrossFinFlowResult = (MarginCrossFinFlowResult) o; - return Objects.equals(this.maxId, marginCrossFinFlowResult.maxId) && - Objects.equals(this.minId, marginCrossFinFlowResult.minId) && - Objects.equals(this.resultList, marginCrossFinFlowResult.resultList)&& - Objects.equals(this.additionalProperties, marginCrossFinFlowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossFinFlowResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossFinFlowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossFinFlowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossFinFlowResult is not found in the empty JSON string", MarginCrossFinFlowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginCrossFinFlowInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossFinFlowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossFinFlowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossFinFlowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossFinFlowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossFinFlowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossFinFlowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossFinFlowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossFinFlowResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossFinFlowResult - */ - public static MarginCrossFinFlowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossFinFlowResult.class); - } - - /** - * Convert an instance of MarginCrossFinFlowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLevelResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLevelResult.java deleted file mode 100644 index 23ca6bfe..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLevelResult.java +++ /dev/null @@ -1,415 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossLevelResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossLevelResult { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_LEVERAGE = "leverage"; - @SerializedName(SERIALIZED_NAME_LEVERAGE) - private String leverage; - - public static final String SERIALIZED_NAME_MAINTAIN_MARGIN_RATE = "maintainMarginRate"; - @SerializedName(SERIALIZED_NAME_MAINTAIN_MARGIN_RATE) - private String maintainMarginRate; - - public static final String SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT = "maxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT) - private String maxBorrowableAmount; - - public static final String SERIALIZED_NAME_TIER = "tier"; - @SerializedName(SERIALIZED_NAME_TIER) - private String tier; - - public MarginCrossLevelResult() { - } - - public MarginCrossLevelResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossLevelResult leverage(String leverage) { - - this.leverage = leverage; - return this; - } - - /** - * Get leverage - * @return leverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLeverage() { - return leverage; - } - - - public void setLeverage(String leverage) { - this.leverage = leverage; - } - - - public MarginCrossLevelResult maintainMarginRate(String maintainMarginRate) { - - this.maintainMarginRate = maintainMarginRate; - return this; - } - - /** - * Get maintainMarginRate - * @return maintainMarginRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaintainMarginRate() { - return maintainMarginRate; - } - - - public void setMaintainMarginRate(String maintainMarginRate) { - this.maintainMarginRate = maintainMarginRate; - } - - - public MarginCrossLevelResult maxBorrowableAmount(String maxBorrowableAmount) { - - this.maxBorrowableAmount = maxBorrowableAmount; - return this; - } - - /** - * Get maxBorrowableAmount - * @return maxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxBorrowableAmount() { - return maxBorrowableAmount; - } - - - public void setMaxBorrowableAmount(String maxBorrowableAmount) { - this.maxBorrowableAmount = maxBorrowableAmount; - } - - - public MarginCrossLevelResult tier(String tier) { - - this.tier = tier; - return this; - } - - /** - * Get tier - * @return tier - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTier() { - return tier; - } - - - public void setTier(String tier) { - this.tier = tier; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossLevelResult instance itself - */ - public MarginCrossLevelResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossLevelResult marginCrossLevelResult = (MarginCrossLevelResult) o; - return Objects.equals(this.coin, marginCrossLevelResult.coin) && - Objects.equals(this.leverage, marginCrossLevelResult.leverage) && - Objects.equals(this.maintainMarginRate, marginCrossLevelResult.maintainMarginRate) && - Objects.equals(this.maxBorrowableAmount, marginCrossLevelResult.maxBorrowableAmount) && - Objects.equals(this.tier, marginCrossLevelResult.tier)&& - Objects.equals(this.additionalProperties, marginCrossLevelResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, leverage, maintainMarginRate, maxBorrowableAmount, tier, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossLevelResult {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" leverage: ").append(toIndentedString(leverage)).append("\n"); - sb.append(" maintainMarginRate: ").append(toIndentedString(maintainMarginRate)).append("\n"); - sb.append(" maxBorrowableAmount: ").append(toIndentedString(maxBorrowableAmount)).append("\n"); - sb.append(" tier: ").append(toIndentedString(tier)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("leverage"); - openapiFields.add("maintainMarginRate"); - openapiFields.add("maxBorrowableAmount"); - openapiFields.add("tier"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossLevelResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossLevelResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossLevelResult is not found in the empty JSON string", MarginCrossLevelResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("leverage") != null && !jsonObj.get("leverage").isJsonNull()) && !jsonObj.get("leverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leverage").toString())); - } - if ((jsonObj.get("maintainMarginRate") != null && !jsonObj.get("maintainMarginRate").isJsonNull()) && !jsonObj.get("maintainMarginRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maintainMarginRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maintainMarginRate").toString())); - } - if ((jsonObj.get("maxBorrowableAmount") != null && !jsonObj.get("maxBorrowableAmount").isJsonNull()) && !jsonObj.get("maxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxBorrowableAmount").toString())); - } - if ((jsonObj.get("tier") != null && !jsonObj.get("tier").isJsonNull()) && !jsonObj.get("tier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tier").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossLevelResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossLevelResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossLevelResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossLevelResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossLevelResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossLevelResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossLevelResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossLevelResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossLevelResult - */ - public static MarginCrossLevelResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossLevelResult.class); - } - - /** - * Convert an instance of MarginCrossLevelResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLimitRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLimitRequest.java deleted file mode 100644 index 2b8e932e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossLimitRequest.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossLimitRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossLimitRequest { - public static final String SERIALIZED_NAME_BORROW_AMOUNT = "borrowAmount"; - @SerializedName(SERIALIZED_NAME_BORROW_AMOUNT) - private String borrowAmount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public MarginCrossLimitRequest() { - } - - public MarginCrossLimitRequest borrowAmount(String borrowAmount) { - - this.borrowAmount = borrowAmount; - return this; - } - - /** - * borrowAmount - * @return borrowAmount - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1.0", required = true, value = "borrowAmount") - - public String getBorrowAmount() { - return borrowAmount; - } - - - public void setBorrowAmount(String borrowAmount) { - this.borrowAmount = borrowAmount; - } - - - public MarginCrossLimitRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossLimitRequest instance itself - */ - public MarginCrossLimitRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossLimitRequest marginCrossLimitRequest = (MarginCrossLimitRequest) o; - return Objects.equals(this.borrowAmount, marginCrossLimitRequest.borrowAmount) && - Objects.equals(this.coin, marginCrossLimitRequest.coin)&& - Objects.equals(this.additionalProperties, marginCrossLimitRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(borrowAmount, coin, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossLimitRequest {\n"); - sb.append(" borrowAmount: ").append(toIndentedString(borrowAmount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("borrowAmount"); - openapiFields.add("coin"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("borrowAmount"); - openapiRequiredFields.add("coin"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossLimitRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossLimitRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossLimitRequest is not found in the empty JSON string", MarginCrossLimitRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginCrossLimitRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("borrowAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrowAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrowAmount").toString())); - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossLimitRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossLimitRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossLimitRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossLimitRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossLimitRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossLimitRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossLimitRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossLimitRequest - * @throws IOException if the JSON string is invalid with respect to MarginCrossLimitRequest - */ - public static MarginCrossLimitRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossLimitRequest.class); - } - - /** - * Convert an instance of MarginCrossLimitRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequest.java deleted file mode 100644 index f93cc3fe..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequest.java +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossMaxBorrowRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossMaxBorrowRequest { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public MarginCrossMaxBorrowRequest() { - } - - public MarginCrossMaxBorrowRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossMaxBorrowRequest instance itself - */ - public MarginCrossMaxBorrowRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest = (MarginCrossMaxBorrowRequest) o; - return Objects.equals(this.coin, marginCrossMaxBorrowRequest.coin)&& - Objects.equals(this.additionalProperties, marginCrossMaxBorrowRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossMaxBorrowRequest {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("coin"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossMaxBorrowRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossMaxBorrowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossMaxBorrowRequest is not found in the empty JSON string", MarginCrossMaxBorrowRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginCrossMaxBorrowRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossMaxBorrowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossMaxBorrowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossMaxBorrowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossMaxBorrowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossMaxBorrowRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossMaxBorrowRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossMaxBorrowRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossMaxBorrowRequest - * @throws IOException if the JSON string is invalid with respect to MarginCrossMaxBorrowRequest - */ - public static MarginCrossMaxBorrowRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossMaxBorrowRequest.class); - } - - /** - * Convert an instance of MarginCrossMaxBorrowRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowResult.java deleted file mode 100644 index 9aed027f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossMaxBorrowResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossMaxBorrowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossMaxBorrowResult { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT = "maxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT) - private String maxBorrowableAmount; - - public MarginCrossMaxBorrowResult() { - } - - public MarginCrossMaxBorrowResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossMaxBorrowResult maxBorrowableAmount(String maxBorrowableAmount) { - - this.maxBorrowableAmount = maxBorrowableAmount; - return this; - } - - /** - * Get maxBorrowableAmount - * @return maxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxBorrowableAmount() { - return maxBorrowableAmount; - } - - - public void setMaxBorrowableAmount(String maxBorrowableAmount) { - this.maxBorrowableAmount = maxBorrowableAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossMaxBorrowResult instance itself - */ - public MarginCrossMaxBorrowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossMaxBorrowResult marginCrossMaxBorrowResult = (MarginCrossMaxBorrowResult) o; - return Objects.equals(this.coin, marginCrossMaxBorrowResult.coin) && - Objects.equals(this.maxBorrowableAmount, marginCrossMaxBorrowResult.maxBorrowableAmount)&& - Objects.equals(this.additionalProperties, marginCrossMaxBorrowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, maxBorrowableAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossMaxBorrowResult {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" maxBorrowableAmount: ").append(toIndentedString(maxBorrowableAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("maxBorrowableAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossMaxBorrowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossMaxBorrowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossMaxBorrowResult is not found in the empty JSON string", MarginCrossMaxBorrowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("maxBorrowableAmount") != null && !jsonObj.get("maxBorrowableAmount").isJsonNull()) && !jsonObj.get("maxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxBorrowableAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossMaxBorrowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossMaxBorrowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossMaxBorrowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossMaxBorrowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossMaxBorrowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossMaxBorrowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossMaxBorrowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossMaxBorrowResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossMaxBorrowResult - */ - public static MarginCrossMaxBorrowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossMaxBorrowResult.class); - } - - /** - * Convert an instance of MarginCrossMaxBorrowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRateAndLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRateAndLimitResult.java deleted file mode 100644 index 752cc380..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRateAndLimitResult.java +++ /dev/null @@ -1,530 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginCrossVipResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossRateAndLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossRateAndLimitResult { - public static final String SERIALIZED_NAME_BORROW_ABLE = "borrowAble"; - @SerializedName(SERIALIZED_NAME_BORROW_ABLE) - private Boolean borrowAble; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_DAILY_INTEREST_RATE = "dailyInterestRate"; - @SerializedName(SERIALIZED_NAME_DAILY_INTEREST_RATE) - private String dailyInterestRate; - - public static final String SERIALIZED_NAME_LEVERAGE = "leverage"; - @SerializedName(SERIALIZED_NAME_LEVERAGE) - private String leverage; - - public static final String SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT = "maxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT) - private String maxBorrowableAmount; - - public static final String SERIALIZED_NAME_TRANSFER_IN_ABLE = "transferInAble"; - @SerializedName(SERIALIZED_NAME_TRANSFER_IN_ABLE) - private Boolean transferInAble; - - public static final String SERIALIZED_NAME_VIPS = "vips"; - @SerializedName(SERIALIZED_NAME_VIPS) - private List vips = null; - - public static final String SERIALIZED_NAME_YEARLY_INTEREST_RATE = "yearlyInterestRate"; - @SerializedName(SERIALIZED_NAME_YEARLY_INTEREST_RATE) - private String yearlyInterestRate; - - public MarginCrossRateAndLimitResult() { - } - - public MarginCrossRateAndLimitResult borrowAble(Boolean borrowAble) { - - this.borrowAble = borrowAble; - return this; - } - - /** - * Get borrowAble - * @return borrowAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getBorrowAble() { - return borrowAble; - } - - - public void setBorrowAble(Boolean borrowAble) { - this.borrowAble = borrowAble; - } - - - public MarginCrossRateAndLimitResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossRateAndLimitResult dailyInterestRate(String dailyInterestRate) { - - this.dailyInterestRate = dailyInterestRate; - return this; - } - - /** - * Get dailyInterestRate - * @return dailyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDailyInterestRate() { - return dailyInterestRate; - } - - - public void setDailyInterestRate(String dailyInterestRate) { - this.dailyInterestRate = dailyInterestRate; - } - - - public MarginCrossRateAndLimitResult leverage(String leverage) { - - this.leverage = leverage; - return this; - } - - /** - * Get leverage - * @return leverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLeverage() { - return leverage; - } - - - public void setLeverage(String leverage) { - this.leverage = leverage; - } - - - public MarginCrossRateAndLimitResult maxBorrowableAmount(String maxBorrowableAmount) { - - this.maxBorrowableAmount = maxBorrowableAmount; - return this; - } - - /** - * Get maxBorrowableAmount - * @return maxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxBorrowableAmount() { - return maxBorrowableAmount; - } - - - public void setMaxBorrowableAmount(String maxBorrowableAmount) { - this.maxBorrowableAmount = maxBorrowableAmount; - } - - - public MarginCrossRateAndLimitResult transferInAble(Boolean transferInAble) { - - this.transferInAble = transferInAble; - return this; - } - - /** - * Get transferInAble - * @return transferInAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getTransferInAble() { - return transferInAble; - } - - - public void setTransferInAble(Boolean transferInAble) { - this.transferInAble = transferInAble; - } - - - public MarginCrossRateAndLimitResult vips(List vips) { - - this.vips = vips; - return this; - } - - public MarginCrossRateAndLimitResult addVipsItem(MarginCrossVipResult vipsItem) { - if (this.vips == null) { - this.vips = new ArrayList<>(); - } - this.vips.add(vipsItem); - return this; - } - - /** - * Get vips - * @return vips - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getVips() { - return vips; - } - - - public void setVips(List vips) { - this.vips = vips; - } - - - public MarginCrossRateAndLimitResult yearlyInterestRate(String yearlyInterestRate) { - - this.yearlyInterestRate = yearlyInterestRate; - return this; - } - - /** - * Get yearlyInterestRate - * @return yearlyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getYearlyInterestRate() { - return yearlyInterestRate; - } - - - public void setYearlyInterestRate(String yearlyInterestRate) { - this.yearlyInterestRate = yearlyInterestRate; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossRateAndLimitResult instance itself - */ - public MarginCrossRateAndLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossRateAndLimitResult marginCrossRateAndLimitResult = (MarginCrossRateAndLimitResult) o; - return Objects.equals(this.borrowAble, marginCrossRateAndLimitResult.borrowAble) && - Objects.equals(this.coin, marginCrossRateAndLimitResult.coin) && - Objects.equals(this.dailyInterestRate, marginCrossRateAndLimitResult.dailyInterestRate) && - Objects.equals(this.leverage, marginCrossRateAndLimitResult.leverage) && - Objects.equals(this.maxBorrowableAmount, marginCrossRateAndLimitResult.maxBorrowableAmount) && - Objects.equals(this.transferInAble, marginCrossRateAndLimitResult.transferInAble) && - Objects.equals(this.vips, marginCrossRateAndLimitResult.vips) && - Objects.equals(this.yearlyInterestRate, marginCrossRateAndLimitResult.yearlyInterestRate)&& - Objects.equals(this.additionalProperties, marginCrossRateAndLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(borrowAble, coin, dailyInterestRate, leverage, maxBorrowableAmount, transferInAble, vips, yearlyInterestRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossRateAndLimitResult {\n"); - sb.append(" borrowAble: ").append(toIndentedString(borrowAble)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" dailyInterestRate: ").append(toIndentedString(dailyInterestRate)).append("\n"); - sb.append(" leverage: ").append(toIndentedString(leverage)).append("\n"); - sb.append(" maxBorrowableAmount: ").append(toIndentedString(maxBorrowableAmount)).append("\n"); - sb.append(" transferInAble: ").append(toIndentedString(transferInAble)).append("\n"); - sb.append(" vips: ").append(toIndentedString(vips)).append("\n"); - sb.append(" yearlyInterestRate: ").append(toIndentedString(yearlyInterestRate)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("borrowAble"); - openapiFields.add("coin"); - openapiFields.add("dailyInterestRate"); - openapiFields.add("leverage"); - openapiFields.add("maxBorrowableAmount"); - openapiFields.add("transferInAble"); - openapiFields.add("vips"); - openapiFields.add("yearlyInterestRate"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossRateAndLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossRateAndLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossRateAndLimitResult is not found in the empty JSON string", MarginCrossRateAndLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("dailyInterestRate") != null && !jsonObj.get("dailyInterestRate").isJsonNull()) && !jsonObj.get("dailyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dailyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dailyInterestRate").toString())); - } - if ((jsonObj.get("leverage") != null && !jsonObj.get("leverage").isJsonNull()) && !jsonObj.get("leverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leverage").toString())); - } - if ((jsonObj.get("maxBorrowableAmount") != null && !jsonObj.get("maxBorrowableAmount").isJsonNull()) && !jsonObj.get("maxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxBorrowableAmount").toString())); - } - if (jsonObj.get("vips") != null && !jsonObj.get("vips").isJsonNull()) { - JsonArray jsonArrayvips = jsonObj.getAsJsonArray("vips"); - if (jsonArrayvips != null) { - // ensure the json data is an array - if (!jsonObj.get("vips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `vips` to be an array in the JSON string but got `%s`", jsonObj.get("vips").toString())); - } - - // validate the optional field `vips` (array) - for (int i = 0; i < jsonArrayvips.size(); i++) { - MarginCrossVipResult.validateJsonObject(jsonArrayvips.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("yearlyInterestRate") != null && !jsonObj.get("yearlyInterestRate").isJsonNull()) && !jsonObj.get("yearlyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `yearlyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("yearlyInterestRate").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossRateAndLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossRateAndLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossRateAndLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossRateAndLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossRateAndLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossRateAndLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossRateAndLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossRateAndLimitResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossRateAndLimitResult - */ - public static MarginCrossRateAndLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossRateAndLimitResult.class); - } - - /** - * Convert an instance of MarginCrossRateAndLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayRequest.java deleted file mode 100644 index ed4a6683..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayRequest.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossRepayRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossRepayRequest { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_REPAY_AMOUNT = "repayAmount"; - @SerializedName(SERIALIZED_NAME_REPAY_AMOUNT) - private String repayAmount; - - public MarginCrossRepayRequest() { - } - - public MarginCrossRepayRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossRepayRequest repayAmount(String repayAmount) { - - this.repayAmount = repayAmount; - return this; - } - - /** - * repayAmount - * @return repayAmount - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1.0", required = true, value = "repayAmount") - - public String getRepayAmount() { - return repayAmount; - } - - - public void setRepayAmount(String repayAmount) { - this.repayAmount = repayAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossRepayRequest instance itself - */ - public MarginCrossRepayRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossRepayRequest marginCrossRepayRequest = (MarginCrossRepayRequest) o; - return Objects.equals(this.coin, marginCrossRepayRequest.coin) && - Objects.equals(this.repayAmount, marginCrossRepayRequest.repayAmount)&& - Objects.equals(this.additionalProperties, marginCrossRepayRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, repayAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossRepayRequest {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" repayAmount: ").append(toIndentedString(repayAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("repayAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("coin"); - openapiRequiredFields.add("repayAmount"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossRepayRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossRepayRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossRepayRequest is not found in the empty JSON string", MarginCrossRepayRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginCrossRepayRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if (!jsonObj.get("repayAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossRepayRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossRepayRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossRepayRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossRepayRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossRepayRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossRepayRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossRepayRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossRepayRequest - * @throws IOException if the JSON string is invalid with respect to MarginCrossRepayRequest - */ - public static MarginCrossRepayRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossRepayRequest.class); - } - - /** - * Convert an instance of MarginCrossRepayRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayResult.java deleted file mode 100644 index 738fc2ce..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossRepayResult.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossRepayResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossRepayResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_REMAIN_DEBT_AMOUNT = "remainDebtAmount"; - @SerializedName(SERIALIZED_NAME_REMAIN_DEBT_AMOUNT) - private String remainDebtAmount; - - public static final String SERIALIZED_NAME_REPAY_AMOUNT = "repayAmount"; - @SerializedName(SERIALIZED_NAME_REPAY_AMOUNT) - private String repayAmount; - - public MarginCrossRepayResult() { - } - - public MarginCrossRepayResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginCrossRepayResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginCrossRepayResult remainDebtAmount(String remainDebtAmount) { - - this.remainDebtAmount = remainDebtAmount; - return this; - } - - /** - * Get remainDebtAmount - * @return remainDebtAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRemainDebtAmount() { - return remainDebtAmount; - } - - - public void setRemainDebtAmount(String remainDebtAmount) { - this.remainDebtAmount = remainDebtAmount; - } - - - public MarginCrossRepayResult repayAmount(String repayAmount) { - - this.repayAmount = repayAmount; - return this; - } - - /** - * Get repayAmount - * @return repayAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRepayAmount() { - return repayAmount; - } - - - public void setRepayAmount(String repayAmount) { - this.repayAmount = repayAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossRepayResult instance itself - */ - public MarginCrossRepayResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossRepayResult marginCrossRepayResult = (MarginCrossRepayResult) o; - return Objects.equals(this.clientOid, marginCrossRepayResult.clientOid) && - Objects.equals(this.coin, marginCrossRepayResult.coin) && - Objects.equals(this.remainDebtAmount, marginCrossRepayResult.remainDebtAmount) && - Objects.equals(this.repayAmount, marginCrossRepayResult.repayAmount)&& - Objects.equals(this.additionalProperties, marginCrossRepayResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, coin, remainDebtAmount, repayAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossRepayResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" remainDebtAmount: ").append(toIndentedString(remainDebtAmount)).append("\n"); - sb.append(" repayAmount: ").append(toIndentedString(repayAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("coin"); - openapiFields.add("remainDebtAmount"); - openapiFields.add("repayAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossRepayResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossRepayResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossRepayResult is not found in the empty JSON string", MarginCrossRepayResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("remainDebtAmount") != null && !jsonObj.get("remainDebtAmount").isJsonNull()) && !jsonObj.get("remainDebtAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `remainDebtAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remainDebtAmount").toString())); - } - if ((jsonObj.get("repayAmount") != null && !jsonObj.get("repayAmount").isJsonNull()) && !jsonObj.get("repayAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossRepayResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossRepayResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossRepayResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossRepayResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossRepayResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossRepayResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossRepayResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossRepayResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossRepayResult - */ - public static MarginCrossRepayResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossRepayResult.class); - } - - /** - * Convert an instance of MarginCrossRepayResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossVipResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossVipResult.java deleted file mode 100644 index cbd834c7..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginCrossVipResult.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginCrossVipResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginCrossVipResult { - public static final String SERIALIZED_NAME_DAILY_INTEREST_RATE = "dailyInterestRate"; - @SerializedName(SERIALIZED_NAME_DAILY_INTEREST_RATE) - private String dailyInterestRate; - - public static final String SERIALIZED_NAME_DISCOUNT_RATE = "discountRate"; - @SerializedName(SERIALIZED_NAME_DISCOUNT_RATE) - private String discountRate; - - public static final String SERIALIZED_NAME_LEVEL = "level"; - @SerializedName(SERIALIZED_NAME_LEVEL) - private String level; - - public static final String SERIALIZED_NAME_YEARLY_INTEREST_RATE = "yearlyInterestRate"; - @SerializedName(SERIALIZED_NAME_YEARLY_INTEREST_RATE) - private String yearlyInterestRate; - - public MarginCrossVipResult() { - } - - public MarginCrossVipResult dailyInterestRate(String dailyInterestRate) { - - this.dailyInterestRate = dailyInterestRate; - return this; - } - - /** - * Get dailyInterestRate - * @return dailyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDailyInterestRate() { - return dailyInterestRate; - } - - - public void setDailyInterestRate(String dailyInterestRate) { - this.dailyInterestRate = dailyInterestRate; - } - - - public MarginCrossVipResult discountRate(String discountRate) { - - this.discountRate = discountRate; - return this; - } - - /** - * Get discountRate - * @return discountRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDiscountRate() { - return discountRate; - } - - - public void setDiscountRate(String discountRate) { - this.discountRate = discountRate; - } - - - public MarginCrossVipResult level(String level) { - - this.level = level; - return this; - } - - /** - * Get level - * @return level - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLevel() { - return level; - } - - - public void setLevel(String level) { - this.level = level; - } - - - public MarginCrossVipResult yearlyInterestRate(String yearlyInterestRate) { - - this.yearlyInterestRate = yearlyInterestRate; - return this; - } - - /** - * Get yearlyInterestRate - * @return yearlyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getYearlyInterestRate() { - return yearlyInterestRate; - } - - - public void setYearlyInterestRate(String yearlyInterestRate) { - this.yearlyInterestRate = yearlyInterestRate; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginCrossVipResult instance itself - */ - public MarginCrossVipResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginCrossVipResult marginCrossVipResult = (MarginCrossVipResult) o; - return Objects.equals(this.dailyInterestRate, marginCrossVipResult.dailyInterestRate) && - Objects.equals(this.discountRate, marginCrossVipResult.discountRate) && - Objects.equals(this.level, marginCrossVipResult.level) && - Objects.equals(this.yearlyInterestRate, marginCrossVipResult.yearlyInterestRate)&& - Objects.equals(this.additionalProperties, marginCrossVipResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(dailyInterestRate, discountRate, level, yearlyInterestRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginCrossVipResult {\n"); - sb.append(" dailyInterestRate: ").append(toIndentedString(dailyInterestRate)).append("\n"); - sb.append(" discountRate: ").append(toIndentedString(discountRate)).append("\n"); - sb.append(" level: ").append(toIndentedString(level)).append("\n"); - sb.append(" yearlyInterestRate: ").append(toIndentedString(yearlyInterestRate)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("dailyInterestRate"); - openapiFields.add("discountRate"); - openapiFields.add("level"); - openapiFields.add("yearlyInterestRate"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginCrossVipResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginCrossVipResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginCrossVipResult is not found in the empty JSON string", MarginCrossVipResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("dailyInterestRate") != null && !jsonObj.get("dailyInterestRate").isJsonNull()) && !jsonObj.get("dailyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dailyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dailyInterestRate").toString())); - } - if ((jsonObj.get("discountRate") != null && !jsonObj.get("discountRate").isJsonNull()) && !jsonObj.get("discountRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `discountRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("discountRate").toString())); - } - if ((jsonObj.get("level") != null && !jsonObj.get("level").isJsonNull()) && !jsonObj.get("level").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `level` to be a primitive type in the JSON string but got `%s`", jsonObj.get("level").toString())); - } - if ((jsonObj.get("yearlyInterestRate") != null && !jsonObj.get("yearlyInterestRate").isJsonNull()) && !jsonObj.get("yearlyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `yearlyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("yearlyInterestRate").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginCrossVipResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginCrossVipResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginCrossVipResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginCrossVipResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginCrossVipResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginCrossVipResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginCrossVipResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginCrossVipResult - * @throws IOException if the JSON string is invalid with respect to MarginCrossVipResult - */ - public static MarginCrossVipResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginCrossVipResult.class); - } - - /** - * Convert an instance of MarginCrossVipResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfo.java deleted file mode 100644 index 77a19f24..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfo.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginInterestInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginInterestInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_INTEREST_COIN = "interestCoin"; - @SerializedName(SERIALIZED_NAME_INTEREST_COIN) - private String interestCoin; - - public static final String SERIALIZED_NAME_INTEREST_ID = "interestId"; - @SerializedName(SERIALIZED_NAME_INTEREST_ID) - private String interestId; - - public static final String SERIALIZED_NAME_INTEREST_RATE = "interestRate"; - @SerializedName(SERIALIZED_NAME_INTEREST_RATE) - private String interestRate; - - public static final String SERIALIZED_NAME_LOAN_COIN = "loanCoin"; - @SerializedName(SERIALIZED_NAME_LOAN_COIN) - private String loanCoin; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginInterestInfo() { - } - - public MarginInterestInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginInterestInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginInterestInfo interestCoin(String interestCoin) { - - this.interestCoin = interestCoin; - return this; - } - - /** - * Get interestCoin - * @return interestCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestCoin() { - return interestCoin; - } - - - public void setInterestCoin(String interestCoin) { - this.interestCoin = interestCoin; - } - - - public MarginInterestInfo interestId(String interestId) { - - this.interestId = interestId; - return this; - } - - /** - * Get interestId - * @return interestId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestId() { - return interestId; - } - - - public void setInterestId(String interestId) { - this.interestId = interestId; - } - - - public MarginInterestInfo interestRate(String interestRate) { - - this.interestRate = interestRate; - return this; - } - - /** - * Get interestRate - * @return interestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestRate() { - return interestRate; - } - - - public void setInterestRate(String interestRate) { - this.interestRate = interestRate; - } - - - public MarginInterestInfo loanCoin(String loanCoin) { - - this.loanCoin = loanCoin; - return this; - } - - /** - * Get loanCoin - * @return loanCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLoanCoin() { - return loanCoin; - } - - - public void setLoanCoin(String loanCoin) { - this.loanCoin = loanCoin; - } - - - public MarginInterestInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginInterestInfo instance itself - */ - public MarginInterestInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginInterestInfo marginInterestInfo = (MarginInterestInfo) o; - return Objects.equals(this.amount, marginInterestInfo.amount) && - Objects.equals(this.ctime, marginInterestInfo.ctime) && - Objects.equals(this.interestCoin, marginInterestInfo.interestCoin) && - Objects.equals(this.interestId, marginInterestInfo.interestId) && - Objects.equals(this.interestRate, marginInterestInfo.interestRate) && - Objects.equals(this.loanCoin, marginInterestInfo.loanCoin) && - Objects.equals(this.type, marginInterestInfo.type)&& - Objects.equals(this.additionalProperties, marginInterestInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, ctime, interestCoin, interestId, interestRate, loanCoin, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginInterestInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" interestCoin: ").append(toIndentedString(interestCoin)).append("\n"); - sb.append(" interestId: ").append(toIndentedString(interestId)).append("\n"); - sb.append(" interestRate: ").append(toIndentedString(interestRate)).append("\n"); - sb.append(" loanCoin: ").append(toIndentedString(loanCoin)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("ctime"); - openapiFields.add("interestCoin"); - openapiFields.add("interestId"); - openapiFields.add("interestRate"); - openapiFields.add("loanCoin"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginInterestInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginInterestInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginInterestInfo is not found in the empty JSON string", MarginInterestInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("interestCoin") != null && !jsonObj.get("interestCoin").isJsonNull()) && !jsonObj.get("interestCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestCoin").toString())); - } - if ((jsonObj.get("interestId") != null && !jsonObj.get("interestId").isJsonNull()) && !jsonObj.get("interestId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestId").toString())); - } - if ((jsonObj.get("interestRate") != null && !jsonObj.get("interestRate").isJsonNull()) && !jsonObj.get("interestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestRate").toString())); - } - if ((jsonObj.get("loanCoin") != null && !jsonObj.get("loanCoin").isJsonNull()) && !jsonObj.get("loanCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanCoin").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginInterestInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginInterestInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginInterestInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginInterestInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginInterestInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginInterestInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginInterestInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginInterestInfo - * @throws IOException if the JSON string is invalid with respect to MarginInterestInfo - */ - public static MarginInterestInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginInterestInfo.class); - } - - /** - * Convert an instance of MarginInterestInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfoResult.java deleted file mode 100644 index 5ec75792..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginInterestInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginInterestInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginInterestInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginInterestInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginInterestInfoResult() { - } - - public MarginInterestInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginInterestInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginInterestInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginInterestInfoResult addResultListItem(MarginInterestInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginInterestInfoResult instance itself - */ - public MarginInterestInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginInterestInfoResult marginInterestInfoResult = (MarginInterestInfoResult) o; - return Objects.equals(this.maxId, marginInterestInfoResult.maxId) && - Objects.equals(this.minId, marginInterestInfoResult.minId) && - Objects.equals(this.resultList, marginInterestInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginInterestInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginInterestInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginInterestInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginInterestInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginInterestInfoResult is not found in the empty JSON string", MarginInterestInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginInterestInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginInterestInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginInterestInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginInterestInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginInterestInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginInterestInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginInterestInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginInterestInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginInterestInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginInterestInfoResult - */ - public static MarginInterestInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginInterestInfoResult.class); - } - - /** - * Convert an instance of MarginInterestInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResult.java deleted file mode 100644 index 2c51a88e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResult.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedAssetsPopulationResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedAssetsPopulationResult { - public static final String SERIALIZED_NAME_AVAILABLE = "available"; - @SerializedName(SERIALIZED_NAME_AVAILABLE) - private String available; - - public static final String SERIALIZED_NAME_BORROW = "borrow"; - @SerializedName(SERIALIZED_NAME_BORROW) - private String borrow; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FROZEN = "frozen"; - @SerializedName(SERIALIZED_NAME_FROZEN) - private String frozen; - - public static final String SERIALIZED_NAME_INTEREST = "interest"; - @SerializedName(SERIALIZED_NAME_INTEREST) - private String interest; - - public static final String SERIALIZED_NAME_NET = "net"; - @SerializedName(SERIALIZED_NAME_NET) - private String net; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TOTAL_AMOUNT = "totalAmount"; - @SerializedName(SERIALIZED_NAME_TOTAL_AMOUNT) - private String totalAmount; - - public MarginIsolatedAssetsPopulationResult() { - } - - public MarginIsolatedAssetsPopulationResult available(String available) { - - this.available = available; - return this; - } - - /** - * Get available - * @return available - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAvailable() { - return available; - } - - - public void setAvailable(String available) { - this.available = available; - } - - - public MarginIsolatedAssetsPopulationResult borrow(String borrow) { - - this.borrow = borrow; - return this; - } - - /** - * Get borrow - * @return borrow - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBorrow() { - return borrow; - } - - - public void setBorrow(String borrow) { - this.borrow = borrow; - } - - - public MarginIsolatedAssetsPopulationResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedAssetsPopulationResult ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedAssetsPopulationResult frozen(String frozen) { - - this.frozen = frozen; - return this; - } - - /** - * Get frozen - * @return frozen - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFrozen() { - return frozen; - } - - - public void setFrozen(String frozen) { - this.frozen = frozen; - } - - - public MarginIsolatedAssetsPopulationResult interest(String interest) { - - this.interest = interest; - return this; - } - - /** - * Get interest - * @return interest - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterest() { - return interest; - } - - - public void setInterest(String interest) { - this.interest = interest; - } - - - public MarginIsolatedAssetsPopulationResult net(String net) { - - this.net = net; - return this; - } - - /** - * Get net - * @return net - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getNet() { - return net; - } - - - public void setNet(String net) { - this.net = net; - } - - - public MarginIsolatedAssetsPopulationResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedAssetsPopulationResult totalAmount(String totalAmount) { - - this.totalAmount = totalAmount; - return this; - } - - /** - * Get totalAmount - * @return totalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAmount() { - return totalAmount; - } - - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedAssetsPopulationResult instance itself - */ - public MarginIsolatedAssetsPopulationResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedAssetsPopulationResult marginIsolatedAssetsPopulationResult = (MarginIsolatedAssetsPopulationResult) o; - return Objects.equals(this.available, marginIsolatedAssetsPopulationResult.available) && - Objects.equals(this.borrow, marginIsolatedAssetsPopulationResult.borrow) && - Objects.equals(this.coin, marginIsolatedAssetsPopulationResult.coin) && - Objects.equals(this.ctime, marginIsolatedAssetsPopulationResult.ctime) && - Objects.equals(this.frozen, marginIsolatedAssetsPopulationResult.frozen) && - Objects.equals(this.interest, marginIsolatedAssetsPopulationResult.interest) && - Objects.equals(this.net, marginIsolatedAssetsPopulationResult.net) && - Objects.equals(this.symbol, marginIsolatedAssetsPopulationResult.symbol) && - Objects.equals(this.totalAmount, marginIsolatedAssetsPopulationResult.totalAmount)&& - Objects.equals(this.additionalProperties, marginIsolatedAssetsPopulationResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(available, borrow, coin, ctime, frozen, interest, net, symbol, totalAmount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedAssetsPopulationResult {\n"); - sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" borrow: ").append(toIndentedString(borrow)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" frozen: ").append(toIndentedString(frozen)).append("\n"); - sb.append(" interest: ").append(toIndentedString(interest)).append("\n"); - sb.append(" net: ").append(toIndentedString(net)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("available"); - openapiFields.add("borrow"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("frozen"); - openapiFields.add("interest"); - openapiFields.add("net"); - openapiFields.add("symbol"); - openapiFields.add("totalAmount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedAssetsPopulationResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedAssetsPopulationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedAssetsPopulationResult is not found in the empty JSON string", MarginIsolatedAssetsPopulationResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("available") != null && !jsonObj.get("available").isJsonNull()) && !jsonObj.get("available").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `available` to be a primitive type in the JSON string but got `%s`", jsonObj.get("available").toString())); - } - if ((jsonObj.get("borrow") != null && !jsonObj.get("borrow").isJsonNull()) && !jsonObj.get("borrow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrow").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("frozen") != null && !jsonObj.get("frozen").isJsonNull()) && !jsonObj.get("frozen").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `frozen` to be a primitive type in the JSON string but got `%s`", jsonObj.get("frozen").toString())); - } - if ((jsonObj.get("interest") != null && !jsonObj.get("interest").isJsonNull()) && !jsonObj.get("interest").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interest").toString())); - } - if ((jsonObj.get("net") != null && !jsonObj.get("net").isJsonNull()) && !jsonObj.get("net").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `net` to be a primitive type in the JSON string but got `%s`", jsonObj.get("net").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("totalAmount") != null && !jsonObj.get("totalAmount").isJsonNull()) && !jsonObj.get("totalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAmount").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedAssetsPopulationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedAssetsPopulationResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedAssetsPopulationResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedAssetsPopulationResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedAssetsPopulationResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedAssetsPopulationResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedAssetsPopulationResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedAssetsPopulationResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedAssetsPopulationResult - */ - public static MarginIsolatedAssetsPopulationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedAssetsPopulationResult.class); - } - - /** - * Convert an instance of MarginIsolatedAssetsPopulationResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsResult.java deleted file mode 100644 index fd8523e8..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsResult.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedAssetsResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedAssetsResult { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_MAX_TRANSFER_OUT_AMOUNT = "maxTransferOutAmount"; - @SerializedName(SERIALIZED_NAME_MAX_TRANSFER_OUT_AMOUNT) - private String maxTransferOutAmount; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedAssetsResult() { - } - - public MarginIsolatedAssetsResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedAssetsResult maxTransferOutAmount(String maxTransferOutAmount) { - - this.maxTransferOutAmount = maxTransferOutAmount; - return this; - } - - /** - * Get maxTransferOutAmount - * @return maxTransferOutAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxTransferOutAmount() { - return maxTransferOutAmount; - } - - - public void setMaxTransferOutAmount(String maxTransferOutAmount) { - this.maxTransferOutAmount = maxTransferOutAmount; - } - - - public MarginIsolatedAssetsResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedAssetsResult instance itself - */ - public MarginIsolatedAssetsResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedAssetsResult marginIsolatedAssetsResult = (MarginIsolatedAssetsResult) o; - return Objects.equals(this.coin, marginIsolatedAssetsResult.coin) && - Objects.equals(this.maxTransferOutAmount, marginIsolatedAssetsResult.maxTransferOutAmount) && - Objects.equals(this.symbol, marginIsolatedAssetsResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedAssetsResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, maxTransferOutAmount, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedAssetsResult {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" maxTransferOutAmount: ").append(toIndentedString(maxTransferOutAmount)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("maxTransferOutAmount"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedAssetsResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedAssetsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedAssetsResult is not found in the empty JSON string", MarginIsolatedAssetsResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("maxTransferOutAmount") != null && !jsonObj.get("maxTransferOutAmount").isJsonNull()) && !jsonObj.get("maxTransferOutAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxTransferOutAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxTransferOutAmount").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedAssetsResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedAssetsResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedAssetsResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedAssetsResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedAssetsResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedAssetsResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedAssetsResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedAssetsResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedAssetsResult - */ - public static MarginIsolatedAssetsResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedAssetsResult.class); - } - - /** - * Convert an instance of MarginIsolatedAssetsResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequest.java deleted file mode 100644 index 638c2a32..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequest.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedAssetsRiskRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedAssetsRiskRequest { - public static final String SERIALIZED_NAME_PAGE_NUM = "pageNum"; - @SerializedName(SERIALIZED_NAME_PAGE_NUM) - private String pageNum; - - public static final String SERIALIZED_NAME_PAGE_SIZE = "pageSize"; - @SerializedName(SERIALIZED_NAME_PAGE_SIZE) - private String pageSize; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedAssetsRiskRequest() { - } - - public MarginIsolatedAssetsRiskRequest pageNum(String pageNum) { - - this.pageNum = pageNum; - return this; - } - - /** - * pageNum - * @return pageNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "pageNum") - - public String getPageNum() { - return pageNum; - } - - - public void setPageNum(String pageNum) { - this.pageNum = pageNum; - } - - - public MarginIsolatedAssetsRiskRequest pageSize(String pageSize) { - - this.pageSize = pageSize; - return this; - } - - /** - * pageSize - * @return pageSize - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "100", value = "pageSize") - - public String getPageSize() { - return pageSize; - } - - - public void setPageSize(String pageSize) { - this.pageSize = pageSize; - } - - - public MarginIsolatedAssetsRiskRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedAssetsRiskRequest instance itself - */ - public MarginIsolatedAssetsRiskRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest = (MarginIsolatedAssetsRiskRequest) o; - return Objects.equals(this.pageNum, marginIsolatedAssetsRiskRequest.pageNum) && - Objects.equals(this.pageSize, marginIsolatedAssetsRiskRequest.pageSize) && - Objects.equals(this.symbol, marginIsolatedAssetsRiskRequest.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedAssetsRiskRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(pageNum, pageSize, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedAssetsRiskRequest {\n"); - sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); - sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pageNum"); - openapiFields.add("pageSize"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedAssetsRiskRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedAssetsRiskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedAssetsRiskRequest is not found in the empty JSON string", MarginIsolatedAssetsRiskRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginIsolatedAssetsRiskRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if ((jsonObj.get("pageNum") != null && !jsonObj.get("pageNum").isJsonNull()) && !jsonObj.get("pageNum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `pageNum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageNum").toString())); - } - if ((jsonObj.get("pageSize") != null && !jsonObj.get("pageSize").isJsonNull()) && !jsonObj.get("pageSize").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `pageSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageSize").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedAssetsRiskRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedAssetsRiskRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedAssetsRiskRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedAssetsRiskRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedAssetsRiskRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedAssetsRiskRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedAssetsRiskRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedAssetsRiskRequest - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedAssetsRiskRequest - */ - public static MarginIsolatedAssetsRiskRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedAssetsRiskRequest.class); - } - - /** - * Convert an instance of MarginIsolatedAssetsRiskRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResult.java deleted file mode 100644 index ea373365..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedAssetsRiskResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedAssetsRiskResult { - public static final String SERIALIZED_NAME_RISK_RATE = "riskRate"; - @SerializedName(SERIALIZED_NAME_RISK_RATE) - private String riskRate; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedAssetsRiskResult() { - } - - public MarginIsolatedAssetsRiskResult riskRate(String riskRate) { - - this.riskRate = riskRate; - return this; - } - - /** - * Get riskRate - * @return riskRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRiskRate() { - return riskRate; - } - - - public void setRiskRate(String riskRate) { - this.riskRate = riskRate; - } - - - public MarginIsolatedAssetsRiskResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedAssetsRiskResult instance itself - */ - public MarginIsolatedAssetsRiskResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedAssetsRiskResult marginIsolatedAssetsRiskResult = (MarginIsolatedAssetsRiskResult) o; - return Objects.equals(this.riskRate, marginIsolatedAssetsRiskResult.riskRate) && - Objects.equals(this.symbol, marginIsolatedAssetsRiskResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedAssetsRiskResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(riskRate, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedAssetsRiskResult {\n"); - sb.append(" riskRate: ").append(toIndentedString(riskRate)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("riskRate"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedAssetsRiskResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedAssetsRiskResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedAssetsRiskResult is not found in the empty JSON string", MarginIsolatedAssetsRiskResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("riskRate") != null && !jsonObj.get("riskRate").isJsonNull()) && !jsonObj.get("riskRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `riskRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("riskRate").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedAssetsRiskResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedAssetsRiskResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedAssetsRiskResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedAssetsRiskResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedAssetsRiskResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedAssetsRiskResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedAssetsRiskResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedAssetsRiskResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedAssetsRiskResult - */ - public static MarginIsolatedAssetsRiskResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedAssetsRiskResult.class); - } - - /** - * Convert an instance of MarginIsolatedAssetsRiskResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResult.java deleted file mode 100644 index c9c8e71e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResult.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedBorrowLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedBorrowLimitResult { - public static final String SERIALIZED_NAME_BORROW_AMOUNT = "borrowAmount"; - @SerializedName(SERIALIZED_NAME_BORROW_AMOUNT) - private String borrowAmount; - - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedBorrowLimitResult() { - } - - public MarginIsolatedBorrowLimitResult borrowAmount(String borrowAmount) { - - this.borrowAmount = borrowAmount; - return this; - } - - /** - * Get borrowAmount - * @return borrowAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBorrowAmount() { - return borrowAmount; - } - - - public void setBorrowAmount(String borrowAmount) { - this.borrowAmount = borrowAmount; - } - - - public MarginIsolatedBorrowLimitResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginIsolatedBorrowLimitResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedBorrowLimitResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedBorrowLimitResult instance itself - */ - public MarginIsolatedBorrowLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedBorrowLimitResult marginIsolatedBorrowLimitResult = (MarginIsolatedBorrowLimitResult) o; - return Objects.equals(this.borrowAmount, marginIsolatedBorrowLimitResult.borrowAmount) && - Objects.equals(this.clientOid, marginIsolatedBorrowLimitResult.clientOid) && - Objects.equals(this.coin, marginIsolatedBorrowLimitResult.coin) && - Objects.equals(this.symbol, marginIsolatedBorrowLimitResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedBorrowLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(borrowAmount, clientOid, coin, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedBorrowLimitResult {\n"); - sb.append(" borrowAmount: ").append(toIndentedString(borrowAmount)).append("\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("borrowAmount"); - openapiFields.add("clientOid"); - openapiFields.add("coin"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedBorrowLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedBorrowLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedBorrowLimitResult is not found in the empty JSON string", MarginIsolatedBorrowLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("borrowAmount") != null && !jsonObj.get("borrowAmount").isJsonNull()) && !jsonObj.get("borrowAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrowAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrowAmount").toString())); - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedBorrowLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedBorrowLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedBorrowLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedBorrowLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedBorrowLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedBorrowLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedBorrowLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedBorrowLimitResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedBorrowLimitResult - */ - public static MarginIsolatedBorrowLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedBorrowLimitResult.class); - } - - /** - * Convert an instance of MarginIsolatedBorrowLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfo.java deleted file mode 100644 index 326611a5..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfo.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedFinFlowInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedFinFlowInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_BALANCE = "balance"; - @SerializedName(SERIALIZED_NAME_BALANCE) - private String balance; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FEE = "fee"; - @SerializedName(SERIALIZED_NAME_FEE) - private String fee; - - public static final String SERIALIZED_NAME_MARGIN_ID = "marginId"; - @SerializedName(SERIALIZED_NAME_MARGIN_ID) - private String marginId; - - public static final String SERIALIZED_NAME_MARGIN_TYPE = "marginType"; - @SerializedName(SERIALIZED_NAME_MARGIN_TYPE) - private String marginType; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedFinFlowInfo() { - } - - public MarginIsolatedFinFlowInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginIsolatedFinFlowInfo balance(String balance) { - - this.balance = balance; - return this; - } - - /** - * Get balance - * @return balance - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBalance() { - return balance; - } - - - public void setBalance(String balance) { - this.balance = balance; - } - - - public MarginIsolatedFinFlowInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedFinFlowInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedFinFlowInfo fee(String fee) { - - this.fee = fee; - return this; - } - - /** - * Get fee - * @return fee - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFee() { - return fee; - } - - - public void setFee(String fee) { - this.fee = fee; - } - - - public MarginIsolatedFinFlowInfo marginId(String marginId) { - - this.marginId = marginId; - return this; - } - - /** - * Get marginId - * @return marginId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMarginId() { - return marginId; - } - - - public void setMarginId(String marginId) { - this.marginId = marginId; - } - - - public MarginIsolatedFinFlowInfo marginType(String marginType) { - - this.marginType = marginType; - return this; - } - - /** - * Get marginType - * @return marginType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMarginType() { - return marginType; - } - - - public void setMarginType(String marginType) { - this.marginType = marginType; - } - - - public MarginIsolatedFinFlowInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedFinFlowInfo instance itself - */ - public MarginIsolatedFinFlowInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedFinFlowInfo marginIsolatedFinFlowInfo = (MarginIsolatedFinFlowInfo) o; - return Objects.equals(this.amount, marginIsolatedFinFlowInfo.amount) && - Objects.equals(this.balance, marginIsolatedFinFlowInfo.balance) && - Objects.equals(this.coin, marginIsolatedFinFlowInfo.coin) && - Objects.equals(this.ctime, marginIsolatedFinFlowInfo.ctime) && - Objects.equals(this.fee, marginIsolatedFinFlowInfo.fee) && - Objects.equals(this.marginId, marginIsolatedFinFlowInfo.marginId) && - Objects.equals(this.marginType, marginIsolatedFinFlowInfo.marginType) && - Objects.equals(this.symbol, marginIsolatedFinFlowInfo.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedFinFlowInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, balance, coin, ctime, fee, marginId, marginType, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedFinFlowInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" balance: ").append(toIndentedString(balance)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" marginId: ").append(toIndentedString(marginId)).append("\n"); - sb.append(" marginType: ").append(toIndentedString(marginType)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("balance"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("fee"); - openapiFields.add("marginId"); - openapiFields.add("marginType"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedFinFlowInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedFinFlowInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedFinFlowInfo is not found in the empty JSON string", MarginIsolatedFinFlowInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("balance") != null && !jsonObj.get("balance").isJsonNull()) && !jsonObj.get("balance").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `balance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("balance").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("fee") != null && !jsonObj.get("fee").isJsonNull()) && !jsonObj.get("fee").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fee` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fee").toString())); - } - if ((jsonObj.get("marginId") != null && !jsonObj.get("marginId").isJsonNull()) && !jsonObj.get("marginId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `marginId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marginId").toString())); - } - if ((jsonObj.get("marginType") != null && !jsonObj.get("marginType").isJsonNull()) && !jsonObj.get("marginType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `marginType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("marginType").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedFinFlowInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedFinFlowInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedFinFlowInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedFinFlowInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedFinFlowInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedFinFlowInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedFinFlowInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedFinFlowInfo - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedFinFlowInfo - */ - public static MarginIsolatedFinFlowInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedFinFlowInfo.class); - } - - /** - * Convert an instance of MarginIsolatedFinFlowInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowResult.java deleted file mode 100644 index bdd9f94d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedFinFlowResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedFinFlowInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedFinFlowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedFinFlowResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginIsolatedFinFlowResult() { - } - - public MarginIsolatedFinFlowResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginIsolatedFinFlowResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginIsolatedFinFlowResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginIsolatedFinFlowResult addResultListItem(MarginIsolatedFinFlowInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedFinFlowResult instance itself - */ - public MarginIsolatedFinFlowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedFinFlowResult marginIsolatedFinFlowResult = (MarginIsolatedFinFlowResult) o; - return Objects.equals(this.maxId, marginIsolatedFinFlowResult.maxId) && - Objects.equals(this.minId, marginIsolatedFinFlowResult.minId) && - Objects.equals(this.resultList, marginIsolatedFinFlowResult.resultList)&& - Objects.equals(this.additionalProperties, marginIsolatedFinFlowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedFinFlowResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedFinFlowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedFinFlowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedFinFlowResult is not found in the empty JSON string", MarginIsolatedFinFlowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginIsolatedFinFlowInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedFinFlowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedFinFlowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedFinFlowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedFinFlowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedFinFlowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedFinFlowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedFinFlowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedFinFlowResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedFinFlowResult - */ - public static MarginIsolatedFinFlowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedFinFlowResult.class); - } - - /** - * Convert an instance of MarginIsolatedFinFlowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfo.java deleted file mode 100644 index 6037bd77..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfo.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedInterestInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedInterestInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_INTEREST_COIN = "interestCoin"; - @SerializedName(SERIALIZED_NAME_INTEREST_COIN) - private String interestCoin; - - public static final String SERIALIZED_NAME_INTEREST_ID = "interestId"; - @SerializedName(SERIALIZED_NAME_INTEREST_ID) - private String interestId; - - public static final String SERIALIZED_NAME_INTEREST_RATE = "interestRate"; - @SerializedName(SERIALIZED_NAME_INTEREST_RATE) - private String interestRate; - - public static final String SERIALIZED_NAME_LOAN_COIN = "loanCoin"; - @SerializedName(SERIALIZED_NAME_LOAN_COIN) - private String loanCoin; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginIsolatedInterestInfo() { - } - - public MarginIsolatedInterestInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginIsolatedInterestInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedInterestInfo interestCoin(String interestCoin) { - - this.interestCoin = interestCoin; - return this; - } - - /** - * Get interestCoin - * @return interestCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestCoin() { - return interestCoin; - } - - - public void setInterestCoin(String interestCoin) { - this.interestCoin = interestCoin; - } - - - public MarginIsolatedInterestInfo interestId(String interestId) { - - this.interestId = interestId; - return this; - } - - /** - * Get interestId - * @return interestId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestId() { - return interestId; - } - - - public void setInterestId(String interestId) { - this.interestId = interestId; - } - - - public MarginIsolatedInterestInfo interestRate(String interestRate) { - - this.interestRate = interestRate; - return this; - } - - /** - * Get interestRate - * @return interestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterestRate() { - return interestRate; - } - - - public void setInterestRate(String interestRate) { - this.interestRate = interestRate; - } - - - public MarginIsolatedInterestInfo loanCoin(String loanCoin) { - - this.loanCoin = loanCoin; - return this; - } - - /** - * Get loanCoin - * @return loanCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLoanCoin() { - return loanCoin; - } - - - public void setLoanCoin(String loanCoin) { - this.loanCoin = loanCoin; - } - - - public MarginIsolatedInterestInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedInterestInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedInterestInfo instance itself - */ - public MarginIsolatedInterestInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedInterestInfo marginIsolatedInterestInfo = (MarginIsolatedInterestInfo) o; - return Objects.equals(this.amount, marginIsolatedInterestInfo.amount) && - Objects.equals(this.ctime, marginIsolatedInterestInfo.ctime) && - Objects.equals(this.interestCoin, marginIsolatedInterestInfo.interestCoin) && - Objects.equals(this.interestId, marginIsolatedInterestInfo.interestId) && - Objects.equals(this.interestRate, marginIsolatedInterestInfo.interestRate) && - Objects.equals(this.loanCoin, marginIsolatedInterestInfo.loanCoin) && - Objects.equals(this.symbol, marginIsolatedInterestInfo.symbol) && - Objects.equals(this.type, marginIsolatedInterestInfo.type)&& - Objects.equals(this.additionalProperties, marginIsolatedInterestInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, ctime, interestCoin, interestId, interestRate, loanCoin, symbol, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedInterestInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" interestCoin: ").append(toIndentedString(interestCoin)).append("\n"); - sb.append(" interestId: ").append(toIndentedString(interestId)).append("\n"); - sb.append(" interestRate: ").append(toIndentedString(interestRate)).append("\n"); - sb.append(" loanCoin: ").append(toIndentedString(loanCoin)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("ctime"); - openapiFields.add("interestCoin"); - openapiFields.add("interestId"); - openapiFields.add("interestRate"); - openapiFields.add("loanCoin"); - openapiFields.add("symbol"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedInterestInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedInterestInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedInterestInfo is not found in the empty JSON string", MarginIsolatedInterestInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("interestCoin") != null && !jsonObj.get("interestCoin").isJsonNull()) && !jsonObj.get("interestCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestCoin").toString())); - } - if ((jsonObj.get("interestId") != null && !jsonObj.get("interestId").isJsonNull()) && !jsonObj.get("interestId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestId").toString())); - } - if ((jsonObj.get("interestRate") != null && !jsonObj.get("interestRate").isJsonNull()) && !jsonObj.get("interestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interestRate").toString())); - } - if ((jsonObj.get("loanCoin") != null && !jsonObj.get("loanCoin").isJsonNull()) && !jsonObj.get("loanCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanCoin").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedInterestInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedInterestInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedInterestInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedInterestInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedInterestInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedInterestInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedInterestInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedInterestInfo - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedInterestInfo - */ - public static MarginIsolatedInterestInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedInterestInfo.class); - } - - /** - * Convert an instance of MarginIsolatedInterestInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResult.java deleted file mode 100644 index 309c6d17..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedInterestInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedInterestInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedInterestInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginIsolatedInterestInfoResult() { - } - - public MarginIsolatedInterestInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginIsolatedInterestInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginIsolatedInterestInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginIsolatedInterestInfoResult addResultListItem(MarginIsolatedInterestInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedInterestInfoResult instance itself - */ - public MarginIsolatedInterestInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedInterestInfoResult marginIsolatedInterestInfoResult = (MarginIsolatedInterestInfoResult) o; - return Objects.equals(this.maxId, marginIsolatedInterestInfoResult.maxId) && - Objects.equals(this.minId, marginIsolatedInterestInfoResult.minId) && - Objects.equals(this.resultList, marginIsolatedInterestInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginIsolatedInterestInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedInterestInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedInterestInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedInterestInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedInterestInfoResult is not found in the empty JSON string", MarginIsolatedInterestInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginIsolatedInterestInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedInterestInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedInterestInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedInterestInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedInterestInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedInterestInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedInterestInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedInterestInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedInterestInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedInterestInfoResult - */ - public static MarginIsolatedInterestInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedInterestInfoResult.class); - } - - /** - * Convert an instance of MarginIsolatedInterestInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLevelResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLevelResult.java deleted file mode 100644 index 679a2a52..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLevelResult.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLevelResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLevelResult { - public static final String SERIALIZED_NAME_BASE_COIN = "baseCoin"; - @SerializedName(SERIALIZED_NAME_BASE_COIN) - private String baseCoin; - - public static final String SERIALIZED_NAME_BASE_MAX_BORROWABLE_AMOUNT = "baseMaxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_BASE_MAX_BORROWABLE_AMOUNT) - private String baseMaxBorrowableAmount; - - public static final String SERIALIZED_NAME_INIT_RATE = "initRate"; - @SerializedName(SERIALIZED_NAME_INIT_RATE) - private String initRate; - - public static final String SERIALIZED_NAME_LEVERAGE = "leverage"; - @SerializedName(SERIALIZED_NAME_LEVERAGE) - private String leverage; - - public static final String SERIALIZED_NAME_MAINTAIN_MARGIN_RATE = "maintainMarginRate"; - @SerializedName(SERIALIZED_NAME_MAINTAIN_MARGIN_RATE) - private String maintainMarginRate; - - public static final String SERIALIZED_NAME_QUOTE_COIN = "quoteCoin"; - @SerializedName(SERIALIZED_NAME_QUOTE_COIN) - private String quoteCoin; - - public static final String SERIALIZED_NAME_QUOTE_MAX_BORROWABLE_AMOUNT = "quoteMaxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_QUOTE_MAX_BORROWABLE_AMOUNT) - private String quoteMaxBorrowableAmount; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TIER = "tier"; - @SerializedName(SERIALIZED_NAME_TIER) - private String tier; - - public MarginIsolatedLevelResult() { - } - - public MarginIsolatedLevelResult baseCoin(String baseCoin) { - - this.baseCoin = baseCoin; - return this; - } - - /** - * Get baseCoin - * @return baseCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseCoin() { - return baseCoin; - } - - - public void setBaseCoin(String baseCoin) { - this.baseCoin = baseCoin; - } - - - public MarginIsolatedLevelResult baseMaxBorrowableAmount(String baseMaxBorrowableAmount) { - - this.baseMaxBorrowableAmount = baseMaxBorrowableAmount; - return this; - } - - /** - * Get baseMaxBorrowableAmount - * @return baseMaxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseMaxBorrowableAmount() { - return baseMaxBorrowableAmount; - } - - - public void setBaseMaxBorrowableAmount(String baseMaxBorrowableAmount) { - this.baseMaxBorrowableAmount = baseMaxBorrowableAmount; - } - - - public MarginIsolatedLevelResult initRate(String initRate) { - - this.initRate = initRate; - return this; - } - - /** - * Get initRate - * @return initRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInitRate() { - return initRate; - } - - - public void setInitRate(String initRate) { - this.initRate = initRate; - } - - - public MarginIsolatedLevelResult leverage(String leverage) { - - this.leverage = leverage; - return this; - } - - /** - * Get leverage - * @return leverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLeverage() { - return leverage; - } - - - public void setLeverage(String leverage) { - this.leverage = leverage; - } - - - public MarginIsolatedLevelResult maintainMarginRate(String maintainMarginRate) { - - this.maintainMarginRate = maintainMarginRate; - return this; - } - - /** - * Get maintainMarginRate - * @return maintainMarginRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaintainMarginRate() { - return maintainMarginRate; - } - - - public void setMaintainMarginRate(String maintainMarginRate) { - this.maintainMarginRate = maintainMarginRate; - } - - - public MarginIsolatedLevelResult quoteCoin(String quoteCoin) { - - this.quoteCoin = quoteCoin; - return this; - } - - /** - * Get quoteCoin - * @return quoteCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteCoin() { - return quoteCoin; - } - - - public void setQuoteCoin(String quoteCoin) { - this.quoteCoin = quoteCoin; - } - - - public MarginIsolatedLevelResult quoteMaxBorrowableAmount(String quoteMaxBorrowableAmount) { - - this.quoteMaxBorrowableAmount = quoteMaxBorrowableAmount; - return this; - } - - /** - * Get quoteMaxBorrowableAmount - * @return quoteMaxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteMaxBorrowableAmount() { - return quoteMaxBorrowableAmount; - } - - - public void setQuoteMaxBorrowableAmount(String quoteMaxBorrowableAmount) { - this.quoteMaxBorrowableAmount = quoteMaxBorrowableAmount; - } - - - public MarginIsolatedLevelResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedLevelResult tier(String tier) { - - this.tier = tier; - return this; - } - - /** - * Get tier - * @return tier - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTier() { - return tier; - } - - - public void setTier(String tier) { - this.tier = tier; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLevelResult instance itself - */ - public MarginIsolatedLevelResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLevelResult marginIsolatedLevelResult = (MarginIsolatedLevelResult) o; - return Objects.equals(this.baseCoin, marginIsolatedLevelResult.baseCoin) && - Objects.equals(this.baseMaxBorrowableAmount, marginIsolatedLevelResult.baseMaxBorrowableAmount) && - Objects.equals(this.initRate, marginIsolatedLevelResult.initRate) && - Objects.equals(this.leverage, marginIsolatedLevelResult.leverage) && - Objects.equals(this.maintainMarginRate, marginIsolatedLevelResult.maintainMarginRate) && - Objects.equals(this.quoteCoin, marginIsolatedLevelResult.quoteCoin) && - Objects.equals(this.quoteMaxBorrowableAmount, marginIsolatedLevelResult.quoteMaxBorrowableAmount) && - Objects.equals(this.symbol, marginIsolatedLevelResult.symbol) && - Objects.equals(this.tier, marginIsolatedLevelResult.tier)&& - Objects.equals(this.additionalProperties, marginIsolatedLevelResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(baseCoin, baseMaxBorrowableAmount, initRate, leverage, maintainMarginRate, quoteCoin, quoteMaxBorrowableAmount, symbol, tier, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLevelResult {\n"); - sb.append(" baseCoin: ").append(toIndentedString(baseCoin)).append("\n"); - sb.append(" baseMaxBorrowableAmount: ").append(toIndentedString(baseMaxBorrowableAmount)).append("\n"); - sb.append(" initRate: ").append(toIndentedString(initRate)).append("\n"); - sb.append(" leverage: ").append(toIndentedString(leverage)).append("\n"); - sb.append(" maintainMarginRate: ").append(toIndentedString(maintainMarginRate)).append("\n"); - sb.append(" quoteCoin: ").append(toIndentedString(quoteCoin)).append("\n"); - sb.append(" quoteMaxBorrowableAmount: ").append(toIndentedString(quoteMaxBorrowableAmount)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" tier: ").append(toIndentedString(tier)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("baseCoin"); - openapiFields.add("baseMaxBorrowableAmount"); - openapiFields.add("initRate"); - openapiFields.add("leverage"); - openapiFields.add("maintainMarginRate"); - openapiFields.add("quoteCoin"); - openapiFields.add("quoteMaxBorrowableAmount"); - openapiFields.add("symbol"); - openapiFields.add("tier"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLevelResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLevelResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLevelResult is not found in the empty JSON string", MarginIsolatedLevelResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("baseCoin") != null && !jsonObj.get("baseCoin").isJsonNull()) && !jsonObj.get("baseCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseCoin").toString())); - } - if ((jsonObj.get("baseMaxBorrowableAmount") != null && !jsonObj.get("baseMaxBorrowableAmount").isJsonNull()) && !jsonObj.get("baseMaxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseMaxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseMaxBorrowableAmount").toString())); - } - if ((jsonObj.get("initRate") != null && !jsonObj.get("initRate").isJsonNull()) && !jsonObj.get("initRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `initRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("initRate").toString())); - } - if ((jsonObj.get("leverage") != null && !jsonObj.get("leverage").isJsonNull()) && !jsonObj.get("leverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leverage").toString())); - } - if ((jsonObj.get("maintainMarginRate") != null && !jsonObj.get("maintainMarginRate").isJsonNull()) && !jsonObj.get("maintainMarginRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maintainMarginRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maintainMarginRate").toString())); - } - if ((jsonObj.get("quoteCoin") != null && !jsonObj.get("quoteCoin").isJsonNull()) && !jsonObj.get("quoteCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteCoin").toString())); - } - if ((jsonObj.get("quoteMaxBorrowableAmount") != null && !jsonObj.get("quoteMaxBorrowableAmount").isJsonNull()) && !jsonObj.get("quoteMaxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteMaxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteMaxBorrowableAmount").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("tier") != null && !jsonObj.get("tier").isJsonNull()) && !jsonObj.get("tier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tier").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLevelResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLevelResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLevelResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLevelResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLevelResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLevelResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLevelResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLevelResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLevelResult - */ - public static MarginIsolatedLevelResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLevelResult.class); - } - - /** - * Convert an instance of MarginIsolatedLevelResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLimitRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLimitRequest.java deleted file mode 100644 index 047a484f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLimitRequest.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLimitRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLimitRequest { - public static final String SERIALIZED_NAME_BORROW_AMOUNT = "borrowAmount"; - @SerializedName(SERIALIZED_NAME_BORROW_AMOUNT) - private String borrowAmount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedLimitRequest() { - } - - public MarginIsolatedLimitRequest borrowAmount(String borrowAmount) { - - this.borrowAmount = borrowAmount; - return this; - } - - /** - * borrowAmount - * @return borrowAmount - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1.0", required = true, value = "borrowAmount") - - public String getBorrowAmount() { - return borrowAmount; - } - - - public void setBorrowAmount(String borrowAmount) { - this.borrowAmount = borrowAmount; - } - - - public MarginIsolatedLimitRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedLimitRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLimitRequest instance itself - */ - public MarginIsolatedLimitRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLimitRequest marginIsolatedLimitRequest = (MarginIsolatedLimitRequest) o; - return Objects.equals(this.borrowAmount, marginIsolatedLimitRequest.borrowAmount) && - Objects.equals(this.coin, marginIsolatedLimitRequest.coin) && - Objects.equals(this.symbol, marginIsolatedLimitRequest.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedLimitRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(borrowAmount, coin, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLimitRequest {\n"); - sb.append(" borrowAmount: ").append(toIndentedString(borrowAmount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("borrowAmount"); - openapiFields.add("coin"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("borrowAmount"); - openapiRequiredFields.add("coin"); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLimitRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLimitRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLimitRequest is not found in the empty JSON string", MarginIsolatedLimitRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginIsolatedLimitRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("borrowAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `borrowAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("borrowAmount").toString())); - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLimitRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLimitRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLimitRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLimitRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLimitRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLimitRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLimitRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLimitRequest - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLimitRequest - */ - public static MarginIsolatedLimitRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLimitRequest.class); - } - - /** - * Convert an instance of MarginIsolatedLimitRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfo.java deleted file mode 100644 index 53d0683f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfo.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLiquidationInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLiquidationInfo { - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_LIQ_END_TIME = "liqEndTime"; - @SerializedName(SERIALIZED_NAME_LIQ_END_TIME) - private String liqEndTime; - - public static final String SERIALIZED_NAME_LIQ_FEE = "liqFee"; - @SerializedName(SERIALIZED_NAME_LIQ_FEE) - private String liqFee; - - public static final String SERIALIZED_NAME_LIQ_ID = "liqId"; - @SerializedName(SERIALIZED_NAME_LIQ_ID) - private String liqId; - - public static final String SERIALIZED_NAME_LIQ_RISK = "liqRisk"; - @SerializedName(SERIALIZED_NAME_LIQ_RISK) - private String liqRisk; - - public static final String SERIALIZED_NAME_LIQ_START_TIME = "liqStartTime"; - @SerializedName(SERIALIZED_NAME_LIQ_START_TIME) - private String liqStartTime; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TOTAL_ASSETS = "totalAssets"; - @SerializedName(SERIALIZED_NAME_TOTAL_ASSETS) - private String totalAssets; - - public static final String SERIALIZED_NAME_TOTAL_DEBT = "totalDebt"; - @SerializedName(SERIALIZED_NAME_TOTAL_DEBT) - private String totalDebt; - - public MarginIsolatedLiquidationInfo() { - } - - public MarginIsolatedLiquidationInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedLiquidationInfo liqEndTime(String liqEndTime) { - - this.liqEndTime = liqEndTime; - return this; - } - - /** - * Get liqEndTime - * @return liqEndTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqEndTime() { - return liqEndTime; - } - - - public void setLiqEndTime(String liqEndTime) { - this.liqEndTime = liqEndTime; - } - - - public MarginIsolatedLiquidationInfo liqFee(String liqFee) { - - this.liqFee = liqFee; - return this; - } - - /** - * Get liqFee - * @return liqFee - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqFee() { - return liqFee; - } - - - public void setLiqFee(String liqFee) { - this.liqFee = liqFee; - } - - - public MarginIsolatedLiquidationInfo liqId(String liqId) { - - this.liqId = liqId; - return this; - } - - /** - * Get liqId - * @return liqId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqId() { - return liqId; - } - - - public void setLiqId(String liqId) { - this.liqId = liqId; - } - - - public MarginIsolatedLiquidationInfo liqRisk(String liqRisk) { - - this.liqRisk = liqRisk; - return this; - } - - /** - * Get liqRisk - * @return liqRisk - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqRisk() { - return liqRisk; - } - - - public void setLiqRisk(String liqRisk) { - this.liqRisk = liqRisk; - } - - - public MarginIsolatedLiquidationInfo liqStartTime(String liqStartTime) { - - this.liqStartTime = liqStartTime; - return this; - } - - /** - * Get liqStartTime - * @return liqStartTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqStartTime() { - return liqStartTime; - } - - - public void setLiqStartTime(String liqStartTime) { - this.liqStartTime = liqStartTime; - } - - - public MarginIsolatedLiquidationInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedLiquidationInfo totalAssets(String totalAssets) { - - this.totalAssets = totalAssets; - return this; - } - - /** - * Get totalAssets - * @return totalAssets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAssets() { - return totalAssets; - } - - - public void setTotalAssets(String totalAssets) { - this.totalAssets = totalAssets; - } - - - public MarginIsolatedLiquidationInfo totalDebt(String totalDebt) { - - this.totalDebt = totalDebt; - return this; - } - - /** - * Get totalDebt - * @return totalDebt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalDebt() { - return totalDebt; - } - - - public void setTotalDebt(String totalDebt) { - this.totalDebt = totalDebt; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLiquidationInfo instance itself - */ - public MarginIsolatedLiquidationInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLiquidationInfo marginIsolatedLiquidationInfo = (MarginIsolatedLiquidationInfo) o; - return Objects.equals(this.ctime, marginIsolatedLiquidationInfo.ctime) && - Objects.equals(this.liqEndTime, marginIsolatedLiquidationInfo.liqEndTime) && - Objects.equals(this.liqFee, marginIsolatedLiquidationInfo.liqFee) && - Objects.equals(this.liqId, marginIsolatedLiquidationInfo.liqId) && - Objects.equals(this.liqRisk, marginIsolatedLiquidationInfo.liqRisk) && - Objects.equals(this.liqStartTime, marginIsolatedLiquidationInfo.liqStartTime) && - Objects.equals(this.symbol, marginIsolatedLiquidationInfo.symbol) && - Objects.equals(this.totalAssets, marginIsolatedLiquidationInfo.totalAssets) && - Objects.equals(this.totalDebt, marginIsolatedLiquidationInfo.totalDebt)&& - Objects.equals(this.additionalProperties, marginIsolatedLiquidationInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(ctime, liqEndTime, liqFee, liqId, liqRisk, liqStartTime, symbol, totalAssets, totalDebt, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLiquidationInfo {\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" liqEndTime: ").append(toIndentedString(liqEndTime)).append("\n"); - sb.append(" liqFee: ").append(toIndentedString(liqFee)).append("\n"); - sb.append(" liqId: ").append(toIndentedString(liqId)).append("\n"); - sb.append(" liqRisk: ").append(toIndentedString(liqRisk)).append("\n"); - sb.append(" liqStartTime: ").append(toIndentedString(liqStartTime)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" totalAssets: ").append(toIndentedString(totalAssets)).append("\n"); - sb.append(" totalDebt: ").append(toIndentedString(totalDebt)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ctime"); - openapiFields.add("liqEndTime"); - openapiFields.add("liqFee"); - openapiFields.add("liqId"); - openapiFields.add("liqRisk"); - openapiFields.add("liqStartTime"); - openapiFields.add("symbol"); - openapiFields.add("totalAssets"); - openapiFields.add("totalDebt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLiquidationInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLiquidationInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLiquidationInfo is not found in the empty JSON string", MarginIsolatedLiquidationInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("liqEndTime") != null && !jsonObj.get("liqEndTime").isJsonNull()) && !jsonObj.get("liqEndTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqEndTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqEndTime").toString())); - } - if ((jsonObj.get("liqFee") != null && !jsonObj.get("liqFee").isJsonNull()) && !jsonObj.get("liqFee").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqFee` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqFee").toString())); - } - if ((jsonObj.get("liqId") != null && !jsonObj.get("liqId").isJsonNull()) && !jsonObj.get("liqId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqId").toString())); - } - if ((jsonObj.get("liqRisk") != null && !jsonObj.get("liqRisk").isJsonNull()) && !jsonObj.get("liqRisk").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqRisk` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqRisk").toString())); - } - if ((jsonObj.get("liqStartTime") != null && !jsonObj.get("liqStartTime").isJsonNull()) && !jsonObj.get("liqStartTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqStartTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqStartTime").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("totalAssets") != null && !jsonObj.get("totalAssets").isJsonNull()) && !jsonObj.get("totalAssets").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAssets` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAssets").toString())); - } - if ((jsonObj.get("totalDebt") != null && !jsonObj.get("totalDebt").isJsonNull()) && !jsonObj.get("totalDebt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalDebt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalDebt").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLiquidationInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLiquidationInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLiquidationInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLiquidationInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLiquidationInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLiquidationInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLiquidationInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLiquidationInfo - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLiquidationInfo - */ - public static MarginIsolatedLiquidationInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLiquidationInfo.class); - } - - /** - * Convert an instance of MarginIsolatedLiquidationInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResult.java deleted file mode 100644 index 41c86646..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedLiquidationInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLiquidationInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLiquidationInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginIsolatedLiquidationInfoResult() { - } - - public MarginIsolatedLiquidationInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginIsolatedLiquidationInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginIsolatedLiquidationInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginIsolatedLiquidationInfoResult addResultListItem(MarginIsolatedLiquidationInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLiquidationInfoResult instance itself - */ - public MarginIsolatedLiquidationInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLiquidationInfoResult marginIsolatedLiquidationInfoResult = (MarginIsolatedLiquidationInfoResult) o; - return Objects.equals(this.maxId, marginIsolatedLiquidationInfoResult.maxId) && - Objects.equals(this.minId, marginIsolatedLiquidationInfoResult.minId) && - Objects.equals(this.resultList, marginIsolatedLiquidationInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginIsolatedLiquidationInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLiquidationInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLiquidationInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLiquidationInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLiquidationInfoResult is not found in the empty JSON string", MarginIsolatedLiquidationInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginIsolatedLiquidationInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLiquidationInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLiquidationInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLiquidationInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLiquidationInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLiquidationInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLiquidationInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLiquidationInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLiquidationInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLiquidationInfoResult - */ - public static MarginIsolatedLiquidationInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLiquidationInfoResult.class); - } - - /** - * Convert an instance of MarginIsolatedLiquidationInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfo.java deleted file mode 100644 index ba287d4a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfo.java +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLoanInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLoanInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_LOAN_ID = "loanId"; - @SerializedName(SERIALIZED_NAME_LOAN_ID) - private String loanId; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginIsolatedLoanInfo() { - } - - public MarginIsolatedLoanInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginIsolatedLoanInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedLoanInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedLoanInfo loanId(String loanId) { - - this.loanId = loanId; - return this; - } - - /** - * Get loanId - * @return loanId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLoanId() { - return loanId; - } - - - public void setLoanId(String loanId) { - this.loanId = loanId; - } - - - public MarginIsolatedLoanInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedLoanInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLoanInfo instance itself - */ - public MarginIsolatedLoanInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLoanInfo marginIsolatedLoanInfo = (MarginIsolatedLoanInfo) o; - return Objects.equals(this.amount, marginIsolatedLoanInfo.amount) && - Objects.equals(this.coin, marginIsolatedLoanInfo.coin) && - Objects.equals(this.ctime, marginIsolatedLoanInfo.ctime) && - Objects.equals(this.loanId, marginIsolatedLoanInfo.loanId) && - Objects.equals(this.symbol, marginIsolatedLoanInfo.symbol) && - Objects.equals(this.type, marginIsolatedLoanInfo.type)&& - Objects.equals(this.additionalProperties, marginIsolatedLoanInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, coin, ctime, loanId, symbol, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLoanInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" loanId: ").append(toIndentedString(loanId)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("loanId"); - openapiFields.add("symbol"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLoanInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLoanInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLoanInfo is not found in the empty JSON string", MarginIsolatedLoanInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("loanId") != null && !jsonObj.get("loanId").isJsonNull()) && !jsonObj.get("loanId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanId").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLoanInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLoanInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLoanInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLoanInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLoanInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLoanInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLoanInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLoanInfo - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLoanInfo - */ - public static MarginIsolatedLoanInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLoanInfo.class); - } - - /** - * Convert an instance of MarginIsolatedLoanInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResult.java deleted file mode 100644 index b84a215d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedLoanInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedLoanInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedLoanInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginIsolatedLoanInfoResult() { - } - - public MarginIsolatedLoanInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginIsolatedLoanInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginIsolatedLoanInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginIsolatedLoanInfoResult addResultListItem(MarginIsolatedLoanInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedLoanInfoResult instance itself - */ - public MarginIsolatedLoanInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedLoanInfoResult marginIsolatedLoanInfoResult = (MarginIsolatedLoanInfoResult) o; - return Objects.equals(this.maxId, marginIsolatedLoanInfoResult.maxId) && - Objects.equals(this.minId, marginIsolatedLoanInfoResult.minId) && - Objects.equals(this.resultList, marginIsolatedLoanInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginIsolatedLoanInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedLoanInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedLoanInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedLoanInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedLoanInfoResult is not found in the empty JSON string", MarginIsolatedLoanInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginIsolatedLoanInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedLoanInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedLoanInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedLoanInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedLoanInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedLoanInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedLoanInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedLoanInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedLoanInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedLoanInfoResult - */ - public static MarginIsolatedLoanInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedLoanInfoResult.class); - } - - /** - * Convert an instance of MarginIsolatedLoanInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequest.java deleted file mode 100644 index 02178c1e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequest.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedMaxBorrowRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedMaxBorrowRequest { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedMaxBorrowRequest() { - } - - public MarginIsolatedMaxBorrowRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedMaxBorrowRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedMaxBorrowRequest instance itself - */ - public MarginIsolatedMaxBorrowRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest = (MarginIsolatedMaxBorrowRequest) o; - return Objects.equals(this.coin, marginIsolatedMaxBorrowRequest.coin) && - Objects.equals(this.symbol, marginIsolatedMaxBorrowRequest.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedMaxBorrowRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedMaxBorrowRequest {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("coin"); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedMaxBorrowRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedMaxBorrowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedMaxBorrowRequest is not found in the empty JSON string", MarginIsolatedMaxBorrowRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginIsolatedMaxBorrowRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedMaxBorrowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedMaxBorrowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedMaxBorrowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedMaxBorrowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedMaxBorrowRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedMaxBorrowRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedMaxBorrowRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedMaxBorrowRequest - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedMaxBorrowRequest - */ - public static MarginIsolatedMaxBorrowRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedMaxBorrowRequest.class); - } - - /** - * Convert an instance of MarginIsolatedMaxBorrowRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResult.java deleted file mode 100644 index b5e7322d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResult.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedMaxBorrowResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedMaxBorrowResult { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT = "maxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_MAX_BORROWABLE_AMOUNT) - private String maxBorrowableAmount; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedMaxBorrowResult() { - } - - public MarginIsolatedMaxBorrowResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedMaxBorrowResult maxBorrowableAmount(String maxBorrowableAmount) { - - this.maxBorrowableAmount = maxBorrowableAmount; - return this; - } - - /** - * Get maxBorrowableAmount - * @return maxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxBorrowableAmount() { - return maxBorrowableAmount; - } - - - public void setMaxBorrowableAmount(String maxBorrowableAmount) { - this.maxBorrowableAmount = maxBorrowableAmount; - } - - - public MarginIsolatedMaxBorrowResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedMaxBorrowResult instance itself - */ - public MarginIsolatedMaxBorrowResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedMaxBorrowResult marginIsolatedMaxBorrowResult = (MarginIsolatedMaxBorrowResult) o; - return Objects.equals(this.coin, marginIsolatedMaxBorrowResult.coin) && - Objects.equals(this.maxBorrowableAmount, marginIsolatedMaxBorrowResult.maxBorrowableAmount) && - Objects.equals(this.symbol, marginIsolatedMaxBorrowResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedMaxBorrowResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, maxBorrowableAmount, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedMaxBorrowResult {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" maxBorrowableAmount: ").append(toIndentedString(maxBorrowableAmount)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("maxBorrowableAmount"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedMaxBorrowResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedMaxBorrowResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedMaxBorrowResult is not found in the empty JSON string", MarginIsolatedMaxBorrowResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("maxBorrowableAmount") != null && !jsonObj.get("maxBorrowableAmount").isJsonNull()) && !jsonObj.get("maxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxBorrowableAmount").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedMaxBorrowResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedMaxBorrowResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedMaxBorrowResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedMaxBorrowResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedMaxBorrowResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedMaxBorrowResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedMaxBorrowResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedMaxBorrowResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedMaxBorrowResult - */ - public static MarginIsolatedMaxBorrowResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedMaxBorrowResult.class); - } - - /** - * Convert an instance of MarginIsolatedMaxBorrowResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResult.java deleted file mode 100644 index 4bc0fd4f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResult.java +++ /dev/null @@ -1,807 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedVipResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedRateAndLimitResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedRateAndLimitResult { - public static final String SERIALIZED_NAME_BASE_BORROW_ABLE = "baseBorrowAble"; - @SerializedName(SERIALIZED_NAME_BASE_BORROW_ABLE) - private Boolean baseBorrowAble; - - public static final String SERIALIZED_NAME_BASE_COIN = "baseCoin"; - @SerializedName(SERIALIZED_NAME_BASE_COIN) - private String baseCoin; - - public static final String SERIALIZED_NAME_BASE_DAILY_INTEREST_RATE = "baseDailyInterestRate"; - @SerializedName(SERIALIZED_NAME_BASE_DAILY_INTEREST_RATE) - private String baseDailyInterestRate; - - public static final String SERIALIZED_NAME_BASE_MAX_BORROWABLE_AMOUNT = "baseMaxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_BASE_MAX_BORROWABLE_AMOUNT) - private String baseMaxBorrowableAmount; - - public static final String SERIALIZED_NAME_BASE_TRANSFER_IN_ABLE = "baseTransferInAble"; - @SerializedName(SERIALIZED_NAME_BASE_TRANSFER_IN_ABLE) - private Boolean baseTransferInAble; - - public static final String SERIALIZED_NAME_BASE_VIPS = "baseVips"; - @SerializedName(SERIALIZED_NAME_BASE_VIPS) - private List baseVips = null; - - public static final String SERIALIZED_NAME_BASE_YEARLY_INTEREST_RATE = "baseYearlyInterestRate"; - @SerializedName(SERIALIZED_NAME_BASE_YEARLY_INTEREST_RATE) - private String baseYearlyInterestRate; - - public static final String SERIALIZED_NAME_LEVERAGE = "leverage"; - @SerializedName(SERIALIZED_NAME_LEVERAGE) - private String leverage; - - public static final String SERIALIZED_NAME_QUOTE_BORROW_ABLE = "quoteBorrowAble"; - @SerializedName(SERIALIZED_NAME_QUOTE_BORROW_ABLE) - private Boolean quoteBorrowAble; - - public static final String SERIALIZED_NAME_QUOTE_COIN = "quoteCoin"; - @SerializedName(SERIALIZED_NAME_QUOTE_COIN) - private String quoteCoin; - - public static final String SERIALIZED_NAME_QUOTE_DAILY_INTEREST_RATE = "quoteDailyInterestRate"; - @SerializedName(SERIALIZED_NAME_QUOTE_DAILY_INTEREST_RATE) - private String quoteDailyInterestRate; - - public static final String SERIALIZED_NAME_QUOTE_MAX_BORROWABLE_AMOUNT = "quoteMaxBorrowableAmount"; - @SerializedName(SERIALIZED_NAME_QUOTE_MAX_BORROWABLE_AMOUNT) - private String quoteMaxBorrowableAmount; - - public static final String SERIALIZED_NAME_QUOTE_TRANSFER_IN_ABLE = "quoteTransferInAble"; - @SerializedName(SERIALIZED_NAME_QUOTE_TRANSFER_IN_ABLE) - private Boolean quoteTransferInAble; - - public static final String SERIALIZED_NAME_QUOTE_VIPS = "quoteVips"; - @SerializedName(SERIALIZED_NAME_QUOTE_VIPS) - private List quoteVips = null; - - public static final String SERIALIZED_NAME_QUOTE_YEARLY_INTEREST_RATE = "quoteYearlyInterestRate"; - @SerializedName(SERIALIZED_NAME_QUOTE_YEARLY_INTEREST_RATE) - private String quoteYearlyInterestRate; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedRateAndLimitResult() { - } - - public MarginIsolatedRateAndLimitResult baseBorrowAble(Boolean baseBorrowAble) { - - this.baseBorrowAble = baseBorrowAble; - return this; - } - - /** - * Get baseBorrowAble - * @return baseBorrowAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getBaseBorrowAble() { - return baseBorrowAble; - } - - - public void setBaseBorrowAble(Boolean baseBorrowAble) { - this.baseBorrowAble = baseBorrowAble; - } - - - public MarginIsolatedRateAndLimitResult baseCoin(String baseCoin) { - - this.baseCoin = baseCoin; - return this; - } - - /** - * Get baseCoin - * @return baseCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseCoin() { - return baseCoin; - } - - - public void setBaseCoin(String baseCoin) { - this.baseCoin = baseCoin; - } - - - public MarginIsolatedRateAndLimitResult baseDailyInterestRate(String baseDailyInterestRate) { - - this.baseDailyInterestRate = baseDailyInterestRate; - return this; - } - - /** - * Get baseDailyInterestRate - * @return baseDailyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseDailyInterestRate() { - return baseDailyInterestRate; - } - - - public void setBaseDailyInterestRate(String baseDailyInterestRate) { - this.baseDailyInterestRate = baseDailyInterestRate; - } - - - public MarginIsolatedRateAndLimitResult baseMaxBorrowableAmount(String baseMaxBorrowableAmount) { - - this.baseMaxBorrowableAmount = baseMaxBorrowableAmount; - return this; - } - - /** - * Get baseMaxBorrowableAmount - * @return baseMaxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseMaxBorrowableAmount() { - return baseMaxBorrowableAmount; - } - - - public void setBaseMaxBorrowableAmount(String baseMaxBorrowableAmount) { - this.baseMaxBorrowableAmount = baseMaxBorrowableAmount; - } - - - public MarginIsolatedRateAndLimitResult baseTransferInAble(Boolean baseTransferInAble) { - - this.baseTransferInAble = baseTransferInAble; - return this; - } - - /** - * Get baseTransferInAble - * @return baseTransferInAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getBaseTransferInAble() { - return baseTransferInAble; - } - - - public void setBaseTransferInAble(Boolean baseTransferInAble) { - this.baseTransferInAble = baseTransferInAble; - } - - - public MarginIsolatedRateAndLimitResult baseVips(List baseVips) { - - this.baseVips = baseVips; - return this; - } - - public MarginIsolatedRateAndLimitResult addBaseVipsItem(MarginIsolatedVipResult baseVipsItem) { - if (this.baseVips == null) { - this.baseVips = new ArrayList<>(); - } - this.baseVips.add(baseVipsItem); - return this; - } - - /** - * Get baseVips - * @return baseVips - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getBaseVips() { - return baseVips; - } - - - public void setBaseVips(List baseVips) { - this.baseVips = baseVips; - } - - - public MarginIsolatedRateAndLimitResult baseYearlyInterestRate(String baseYearlyInterestRate) { - - this.baseYearlyInterestRate = baseYearlyInterestRate; - return this; - } - - /** - * Get baseYearlyInterestRate - * @return baseYearlyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseYearlyInterestRate() { - return baseYearlyInterestRate; - } - - - public void setBaseYearlyInterestRate(String baseYearlyInterestRate) { - this.baseYearlyInterestRate = baseYearlyInterestRate; - } - - - public MarginIsolatedRateAndLimitResult leverage(String leverage) { - - this.leverage = leverage; - return this; - } - - /** - * Get leverage - * @return leverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLeverage() { - return leverage; - } - - - public void setLeverage(String leverage) { - this.leverage = leverage; - } - - - public MarginIsolatedRateAndLimitResult quoteBorrowAble(Boolean quoteBorrowAble) { - - this.quoteBorrowAble = quoteBorrowAble; - return this; - } - - /** - * Get quoteBorrowAble - * @return quoteBorrowAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getQuoteBorrowAble() { - return quoteBorrowAble; - } - - - public void setQuoteBorrowAble(Boolean quoteBorrowAble) { - this.quoteBorrowAble = quoteBorrowAble; - } - - - public MarginIsolatedRateAndLimitResult quoteCoin(String quoteCoin) { - - this.quoteCoin = quoteCoin; - return this; - } - - /** - * Get quoteCoin - * @return quoteCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteCoin() { - return quoteCoin; - } - - - public void setQuoteCoin(String quoteCoin) { - this.quoteCoin = quoteCoin; - } - - - public MarginIsolatedRateAndLimitResult quoteDailyInterestRate(String quoteDailyInterestRate) { - - this.quoteDailyInterestRate = quoteDailyInterestRate; - return this; - } - - /** - * Get quoteDailyInterestRate - * @return quoteDailyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteDailyInterestRate() { - return quoteDailyInterestRate; - } - - - public void setQuoteDailyInterestRate(String quoteDailyInterestRate) { - this.quoteDailyInterestRate = quoteDailyInterestRate; - } - - - public MarginIsolatedRateAndLimitResult quoteMaxBorrowableAmount(String quoteMaxBorrowableAmount) { - - this.quoteMaxBorrowableAmount = quoteMaxBorrowableAmount; - return this; - } - - /** - * Get quoteMaxBorrowableAmount - * @return quoteMaxBorrowableAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteMaxBorrowableAmount() { - return quoteMaxBorrowableAmount; - } - - - public void setQuoteMaxBorrowableAmount(String quoteMaxBorrowableAmount) { - this.quoteMaxBorrowableAmount = quoteMaxBorrowableAmount; - } - - - public MarginIsolatedRateAndLimitResult quoteTransferInAble(Boolean quoteTransferInAble) { - - this.quoteTransferInAble = quoteTransferInAble; - return this; - } - - /** - * Get quoteTransferInAble - * @return quoteTransferInAble - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getQuoteTransferInAble() { - return quoteTransferInAble; - } - - - public void setQuoteTransferInAble(Boolean quoteTransferInAble) { - this.quoteTransferInAble = quoteTransferInAble; - } - - - public MarginIsolatedRateAndLimitResult quoteVips(List quoteVips) { - - this.quoteVips = quoteVips; - return this; - } - - public MarginIsolatedRateAndLimitResult addQuoteVipsItem(MarginIsolatedVipResult quoteVipsItem) { - if (this.quoteVips == null) { - this.quoteVips = new ArrayList<>(); - } - this.quoteVips.add(quoteVipsItem); - return this; - } - - /** - * Get quoteVips - * @return quoteVips - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getQuoteVips() { - return quoteVips; - } - - - public void setQuoteVips(List quoteVips) { - this.quoteVips = quoteVips; - } - - - public MarginIsolatedRateAndLimitResult quoteYearlyInterestRate(String quoteYearlyInterestRate) { - - this.quoteYearlyInterestRate = quoteYearlyInterestRate; - return this; - } - - /** - * Get quoteYearlyInterestRate - * @return quoteYearlyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteYearlyInterestRate() { - return quoteYearlyInterestRate; - } - - - public void setQuoteYearlyInterestRate(String quoteYearlyInterestRate) { - this.quoteYearlyInterestRate = quoteYearlyInterestRate; - } - - - public MarginIsolatedRateAndLimitResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedRateAndLimitResult instance itself - */ - public MarginIsolatedRateAndLimitResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedRateAndLimitResult marginIsolatedRateAndLimitResult = (MarginIsolatedRateAndLimitResult) o; - return Objects.equals(this.baseBorrowAble, marginIsolatedRateAndLimitResult.baseBorrowAble) && - Objects.equals(this.baseCoin, marginIsolatedRateAndLimitResult.baseCoin) && - Objects.equals(this.baseDailyInterestRate, marginIsolatedRateAndLimitResult.baseDailyInterestRate) && - Objects.equals(this.baseMaxBorrowableAmount, marginIsolatedRateAndLimitResult.baseMaxBorrowableAmount) && - Objects.equals(this.baseTransferInAble, marginIsolatedRateAndLimitResult.baseTransferInAble) && - Objects.equals(this.baseVips, marginIsolatedRateAndLimitResult.baseVips) && - Objects.equals(this.baseYearlyInterestRate, marginIsolatedRateAndLimitResult.baseYearlyInterestRate) && - Objects.equals(this.leverage, marginIsolatedRateAndLimitResult.leverage) && - Objects.equals(this.quoteBorrowAble, marginIsolatedRateAndLimitResult.quoteBorrowAble) && - Objects.equals(this.quoteCoin, marginIsolatedRateAndLimitResult.quoteCoin) && - Objects.equals(this.quoteDailyInterestRate, marginIsolatedRateAndLimitResult.quoteDailyInterestRate) && - Objects.equals(this.quoteMaxBorrowableAmount, marginIsolatedRateAndLimitResult.quoteMaxBorrowableAmount) && - Objects.equals(this.quoteTransferInAble, marginIsolatedRateAndLimitResult.quoteTransferInAble) && - Objects.equals(this.quoteVips, marginIsolatedRateAndLimitResult.quoteVips) && - Objects.equals(this.quoteYearlyInterestRate, marginIsolatedRateAndLimitResult.quoteYearlyInterestRate) && - Objects.equals(this.symbol, marginIsolatedRateAndLimitResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedRateAndLimitResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(baseBorrowAble, baseCoin, baseDailyInterestRate, baseMaxBorrowableAmount, baseTransferInAble, baseVips, baseYearlyInterestRate, leverage, quoteBorrowAble, quoteCoin, quoteDailyInterestRate, quoteMaxBorrowableAmount, quoteTransferInAble, quoteVips, quoteYearlyInterestRate, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedRateAndLimitResult {\n"); - sb.append(" baseBorrowAble: ").append(toIndentedString(baseBorrowAble)).append("\n"); - sb.append(" baseCoin: ").append(toIndentedString(baseCoin)).append("\n"); - sb.append(" baseDailyInterestRate: ").append(toIndentedString(baseDailyInterestRate)).append("\n"); - sb.append(" baseMaxBorrowableAmount: ").append(toIndentedString(baseMaxBorrowableAmount)).append("\n"); - sb.append(" baseTransferInAble: ").append(toIndentedString(baseTransferInAble)).append("\n"); - sb.append(" baseVips: ").append(toIndentedString(baseVips)).append("\n"); - sb.append(" baseYearlyInterestRate: ").append(toIndentedString(baseYearlyInterestRate)).append("\n"); - sb.append(" leverage: ").append(toIndentedString(leverage)).append("\n"); - sb.append(" quoteBorrowAble: ").append(toIndentedString(quoteBorrowAble)).append("\n"); - sb.append(" quoteCoin: ").append(toIndentedString(quoteCoin)).append("\n"); - sb.append(" quoteDailyInterestRate: ").append(toIndentedString(quoteDailyInterestRate)).append("\n"); - sb.append(" quoteMaxBorrowableAmount: ").append(toIndentedString(quoteMaxBorrowableAmount)).append("\n"); - sb.append(" quoteTransferInAble: ").append(toIndentedString(quoteTransferInAble)).append("\n"); - sb.append(" quoteVips: ").append(toIndentedString(quoteVips)).append("\n"); - sb.append(" quoteYearlyInterestRate: ").append(toIndentedString(quoteYearlyInterestRate)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("baseBorrowAble"); - openapiFields.add("baseCoin"); - openapiFields.add("baseDailyInterestRate"); - openapiFields.add("baseMaxBorrowableAmount"); - openapiFields.add("baseTransferInAble"); - openapiFields.add("baseVips"); - openapiFields.add("baseYearlyInterestRate"); - openapiFields.add("leverage"); - openapiFields.add("quoteBorrowAble"); - openapiFields.add("quoteCoin"); - openapiFields.add("quoteDailyInterestRate"); - openapiFields.add("quoteMaxBorrowableAmount"); - openapiFields.add("quoteTransferInAble"); - openapiFields.add("quoteVips"); - openapiFields.add("quoteYearlyInterestRate"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedRateAndLimitResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedRateAndLimitResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedRateAndLimitResult is not found in the empty JSON string", MarginIsolatedRateAndLimitResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("baseCoin") != null && !jsonObj.get("baseCoin").isJsonNull()) && !jsonObj.get("baseCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseCoin").toString())); - } - if ((jsonObj.get("baseDailyInterestRate") != null && !jsonObj.get("baseDailyInterestRate").isJsonNull()) && !jsonObj.get("baseDailyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseDailyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseDailyInterestRate").toString())); - } - if ((jsonObj.get("baseMaxBorrowableAmount") != null && !jsonObj.get("baseMaxBorrowableAmount").isJsonNull()) && !jsonObj.get("baseMaxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseMaxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseMaxBorrowableAmount").toString())); - } - if (jsonObj.get("baseVips") != null && !jsonObj.get("baseVips").isJsonNull()) { - JsonArray jsonArraybaseVips = jsonObj.getAsJsonArray("baseVips"); - if (jsonArraybaseVips != null) { - // ensure the json data is an array - if (!jsonObj.get("baseVips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `baseVips` to be an array in the JSON string but got `%s`", jsonObj.get("baseVips").toString())); - } - - // validate the optional field `baseVips` (array) - for (int i = 0; i < jsonArraybaseVips.size(); i++) { - MarginIsolatedVipResult.validateJsonObject(jsonArraybaseVips.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("baseYearlyInterestRate") != null && !jsonObj.get("baseYearlyInterestRate").isJsonNull()) && !jsonObj.get("baseYearlyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseYearlyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseYearlyInterestRate").toString())); - } - if ((jsonObj.get("leverage") != null && !jsonObj.get("leverage").isJsonNull()) && !jsonObj.get("leverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leverage").toString())); - } - if ((jsonObj.get("quoteCoin") != null && !jsonObj.get("quoteCoin").isJsonNull()) && !jsonObj.get("quoteCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteCoin").toString())); - } - if ((jsonObj.get("quoteDailyInterestRate") != null && !jsonObj.get("quoteDailyInterestRate").isJsonNull()) && !jsonObj.get("quoteDailyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteDailyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteDailyInterestRate").toString())); - } - if ((jsonObj.get("quoteMaxBorrowableAmount") != null && !jsonObj.get("quoteMaxBorrowableAmount").isJsonNull()) && !jsonObj.get("quoteMaxBorrowableAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteMaxBorrowableAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteMaxBorrowableAmount").toString())); - } - if (jsonObj.get("quoteVips") != null && !jsonObj.get("quoteVips").isJsonNull()) { - JsonArray jsonArrayquoteVips = jsonObj.getAsJsonArray("quoteVips"); - if (jsonArrayquoteVips != null) { - // ensure the json data is an array - if (!jsonObj.get("quoteVips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteVips` to be an array in the JSON string but got `%s`", jsonObj.get("quoteVips").toString())); - } - - // validate the optional field `quoteVips` (array) - for (int i = 0; i < jsonArrayquoteVips.size(); i++) { - MarginIsolatedVipResult.validateJsonObject(jsonArrayquoteVips.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("quoteYearlyInterestRate") != null && !jsonObj.get("quoteYearlyInterestRate").isJsonNull()) && !jsonObj.get("quoteYearlyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteYearlyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteYearlyInterestRate").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedRateAndLimitResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedRateAndLimitResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedRateAndLimitResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedRateAndLimitResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedRateAndLimitResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedRateAndLimitResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedRateAndLimitResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedRateAndLimitResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedRateAndLimitResult - */ - public static MarginIsolatedRateAndLimitResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedRateAndLimitResult.class); - } - - /** - * Convert an instance of MarginIsolatedRateAndLimitResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfo.java deleted file mode 100644 index 7b804b42..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfo.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedRepayInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedRepayInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_INTEREST = "interest"; - @SerializedName(SERIALIZED_NAME_INTEREST) - private String interest; - - public static final String SERIALIZED_NAME_REPAY_ID = "repayId"; - @SerializedName(SERIALIZED_NAME_REPAY_ID) - private String repayId; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TOTAL_AMOUNT = "totalAmount"; - @SerializedName(SERIALIZED_NAME_TOTAL_AMOUNT) - private String totalAmount; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginIsolatedRepayInfo() { - } - - public MarginIsolatedRepayInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginIsolatedRepayInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedRepayInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginIsolatedRepayInfo interest(String interest) { - - this.interest = interest; - return this; - } - - /** - * Get interest - * @return interest - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterest() { - return interest; - } - - - public void setInterest(String interest) { - this.interest = interest; - } - - - public MarginIsolatedRepayInfo repayId(String repayId) { - - this.repayId = repayId; - return this; - } - - /** - * Get repayId - * @return repayId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRepayId() { - return repayId; - } - - - public void setRepayId(String repayId) { - this.repayId = repayId; - } - - - public MarginIsolatedRepayInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginIsolatedRepayInfo totalAmount(String totalAmount) { - - this.totalAmount = totalAmount; - return this; - } - - /** - * Get totalAmount - * @return totalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAmount() { - return totalAmount; - } - - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - - public MarginIsolatedRepayInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedRepayInfo instance itself - */ - public MarginIsolatedRepayInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedRepayInfo marginIsolatedRepayInfo = (MarginIsolatedRepayInfo) o; - return Objects.equals(this.amount, marginIsolatedRepayInfo.amount) && - Objects.equals(this.coin, marginIsolatedRepayInfo.coin) && - Objects.equals(this.ctime, marginIsolatedRepayInfo.ctime) && - Objects.equals(this.interest, marginIsolatedRepayInfo.interest) && - Objects.equals(this.repayId, marginIsolatedRepayInfo.repayId) && - Objects.equals(this.symbol, marginIsolatedRepayInfo.symbol) && - Objects.equals(this.totalAmount, marginIsolatedRepayInfo.totalAmount) && - Objects.equals(this.type, marginIsolatedRepayInfo.type)&& - Objects.equals(this.additionalProperties, marginIsolatedRepayInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, coin, ctime, interest, repayId, symbol, totalAmount, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedRepayInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" interest: ").append(toIndentedString(interest)).append("\n"); - sb.append(" repayId: ").append(toIndentedString(repayId)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("interest"); - openapiFields.add("repayId"); - openapiFields.add("symbol"); - openapiFields.add("totalAmount"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedRepayInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedRepayInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedRepayInfo is not found in the empty JSON string", MarginIsolatedRepayInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("interest") != null && !jsonObj.get("interest").isJsonNull()) && !jsonObj.get("interest").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interest").toString())); - } - if ((jsonObj.get("repayId") != null && !jsonObj.get("repayId").isJsonNull()) && !jsonObj.get("repayId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayId").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("totalAmount") != null && !jsonObj.get("totalAmount").isJsonNull()) && !jsonObj.get("totalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAmount").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedRepayInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedRepayInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedRepayInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedRepayInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedRepayInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedRepayInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedRepayInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedRepayInfo - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedRepayInfo - */ - public static MarginIsolatedRepayInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedRepayInfo.class); - } - - /** - * Convert an instance of MarginIsolatedRepayInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResult.java deleted file mode 100644 index 8dd538e9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginIsolatedRepayInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedRepayInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedRepayInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginIsolatedRepayInfoResult() { - } - - public MarginIsolatedRepayInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginIsolatedRepayInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginIsolatedRepayInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginIsolatedRepayInfoResult addResultListItem(MarginIsolatedRepayInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedRepayInfoResult instance itself - */ - public MarginIsolatedRepayInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedRepayInfoResult marginIsolatedRepayInfoResult = (MarginIsolatedRepayInfoResult) o; - return Objects.equals(this.maxId, marginIsolatedRepayInfoResult.maxId) && - Objects.equals(this.minId, marginIsolatedRepayInfoResult.minId) && - Objects.equals(this.resultList, marginIsolatedRepayInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginIsolatedRepayInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedRepayInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedRepayInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedRepayInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedRepayInfoResult is not found in the empty JSON string", MarginIsolatedRepayInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginIsolatedRepayInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedRepayInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedRepayInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedRepayInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedRepayInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedRepayInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedRepayInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedRepayInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedRepayInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedRepayInfoResult - */ - public static MarginIsolatedRepayInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedRepayInfoResult.class); - } - - /** - * Convert an instance of MarginIsolatedRepayInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayRequest.java deleted file mode 100644 index 614210e3..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayRequest.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedRepayRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedRepayRequest { - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_REPAY_AMOUNT = "repayAmount"; - @SerializedName(SERIALIZED_NAME_REPAY_AMOUNT) - private String repayAmount; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedRepayRequest() { - } - - public MarginIsolatedRepayRequest coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * coin - * @return coin - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "USDT", required = true, value = "coin") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedRepayRequest repayAmount(String repayAmount) { - - this.repayAmount = repayAmount; - return this; - } - - /** - * repayAmount - * @return repayAmount - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1.0", required = true, value = "repayAmount") - - public String getRepayAmount() { - return repayAmount; - } - - - public void setRepayAmount(String repayAmount) { - this.repayAmount = repayAmount; - } - - - public MarginIsolatedRepayRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedRepayRequest instance itself - */ - public MarginIsolatedRepayRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedRepayRequest marginIsolatedRepayRequest = (MarginIsolatedRepayRequest) o; - return Objects.equals(this.coin, marginIsolatedRepayRequest.coin) && - Objects.equals(this.repayAmount, marginIsolatedRepayRequest.repayAmount) && - Objects.equals(this.symbol, marginIsolatedRepayRequest.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedRepayRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(coin, repayAmount, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedRepayRequest {\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" repayAmount: ").append(toIndentedString(repayAmount)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("coin"); - openapiFields.add("repayAmount"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("coin"); - openapiRequiredFields.add("repayAmount"); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedRepayRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedRepayRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedRepayRequest is not found in the empty JSON string", MarginIsolatedRepayRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginIsolatedRepayRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if (!jsonObj.get("repayAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayAmount").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedRepayRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedRepayRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedRepayRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedRepayRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedRepayRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedRepayRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedRepayRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedRepayRequest - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedRepayRequest - */ - public static MarginIsolatedRepayRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedRepayRequest.class); - } - - /** - * Convert an instance of MarginIsolatedRepayRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayResult.java deleted file mode 100644 index c0a5c672..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedRepayResult.java +++ /dev/null @@ -1,415 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedRepayResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedRepayResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_REMAIN_DEBT_AMOUNT = "remainDebtAmount"; - @SerializedName(SERIALIZED_NAME_REMAIN_DEBT_AMOUNT) - private String remainDebtAmount; - - public static final String SERIALIZED_NAME_REPAY_AMOUNT = "repayAmount"; - @SerializedName(SERIALIZED_NAME_REPAY_AMOUNT) - private String repayAmount; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginIsolatedRepayResult() { - } - - public MarginIsolatedRepayResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginIsolatedRepayResult coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginIsolatedRepayResult remainDebtAmount(String remainDebtAmount) { - - this.remainDebtAmount = remainDebtAmount; - return this; - } - - /** - * Get remainDebtAmount - * @return remainDebtAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRemainDebtAmount() { - return remainDebtAmount; - } - - - public void setRemainDebtAmount(String remainDebtAmount) { - this.remainDebtAmount = remainDebtAmount; - } - - - public MarginIsolatedRepayResult repayAmount(String repayAmount) { - - this.repayAmount = repayAmount; - return this; - } - - /** - * Get repayAmount - * @return repayAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRepayAmount() { - return repayAmount; - } - - - public void setRepayAmount(String repayAmount) { - this.repayAmount = repayAmount; - } - - - public MarginIsolatedRepayResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedRepayResult instance itself - */ - public MarginIsolatedRepayResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedRepayResult marginIsolatedRepayResult = (MarginIsolatedRepayResult) o; - return Objects.equals(this.clientOid, marginIsolatedRepayResult.clientOid) && - Objects.equals(this.coin, marginIsolatedRepayResult.coin) && - Objects.equals(this.remainDebtAmount, marginIsolatedRepayResult.remainDebtAmount) && - Objects.equals(this.repayAmount, marginIsolatedRepayResult.repayAmount) && - Objects.equals(this.symbol, marginIsolatedRepayResult.symbol)&& - Objects.equals(this.additionalProperties, marginIsolatedRepayResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, coin, remainDebtAmount, repayAmount, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedRepayResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" remainDebtAmount: ").append(toIndentedString(remainDebtAmount)).append("\n"); - sb.append(" repayAmount: ").append(toIndentedString(repayAmount)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("coin"); - openapiFields.add("remainDebtAmount"); - openapiFields.add("repayAmount"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedRepayResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedRepayResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedRepayResult is not found in the empty JSON string", MarginIsolatedRepayResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("remainDebtAmount") != null && !jsonObj.get("remainDebtAmount").isJsonNull()) && !jsonObj.get("remainDebtAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `remainDebtAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remainDebtAmount").toString())); - } - if ((jsonObj.get("repayAmount") != null && !jsonObj.get("repayAmount").isJsonNull()) && !jsonObj.get("repayAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayAmount").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedRepayResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedRepayResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedRepayResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedRepayResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedRepayResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedRepayResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedRepayResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedRepayResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedRepayResult - */ - public static MarginIsolatedRepayResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedRepayResult.class); - } - - /** - * Convert an instance of MarginIsolatedRepayResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedVipResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedVipResult.java deleted file mode 100644 index 8753620f..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginIsolatedVipResult.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginIsolatedVipResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginIsolatedVipResult { - public static final String SERIALIZED_NAME_DAILY_INTEREST_RATE = "dailyInterestRate"; - @SerializedName(SERIALIZED_NAME_DAILY_INTEREST_RATE) - private String dailyInterestRate; - - public static final String SERIALIZED_NAME_DISCOUNT_RATE = "discountRate"; - @SerializedName(SERIALIZED_NAME_DISCOUNT_RATE) - private String discountRate; - - public static final String SERIALIZED_NAME_LEVEL = "level"; - @SerializedName(SERIALIZED_NAME_LEVEL) - private String level; - - public static final String SERIALIZED_NAME_YEARLY_INTEREST_RATE = "yearlyInterestRate"; - @SerializedName(SERIALIZED_NAME_YEARLY_INTEREST_RATE) - private String yearlyInterestRate; - - public MarginIsolatedVipResult() { - } - - public MarginIsolatedVipResult dailyInterestRate(String dailyInterestRate) { - - this.dailyInterestRate = dailyInterestRate; - return this; - } - - /** - * Get dailyInterestRate - * @return dailyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDailyInterestRate() { - return dailyInterestRate; - } - - - public void setDailyInterestRate(String dailyInterestRate) { - this.dailyInterestRate = dailyInterestRate; - } - - - public MarginIsolatedVipResult discountRate(String discountRate) { - - this.discountRate = discountRate; - return this; - } - - /** - * Get discountRate - * @return discountRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDiscountRate() { - return discountRate; - } - - - public void setDiscountRate(String discountRate) { - this.discountRate = discountRate; - } - - - public MarginIsolatedVipResult level(String level) { - - this.level = level; - return this; - } - - /** - * Get level - * @return level - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLevel() { - return level; - } - - - public void setLevel(String level) { - this.level = level; - } - - - public MarginIsolatedVipResult yearlyInterestRate(String yearlyInterestRate) { - - this.yearlyInterestRate = yearlyInterestRate; - return this; - } - - /** - * Get yearlyInterestRate - * @return yearlyInterestRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getYearlyInterestRate() { - return yearlyInterestRate; - } - - - public void setYearlyInterestRate(String yearlyInterestRate) { - this.yearlyInterestRate = yearlyInterestRate; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginIsolatedVipResult instance itself - */ - public MarginIsolatedVipResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginIsolatedVipResult marginIsolatedVipResult = (MarginIsolatedVipResult) o; - return Objects.equals(this.dailyInterestRate, marginIsolatedVipResult.dailyInterestRate) && - Objects.equals(this.discountRate, marginIsolatedVipResult.discountRate) && - Objects.equals(this.level, marginIsolatedVipResult.level) && - Objects.equals(this.yearlyInterestRate, marginIsolatedVipResult.yearlyInterestRate)&& - Objects.equals(this.additionalProperties, marginIsolatedVipResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(dailyInterestRate, discountRate, level, yearlyInterestRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginIsolatedVipResult {\n"); - sb.append(" dailyInterestRate: ").append(toIndentedString(dailyInterestRate)).append("\n"); - sb.append(" discountRate: ").append(toIndentedString(discountRate)).append("\n"); - sb.append(" level: ").append(toIndentedString(level)).append("\n"); - sb.append(" yearlyInterestRate: ").append(toIndentedString(yearlyInterestRate)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("dailyInterestRate"); - openapiFields.add("discountRate"); - openapiFields.add("level"); - openapiFields.add("yearlyInterestRate"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginIsolatedVipResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginIsolatedVipResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginIsolatedVipResult is not found in the empty JSON string", MarginIsolatedVipResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("dailyInterestRate") != null && !jsonObj.get("dailyInterestRate").isJsonNull()) && !jsonObj.get("dailyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dailyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dailyInterestRate").toString())); - } - if ((jsonObj.get("discountRate") != null && !jsonObj.get("discountRate").isJsonNull()) && !jsonObj.get("discountRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `discountRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("discountRate").toString())); - } - if ((jsonObj.get("level") != null && !jsonObj.get("level").isJsonNull()) && !jsonObj.get("level").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `level` to be a primitive type in the JSON string but got `%s`", jsonObj.get("level").toString())); - } - if ((jsonObj.get("yearlyInterestRate") != null && !jsonObj.get("yearlyInterestRate").isJsonNull()) && !jsonObj.get("yearlyInterestRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `yearlyInterestRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("yearlyInterestRate").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginIsolatedVipResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginIsolatedVipResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginIsolatedVipResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginIsolatedVipResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginIsolatedVipResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginIsolatedVipResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginIsolatedVipResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginIsolatedVipResult - * @throws IOException if the JSON string is invalid with respect to MarginIsolatedVipResult - */ - public static MarginIsolatedVipResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginIsolatedVipResult.class); - } - - /** - * Convert an instance of MarginIsolatedVipResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfo.java deleted file mode 100644 index 0fe9de37..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfo.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginLiquidationInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginLiquidationInfo { - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_LIQ_END_TIME = "liqEndTime"; - @SerializedName(SERIALIZED_NAME_LIQ_END_TIME) - private String liqEndTime; - - public static final String SERIALIZED_NAME_LIQ_FEE = "liqFee"; - @SerializedName(SERIALIZED_NAME_LIQ_FEE) - private String liqFee; - - public static final String SERIALIZED_NAME_LIQ_ID = "liqId"; - @SerializedName(SERIALIZED_NAME_LIQ_ID) - private String liqId; - - public static final String SERIALIZED_NAME_LIQ_RISK = "liqRisk"; - @SerializedName(SERIALIZED_NAME_LIQ_RISK) - private String liqRisk; - - public static final String SERIALIZED_NAME_LIQ_START_TIME = "liqStartTime"; - @SerializedName(SERIALIZED_NAME_LIQ_START_TIME) - private String liqStartTime; - - public static final String SERIALIZED_NAME_TOTAL_ASSETS = "totalAssets"; - @SerializedName(SERIALIZED_NAME_TOTAL_ASSETS) - private String totalAssets; - - public static final String SERIALIZED_NAME_TOTAL_DEBT = "totalDebt"; - @SerializedName(SERIALIZED_NAME_TOTAL_DEBT) - private String totalDebt; - - public MarginLiquidationInfo() { - } - - public MarginLiquidationInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginLiquidationInfo liqEndTime(String liqEndTime) { - - this.liqEndTime = liqEndTime; - return this; - } - - /** - * Get liqEndTime - * @return liqEndTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqEndTime() { - return liqEndTime; - } - - - public void setLiqEndTime(String liqEndTime) { - this.liqEndTime = liqEndTime; - } - - - public MarginLiquidationInfo liqFee(String liqFee) { - - this.liqFee = liqFee; - return this; - } - - /** - * Get liqFee - * @return liqFee - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqFee() { - return liqFee; - } - - - public void setLiqFee(String liqFee) { - this.liqFee = liqFee; - } - - - public MarginLiquidationInfo liqId(String liqId) { - - this.liqId = liqId; - return this; - } - - /** - * Get liqId - * @return liqId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqId() { - return liqId; - } - - - public void setLiqId(String liqId) { - this.liqId = liqId; - } - - - public MarginLiquidationInfo liqRisk(String liqRisk) { - - this.liqRisk = liqRisk; - return this; - } - - /** - * Get liqRisk - * @return liqRisk - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqRisk() { - return liqRisk; - } - - - public void setLiqRisk(String liqRisk) { - this.liqRisk = liqRisk; - } - - - public MarginLiquidationInfo liqStartTime(String liqStartTime) { - - this.liqStartTime = liqStartTime; - return this; - } - - /** - * Get liqStartTime - * @return liqStartTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiqStartTime() { - return liqStartTime; - } - - - public void setLiqStartTime(String liqStartTime) { - this.liqStartTime = liqStartTime; - } - - - public MarginLiquidationInfo totalAssets(String totalAssets) { - - this.totalAssets = totalAssets; - return this; - } - - /** - * Get totalAssets - * @return totalAssets - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAssets() { - return totalAssets; - } - - - public void setTotalAssets(String totalAssets) { - this.totalAssets = totalAssets; - } - - - public MarginLiquidationInfo totalDebt(String totalDebt) { - - this.totalDebt = totalDebt; - return this; - } - - /** - * Get totalDebt - * @return totalDebt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalDebt() { - return totalDebt; - } - - - public void setTotalDebt(String totalDebt) { - this.totalDebt = totalDebt; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginLiquidationInfo instance itself - */ - public MarginLiquidationInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginLiquidationInfo marginLiquidationInfo = (MarginLiquidationInfo) o; - return Objects.equals(this.ctime, marginLiquidationInfo.ctime) && - Objects.equals(this.liqEndTime, marginLiquidationInfo.liqEndTime) && - Objects.equals(this.liqFee, marginLiquidationInfo.liqFee) && - Objects.equals(this.liqId, marginLiquidationInfo.liqId) && - Objects.equals(this.liqRisk, marginLiquidationInfo.liqRisk) && - Objects.equals(this.liqStartTime, marginLiquidationInfo.liqStartTime) && - Objects.equals(this.totalAssets, marginLiquidationInfo.totalAssets) && - Objects.equals(this.totalDebt, marginLiquidationInfo.totalDebt)&& - Objects.equals(this.additionalProperties, marginLiquidationInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(ctime, liqEndTime, liqFee, liqId, liqRisk, liqStartTime, totalAssets, totalDebt, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginLiquidationInfo {\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" liqEndTime: ").append(toIndentedString(liqEndTime)).append("\n"); - sb.append(" liqFee: ").append(toIndentedString(liqFee)).append("\n"); - sb.append(" liqId: ").append(toIndentedString(liqId)).append("\n"); - sb.append(" liqRisk: ").append(toIndentedString(liqRisk)).append("\n"); - sb.append(" liqStartTime: ").append(toIndentedString(liqStartTime)).append("\n"); - sb.append(" totalAssets: ").append(toIndentedString(totalAssets)).append("\n"); - sb.append(" totalDebt: ").append(toIndentedString(totalDebt)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ctime"); - openapiFields.add("liqEndTime"); - openapiFields.add("liqFee"); - openapiFields.add("liqId"); - openapiFields.add("liqRisk"); - openapiFields.add("liqStartTime"); - openapiFields.add("totalAssets"); - openapiFields.add("totalDebt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginLiquidationInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginLiquidationInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginLiquidationInfo is not found in the empty JSON string", MarginLiquidationInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("liqEndTime") != null && !jsonObj.get("liqEndTime").isJsonNull()) && !jsonObj.get("liqEndTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqEndTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqEndTime").toString())); - } - if ((jsonObj.get("liqFee") != null && !jsonObj.get("liqFee").isJsonNull()) && !jsonObj.get("liqFee").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqFee` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqFee").toString())); - } - if ((jsonObj.get("liqId") != null && !jsonObj.get("liqId").isJsonNull()) && !jsonObj.get("liqId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqId").toString())); - } - if ((jsonObj.get("liqRisk") != null && !jsonObj.get("liqRisk").isJsonNull()) && !jsonObj.get("liqRisk").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqRisk` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqRisk").toString())); - } - if ((jsonObj.get("liqStartTime") != null && !jsonObj.get("liqStartTime").isJsonNull()) && !jsonObj.get("liqStartTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liqStartTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liqStartTime").toString())); - } - if ((jsonObj.get("totalAssets") != null && !jsonObj.get("totalAssets").isJsonNull()) && !jsonObj.get("totalAssets").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAssets` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAssets").toString())); - } - if ((jsonObj.get("totalDebt") != null && !jsonObj.get("totalDebt").isJsonNull()) && !jsonObj.get("totalDebt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalDebt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalDebt").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginLiquidationInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginLiquidationInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginLiquidationInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginLiquidationInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginLiquidationInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginLiquidationInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginLiquidationInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginLiquidationInfo - * @throws IOException if the JSON string is invalid with respect to MarginLiquidationInfo - */ - public static MarginLiquidationInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginLiquidationInfo.class); - } - - /** - * Convert an instance of MarginLiquidationInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfoResult.java deleted file mode 100644 index ce3e4c68..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLiquidationInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginLiquidationInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginLiquidationInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginLiquidationInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginLiquidationInfoResult() { - } - - public MarginLiquidationInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginLiquidationInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginLiquidationInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginLiquidationInfoResult addResultListItem(MarginLiquidationInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginLiquidationInfoResult instance itself - */ - public MarginLiquidationInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginLiquidationInfoResult marginLiquidationInfoResult = (MarginLiquidationInfoResult) o; - return Objects.equals(this.maxId, marginLiquidationInfoResult.maxId) && - Objects.equals(this.minId, marginLiquidationInfoResult.minId) && - Objects.equals(this.resultList, marginLiquidationInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginLiquidationInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginLiquidationInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginLiquidationInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginLiquidationInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginLiquidationInfoResult is not found in the empty JSON string", MarginLiquidationInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginLiquidationInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginLiquidationInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginLiquidationInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginLiquidationInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginLiquidationInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginLiquidationInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginLiquidationInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginLiquidationInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginLiquidationInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginLiquidationInfoResult - */ - public static MarginLiquidationInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginLiquidationInfoResult.class); - } - - /** - * Convert an instance of MarginLiquidationInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfo.java deleted file mode 100644 index b32ec5c4..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfo.java +++ /dev/null @@ -1,415 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginLoanInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginLoanInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_LOAN_ID = "loanId"; - @SerializedName(SERIALIZED_NAME_LOAN_ID) - private String loanId; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginLoanInfo() { - } - - public MarginLoanInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginLoanInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginLoanInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginLoanInfo loanId(String loanId) { - - this.loanId = loanId; - return this; - } - - /** - * Get loanId - * @return loanId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLoanId() { - return loanId; - } - - - public void setLoanId(String loanId) { - this.loanId = loanId; - } - - - public MarginLoanInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginLoanInfo instance itself - */ - public MarginLoanInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginLoanInfo marginLoanInfo = (MarginLoanInfo) o; - return Objects.equals(this.amount, marginLoanInfo.amount) && - Objects.equals(this.coin, marginLoanInfo.coin) && - Objects.equals(this.ctime, marginLoanInfo.ctime) && - Objects.equals(this.loanId, marginLoanInfo.loanId) && - Objects.equals(this.type, marginLoanInfo.type)&& - Objects.equals(this.additionalProperties, marginLoanInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, coin, ctime, loanId, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginLoanInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" loanId: ").append(toIndentedString(loanId)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("loanId"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginLoanInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginLoanInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginLoanInfo is not found in the empty JSON string", MarginLoanInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("loanId") != null && !jsonObj.get("loanId").isJsonNull()) && !jsonObj.get("loanId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginLoanInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginLoanInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginLoanInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginLoanInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginLoanInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginLoanInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginLoanInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginLoanInfo - * @throws IOException if the JSON string is invalid with respect to MarginLoanInfo - */ - public static MarginLoanInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginLoanInfo.class); - } - - /** - * Convert an instance of MarginLoanInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfoResult.java deleted file mode 100644 index ec2fd556..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginLoanInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginLoanInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginLoanInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginLoanInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginLoanInfoResult() { - } - - public MarginLoanInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginLoanInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginLoanInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginLoanInfoResult addResultListItem(MarginLoanInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginLoanInfoResult instance itself - */ - public MarginLoanInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginLoanInfoResult marginLoanInfoResult = (MarginLoanInfoResult) o; - return Objects.equals(this.maxId, marginLoanInfoResult.maxId) && - Objects.equals(this.minId, marginLoanInfoResult.minId) && - Objects.equals(this.resultList, marginLoanInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginLoanInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginLoanInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginLoanInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginLoanInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginLoanInfoResult is not found in the empty JSON string", MarginLoanInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginLoanInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginLoanInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginLoanInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginLoanInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginLoanInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginLoanInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginLoanInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginLoanInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginLoanInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginLoanInfoResult - */ - public static MarginLoanInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginLoanInfoResult.class); - } - - /** - * Convert an instance of MarginLoanInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOpenOrderInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOpenOrderInfoResult.java deleted file mode 100644 index 68c1e422..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOpenOrderInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginOrderInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginOpenOrderInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginOpenOrderInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_ORDER_LIST = "orderList"; - @SerializedName(SERIALIZED_NAME_ORDER_LIST) - private List orderList = null; - - public MarginOpenOrderInfoResult() { - } - - public MarginOpenOrderInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginOpenOrderInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginOpenOrderInfoResult orderList(List orderList) { - - this.orderList = orderList; - return this; - } - - public MarginOpenOrderInfoResult addOrderListItem(MarginOrderInfo orderListItem) { - if (this.orderList == null) { - this.orderList = new ArrayList<>(); - } - this.orderList.add(orderListItem); - return this; - } - - /** - * Get orderList - * @return orderList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getOrderList() { - return orderList; - } - - - public void setOrderList(List orderList) { - this.orderList = orderList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginOpenOrderInfoResult instance itself - */ - public MarginOpenOrderInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginOpenOrderInfoResult marginOpenOrderInfoResult = (MarginOpenOrderInfoResult) o; - return Objects.equals(this.maxId, marginOpenOrderInfoResult.maxId) && - Objects.equals(this.minId, marginOpenOrderInfoResult.minId) && - Objects.equals(this.orderList, marginOpenOrderInfoResult.orderList)&& - Objects.equals(this.additionalProperties, marginOpenOrderInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, orderList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginOpenOrderInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" orderList: ").append(toIndentedString(orderList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("orderList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginOpenOrderInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginOpenOrderInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginOpenOrderInfoResult is not found in the empty JSON string", MarginOpenOrderInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("orderList") != null && !jsonObj.get("orderList").isJsonNull()) { - JsonArray jsonArrayorderList = jsonObj.getAsJsonArray("orderList"); - if (jsonArrayorderList != null) { - // ensure the json data is an array - if (!jsonObj.get("orderList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `orderList` to be an array in the JSON string but got `%s`", jsonObj.get("orderList").toString())); - } - - // validate the optional field `orderList` (array) - for (int i = 0; i < jsonArrayorderList.size(); i++) { - MarginOrderInfo.validateJsonObject(jsonArrayorderList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginOpenOrderInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginOpenOrderInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginOpenOrderInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginOpenOrderInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginOpenOrderInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginOpenOrderInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginOpenOrderInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginOpenOrderInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginOpenOrderInfoResult - */ - public static MarginOpenOrderInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginOpenOrderInfoResult.class); - } - - /** - * Convert an instance of MarginOpenOrderInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderInfo.java deleted file mode 100644 index f478421a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderInfo.java +++ /dev/null @@ -1,745 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginOrderInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginOrderInfo { - public static final String SERIALIZED_NAME_BASE_QUANTITY = "baseQuantity"; - @SerializedName(SERIALIZED_NAME_BASE_QUANTITY) - private String baseQuantity; - - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FILL_PRICE = "fillPrice"; - @SerializedName(SERIALIZED_NAME_FILL_PRICE) - private String fillPrice; - - public static final String SERIALIZED_NAME_FILL_QUANTITY = "fillQuantity"; - @SerializedName(SERIALIZED_NAME_FILL_QUANTITY) - private String fillQuantity; - - public static final String SERIALIZED_NAME_FILL_TOTAL_AMOUNT = "fillTotalAmount"; - @SerializedName(SERIALIZED_NAME_FILL_TOTAL_AMOUNT) - private String fillTotalAmount; - - public static final String SERIALIZED_NAME_LOAN_TYPE = "loanType"; - @SerializedName(SERIALIZED_NAME_LOAN_TYPE) - private String loanType; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public static final String SERIALIZED_NAME_ORDER_TYPE = "orderType"; - @SerializedName(SERIALIZED_NAME_ORDER_TYPE) - private String orderType; - - public static final String SERIALIZED_NAME_PRICE = "price"; - @SerializedName(SERIALIZED_NAME_PRICE) - private String price; - - public static final String SERIALIZED_NAME_QUOTE_AMOUNT = "quoteAmount"; - @SerializedName(SERIALIZED_NAME_QUOTE_AMOUNT) - private String quoteAmount; - - public static final String SERIALIZED_NAME_SIDE = "side"; - @SerializedName(SERIALIZED_NAME_SIDE) - private String side; - - public static final String SERIALIZED_NAME_SOURCE = "source"; - @SerializedName(SERIALIZED_NAME_SOURCE) - private String source; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private String status; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public MarginOrderInfo() { - } - - public MarginOrderInfo baseQuantity(String baseQuantity) { - - this.baseQuantity = baseQuantity; - return this; - } - - /** - * Get baseQuantity - * @return baseQuantity - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseQuantity() { - return baseQuantity; - } - - - public void setBaseQuantity(String baseQuantity) { - this.baseQuantity = baseQuantity; - } - - - public MarginOrderInfo clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginOrderInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginOrderInfo fillPrice(String fillPrice) { - - this.fillPrice = fillPrice; - return this; - } - - /** - * Get fillPrice - * @return fillPrice - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillPrice() { - return fillPrice; - } - - - public void setFillPrice(String fillPrice) { - this.fillPrice = fillPrice; - } - - - public MarginOrderInfo fillQuantity(String fillQuantity) { - - this.fillQuantity = fillQuantity; - return this; - } - - /** - * Get fillQuantity - * @return fillQuantity - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillQuantity() { - return fillQuantity; - } - - - public void setFillQuantity(String fillQuantity) { - this.fillQuantity = fillQuantity; - } - - - public MarginOrderInfo fillTotalAmount(String fillTotalAmount) { - - this.fillTotalAmount = fillTotalAmount; - return this; - } - - /** - * Get fillTotalAmount - * @return fillTotalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillTotalAmount() { - return fillTotalAmount; - } - - - public void setFillTotalAmount(String fillTotalAmount) { - this.fillTotalAmount = fillTotalAmount; - } - - - public MarginOrderInfo loanType(String loanType) { - - this.loanType = loanType; - return this; - } - - /** - * Get loanType - * @return loanType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLoanType() { - return loanType; - } - - - public void setLoanType(String loanType) { - this.loanType = loanType; - } - - - public MarginOrderInfo orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - - public MarginOrderInfo orderType(String orderType) { - - this.orderType = orderType; - return this; - } - - /** - * Get orderType - * @return orderType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderType() { - return orderType; - } - - - public void setOrderType(String orderType) { - this.orderType = orderType; - } - - - public MarginOrderInfo price(String price) { - - this.price = price; - return this; - } - - /** - * Get price - * @return price - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPrice() { - return price; - } - - - public void setPrice(String price) { - this.price = price; - } - - - public MarginOrderInfo quoteAmount(String quoteAmount) { - - this.quoteAmount = quoteAmount; - return this; - } - - /** - * Get quoteAmount - * @return quoteAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteAmount() { - return quoteAmount; - } - - - public void setQuoteAmount(String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - - public MarginOrderInfo side(String side) { - - this.side = side; - return this; - } - - /** - * Get side - * @return side - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSide() { - return side; - } - - - public void setSide(String side) { - this.side = side; - } - - - public MarginOrderInfo source(String source) { - - this.source = source; - return this; - } - - /** - * Get source - * @return source - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSource() { - return source; - } - - - public void setSource(String source) { - this.source = source; - } - - - public MarginOrderInfo status(String status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getStatus() { - return status; - } - - - public void setStatus(String status) { - this.status = status; - } - - - public MarginOrderInfo symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginOrderInfo instance itself - */ - public MarginOrderInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginOrderInfo marginOrderInfo = (MarginOrderInfo) o; - return Objects.equals(this.baseQuantity, marginOrderInfo.baseQuantity) && - Objects.equals(this.clientOid, marginOrderInfo.clientOid) && - Objects.equals(this.ctime, marginOrderInfo.ctime) && - Objects.equals(this.fillPrice, marginOrderInfo.fillPrice) && - Objects.equals(this.fillQuantity, marginOrderInfo.fillQuantity) && - Objects.equals(this.fillTotalAmount, marginOrderInfo.fillTotalAmount) && - Objects.equals(this.loanType, marginOrderInfo.loanType) && - Objects.equals(this.orderId, marginOrderInfo.orderId) && - Objects.equals(this.orderType, marginOrderInfo.orderType) && - Objects.equals(this.price, marginOrderInfo.price) && - Objects.equals(this.quoteAmount, marginOrderInfo.quoteAmount) && - Objects.equals(this.side, marginOrderInfo.side) && - Objects.equals(this.source, marginOrderInfo.source) && - Objects.equals(this.status, marginOrderInfo.status) && - Objects.equals(this.symbol, marginOrderInfo.symbol)&& - Objects.equals(this.additionalProperties, marginOrderInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(baseQuantity, clientOid, ctime, fillPrice, fillQuantity, fillTotalAmount, loanType, orderId, orderType, price, quoteAmount, side, source, status, symbol, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginOrderInfo {\n"); - sb.append(" baseQuantity: ").append(toIndentedString(baseQuantity)).append("\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" fillPrice: ").append(toIndentedString(fillPrice)).append("\n"); - sb.append(" fillQuantity: ").append(toIndentedString(fillQuantity)).append("\n"); - sb.append(" fillTotalAmount: ").append(toIndentedString(fillTotalAmount)).append("\n"); - sb.append(" loanType: ").append(toIndentedString(loanType)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("baseQuantity"); - openapiFields.add("clientOid"); - openapiFields.add("ctime"); - openapiFields.add("fillPrice"); - openapiFields.add("fillQuantity"); - openapiFields.add("fillTotalAmount"); - openapiFields.add("loanType"); - openapiFields.add("orderId"); - openapiFields.add("orderType"); - openapiFields.add("price"); - openapiFields.add("quoteAmount"); - openapiFields.add("side"); - openapiFields.add("source"); - openapiFields.add("status"); - openapiFields.add("symbol"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginOrderInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginOrderInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginOrderInfo is not found in the empty JSON string", MarginOrderInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("baseQuantity") != null && !jsonObj.get("baseQuantity").isJsonNull()) && !jsonObj.get("baseQuantity").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseQuantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseQuantity").toString())); - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("fillPrice") != null && !jsonObj.get("fillPrice").isJsonNull()) && !jsonObj.get("fillPrice").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillPrice` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillPrice").toString())); - } - if ((jsonObj.get("fillQuantity") != null && !jsonObj.get("fillQuantity").isJsonNull()) && !jsonObj.get("fillQuantity").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillQuantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillQuantity").toString())); - } - if ((jsonObj.get("fillTotalAmount") != null && !jsonObj.get("fillTotalAmount").isJsonNull()) && !jsonObj.get("fillTotalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillTotalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillTotalAmount").toString())); - } - if ((jsonObj.get("loanType") != null && !jsonObj.get("loanType").isJsonNull()) && !jsonObj.get("loanType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanType").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - if ((jsonObj.get("orderType") != null && !jsonObj.get("orderType").isJsonNull()) && !jsonObj.get("orderType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderType").toString())); - } - if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull()) && !jsonObj.get("price").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `price` to be a primitive type in the JSON string but got `%s`", jsonObj.get("price").toString())); - } - if ((jsonObj.get("quoteAmount") != null && !jsonObj.get("quoteAmount").isJsonNull()) && !jsonObj.get("quoteAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteAmount").toString())); - } - if ((jsonObj.get("side") != null && !jsonObj.get("side").isJsonNull()) && !jsonObj.get("side").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `side` to be a primitive type in the JSON string but got `%s`", jsonObj.get("side").toString())); - } - if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginOrderInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginOrderInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginOrderInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginOrderInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginOrderInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginOrderInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginOrderInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginOrderInfo - * @throws IOException if the JSON string is invalid with respect to MarginOrderInfo - */ - public static MarginOrderInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginOrderInfo.class); - } - - /** - * Convert an instance of MarginOrderInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderRequest.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderRequest.java deleted file mode 100644 index b914a445..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginOrderRequest.java +++ /dev/null @@ -1,624 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginOrderRequest - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginOrderRequest { - public static final String SERIALIZED_NAME_BASE_QUANTITY = "baseQuantity"; - @SerializedName(SERIALIZED_NAME_BASE_QUANTITY) - private String baseQuantity; - - public static final String SERIALIZED_NAME_CHANNEL_API_CODE = "channelApiCode"; - @SerializedName(SERIALIZED_NAME_CHANNEL_API_CODE) - private String channelApiCode; - - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_IP = "ip"; - @SerializedName(SERIALIZED_NAME_IP) - private String ip; - - public static final String SERIALIZED_NAME_LOAN_TYPE = "loanType"; - @SerializedName(SERIALIZED_NAME_LOAN_TYPE) - private String loanType; - - public static final String SERIALIZED_NAME_ORDER_TYPE = "orderType"; - @SerializedName(SERIALIZED_NAME_ORDER_TYPE) - private String orderType; - - public static final String SERIALIZED_NAME_PRICE = "price"; - @SerializedName(SERIALIZED_NAME_PRICE) - private String price; - - public static final String SERIALIZED_NAME_QUOTE_AMOUNT = "quoteAmount"; - @SerializedName(SERIALIZED_NAME_QUOTE_AMOUNT) - private String quoteAmount; - - public static final String SERIALIZED_NAME_SIDE = "side"; - @SerializedName(SERIALIZED_NAME_SIDE) - private String side; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TIME_IN_FORCE = "timeInForce"; - @SerializedName(SERIALIZED_NAME_TIME_IN_FORCE) - private String timeInForce; - - public MarginOrderRequest() { - } - - public MarginOrderRequest baseQuantity(String baseQuantity) { - - this.baseQuantity = baseQuantity; - return this; - } - - /** - * baseQuantity - * @return baseQuantity - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "0.2", value = "baseQuantity") - - public String getBaseQuantity() { - return baseQuantity; - } - - - public void setBaseQuantity(String baseQuantity) { - this.baseQuantity = baseQuantity; - } - - - public MarginOrderRequest channelApiCode(String channelApiCode) { - - this.channelApiCode = channelApiCode; - return this; - } - - /** - * Get channelApiCode - * @return channelApiCode - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getChannelApiCode() { - return channelApiCode; - } - - - public void setChannelApiCode(String channelApiCode) { - this.channelApiCode = channelApiCode; - } - - - public MarginOrderRequest clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "myId0001", value = "clientOid") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginOrderRequest ip(String ip) { - - this.ip = ip; - return this; - } - - /** - * Get ip - * @return ip - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getIp() { - return ip; - } - - - public void setIp(String ip) { - this.ip = ip; - } - - - public MarginOrderRequest loanType(String loanType) { - - this.loanType = loanType; - return this; - } - - /** - * loanType - * @return loanType - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "normal/autoLoan/autoRepay", required = true, value = "loanType") - - public String getLoanType() { - return loanType; - } - - - public void setLoanType(String loanType) { - this.loanType = loanType; - } - - - public MarginOrderRequest orderType(String orderType) { - - this.orderType = orderType; - return this; - } - - /** - * orderType - * @return orderType - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "limit/market", required = true, value = "orderType") - - public String getOrderType() { - return orderType; - } - - - public void setOrderType(String orderType) { - this.orderType = orderType; - } - - - public MarginOrderRequest price(String price) { - - this.price = price; - return this; - } - - /** - * price - * @return price - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "21000", value = "price") - - public String getPrice() { - return price; - } - - - public void setPrice(String price) { - this.price = price; - } - - - public MarginOrderRequest quoteAmount(String quoteAmount) { - - this.quoteAmount = quoteAmount; - return this; - } - - /** - * quoteAmount - * @return quoteAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2000", value = "quoteAmount") - - public String getQuoteAmount() { - return quoteAmount; - } - - - public void setQuoteAmount(String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - - public MarginOrderRequest side(String side) { - - this.side = side; - return this; - } - - /** - * side - * @return side - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "sell/buy", required = true, value = "side") - - public String getSide() { - return side; - } - - - public void setSide(String side) { - this.side = side; - } - - - public MarginOrderRequest symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * symbol - * @return symbol - **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "BTCUSDT_SPBL", required = true, value = "symbol") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginOrderRequest timeInForce(String timeInForce) { - - this.timeInForce = timeInForce; - return this; - } - - /** - * timeInForce - * @return timeInForce - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "gtc", value = "timeInForce") - - public String getTimeInForce() { - return timeInForce; - } - - - public void setTimeInForce(String timeInForce) { - this.timeInForce = timeInForce; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginOrderRequest instance itself - */ - public MarginOrderRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginOrderRequest marginOrderRequest = (MarginOrderRequest) o; - return Objects.equals(this.baseQuantity, marginOrderRequest.baseQuantity) && - Objects.equals(this.channelApiCode, marginOrderRequest.channelApiCode) && - Objects.equals(this.clientOid, marginOrderRequest.clientOid) && - Objects.equals(this.ip, marginOrderRequest.ip) && - Objects.equals(this.loanType, marginOrderRequest.loanType) && - Objects.equals(this.orderType, marginOrderRequest.orderType) && - Objects.equals(this.price, marginOrderRequest.price) && - Objects.equals(this.quoteAmount, marginOrderRequest.quoteAmount) && - Objects.equals(this.side, marginOrderRequest.side) && - Objects.equals(this.symbol, marginOrderRequest.symbol) && - Objects.equals(this.timeInForce, marginOrderRequest.timeInForce)&& - Objects.equals(this.additionalProperties, marginOrderRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(baseQuantity, channelApiCode, clientOid, ip, loanType, orderType, price, quoteAmount, side, symbol, timeInForce, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginOrderRequest {\n"); - sb.append(" baseQuantity: ").append(toIndentedString(baseQuantity)).append("\n"); - sb.append(" channelApiCode: ").append(toIndentedString(channelApiCode)).append("\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); - sb.append(" loanType: ").append(toIndentedString(loanType)).append("\n"); - sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" timeInForce: ").append(toIndentedString(timeInForce)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("baseQuantity"); - openapiFields.add("channelApiCode"); - openapiFields.add("clientOid"); - openapiFields.add("ip"); - openapiFields.add("loanType"); - openapiFields.add("orderType"); - openapiFields.add("price"); - openapiFields.add("quoteAmount"); - openapiFields.add("side"); - openapiFields.add("symbol"); - openapiFields.add("timeInForce"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("loanType"); - openapiRequiredFields.add("orderType"); - openapiRequiredFields.add("side"); - openapiRequiredFields.add("symbol"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginOrderRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginOrderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginOrderRequest is not found in the empty JSON string", MarginOrderRequest.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MarginOrderRequest.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if ((jsonObj.get("baseQuantity") != null && !jsonObj.get("baseQuantity").isJsonNull()) && !jsonObj.get("baseQuantity").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseQuantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseQuantity").toString())); - } - if ((jsonObj.get("channelApiCode") != null && !jsonObj.get("channelApiCode").isJsonNull()) && !jsonObj.get("channelApiCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `channelApiCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("channelApiCode").toString())); - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("ip") != null && !jsonObj.get("ip").isJsonNull()) && !jsonObj.get("ip").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); - } - if (!jsonObj.get("loanType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `loanType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loanType").toString())); - } - if (!jsonObj.get("orderType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderType").toString())); - } - if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull()) && !jsonObj.get("price").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `price` to be a primitive type in the JSON string but got `%s`", jsonObj.get("price").toString())); - } - if ((jsonObj.get("quoteAmount") != null && !jsonObj.get("quoteAmount").isJsonNull()) && !jsonObj.get("quoteAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteAmount").toString())); - } - if (!jsonObj.get("side").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `side` to be a primitive type in the JSON string but got `%s`", jsonObj.get("side").toString())); - } - if (!jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("timeInForce") != null && !jsonObj.get("timeInForce").isJsonNull()) && !jsonObj.get("timeInForce").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timeInForce` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeInForce").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginOrderRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginOrderRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginOrderRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginOrderRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginOrderRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginOrderRequest instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginOrderRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginOrderRequest - * @throws IOException if the JSON string is invalid with respect to MarginOrderRequest - */ - public static MarginOrderRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginOrderRequest.class); - } - - /** - * Convert an instance of MarginOrderRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginPlaceOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginPlaceOrderResult.java deleted file mode 100644 index 1458ce80..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginPlaceOrderResult.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginPlaceOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginPlaceOrderResult { - public static final String SERIALIZED_NAME_CLIENT_OID = "clientOid"; - @SerializedName(SERIALIZED_NAME_CLIENT_OID) - private String clientOid; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public MarginPlaceOrderResult() { - } - - public MarginPlaceOrderResult clientOid(String clientOid) { - - this.clientOid = clientOid; - return this; - } - - /** - * Get clientOid - * @return clientOid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getClientOid() { - return clientOid; - } - - - public void setClientOid(String clientOid) { - this.clientOid = clientOid; - } - - - public MarginPlaceOrderResult orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginPlaceOrderResult instance itself - */ - public MarginPlaceOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginPlaceOrderResult marginPlaceOrderResult = (MarginPlaceOrderResult) o; - return Objects.equals(this.clientOid, marginPlaceOrderResult.clientOid) && - Objects.equals(this.orderId, marginPlaceOrderResult.orderId)&& - Objects.equals(this.additionalProperties, marginPlaceOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(clientOid, orderId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginPlaceOrderResult {\n"); - sb.append(" clientOid: ").append(toIndentedString(clientOid)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientOid"); - openapiFields.add("orderId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginPlaceOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginPlaceOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginPlaceOrderResult is not found in the empty JSON string", MarginPlaceOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("clientOid") != null && !jsonObj.get("clientOid").isJsonNull()) && !jsonObj.get("clientOid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `clientOid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientOid").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginPlaceOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginPlaceOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginPlaceOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginPlaceOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginPlaceOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginPlaceOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginPlaceOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginPlaceOrderResult - * @throws IOException if the JSON string is invalid with respect to MarginPlaceOrderResult - */ - public static MarginPlaceOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginPlaceOrderResult.class); - } - - /** - * Convert an instance of MarginPlaceOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfo.java deleted file mode 100644 index b5ec4846..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfo.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginRepayInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginRepayInfo { - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_INTEREST = "interest"; - @SerializedName(SERIALIZED_NAME_INTEREST) - private String interest; - - public static final String SERIALIZED_NAME_REPAY_ID = "repayId"; - @SerializedName(SERIALIZED_NAME_REPAY_ID) - private String repayId; - - public static final String SERIALIZED_NAME_TOTAL_AMOUNT = "totalAmount"; - @SerializedName(SERIALIZED_NAME_TOTAL_AMOUNT) - private String totalAmount; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public MarginRepayInfo() { - } - - public MarginRepayInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MarginRepayInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MarginRepayInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginRepayInfo interest(String interest) { - - this.interest = interest; - return this; - } - - /** - * Get interest - * @return interest - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getInterest() { - return interest; - } - - - public void setInterest(String interest) { - this.interest = interest; - } - - - public MarginRepayInfo repayId(String repayId) { - - this.repayId = repayId; - return this; - } - - /** - * Get repayId - * @return repayId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRepayId() { - return repayId; - } - - - public void setRepayId(String repayId) { - this.repayId = repayId; - } - - - public MarginRepayInfo totalAmount(String totalAmount) { - - this.totalAmount = totalAmount; - return this; - } - - /** - * Get totalAmount - * @return totalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalAmount() { - return totalAmount; - } - - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - - public MarginRepayInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginRepayInfo instance itself - */ - public MarginRepayInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginRepayInfo marginRepayInfo = (MarginRepayInfo) o; - return Objects.equals(this.amount, marginRepayInfo.amount) && - Objects.equals(this.coin, marginRepayInfo.coin) && - Objects.equals(this.ctime, marginRepayInfo.ctime) && - Objects.equals(this.interest, marginRepayInfo.interest) && - Objects.equals(this.repayId, marginRepayInfo.repayId) && - Objects.equals(this.totalAmount, marginRepayInfo.totalAmount) && - Objects.equals(this.type, marginRepayInfo.type)&& - Objects.equals(this.additionalProperties, marginRepayInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(amount, coin, ctime, interest, repayId, totalAmount, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginRepayInfo {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" interest: ").append(toIndentedString(interest)).append("\n"); - sb.append(" repayId: ").append(toIndentedString(repayId)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("amount"); - openapiFields.add("coin"); - openapiFields.add("ctime"); - openapiFields.add("interest"); - openapiFields.add("repayId"); - openapiFields.add("totalAmount"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginRepayInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginRepayInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginRepayInfo is not found in the empty JSON string", MarginRepayInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("interest") != null && !jsonObj.get("interest").isJsonNull()) && !jsonObj.get("interest").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interest").toString())); - } - if ((jsonObj.get("repayId") != null && !jsonObj.get("repayId").isJsonNull()) && !jsonObj.get("repayId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `repayId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repayId").toString())); - } - if ((jsonObj.get("totalAmount") != null && !jsonObj.get("totalAmount").isJsonNull()) && !jsonObj.get("totalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalAmount").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginRepayInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginRepayInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginRepayInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginRepayInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginRepayInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginRepayInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginRepayInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginRepayInfo - * @throws IOException if the JSON string is invalid with respect to MarginRepayInfo - */ - public static MarginRepayInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginRepayInfo.class); - } - - /** - * Convert an instance of MarginRepayInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfoResult.java deleted file mode 100644 index 9e8fd5ab..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginRepayInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginRepayInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginRepayInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginRepayInfoResult { - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MarginRepayInfoResult() { - } - - public MarginRepayInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginRepayInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MarginRepayInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MarginRepayInfoResult addResultListItem(MarginRepayInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginRepayInfoResult instance itself - */ - public MarginRepayInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginRepayInfoResult marginRepayInfoResult = (MarginRepayInfoResult) o; - return Objects.equals(this.maxId, marginRepayInfoResult.maxId) && - Objects.equals(this.minId, marginRepayInfoResult.minId) && - Objects.equals(this.resultList, marginRepayInfoResult.resultList)&& - Objects.equals(this.additionalProperties, marginRepayInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(maxId, minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginRepayInfoResult {\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxId"); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginRepayInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginRepayInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginRepayInfoResult is not found in the empty JSON string", MarginRepayInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MarginRepayInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginRepayInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginRepayInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginRepayInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginRepayInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginRepayInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginRepayInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginRepayInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginRepayInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginRepayInfoResult - */ - public static MarginRepayInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginRepayInfoResult.class); - } - - /** - * Convert an instance of MarginRepayInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginSystemResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginSystemResult.java deleted file mode 100644 index 3165d993..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginSystemResult.java +++ /dev/null @@ -1,808 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginSystemResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginSystemResult { - public static final String SERIALIZED_NAME_BASE_COIN = "baseCoin"; - @SerializedName(SERIALIZED_NAME_BASE_COIN) - private String baseCoin; - - public static final String SERIALIZED_NAME_IS_BORROWABLE = "isBorrowable"; - @SerializedName(SERIALIZED_NAME_IS_BORROWABLE) - private Boolean isBorrowable; - - public static final String SERIALIZED_NAME_LIQUIDATION_RISK_RATIO = "liquidationRiskRatio"; - @SerializedName(SERIALIZED_NAME_LIQUIDATION_RISK_RATIO) - private String liquidationRiskRatio; - - public static final String SERIALIZED_NAME_MAKER_FEE_RATE = "makerFeeRate"; - @SerializedName(SERIALIZED_NAME_MAKER_FEE_RATE) - private String makerFeeRate; - - public static final String SERIALIZED_NAME_MAX_CROSS_LEVERAGE = "maxCrossLeverage"; - @SerializedName(SERIALIZED_NAME_MAX_CROSS_LEVERAGE) - private String maxCrossLeverage; - - public static final String SERIALIZED_NAME_MAX_ISOLATED_LEVERAGE = "maxIsolatedLeverage"; - @SerializedName(SERIALIZED_NAME_MAX_ISOLATED_LEVERAGE) - private String maxIsolatedLeverage; - - public static final String SERIALIZED_NAME_MAX_TRADE_AMOUNT = "maxTradeAmount"; - @SerializedName(SERIALIZED_NAME_MAX_TRADE_AMOUNT) - private String maxTradeAmount; - - public static final String SERIALIZED_NAME_MIN_TRADE_AMOUNT = "minTradeAmount"; - @SerializedName(SERIALIZED_NAME_MIN_TRADE_AMOUNT) - private String minTradeAmount; - - public static final String SERIALIZED_NAME_MIN_TRADE_U_S_D_T = "minTradeUSDT"; - @SerializedName(SERIALIZED_NAME_MIN_TRADE_U_S_D_T) - private String minTradeUSDT; - - public static final String SERIALIZED_NAME_PRICE_SCALE = "priceScale"; - @SerializedName(SERIALIZED_NAME_PRICE_SCALE) - private String priceScale; - - public static final String SERIALIZED_NAME_QUANTITY_SCALE = "quantityScale"; - @SerializedName(SERIALIZED_NAME_QUANTITY_SCALE) - private String quantityScale; - - public static final String SERIALIZED_NAME_QUOTE_COIN = "quoteCoin"; - @SerializedName(SERIALIZED_NAME_QUOTE_COIN) - private String quoteCoin; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private String status; - - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) - private String symbol; - - public static final String SERIALIZED_NAME_TAKER_FEE_RATE = "takerFeeRate"; - @SerializedName(SERIALIZED_NAME_TAKER_FEE_RATE) - private String takerFeeRate; - - public static final String SERIALIZED_NAME_USER_MIN_BORROW = "userMinBorrow"; - @SerializedName(SERIALIZED_NAME_USER_MIN_BORROW) - private String userMinBorrow; - - public static final String SERIALIZED_NAME_WARNING_RISK_RATIO = "warningRiskRatio"; - @SerializedName(SERIALIZED_NAME_WARNING_RISK_RATIO) - private String warningRiskRatio; - - public MarginSystemResult() { - } - - public MarginSystemResult baseCoin(String baseCoin) { - - this.baseCoin = baseCoin; - return this; - } - - /** - * Get baseCoin - * @return baseCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBaseCoin() { - return baseCoin; - } - - - public void setBaseCoin(String baseCoin) { - this.baseCoin = baseCoin; - } - - - public MarginSystemResult isBorrowable(Boolean isBorrowable) { - - this.isBorrowable = isBorrowable; - return this; - } - - /** - * Get isBorrowable - * @return isBorrowable - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getIsBorrowable() { - return isBorrowable; - } - - - public void setIsBorrowable(Boolean isBorrowable) { - this.isBorrowable = isBorrowable; - } - - - public MarginSystemResult liquidationRiskRatio(String liquidationRiskRatio) { - - this.liquidationRiskRatio = liquidationRiskRatio; - return this; - } - - /** - * Get liquidationRiskRatio - * @return liquidationRiskRatio - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLiquidationRiskRatio() { - return liquidationRiskRatio; - } - - - public void setLiquidationRiskRatio(String liquidationRiskRatio) { - this.liquidationRiskRatio = liquidationRiskRatio; - } - - - public MarginSystemResult makerFeeRate(String makerFeeRate) { - - this.makerFeeRate = makerFeeRate; - return this; - } - - /** - * Get makerFeeRate - * @return makerFeeRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMakerFeeRate() { - return makerFeeRate; - } - - - public void setMakerFeeRate(String makerFeeRate) { - this.makerFeeRate = makerFeeRate; - } - - - public MarginSystemResult maxCrossLeverage(String maxCrossLeverage) { - - this.maxCrossLeverage = maxCrossLeverage; - return this; - } - - /** - * Get maxCrossLeverage - * @return maxCrossLeverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxCrossLeverage() { - return maxCrossLeverage; - } - - - public void setMaxCrossLeverage(String maxCrossLeverage) { - this.maxCrossLeverage = maxCrossLeverage; - } - - - public MarginSystemResult maxIsolatedLeverage(String maxIsolatedLeverage) { - - this.maxIsolatedLeverage = maxIsolatedLeverage; - return this; - } - - /** - * Get maxIsolatedLeverage - * @return maxIsolatedLeverage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxIsolatedLeverage() { - return maxIsolatedLeverage; - } - - - public void setMaxIsolatedLeverage(String maxIsolatedLeverage) { - this.maxIsolatedLeverage = maxIsolatedLeverage; - } - - - public MarginSystemResult maxTradeAmount(String maxTradeAmount) { - - this.maxTradeAmount = maxTradeAmount; - return this; - } - - /** - * Get maxTradeAmount - * @return maxTradeAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxTradeAmount() { - return maxTradeAmount; - } - - - public void setMaxTradeAmount(String maxTradeAmount) { - this.maxTradeAmount = maxTradeAmount; - } - - - public MarginSystemResult minTradeAmount(String minTradeAmount) { - - this.minTradeAmount = minTradeAmount; - return this; - } - - /** - * Get minTradeAmount - * @return minTradeAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinTradeAmount() { - return minTradeAmount; - } - - - public void setMinTradeAmount(String minTradeAmount) { - this.minTradeAmount = minTradeAmount; - } - - - public MarginSystemResult minTradeUSDT(String minTradeUSDT) { - - this.minTradeUSDT = minTradeUSDT; - return this; - } - - /** - * Get minTradeUSDT - * @return minTradeUSDT - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinTradeUSDT() { - return minTradeUSDT; - } - - - public void setMinTradeUSDT(String minTradeUSDT) { - this.minTradeUSDT = minTradeUSDT; - } - - - public MarginSystemResult priceScale(String priceScale) { - - this.priceScale = priceScale; - return this; - } - - /** - * Get priceScale - * @return priceScale - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPriceScale() { - return priceScale; - } - - - public void setPriceScale(String priceScale) { - this.priceScale = priceScale; - } - - - public MarginSystemResult quantityScale(String quantityScale) { - - this.quantityScale = quantityScale; - return this; - } - - /** - * Get quantityScale - * @return quantityScale - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuantityScale() { - return quantityScale; - } - - - public void setQuantityScale(String quantityScale) { - this.quantityScale = quantityScale; - } - - - public MarginSystemResult quoteCoin(String quoteCoin) { - - this.quoteCoin = quoteCoin; - return this; - } - - /** - * Get quoteCoin - * @return quoteCoin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getQuoteCoin() { - return quoteCoin; - } - - - public void setQuoteCoin(String quoteCoin) { - this.quoteCoin = quoteCoin; - } - - - public MarginSystemResult status(String status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getStatus() { - return status; - } - - - public void setStatus(String status) { - this.status = status; - } - - - public MarginSystemResult symbol(String symbol) { - - this.symbol = symbol; - return this; - } - - /** - * Get symbol - * @return symbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSymbol() { - return symbol; - } - - - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - - public MarginSystemResult takerFeeRate(String takerFeeRate) { - - this.takerFeeRate = takerFeeRate; - return this; - } - - /** - * Get takerFeeRate - * @return takerFeeRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTakerFeeRate() { - return takerFeeRate; - } - - - public void setTakerFeeRate(String takerFeeRate) { - this.takerFeeRate = takerFeeRate; - } - - - public MarginSystemResult userMinBorrow(String userMinBorrow) { - - this.userMinBorrow = userMinBorrow; - return this; - } - - /** - * Get userMinBorrow - * @return userMinBorrow - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getUserMinBorrow() { - return userMinBorrow; - } - - - public void setUserMinBorrow(String userMinBorrow) { - this.userMinBorrow = userMinBorrow; - } - - - public MarginSystemResult warningRiskRatio(String warningRiskRatio) { - - this.warningRiskRatio = warningRiskRatio; - return this; - } - - /** - * Get warningRiskRatio - * @return warningRiskRatio - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getWarningRiskRatio() { - return warningRiskRatio; - } - - - public void setWarningRiskRatio(String warningRiskRatio) { - this.warningRiskRatio = warningRiskRatio; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginSystemResult instance itself - */ - public MarginSystemResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginSystemResult marginSystemResult = (MarginSystemResult) o; - return Objects.equals(this.baseCoin, marginSystemResult.baseCoin) && - Objects.equals(this.isBorrowable, marginSystemResult.isBorrowable) && - Objects.equals(this.liquidationRiskRatio, marginSystemResult.liquidationRiskRatio) && - Objects.equals(this.makerFeeRate, marginSystemResult.makerFeeRate) && - Objects.equals(this.maxCrossLeverage, marginSystemResult.maxCrossLeverage) && - Objects.equals(this.maxIsolatedLeverage, marginSystemResult.maxIsolatedLeverage) && - Objects.equals(this.maxTradeAmount, marginSystemResult.maxTradeAmount) && - Objects.equals(this.minTradeAmount, marginSystemResult.minTradeAmount) && - Objects.equals(this.minTradeUSDT, marginSystemResult.minTradeUSDT) && - Objects.equals(this.priceScale, marginSystemResult.priceScale) && - Objects.equals(this.quantityScale, marginSystemResult.quantityScale) && - Objects.equals(this.quoteCoin, marginSystemResult.quoteCoin) && - Objects.equals(this.status, marginSystemResult.status) && - Objects.equals(this.symbol, marginSystemResult.symbol) && - Objects.equals(this.takerFeeRate, marginSystemResult.takerFeeRate) && - Objects.equals(this.userMinBorrow, marginSystemResult.userMinBorrow) && - Objects.equals(this.warningRiskRatio, marginSystemResult.warningRiskRatio)&& - Objects.equals(this.additionalProperties, marginSystemResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(baseCoin, isBorrowable, liquidationRiskRatio, makerFeeRate, maxCrossLeverage, maxIsolatedLeverage, maxTradeAmount, minTradeAmount, minTradeUSDT, priceScale, quantityScale, quoteCoin, status, symbol, takerFeeRate, userMinBorrow, warningRiskRatio, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginSystemResult {\n"); - sb.append(" baseCoin: ").append(toIndentedString(baseCoin)).append("\n"); - sb.append(" isBorrowable: ").append(toIndentedString(isBorrowable)).append("\n"); - sb.append(" liquidationRiskRatio: ").append(toIndentedString(liquidationRiskRatio)).append("\n"); - sb.append(" makerFeeRate: ").append(toIndentedString(makerFeeRate)).append("\n"); - sb.append(" maxCrossLeverage: ").append(toIndentedString(maxCrossLeverage)).append("\n"); - sb.append(" maxIsolatedLeverage: ").append(toIndentedString(maxIsolatedLeverage)).append("\n"); - sb.append(" maxTradeAmount: ").append(toIndentedString(maxTradeAmount)).append("\n"); - sb.append(" minTradeAmount: ").append(toIndentedString(minTradeAmount)).append("\n"); - sb.append(" minTradeUSDT: ").append(toIndentedString(minTradeUSDT)).append("\n"); - sb.append(" priceScale: ").append(toIndentedString(priceScale)).append("\n"); - sb.append(" quantityScale: ").append(toIndentedString(quantityScale)).append("\n"); - sb.append(" quoteCoin: ").append(toIndentedString(quoteCoin)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" takerFeeRate: ").append(toIndentedString(takerFeeRate)).append("\n"); - sb.append(" userMinBorrow: ").append(toIndentedString(userMinBorrow)).append("\n"); - sb.append(" warningRiskRatio: ").append(toIndentedString(warningRiskRatio)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("baseCoin"); - openapiFields.add("isBorrowable"); - openapiFields.add("liquidationRiskRatio"); - openapiFields.add("makerFeeRate"); - openapiFields.add("maxCrossLeverage"); - openapiFields.add("maxIsolatedLeverage"); - openapiFields.add("maxTradeAmount"); - openapiFields.add("minTradeAmount"); - openapiFields.add("minTradeUSDT"); - openapiFields.add("priceScale"); - openapiFields.add("quantityScale"); - openapiFields.add("quoteCoin"); - openapiFields.add("status"); - openapiFields.add("symbol"); - openapiFields.add("takerFeeRate"); - openapiFields.add("userMinBorrow"); - openapiFields.add("warningRiskRatio"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginSystemResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginSystemResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginSystemResult is not found in the empty JSON string", MarginSystemResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("baseCoin") != null && !jsonObj.get("baseCoin").isJsonNull()) && !jsonObj.get("baseCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `baseCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("baseCoin").toString())); - } - if ((jsonObj.get("liquidationRiskRatio") != null && !jsonObj.get("liquidationRiskRatio").isJsonNull()) && !jsonObj.get("liquidationRiskRatio").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `liquidationRiskRatio` to be a primitive type in the JSON string but got `%s`", jsonObj.get("liquidationRiskRatio").toString())); - } - if ((jsonObj.get("makerFeeRate") != null && !jsonObj.get("makerFeeRate").isJsonNull()) && !jsonObj.get("makerFeeRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `makerFeeRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("makerFeeRate").toString())); - } - if ((jsonObj.get("maxCrossLeverage") != null && !jsonObj.get("maxCrossLeverage").isJsonNull()) && !jsonObj.get("maxCrossLeverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxCrossLeverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxCrossLeverage").toString())); - } - if ((jsonObj.get("maxIsolatedLeverage") != null && !jsonObj.get("maxIsolatedLeverage").isJsonNull()) && !jsonObj.get("maxIsolatedLeverage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxIsolatedLeverage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxIsolatedLeverage").toString())); - } - if ((jsonObj.get("maxTradeAmount") != null && !jsonObj.get("maxTradeAmount").isJsonNull()) && !jsonObj.get("maxTradeAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxTradeAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxTradeAmount").toString())); - } - if ((jsonObj.get("minTradeAmount") != null && !jsonObj.get("minTradeAmount").isJsonNull()) && !jsonObj.get("minTradeAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minTradeAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minTradeAmount").toString())); - } - if ((jsonObj.get("minTradeUSDT") != null && !jsonObj.get("minTradeUSDT").isJsonNull()) && !jsonObj.get("minTradeUSDT").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minTradeUSDT` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minTradeUSDT").toString())); - } - if ((jsonObj.get("priceScale") != null && !jsonObj.get("priceScale").isJsonNull()) && !jsonObj.get("priceScale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `priceScale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priceScale").toString())); - } - if ((jsonObj.get("quantityScale") != null && !jsonObj.get("quantityScale").isJsonNull()) && !jsonObj.get("quantityScale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quantityScale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quantityScale").toString())); - } - if ((jsonObj.get("quoteCoin") != null && !jsonObj.get("quoteCoin").isJsonNull()) && !jsonObj.get("quoteCoin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `quoteCoin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteCoin").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("takerFeeRate") != null && !jsonObj.get("takerFeeRate").isJsonNull()) && !jsonObj.get("takerFeeRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `takerFeeRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("takerFeeRate").toString())); - } - if ((jsonObj.get("userMinBorrow") != null && !jsonObj.get("userMinBorrow").isJsonNull()) && !jsonObj.get("userMinBorrow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userMinBorrow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userMinBorrow").toString())); - } - if ((jsonObj.get("warningRiskRatio") != null && !jsonObj.get("warningRiskRatio").isJsonNull()) && !jsonObj.get("warningRiskRatio").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `warningRiskRatio` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warningRiskRatio").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginSystemResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginSystemResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginSystemResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginSystemResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginSystemResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginSystemResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginSystemResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginSystemResult - * @throws IOException if the JSON string is invalid with respect to MarginSystemResult - */ - public static MarginSystemResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginSystemResult.class); - } - - /** - * Convert an instance of MarginSystemResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfo.java deleted file mode 100644 index 7d1f0986..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfo.java +++ /dev/null @@ -1,580 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginTradeDetailInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginTradeDetailInfo { - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FEE_CCY = "feeCcy"; - @SerializedName(SERIALIZED_NAME_FEE_CCY) - private String feeCcy; - - public static final String SERIALIZED_NAME_FEES = "fees"; - @SerializedName(SERIALIZED_NAME_FEES) - private String fees; - - public static final String SERIALIZED_NAME_FILL_ID = "fillId"; - @SerializedName(SERIALIZED_NAME_FILL_ID) - private String fillId; - - public static final String SERIALIZED_NAME_FILL_PRICE = "fillPrice"; - @SerializedName(SERIALIZED_NAME_FILL_PRICE) - private String fillPrice; - - public static final String SERIALIZED_NAME_FILL_QUANTITY = "fillQuantity"; - @SerializedName(SERIALIZED_NAME_FILL_QUANTITY) - private String fillQuantity; - - public static final String SERIALIZED_NAME_FILL_TOTAL_AMOUNT = "fillTotalAmount"; - @SerializedName(SERIALIZED_NAME_FILL_TOTAL_AMOUNT) - private String fillTotalAmount; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public static final String SERIALIZED_NAME_ORDER_TYPE = "orderType"; - @SerializedName(SERIALIZED_NAME_ORDER_TYPE) - private String orderType; - - public static final String SERIALIZED_NAME_SIDE = "side"; - @SerializedName(SERIALIZED_NAME_SIDE) - private String side; - - public MarginTradeDetailInfo() { - } - - public MarginTradeDetailInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MarginTradeDetailInfo feeCcy(String feeCcy) { - - this.feeCcy = feeCcy; - return this; - } - - /** - * Get feeCcy - * @return feeCcy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFeeCcy() { - return feeCcy; - } - - - public void setFeeCcy(String feeCcy) { - this.feeCcy = feeCcy; - } - - - public MarginTradeDetailInfo fees(String fees) { - - this.fees = fees; - return this; - } - - /** - * Get fees - * @return fees - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFees() { - return fees; - } - - - public void setFees(String fees) { - this.fees = fees; - } - - - public MarginTradeDetailInfo fillId(String fillId) { - - this.fillId = fillId; - return this; - } - - /** - * Get fillId - * @return fillId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillId() { - return fillId; - } - - - public void setFillId(String fillId) { - this.fillId = fillId; - } - - - public MarginTradeDetailInfo fillPrice(String fillPrice) { - - this.fillPrice = fillPrice; - return this; - } - - /** - * Get fillPrice - * @return fillPrice - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillPrice() { - return fillPrice; - } - - - public void setFillPrice(String fillPrice) { - this.fillPrice = fillPrice; - } - - - public MarginTradeDetailInfo fillQuantity(String fillQuantity) { - - this.fillQuantity = fillQuantity; - return this; - } - - /** - * Get fillQuantity - * @return fillQuantity - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillQuantity() { - return fillQuantity; - } - - - public void setFillQuantity(String fillQuantity) { - this.fillQuantity = fillQuantity; - } - - - public MarginTradeDetailInfo fillTotalAmount(String fillTotalAmount) { - - this.fillTotalAmount = fillTotalAmount; - return this; - } - - /** - * Get fillTotalAmount - * @return fillTotalAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFillTotalAmount() { - return fillTotalAmount; - } - - - public void setFillTotalAmount(String fillTotalAmount) { - this.fillTotalAmount = fillTotalAmount; - } - - - public MarginTradeDetailInfo orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - - public MarginTradeDetailInfo orderType(String orderType) { - - this.orderType = orderType; - return this; - } - - /** - * Get orderType - * @return orderType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderType() { - return orderType; - } - - - public void setOrderType(String orderType) { - this.orderType = orderType; - } - - - public MarginTradeDetailInfo side(String side) { - - this.side = side; - return this; - } - - /** - * Get side - * @return side - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSide() { - return side; - } - - - public void setSide(String side) { - this.side = side; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginTradeDetailInfo instance itself - */ - public MarginTradeDetailInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginTradeDetailInfo marginTradeDetailInfo = (MarginTradeDetailInfo) o; - return Objects.equals(this.ctime, marginTradeDetailInfo.ctime) && - Objects.equals(this.feeCcy, marginTradeDetailInfo.feeCcy) && - Objects.equals(this.fees, marginTradeDetailInfo.fees) && - Objects.equals(this.fillId, marginTradeDetailInfo.fillId) && - Objects.equals(this.fillPrice, marginTradeDetailInfo.fillPrice) && - Objects.equals(this.fillQuantity, marginTradeDetailInfo.fillQuantity) && - Objects.equals(this.fillTotalAmount, marginTradeDetailInfo.fillTotalAmount) && - Objects.equals(this.orderId, marginTradeDetailInfo.orderId) && - Objects.equals(this.orderType, marginTradeDetailInfo.orderType) && - Objects.equals(this.side, marginTradeDetailInfo.side)&& - Objects.equals(this.additionalProperties, marginTradeDetailInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(ctime, feeCcy, fees, fillId, fillPrice, fillQuantity, fillTotalAmount, orderId, orderType, side, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginTradeDetailInfo {\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" feeCcy: ").append(toIndentedString(feeCcy)).append("\n"); - sb.append(" fees: ").append(toIndentedString(fees)).append("\n"); - sb.append(" fillId: ").append(toIndentedString(fillId)).append("\n"); - sb.append(" fillPrice: ").append(toIndentedString(fillPrice)).append("\n"); - sb.append(" fillQuantity: ").append(toIndentedString(fillQuantity)).append("\n"); - sb.append(" fillTotalAmount: ").append(toIndentedString(fillTotalAmount)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ctime"); - openapiFields.add("feeCcy"); - openapiFields.add("fees"); - openapiFields.add("fillId"); - openapiFields.add("fillPrice"); - openapiFields.add("fillQuantity"); - openapiFields.add("fillTotalAmount"); - openapiFields.add("orderId"); - openapiFields.add("orderType"); - openapiFields.add("side"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginTradeDetailInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginTradeDetailInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginTradeDetailInfo is not found in the empty JSON string", MarginTradeDetailInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("feeCcy") != null && !jsonObj.get("feeCcy").isJsonNull()) && !jsonObj.get("feeCcy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `feeCcy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("feeCcy").toString())); - } - if ((jsonObj.get("fees") != null && !jsonObj.get("fees").isJsonNull()) && !jsonObj.get("fees").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fees` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fees").toString())); - } - if ((jsonObj.get("fillId") != null && !jsonObj.get("fillId").isJsonNull()) && !jsonObj.get("fillId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillId").toString())); - } - if ((jsonObj.get("fillPrice") != null && !jsonObj.get("fillPrice").isJsonNull()) && !jsonObj.get("fillPrice").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillPrice` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillPrice").toString())); - } - if ((jsonObj.get("fillQuantity") != null && !jsonObj.get("fillQuantity").isJsonNull()) && !jsonObj.get("fillQuantity").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillQuantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillQuantity").toString())); - } - if ((jsonObj.get("fillTotalAmount") != null && !jsonObj.get("fillTotalAmount").isJsonNull()) && !jsonObj.get("fillTotalAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fillTotalAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fillTotalAmount").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - if ((jsonObj.get("orderType") != null && !jsonObj.get("orderType").isJsonNull()) && !jsonObj.get("orderType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderType").toString())); - } - if ((jsonObj.get("side") != null && !jsonObj.get("side").isJsonNull()) && !jsonObj.get("side").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `side` to be a primitive type in the JSON string but got `%s`", jsonObj.get("side").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginTradeDetailInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginTradeDetailInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginTradeDetailInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginTradeDetailInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginTradeDetailInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginTradeDetailInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginTradeDetailInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginTradeDetailInfo - * @throws IOException if the JSON string is invalid with respect to MarginTradeDetailInfo - */ - public static MarginTradeDetailInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginTradeDetailInfo.class); - } - - /** - * Convert an instance of MarginTradeDetailInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfoResult.java deleted file mode 100644 index 2bde9a0d..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MarginTradeDetailInfoResult.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MarginTradeDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MarginTradeDetailInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MarginTradeDetailInfoResult { - public static final String SERIALIZED_NAME_FILLS = "fills"; - @SerializedName(SERIALIZED_NAME_FILLS) - private List fills = null; - - public static final String SERIALIZED_NAME_MAX_ID = "maxId"; - @SerializedName(SERIALIZED_NAME_MAX_ID) - private String maxId; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public MarginTradeDetailInfoResult() { - } - - public MarginTradeDetailInfoResult fills(List fills) { - - this.fills = fills; - return this; - } - - public MarginTradeDetailInfoResult addFillsItem(MarginTradeDetailInfo fillsItem) { - if (this.fills == null) { - this.fills = new ArrayList<>(); - } - this.fills.add(fillsItem); - return this; - } - - /** - * Get fills - * @return fills - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getFills() { - return fills; - } - - - public void setFills(List fills) { - this.fills = fills; - } - - - public MarginTradeDetailInfoResult maxId(String maxId) { - - this.maxId = maxId; - return this; - } - - /** - * Get maxId - * @return maxId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxId() { - return maxId; - } - - - public void setMaxId(String maxId) { - this.maxId = maxId; - } - - - public MarginTradeDetailInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MarginTradeDetailInfoResult instance itself - */ - public MarginTradeDetailInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarginTradeDetailInfoResult marginTradeDetailInfoResult = (MarginTradeDetailInfoResult) o; - return Objects.equals(this.fills, marginTradeDetailInfoResult.fills) && - Objects.equals(this.maxId, marginTradeDetailInfoResult.maxId) && - Objects.equals(this.minId, marginTradeDetailInfoResult.minId)&& - Objects.equals(this.additionalProperties, marginTradeDetailInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(fills, maxId, minId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarginTradeDetailInfoResult {\n"); - sb.append(" fills: ").append(toIndentedString(fills)).append("\n"); - sb.append(" maxId: ").append(toIndentedString(maxId)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fills"); - openapiFields.add("maxId"); - openapiFields.add("minId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MarginTradeDetailInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MarginTradeDetailInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MarginTradeDetailInfoResult is not found in the empty JSON string", MarginTradeDetailInfoResult.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("fills") != null && !jsonObj.get("fills").isJsonNull()) { - JsonArray jsonArrayfills = jsonObj.getAsJsonArray("fills"); - if (jsonArrayfills != null) { - // ensure the json data is an array - if (!jsonObj.get("fills").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fills` to be an array in the JSON string but got `%s`", jsonObj.get("fills").toString())); - } - - // validate the optional field `fills` (array) - for (int i = 0; i < jsonArrayfills.size(); i++) { - MarginTradeDetailInfo.validateJsonObject(jsonArrayfills.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("maxId") != null && !jsonObj.get("maxId").isJsonNull()) && !jsonObj.get("maxId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxId").toString())); - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MarginTradeDetailInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MarginTradeDetailInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MarginTradeDetailInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MarginTradeDetailInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MarginTradeDetailInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MarginTradeDetailInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MarginTradeDetailInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MarginTradeDetailInfoResult - * @throws IOException if the JSON string is invalid with respect to MarginTradeDetailInfoResult - */ - public static MarginTradeDetailInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MarginTradeDetailInfoResult.class); - } - - /** - * Convert an instance of MarginTradeDetailInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvInfo.java deleted file mode 100644 index 1cee195e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvInfo.java +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.FiatPaymentInfo; -import com.bitget.openapi.model.MerchantAdvUserLimitInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantAdvInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantAdvInfo { - public static final String SERIALIZED_NAME_ADV_ID = "advId"; - @SerializedName(SERIALIZED_NAME_ADV_ID) - private String advId; - - public static final String SERIALIZED_NAME_ADV_NO = "advNo"; - @SerializedName(SERIALIZED_NAME_ADV_NO) - private String advNo; - - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_COIN_PRECISION = "coinPrecision"; - @SerializedName(SERIALIZED_NAME_COIN_PRECISION) - private String coinPrecision; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_DEAL_AMOUNT = "dealAmount"; - @SerializedName(SERIALIZED_NAME_DEAL_AMOUNT) - private String dealAmount; - - public static final String SERIALIZED_NAME_FIAT_CODE = "fiatCode"; - @SerializedName(SERIALIZED_NAME_FIAT_CODE) - private String fiatCode; - - public static final String SERIALIZED_NAME_FIAT_PRECISION = "fiatPrecision"; - @SerializedName(SERIALIZED_NAME_FIAT_PRECISION) - private String fiatPrecision; - - public static final String SERIALIZED_NAME_FIAT_SYMBOL = "fiatSymbol"; - @SerializedName(SERIALIZED_NAME_FIAT_SYMBOL) - private String fiatSymbol; - - public static final String SERIALIZED_NAME_HIDE = "hide"; - @SerializedName(SERIALIZED_NAME_HIDE) - private String hide; - - public static final String SERIALIZED_NAME_MAX_AMOUNT = "maxAmount"; - @SerializedName(SERIALIZED_NAME_MAX_AMOUNT) - private String maxAmount; - - public static final String SERIALIZED_NAME_MIN_AMOUNT = "minAmount"; - @SerializedName(SERIALIZED_NAME_MIN_AMOUNT) - private String minAmount; - - public static final String SERIALIZED_NAME_PAY_DURATION = "payDuration"; - @SerializedName(SERIALIZED_NAME_PAY_DURATION) - private String payDuration; - - public static final String SERIALIZED_NAME_PAYMENT_METHOD = "paymentMethod"; - @SerializedName(SERIALIZED_NAME_PAYMENT_METHOD) - private List paymentMethod = null; - - public static final String SERIALIZED_NAME_PRICE = "price"; - @SerializedName(SERIALIZED_NAME_PRICE) - private String price; - - public static final String SERIALIZED_NAME_REMARK = "remark"; - @SerializedName(SERIALIZED_NAME_REMARK) - private String remark; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private String status; - - public static final String SERIALIZED_NAME_TURNOVER_NUM = "turnoverNum"; - @SerializedName(SERIALIZED_NAME_TURNOVER_NUM) - private String turnoverNum; - - public static final String SERIALIZED_NAME_TURNOVER_RATE = "turnoverRate"; - @SerializedName(SERIALIZED_NAME_TURNOVER_RATE) - private String turnoverRate; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_USER_LIMIT = "userLimit"; - @SerializedName(SERIALIZED_NAME_USER_LIMIT) - private MerchantAdvUserLimitInfo userLimit; - - public MerchantAdvInfo() { - } - - public MerchantAdvInfo advId(String advId) { - - this.advId = advId; - return this; - } - - /** - * Get advId - * @return advId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAdvId() { - return advId; - } - - - public void setAdvId(String advId) { - this.advId = advId; - } - - - public MerchantAdvInfo advNo(String advNo) { - - this.advNo = advNo; - return this; - } - - /** - * Get advNo - * @return advNo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAdvNo() { - return advNo; - } - - - public void setAdvNo(String advNo) { - this.advNo = advNo; - } - - - public MerchantAdvInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MerchantAdvInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MerchantAdvInfo coinPrecision(String coinPrecision) { - - this.coinPrecision = coinPrecision; - return this; - } - - /** - * Get coinPrecision - * @return coinPrecision - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoinPrecision() { - return coinPrecision; - } - - - public void setCoinPrecision(String coinPrecision) { - this.coinPrecision = coinPrecision; - } - - - public MerchantAdvInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MerchantAdvInfo dealAmount(String dealAmount) { - - this.dealAmount = dealAmount; - return this; - } - - /** - * Get dealAmount - * @return dealAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getDealAmount() { - return dealAmount; - } - - - public void setDealAmount(String dealAmount) { - this.dealAmount = dealAmount; - } - - - public MerchantAdvInfo fiatCode(String fiatCode) { - - this.fiatCode = fiatCode; - return this; - } - - /** - * Get fiatCode - * @return fiatCode - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFiatCode() { - return fiatCode; - } - - - public void setFiatCode(String fiatCode) { - this.fiatCode = fiatCode; - } - - - public MerchantAdvInfo fiatPrecision(String fiatPrecision) { - - this.fiatPrecision = fiatPrecision; - return this; - } - - /** - * Get fiatPrecision - * @return fiatPrecision - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFiatPrecision() { - return fiatPrecision; - } - - - public void setFiatPrecision(String fiatPrecision) { - this.fiatPrecision = fiatPrecision; - } - - - public MerchantAdvInfo fiatSymbol(String fiatSymbol) { - - this.fiatSymbol = fiatSymbol; - return this; - } - - /** - * Get fiatSymbol - * @return fiatSymbol - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFiatSymbol() { - return fiatSymbol; - } - - - public void setFiatSymbol(String fiatSymbol) { - this.fiatSymbol = fiatSymbol; - } - - - public MerchantAdvInfo hide(String hide) { - - this.hide = hide; - return this; - } - - /** - * Get hide - * @return hide - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getHide() { - return hide; - } - - - public void setHide(String hide) { - this.hide = hide; - } - - - public MerchantAdvInfo maxAmount(String maxAmount) { - - this.maxAmount = maxAmount; - return this; - } - - /** - * Get maxAmount - * @return maxAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxAmount() { - return maxAmount; - } - - - public void setMaxAmount(String maxAmount) { - this.maxAmount = maxAmount; - } - - - public MerchantAdvInfo minAmount(String minAmount) { - - this.minAmount = minAmount; - return this; - } - - /** - * Get minAmount - * @return minAmount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinAmount() { - return minAmount; - } - - - public void setMinAmount(String minAmount) { - this.minAmount = minAmount; - } - - - public MerchantAdvInfo payDuration(String payDuration) { - - this.payDuration = payDuration; - return this; - } - - /** - * Get payDuration - * @return payDuration - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPayDuration() { - return payDuration; - } - - - public void setPayDuration(String payDuration) { - this.payDuration = payDuration; - } - - - public MerchantAdvInfo paymentMethod(List paymentMethod) { - - this.paymentMethod = paymentMethod; - return this; - } - - public MerchantAdvInfo addPaymentMethodItem(FiatPaymentInfo paymentMethodItem) { - if (this.paymentMethod == null) { - this.paymentMethod = new ArrayList<>(); - } - this.paymentMethod.add(paymentMethodItem); - return this; - } - - /** - * Get paymentMethod - * @return paymentMethod - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getPaymentMethod() { - return paymentMethod; - } - - - public void setPaymentMethod(List paymentMethod) { - this.paymentMethod = paymentMethod; - } - - - public MerchantAdvInfo price(String price) { - - this.price = price; - return this; - } - - /** - * Get price - * @return price - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPrice() { - return price; - } - - - public void setPrice(String price) { - this.price = price; - } - - - public MerchantAdvInfo remark(String remark) { - - this.remark = remark; - return this; - } - - /** - * Get remark - * @return remark - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRemark() { - return remark; - } - - - public void setRemark(String remark) { - this.remark = remark; - } - - - public MerchantAdvInfo status(String status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getStatus() { - return status; - } - - - public void setStatus(String status) { - this.status = status; - } - - - public MerchantAdvInfo turnoverNum(String turnoverNum) { - - this.turnoverNum = turnoverNum; - return this; - } - - /** - * Get turnoverNum - * @return turnoverNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTurnoverNum() { - return turnoverNum; - } - - - public void setTurnoverNum(String turnoverNum) { - this.turnoverNum = turnoverNum; - } - - - public MerchantAdvInfo turnoverRate(String turnoverRate) { - - this.turnoverRate = turnoverRate; - return this; - } - - /** - * Get turnoverRate - * @return turnoverRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTurnoverRate() { - return turnoverRate; - } - - - public void setTurnoverRate(String turnoverRate) { - this.turnoverRate = turnoverRate; - } - - - public MerchantAdvInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public MerchantAdvInfo userLimit(MerchantAdvUserLimitInfo userLimit) { - - this.userLimit = userLimit; - return this; - } - - /** - * Get userLimit - * @return userLimit - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantAdvUserLimitInfo getUserLimit() { - return userLimit; - } - - - public void setUserLimit(MerchantAdvUserLimitInfo userLimit) { - this.userLimit = userLimit; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantAdvInfo instance itself - */ - public MerchantAdvInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantAdvInfo merchantAdvInfo = (MerchantAdvInfo) o; - return Objects.equals(this.advId, merchantAdvInfo.advId) && - Objects.equals(this.advNo, merchantAdvInfo.advNo) && - Objects.equals(this.amount, merchantAdvInfo.amount) && - Objects.equals(this.coin, merchantAdvInfo.coin) && - Objects.equals(this.coinPrecision, merchantAdvInfo.coinPrecision) && - Objects.equals(this.ctime, merchantAdvInfo.ctime) && - Objects.equals(this.dealAmount, merchantAdvInfo.dealAmount) && - Objects.equals(this.fiatCode, merchantAdvInfo.fiatCode) && - Objects.equals(this.fiatPrecision, merchantAdvInfo.fiatPrecision) && - Objects.equals(this.fiatSymbol, merchantAdvInfo.fiatSymbol) && - Objects.equals(this.hide, merchantAdvInfo.hide) && - Objects.equals(this.maxAmount, merchantAdvInfo.maxAmount) && - Objects.equals(this.minAmount, merchantAdvInfo.minAmount) && - Objects.equals(this.payDuration, merchantAdvInfo.payDuration) && - Objects.equals(this.paymentMethod, merchantAdvInfo.paymentMethod) && - Objects.equals(this.price, merchantAdvInfo.price) && - Objects.equals(this.remark, merchantAdvInfo.remark) && - Objects.equals(this.status, merchantAdvInfo.status) && - Objects.equals(this.turnoverNum, merchantAdvInfo.turnoverNum) && - Objects.equals(this.turnoverRate, merchantAdvInfo.turnoverRate) && - Objects.equals(this.type, merchantAdvInfo.type) && - Objects.equals(this.userLimit, merchantAdvInfo.userLimit)&& - Objects.equals(this.additionalProperties, merchantAdvInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(advId, advNo, amount, coin, coinPrecision, ctime, dealAmount, fiatCode, fiatPrecision, fiatSymbol, hide, maxAmount, minAmount, payDuration, paymentMethod, price, remark, status, turnoverNum, turnoverRate, type, userLimit, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantAdvInfo {\n"); - sb.append(" advId: ").append(toIndentedString(advId)).append("\n"); - sb.append(" advNo: ").append(toIndentedString(advNo)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" coinPrecision: ").append(toIndentedString(coinPrecision)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" dealAmount: ").append(toIndentedString(dealAmount)).append("\n"); - sb.append(" fiatCode: ").append(toIndentedString(fiatCode)).append("\n"); - sb.append(" fiatPrecision: ").append(toIndentedString(fiatPrecision)).append("\n"); - sb.append(" fiatSymbol: ").append(toIndentedString(fiatSymbol)).append("\n"); - sb.append(" hide: ").append(toIndentedString(hide)).append("\n"); - sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n"); - sb.append(" minAmount: ").append(toIndentedString(minAmount)).append("\n"); - sb.append(" payDuration: ").append(toIndentedString(payDuration)).append("\n"); - sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append(" remark: ").append(toIndentedString(remark)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" turnoverNum: ").append(toIndentedString(turnoverNum)).append("\n"); - sb.append(" turnoverRate: ").append(toIndentedString(turnoverRate)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" userLimit: ").append(toIndentedString(userLimit)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("advId"); - openapiFields.add("advNo"); - openapiFields.add("amount"); - openapiFields.add("coin"); - openapiFields.add("coinPrecision"); - openapiFields.add("ctime"); - openapiFields.add("dealAmount"); - openapiFields.add("fiatCode"); - openapiFields.add("fiatPrecision"); - openapiFields.add("fiatSymbol"); - openapiFields.add("hide"); - openapiFields.add("maxAmount"); - openapiFields.add("minAmount"); - openapiFields.add("payDuration"); - openapiFields.add("paymentMethod"); - openapiFields.add("price"); - openapiFields.add("remark"); - openapiFields.add("status"); - openapiFields.add("turnoverNum"); - openapiFields.add("turnoverRate"); - openapiFields.add("type"); - openapiFields.add("userLimit"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantAdvInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantAdvInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantAdvInfo is not found in the empty JSON string", MerchantAdvInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("advId") != null && !jsonObj.get("advId").isJsonNull()) && !jsonObj.get("advId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advId").toString())); - } - if ((jsonObj.get("advNo") != null && !jsonObj.get("advNo").isJsonNull()) && !jsonObj.get("advNo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advNo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advNo").toString())); - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("coinPrecision") != null && !jsonObj.get("coinPrecision").isJsonNull()) && !jsonObj.get("coinPrecision").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coinPrecision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coinPrecision").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("dealAmount") != null && !jsonObj.get("dealAmount").isJsonNull()) && !jsonObj.get("dealAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `dealAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dealAmount").toString())); - } - if ((jsonObj.get("fiatCode") != null && !jsonObj.get("fiatCode").isJsonNull()) && !jsonObj.get("fiatCode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fiatCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fiatCode").toString())); - } - if ((jsonObj.get("fiatPrecision") != null && !jsonObj.get("fiatPrecision").isJsonNull()) && !jsonObj.get("fiatPrecision").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fiatPrecision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fiatPrecision").toString())); - } - if ((jsonObj.get("fiatSymbol") != null && !jsonObj.get("fiatSymbol").isJsonNull()) && !jsonObj.get("fiatSymbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fiatSymbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fiatSymbol").toString())); - } - if ((jsonObj.get("hide") != null && !jsonObj.get("hide").isJsonNull()) && !jsonObj.get("hide").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `hide` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hide").toString())); - } - if ((jsonObj.get("maxAmount") != null && !jsonObj.get("maxAmount").isJsonNull()) && !jsonObj.get("maxAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxAmount").toString())); - } - if ((jsonObj.get("minAmount") != null && !jsonObj.get("minAmount").isJsonNull()) && !jsonObj.get("minAmount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minAmount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minAmount").toString())); - } - if ((jsonObj.get("payDuration") != null && !jsonObj.get("payDuration").isJsonNull()) && !jsonObj.get("payDuration").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `payDuration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("payDuration").toString())); - } - if (jsonObj.get("paymentMethod") != null && !jsonObj.get("paymentMethod").isJsonNull()) { - JsonArray jsonArraypaymentMethod = jsonObj.getAsJsonArray("paymentMethod"); - if (jsonArraypaymentMethod != null) { - // ensure the json data is an array - if (!jsonObj.get("paymentMethod").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `paymentMethod` to be an array in the JSON string but got `%s`", jsonObj.get("paymentMethod").toString())); - } - - // validate the optional field `paymentMethod` (array) - for (int i = 0; i < jsonArraypaymentMethod.size(); i++) { - FiatPaymentInfo.validateJsonObject(jsonArraypaymentMethod.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull()) && !jsonObj.get("price").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `price` to be a primitive type in the JSON string but got `%s`", jsonObj.get("price").toString())); - } - if ((jsonObj.get("remark") != null && !jsonObj.get("remark").isJsonNull()) && !jsonObj.get("remark").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `remark` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remark").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); - } - if ((jsonObj.get("turnoverNum") != null && !jsonObj.get("turnoverNum").isJsonNull()) && !jsonObj.get("turnoverNum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `turnoverNum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("turnoverNum").toString())); - } - if ((jsonObj.get("turnoverRate") != null && !jsonObj.get("turnoverRate").isJsonNull()) && !jsonObj.get("turnoverRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `turnoverRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("turnoverRate").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // validate the optional field `userLimit` - if (jsonObj.get("userLimit") != null && !jsonObj.get("userLimit").isJsonNull()) { - MerchantAdvUserLimitInfo.validateJsonObject(jsonObj.getAsJsonObject("userLimit")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantAdvInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantAdvInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantAdvInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantAdvInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantAdvInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantAdvInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantAdvInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantAdvInfo - * @throws IOException if the JSON string is invalid with respect to MerchantAdvInfo - */ - public static MerchantAdvInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantAdvInfo.class); - } - - /** - * Convert an instance of MerchantAdvInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvResult.java deleted file mode 100644 index e58b4ee9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvResult.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantAdvInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantAdvResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantAdvResult { - public static final String SERIALIZED_NAME_ADV_LIST = "advList"; - @SerializedName(SERIALIZED_NAME_ADV_LIST) - private List advList = null; - - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public MerchantAdvResult() { - } - - public MerchantAdvResult advList(List advList) { - - this.advList = advList; - return this; - } - - public MerchantAdvResult addAdvListItem(MerchantAdvInfo advListItem) { - if (this.advList == null) { - this.advList = new ArrayList<>(); - } - this.advList.add(advListItem); - return this; - } - - /** - * Get advList - * @return advList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getAdvList() { - return advList; - } - - - public void setAdvList(List advList) { - this.advList = advList; - } - - - public MerchantAdvResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantAdvResult instance itself - */ - public MerchantAdvResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantAdvResult merchantAdvResult = (MerchantAdvResult) o; - return Objects.equals(this.advList, merchantAdvResult.advList) && - Objects.equals(this.minId, merchantAdvResult.minId)&& - Objects.equals(this.additionalProperties, merchantAdvResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(advList, minId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantAdvResult {\n"); - sb.append(" advList: ").append(toIndentedString(advList)).append("\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("advList"); - openapiFields.add("minId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantAdvResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantAdvResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantAdvResult is not found in the empty JSON string", MerchantAdvResult.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("advList") != null && !jsonObj.get("advList").isJsonNull()) { - JsonArray jsonArrayadvList = jsonObj.getAsJsonArray("advList"); - if (jsonArrayadvList != null) { - // ensure the json data is an array - if (!jsonObj.get("advList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `advList` to be an array in the JSON string but got `%s`", jsonObj.get("advList").toString())); - } - - // validate the optional field `advList` (array) - for (int i = 0; i < jsonArrayadvList.size(); i++) { - MerchantAdvInfo.validateJsonObject(jsonArrayadvList.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantAdvResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantAdvResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantAdvResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantAdvResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantAdvResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantAdvResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantAdvResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantAdvResult - * @throws IOException if the JSON string is invalid with respect to MerchantAdvResult - */ - public static MerchantAdvResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantAdvResult.class); - } - - /** - * Convert an instance of MerchantAdvResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvUserLimitInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvUserLimitInfo.java deleted file mode 100644 index 29c0ffed..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantAdvUserLimitInfo.java +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantAdvUserLimitInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantAdvUserLimitInfo { - public static final String SERIALIZED_NAME_ALLOW_MERCHANT_PLACE = "allowMerchantPlace"; - @SerializedName(SERIALIZED_NAME_ALLOW_MERCHANT_PLACE) - private String allowMerchantPlace; - - public static final String SERIALIZED_NAME_COUNTRY = "country"; - @SerializedName(SERIALIZED_NAME_COUNTRY) - private String country; - - public static final String SERIALIZED_NAME_MAX_COMPLETE_NUM = "maxCompleteNum"; - @SerializedName(SERIALIZED_NAME_MAX_COMPLETE_NUM) - private String maxCompleteNum; - - public static final String SERIALIZED_NAME_MIN_COMPLETE_NUM = "minCompleteNum"; - @SerializedName(SERIALIZED_NAME_MIN_COMPLETE_NUM) - private String minCompleteNum; - - public static final String SERIALIZED_NAME_PLACE_ORDER_NUM = "placeOrderNum"; - @SerializedName(SERIALIZED_NAME_PLACE_ORDER_NUM) - private String placeOrderNum; - - public static final String SERIALIZED_NAME_THIRTY_COMPLETE_RATE = "thirtyCompleteRate"; - @SerializedName(SERIALIZED_NAME_THIRTY_COMPLETE_RATE) - private String thirtyCompleteRate; - - public MerchantAdvUserLimitInfo() { - } - - public MerchantAdvUserLimitInfo allowMerchantPlace(String allowMerchantPlace) { - - this.allowMerchantPlace = allowMerchantPlace; - return this; - } - - /** - * Get allowMerchantPlace - * @return allowMerchantPlace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAllowMerchantPlace() { - return allowMerchantPlace; - } - - - public void setAllowMerchantPlace(String allowMerchantPlace) { - this.allowMerchantPlace = allowMerchantPlace; - } - - - public MerchantAdvUserLimitInfo country(String country) { - - this.country = country; - return this; - } - - /** - * Get country - * @return country - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCountry() { - return country; - } - - - public void setCountry(String country) { - this.country = country; - } - - - public MerchantAdvUserLimitInfo maxCompleteNum(String maxCompleteNum) { - - this.maxCompleteNum = maxCompleteNum; - return this; - } - - /** - * Get maxCompleteNum - * @return maxCompleteNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMaxCompleteNum() { - return maxCompleteNum; - } - - - public void setMaxCompleteNum(String maxCompleteNum) { - this.maxCompleteNum = maxCompleteNum; - } - - - public MerchantAdvUserLimitInfo minCompleteNum(String minCompleteNum) { - - this.minCompleteNum = minCompleteNum; - return this; - } - - /** - * Get minCompleteNum - * @return minCompleteNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinCompleteNum() { - return minCompleteNum; - } - - - public void setMinCompleteNum(String minCompleteNum) { - this.minCompleteNum = minCompleteNum; - } - - - public MerchantAdvUserLimitInfo placeOrderNum(String placeOrderNum) { - - this.placeOrderNum = placeOrderNum; - return this; - } - - /** - * Get placeOrderNum - * @return placeOrderNum - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPlaceOrderNum() { - return placeOrderNum; - } - - - public void setPlaceOrderNum(String placeOrderNum) { - this.placeOrderNum = placeOrderNum; - } - - - public MerchantAdvUserLimitInfo thirtyCompleteRate(String thirtyCompleteRate) { - - this.thirtyCompleteRate = thirtyCompleteRate; - return this; - } - - /** - * Get thirtyCompleteRate - * @return thirtyCompleteRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyCompleteRate() { - return thirtyCompleteRate; - } - - - public void setThirtyCompleteRate(String thirtyCompleteRate) { - this.thirtyCompleteRate = thirtyCompleteRate; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantAdvUserLimitInfo instance itself - */ - public MerchantAdvUserLimitInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantAdvUserLimitInfo merchantAdvUserLimitInfo = (MerchantAdvUserLimitInfo) o; - return Objects.equals(this.allowMerchantPlace, merchantAdvUserLimitInfo.allowMerchantPlace) && - Objects.equals(this.country, merchantAdvUserLimitInfo.country) && - Objects.equals(this.maxCompleteNum, merchantAdvUserLimitInfo.maxCompleteNum) && - Objects.equals(this.minCompleteNum, merchantAdvUserLimitInfo.minCompleteNum) && - Objects.equals(this.placeOrderNum, merchantAdvUserLimitInfo.placeOrderNum) && - Objects.equals(this.thirtyCompleteRate, merchantAdvUserLimitInfo.thirtyCompleteRate)&& - Objects.equals(this.additionalProperties, merchantAdvUserLimitInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(allowMerchantPlace, country, maxCompleteNum, minCompleteNum, placeOrderNum, thirtyCompleteRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantAdvUserLimitInfo {\n"); - sb.append(" allowMerchantPlace: ").append(toIndentedString(allowMerchantPlace)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" maxCompleteNum: ").append(toIndentedString(maxCompleteNum)).append("\n"); - sb.append(" minCompleteNum: ").append(toIndentedString(minCompleteNum)).append("\n"); - sb.append(" placeOrderNum: ").append(toIndentedString(placeOrderNum)).append("\n"); - sb.append(" thirtyCompleteRate: ").append(toIndentedString(thirtyCompleteRate)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allowMerchantPlace"); - openapiFields.add("country"); - openapiFields.add("maxCompleteNum"); - openapiFields.add("minCompleteNum"); - openapiFields.add("placeOrderNum"); - openapiFields.add("thirtyCompleteRate"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantAdvUserLimitInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantAdvUserLimitInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantAdvUserLimitInfo is not found in the empty JSON string", MerchantAdvUserLimitInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("allowMerchantPlace") != null && !jsonObj.get("allowMerchantPlace").isJsonNull()) && !jsonObj.get("allowMerchantPlace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `allowMerchantPlace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowMerchantPlace").toString())); - } - if ((jsonObj.get("country") != null && !jsonObj.get("country").isJsonNull()) && !jsonObj.get("country").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `country` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country").toString())); - } - if ((jsonObj.get("maxCompleteNum") != null && !jsonObj.get("maxCompleteNum").isJsonNull()) && !jsonObj.get("maxCompleteNum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `maxCompleteNum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxCompleteNum").toString())); - } - if ((jsonObj.get("minCompleteNum") != null && !jsonObj.get("minCompleteNum").isJsonNull()) && !jsonObj.get("minCompleteNum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minCompleteNum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minCompleteNum").toString())); - } - if ((jsonObj.get("placeOrderNum") != null && !jsonObj.get("placeOrderNum").isJsonNull()) && !jsonObj.get("placeOrderNum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `placeOrderNum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("placeOrderNum").toString())); - } - if ((jsonObj.get("thirtyCompleteRate") != null && !jsonObj.get("thirtyCompleteRate").isJsonNull()) && !jsonObj.get("thirtyCompleteRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyCompleteRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyCompleteRate").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantAdvUserLimitInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantAdvUserLimitInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantAdvUserLimitInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantAdvUserLimitInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantAdvUserLimitInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantAdvUserLimitInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantAdvUserLimitInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantAdvUserLimitInfo - * @throws IOException if the JSON string is invalid with respect to MerchantAdvUserLimitInfo - */ - public static MerchantAdvUserLimitInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantAdvUserLimitInfo.class); - } - - /** - * Convert an instance of MerchantAdvUserLimitInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfo.java deleted file mode 100644 index d2449221..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfo.java +++ /dev/null @@ -1,712 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantInfo { - public static final String SERIALIZED_NAME_AVERAGE_PAYMENT = "averagePayment"; - @SerializedName(SERIALIZED_NAME_AVERAGE_PAYMENT) - private String averagePayment; - - public static final String SERIALIZED_NAME_AVERAGE_REALESE = "averageRealese"; - @SerializedName(SERIALIZED_NAME_AVERAGE_REALESE) - private String averageRealese; - - public static final String SERIALIZED_NAME_IS_ONLINE = "isOnline"; - @SerializedName(SERIALIZED_NAME_IS_ONLINE) - private String isOnline; - - public static final String SERIALIZED_NAME_MERCHANT_ID = "merchantId"; - @SerializedName(SERIALIZED_NAME_MERCHANT_ID) - private String merchantId; - - public static final String SERIALIZED_NAME_NICK_NAME = "nickName"; - @SerializedName(SERIALIZED_NAME_NICK_NAME) - private String nickName; - - public static final String SERIALIZED_NAME_REGISTER_TIME = "registerTime"; - @SerializedName(SERIALIZED_NAME_REGISTER_TIME) - private String registerTime; - - public static final String SERIALIZED_NAME_THIRTY_BUY = "thirtyBuy"; - @SerializedName(SERIALIZED_NAME_THIRTY_BUY) - private String thirtyBuy; - - public static final String SERIALIZED_NAME_THIRTY_COMPLETION_RATE = "thirtyCompletionRate"; - @SerializedName(SERIALIZED_NAME_THIRTY_COMPLETION_RATE) - private String thirtyCompletionRate; - - public static final String SERIALIZED_NAME_THIRTY_SELL = "thirtySell"; - @SerializedName(SERIALIZED_NAME_THIRTY_SELL) - private String thirtySell; - - public static final String SERIALIZED_NAME_THIRTY_TRADES = "thirtyTrades"; - @SerializedName(SERIALIZED_NAME_THIRTY_TRADES) - private String thirtyTrades; - - public static final String SERIALIZED_NAME_TOTAL_BUY = "totalBuy"; - @SerializedName(SERIALIZED_NAME_TOTAL_BUY) - private String totalBuy; - - public static final String SERIALIZED_NAME_TOTAL_COMPLETION_RATE = "totalCompletionRate"; - @SerializedName(SERIALIZED_NAME_TOTAL_COMPLETION_RATE) - private String totalCompletionRate; - - public static final String SERIALIZED_NAME_TOTAL_SELL = "totalSell"; - @SerializedName(SERIALIZED_NAME_TOTAL_SELL) - private String totalSell; - - public static final String SERIALIZED_NAME_TOTAL_TRADES = "totalTrades"; - @SerializedName(SERIALIZED_NAME_TOTAL_TRADES) - private String totalTrades; - - public MerchantInfo() { - } - - public MerchantInfo averagePayment(String averagePayment) { - - this.averagePayment = averagePayment; - return this; - } - - /** - * Get averagePayment - * @return averagePayment - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAveragePayment() { - return averagePayment; - } - - - public void setAveragePayment(String averagePayment) { - this.averagePayment = averagePayment; - } - - - public MerchantInfo averageRealese(String averageRealese) { - - this.averageRealese = averageRealese; - return this; - } - - /** - * Get averageRealese - * @return averageRealese - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAverageRealese() { - return averageRealese; - } - - - public void setAverageRealese(String averageRealese) { - this.averageRealese = averageRealese; - } - - - public MerchantInfo isOnline(String isOnline) { - - this.isOnline = isOnline; - return this; - } - - /** - * Get isOnline - * @return isOnline - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getIsOnline() { - return isOnline; - } - - - public void setIsOnline(String isOnline) { - this.isOnline = isOnline; - } - - - public MerchantInfo merchantId(String merchantId) { - - this.merchantId = merchantId; - return this; - } - - /** - * Get merchantId - * @return merchantId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMerchantId() { - return merchantId; - } - - - public void setMerchantId(String merchantId) { - this.merchantId = merchantId; - } - - - public MerchantInfo nickName(String nickName) { - - this.nickName = nickName; - return this; - } - - /** - * Get nickName - * @return nickName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getNickName() { - return nickName; - } - - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - - public MerchantInfo registerTime(String registerTime) { - - this.registerTime = registerTime; - return this; - } - - /** - * Get registerTime - * @return registerTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRegisterTime() { - return registerTime; - } - - - public void setRegisterTime(String registerTime) { - this.registerTime = registerTime; - } - - - public MerchantInfo thirtyBuy(String thirtyBuy) { - - this.thirtyBuy = thirtyBuy; - return this; - } - - /** - * Get thirtyBuy - * @return thirtyBuy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyBuy() { - return thirtyBuy; - } - - - public void setThirtyBuy(String thirtyBuy) { - this.thirtyBuy = thirtyBuy; - } - - - public MerchantInfo thirtyCompletionRate(String thirtyCompletionRate) { - - this.thirtyCompletionRate = thirtyCompletionRate; - return this; - } - - /** - * Get thirtyCompletionRate - * @return thirtyCompletionRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyCompletionRate() { - return thirtyCompletionRate; - } - - - public void setThirtyCompletionRate(String thirtyCompletionRate) { - this.thirtyCompletionRate = thirtyCompletionRate; - } - - - public MerchantInfo thirtySell(String thirtySell) { - - this.thirtySell = thirtySell; - return this; - } - - /** - * Get thirtySell - * @return thirtySell - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtySell() { - return thirtySell; - } - - - public void setThirtySell(String thirtySell) { - this.thirtySell = thirtySell; - } - - - public MerchantInfo thirtyTrades(String thirtyTrades) { - - this.thirtyTrades = thirtyTrades; - return this; - } - - /** - * Get thirtyTrades - * @return thirtyTrades - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyTrades() { - return thirtyTrades; - } - - - public void setThirtyTrades(String thirtyTrades) { - this.thirtyTrades = thirtyTrades; - } - - - public MerchantInfo totalBuy(String totalBuy) { - - this.totalBuy = totalBuy; - return this; - } - - /** - * Get totalBuy - * @return totalBuy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalBuy() { - return totalBuy; - } - - - public void setTotalBuy(String totalBuy) { - this.totalBuy = totalBuy; - } - - - public MerchantInfo totalCompletionRate(String totalCompletionRate) { - - this.totalCompletionRate = totalCompletionRate; - return this; - } - - /** - * Get totalCompletionRate - * @return totalCompletionRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalCompletionRate() { - return totalCompletionRate; - } - - - public void setTotalCompletionRate(String totalCompletionRate) { - this.totalCompletionRate = totalCompletionRate; - } - - - public MerchantInfo totalSell(String totalSell) { - - this.totalSell = totalSell; - return this; - } - - /** - * Get totalSell - * @return totalSell - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalSell() { - return totalSell; - } - - - public void setTotalSell(String totalSell) { - this.totalSell = totalSell; - } - - - public MerchantInfo totalTrades(String totalTrades) { - - this.totalTrades = totalTrades; - return this; - } - - /** - * Get totalTrades - * @return totalTrades - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalTrades() { - return totalTrades; - } - - - public void setTotalTrades(String totalTrades) { - this.totalTrades = totalTrades; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantInfo instance itself - */ - public MerchantInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantInfo merchantInfo = (MerchantInfo) o; - return Objects.equals(this.averagePayment, merchantInfo.averagePayment) && - Objects.equals(this.averageRealese, merchantInfo.averageRealese) && - Objects.equals(this.isOnline, merchantInfo.isOnline) && - Objects.equals(this.merchantId, merchantInfo.merchantId) && - Objects.equals(this.nickName, merchantInfo.nickName) && - Objects.equals(this.registerTime, merchantInfo.registerTime) && - Objects.equals(this.thirtyBuy, merchantInfo.thirtyBuy) && - Objects.equals(this.thirtyCompletionRate, merchantInfo.thirtyCompletionRate) && - Objects.equals(this.thirtySell, merchantInfo.thirtySell) && - Objects.equals(this.thirtyTrades, merchantInfo.thirtyTrades) && - Objects.equals(this.totalBuy, merchantInfo.totalBuy) && - Objects.equals(this.totalCompletionRate, merchantInfo.totalCompletionRate) && - Objects.equals(this.totalSell, merchantInfo.totalSell) && - Objects.equals(this.totalTrades, merchantInfo.totalTrades)&& - Objects.equals(this.additionalProperties, merchantInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(averagePayment, averageRealese, isOnline, merchantId, nickName, registerTime, thirtyBuy, thirtyCompletionRate, thirtySell, thirtyTrades, totalBuy, totalCompletionRate, totalSell, totalTrades, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantInfo {\n"); - sb.append(" averagePayment: ").append(toIndentedString(averagePayment)).append("\n"); - sb.append(" averageRealese: ").append(toIndentedString(averageRealese)).append("\n"); - sb.append(" isOnline: ").append(toIndentedString(isOnline)).append("\n"); - sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); - sb.append(" nickName: ").append(toIndentedString(nickName)).append("\n"); - sb.append(" registerTime: ").append(toIndentedString(registerTime)).append("\n"); - sb.append(" thirtyBuy: ").append(toIndentedString(thirtyBuy)).append("\n"); - sb.append(" thirtyCompletionRate: ").append(toIndentedString(thirtyCompletionRate)).append("\n"); - sb.append(" thirtySell: ").append(toIndentedString(thirtySell)).append("\n"); - sb.append(" thirtyTrades: ").append(toIndentedString(thirtyTrades)).append("\n"); - sb.append(" totalBuy: ").append(toIndentedString(totalBuy)).append("\n"); - sb.append(" totalCompletionRate: ").append(toIndentedString(totalCompletionRate)).append("\n"); - sb.append(" totalSell: ").append(toIndentedString(totalSell)).append("\n"); - sb.append(" totalTrades: ").append(toIndentedString(totalTrades)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("averagePayment"); - openapiFields.add("averageRealese"); - openapiFields.add("isOnline"); - openapiFields.add("merchantId"); - openapiFields.add("nickName"); - openapiFields.add("registerTime"); - openapiFields.add("thirtyBuy"); - openapiFields.add("thirtyCompletionRate"); - openapiFields.add("thirtySell"); - openapiFields.add("thirtyTrades"); - openapiFields.add("totalBuy"); - openapiFields.add("totalCompletionRate"); - openapiFields.add("totalSell"); - openapiFields.add("totalTrades"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantInfo is not found in the empty JSON string", MerchantInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("averagePayment") != null && !jsonObj.get("averagePayment").isJsonNull()) && !jsonObj.get("averagePayment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `averagePayment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averagePayment").toString())); - } - if ((jsonObj.get("averageRealese") != null && !jsonObj.get("averageRealese").isJsonNull()) && !jsonObj.get("averageRealese").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `averageRealese` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averageRealese").toString())); - } - if ((jsonObj.get("isOnline") != null && !jsonObj.get("isOnline").isJsonNull()) && !jsonObj.get("isOnline").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `isOnline` to be a primitive type in the JSON string but got `%s`", jsonObj.get("isOnline").toString())); - } - if ((jsonObj.get("merchantId") != null && !jsonObj.get("merchantId").isJsonNull()) && !jsonObj.get("merchantId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `merchantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("merchantId").toString())); - } - if ((jsonObj.get("nickName") != null && !jsonObj.get("nickName").isJsonNull()) && !jsonObj.get("nickName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nickName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nickName").toString())); - } - if ((jsonObj.get("registerTime") != null && !jsonObj.get("registerTime").isJsonNull()) && !jsonObj.get("registerTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `registerTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registerTime").toString())); - } - if ((jsonObj.get("thirtyBuy") != null && !jsonObj.get("thirtyBuy").isJsonNull()) && !jsonObj.get("thirtyBuy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyBuy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyBuy").toString())); - } - if ((jsonObj.get("thirtyCompletionRate") != null && !jsonObj.get("thirtyCompletionRate").isJsonNull()) && !jsonObj.get("thirtyCompletionRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyCompletionRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyCompletionRate").toString())); - } - if ((jsonObj.get("thirtySell") != null && !jsonObj.get("thirtySell").isJsonNull()) && !jsonObj.get("thirtySell").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtySell` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtySell").toString())); - } - if ((jsonObj.get("thirtyTrades") != null && !jsonObj.get("thirtyTrades").isJsonNull()) && !jsonObj.get("thirtyTrades").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyTrades` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyTrades").toString())); - } - if ((jsonObj.get("totalBuy") != null && !jsonObj.get("totalBuy").isJsonNull()) && !jsonObj.get("totalBuy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalBuy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalBuy").toString())); - } - if ((jsonObj.get("totalCompletionRate") != null && !jsonObj.get("totalCompletionRate").isJsonNull()) && !jsonObj.get("totalCompletionRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalCompletionRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalCompletionRate").toString())); - } - if ((jsonObj.get("totalSell") != null && !jsonObj.get("totalSell").isJsonNull()) && !jsonObj.get("totalSell").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalSell` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalSell").toString())); - } - if ((jsonObj.get("totalTrades") != null && !jsonObj.get("totalTrades").isJsonNull()) && !jsonObj.get("totalTrades").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalTrades` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalTrades").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantInfo - * @throws IOException if the JSON string is invalid with respect to MerchantInfo - */ - public static MerchantInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantInfo.class); - } - - /** - * Convert an instance of MerchantInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfoResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfoResult.java deleted file mode 100644 index d7663b5a..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantInfoResult.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantInfoResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantInfoResult { - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_RESULT_LIST = "resultList"; - @SerializedName(SERIALIZED_NAME_RESULT_LIST) - private List resultList = null; - - public MerchantInfoResult() { - } - - public MerchantInfoResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MerchantInfoResult resultList(List resultList) { - - this.resultList = resultList; - return this; - } - - public MerchantInfoResult addResultListItem(MerchantInfo resultListItem) { - if (this.resultList == null) { - this.resultList = new ArrayList<>(); - } - this.resultList.add(resultListItem); - return this; - } - - /** - * Get resultList - * @return resultList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getResultList() { - return resultList; - } - - - public void setResultList(List resultList) { - this.resultList = resultList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantInfoResult instance itself - */ - public MerchantInfoResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantInfoResult merchantInfoResult = (MerchantInfoResult) o; - return Objects.equals(this.minId, merchantInfoResult.minId) && - Objects.equals(this.resultList, merchantInfoResult.resultList)&& - Objects.equals(this.additionalProperties, merchantInfoResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(minId, resultList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantInfoResult {\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" resultList: ").append(toIndentedString(resultList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("minId"); - openapiFields.add("resultList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantInfoResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantInfoResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantInfoResult is not found in the empty JSON string", MerchantInfoResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("resultList") != null && !jsonObj.get("resultList").isJsonNull()) { - JsonArray jsonArrayresultList = jsonObj.getAsJsonArray("resultList"); - if (jsonArrayresultList != null) { - // ensure the json data is an array - if (!jsonObj.get("resultList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `resultList` to be an array in the JSON string but got `%s`", jsonObj.get("resultList").toString())); - } - - // validate the optional field `resultList` (array) - for (int i = 0; i < jsonArrayresultList.size(); i++) { - MerchantInfo.validateJsonObject(jsonArrayresultList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantInfoResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantInfoResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantInfoResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantInfoResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantInfoResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantInfoResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantInfoResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantInfoResult - * @throws IOException if the JSON string is invalid with respect to MerchantInfoResult - */ - public static MerchantInfoResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantInfoResult.class); - } - - /** - * Convert an instance of MerchantInfoResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderInfo.java deleted file mode 100644 index d086f5b9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderInfo.java +++ /dev/null @@ -1,846 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantOrderPaymentInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantOrderInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantOrderInfo { - public static final String SERIALIZED_NAME_ADV_NO = "advNo"; - @SerializedName(SERIALIZED_NAME_ADV_NO) - private String advNo; - - public static final String SERIALIZED_NAME_AMOUNT = "amount"; - @SerializedName(SERIALIZED_NAME_AMOUNT) - private String amount; - - public static final String SERIALIZED_NAME_BUYER_REAL_NAME = "buyerRealName"; - @SerializedName(SERIALIZED_NAME_BUYER_REAL_NAME) - private String buyerRealName; - - public static final String SERIALIZED_NAME_COIN = "coin"; - @SerializedName(SERIALIZED_NAME_COIN) - private String coin; - - public static final String SERIALIZED_NAME_COUNT = "count"; - @SerializedName(SERIALIZED_NAME_COUNT) - private String count; - - public static final String SERIALIZED_NAME_CTIME = "ctime"; - @SerializedName(SERIALIZED_NAME_CTIME) - private String ctime; - - public static final String SERIALIZED_NAME_FIAT = "fiat"; - @SerializedName(SERIALIZED_NAME_FIAT) - private String fiat; - - public static final String SERIALIZED_NAME_ORDER_ID = "orderId"; - @SerializedName(SERIALIZED_NAME_ORDER_ID) - private String orderId; - - public static final String SERIALIZED_NAME_ORDER_NO = "orderNo"; - @SerializedName(SERIALIZED_NAME_ORDER_NO) - private String orderNo; - - public static final String SERIALIZED_NAME_PAYMENT_INFO = "paymentInfo"; - @SerializedName(SERIALIZED_NAME_PAYMENT_INFO) - private MerchantOrderPaymentInfo paymentInfo; - - public static final String SERIALIZED_NAME_PAYMENT_TIME = "paymentTime"; - @SerializedName(SERIALIZED_NAME_PAYMENT_TIME) - private String paymentTime; - - public static final String SERIALIZED_NAME_PRICE = "price"; - @SerializedName(SERIALIZED_NAME_PRICE) - private String price; - - public static final String SERIALIZED_NAME_RELEASE_COIN_TIME = "releaseCoinTime"; - @SerializedName(SERIALIZED_NAME_RELEASE_COIN_TIME) - private String releaseCoinTime; - - public static final String SERIALIZED_NAME_REPRESENT_TIME = "representTime"; - @SerializedName(SERIALIZED_NAME_REPRESENT_TIME) - private String representTime; - - public static final String SERIALIZED_NAME_SELLER_REAL_NAME = "sellerRealName"; - @SerializedName(SERIALIZED_NAME_SELLER_REAL_NAME) - private String sellerRealName; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private String status; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_WITHDRAW_TIME = "withdrawTime"; - @SerializedName(SERIALIZED_NAME_WITHDRAW_TIME) - private String withdrawTime; - - public MerchantOrderInfo() { - } - - public MerchantOrderInfo advNo(String advNo) { - - this.advNo = advNo; - return this; - } - - /** - * Get advNo - * @return advNo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAdvNo() { - return advNo; - } - - - public void setAdvNo(String advNo) { - this.advNo = advNo; - } - - - public MerchantOrderInfo amount(String amount) { - - this.amount = amount; - return this; - } - - /** - * Get amount - * @return amount - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAmount() { - return amount; - } - - - public void setAmount(String amount) { - this.amount = amount; - } - - - public MerchantOrderInfo buyerRealName(String buyerRealName) { - - this.buyerRealName = buyerRealName; - return this; - } - - /** - * Get buyerRealName - * @return buyerRealName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getBuyerRealName() { - return buyerRealName; - } - - - public void setBuyerRealName(String buyerRealName) { - this.buyerRealName = buyerRealName; - } - - - public MerchantOrderInfo coin(String coin) { - - this.coin = coin; - return this; - } - - /** - * Get coin - * @return coin - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCoin() { - return coin; - } - - - public void setCoin(String coin) { - this.coin = coin; - } - - - public MerchantOrderInfo count(String count) { - - this.count = count; - return this; - } - - /** - * Get count - * @return count - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCount() { - return count; - } - - - public void setCount(String count) { - this.count = count; - } - - - public MerchantOrderInfo ctime(String ctime) { - - this.ctime = ctime; - return this; - } - - /** - * Get ctime - * @return ctime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCtime() { - return ctime; - } - - - public void setCtime(String ctime) { - this.ctime = ctime; - } - - - public MerchantOrderInfo fiat(String fiat) { - - this.fiat = fiat; - return this; - } - - /** - * Get fiat - * @return fiat - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getFiat() { - return fiat; - } - - - public void setFiat(String fiat) { - this.fiat = fiat; - } - - - public MerchantOrderInfo orderId(String orderId) { - - this.orderId = orderId; - return this; - } - - /** - * Get orderId - * @return orderId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderId() { - return orderId; - } - - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - - public MerchantOrderInfo orderNo(String orderNo) { - - this.orderNo = orderNo; - return this; - } - - /** - * Get orderNo - * @return orderNo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getOrderNo() { - return orderNo; - } - - - public void setOrderNo(String orderNo) { - this.orderNo = orderNo; - } - - - public MerchantOrderInfo paymentInfo(MerchantOrderPaymentInfo paymentInfo) { - - this.paymentInfo = paymentInfo; - return this; - } - - /** - * Get paymentInfo - * @return paymentInfo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public MerchantOrderPaymentInfo getPaymentInfo() { - return paymentInfo; - } - - - public void setPaymentInfo(MerchantOrderPaymentInfo paymentInfo) { - this.paymentInfo = paymentInfo; - } - - - public MerchantOrderInfo paymentTime(String paymentTime) { - - this.paymentTime = paymentTime; - return this; - } - - /** - * Get paymentTime - * @return paymentTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPaymentTime() { - return paymentTime; - } - - - public void setPaymentTime(String paymentTime) { - this.paymentTime = paymentTime; - } - - - public MerchantOrderInfo price(String price) { - - this.price = price; - return this; - } - - /** - * Get price - * @return price - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPrice() { - return price; - } - - - public void setPrice(String price) { - this.price = price; - } - - - public MerchantOrderInfo releaseCoinTime(String releaseCoinTime) { - - this.releaseCoinTime = releaseCoinTime; - return this; - } - - /** - * Get releaseCoinTime - * @return releaseCoinTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getReleaseCoinTime() { - return releaseCoinTime; - } - - - public void setReleaseCoinTime(String releaseCoinTime) { - this.releaseCoinTime = releaseCoinTime; - } - - - public MerchantOrderInfo representTime(String representTime) { - - this.representTime = representTime; - return this; - } - - /** - * Get representTime - * @return representTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRepresentTime() { - return representTime; - } - - - public void setRepresentTime(String representTime) { - this.representTime = representTime; - } - - - public MerchantOrderInfo sellerRealName(String sellerRealName) { - - this.sellerRealName = sellerRealName; - return this; - } - - /** - * Get sellerRealName - * @return sellerRealName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getSellerRealName() { - return sellerRealName; - } - - - public void setSellerRealName(String sellerRealName) { - this.sellerRealName = sellerRealName; - } - - - public MerchantOrderInfo status(String status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getStatus() { - return status; - } - - - public void setStatus(String status) { - this.status = status; - } - - - public MerchantOrderInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public MerchantOrderInfo withdrawTime(String withdrawTime) { - - this.withdrawTime = withdrawTime; - return this; - } - - /** - * Get withdrawTime - * @return withdrawTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getWithdrawTime() { - return withdrawTime; - } - - - public void setWithdrawTime(String withdrawTime) { - this.withdrawTime = withdrawTime; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantOrderInfo instance itself - */ - public MerchantOrderInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantOrderInfo merchantOrderInfo = (MerchantOrderInfo) o; - return Objects.equals(this.advNo, merchantOrderInfo.advNo) && - Objects.equals(this.amount, merchantOrderInfo.amount) && - Objects.equals(this.buyerRealName, merchantOrderInfo.buyerRealName) && - Objects.equals(this.coin, merchantOrderInfo.coin) && - Objects.equals(this.count, merchantOrderInfo.count) && - Objects.equals(this.ctime, merchantOrderInfo.ctime) && - Objects.equals(this.fiat, merchantOrderInfo.fiat) && - Objects.equals(this.orderId, merchantOrderInfo.orderId) && - Objects.equals(this.orderNo, merchantOrderInfo.orderNo) && - Objects.equals(this.paymentInfo, merchantOrderInfo.paymentInfo) && - Objects.equals(this.paymentTime, merchantOrderInfo.paymentTime) && - Objects.equals(this.price, merchantOrderInfo.price) && - Objects.equals(this.releaseCoinTime, merchantOrderInfo.releaseCoinTime) && - Objects.equals(this.representTime, merchantOrderInfo.representTime) && - Objects.equals(this.sellerRealName, merchantOrderInfo.sellerRealName) && - Objects.equals(this.status, merchantOrderInfo.status) && - Objects.equals(this.type, merchantOrderInfo.type) && - Objects.equals(this.withdrawTime, merchantOrderInfo.withdrawTime)&& - Objects.equals(this.additionalProperties, merchantOrderInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(advNo, amount, buyerRealName, coin, count, ctime, fiat, orderId, orderNo, paymentInfo, paymentTime, price, releaseCoinTime, representTime, sellerRealName, status, type, withdrawTime, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantOrderInfo {\n"); - sb.append(" advNo: ").append(toIndentedString(advNo)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" buyerRealName: ").append(toIndentedString(buyerRealName)).append("\n"); - sb.append(" coin: ").append(toIndentedString(coin)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" ctime: ").append(toIndentedString(ctime)).append("\n"); - sb.append(" fiat: ").append(toIndentedString(fiat)).append("\n"); - sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); - sb.append(" orderNo: ").append(toIndentedString(orderNo)).append("\n"); - sb.append(" paymentInfo: ").append(toIndentedString(paymentInfo)).append("\n"); - sb.append(" paymentTime: ").append(toIndentedString(paymentTime)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append(" releaseCoinTime: ").append(toIndentedString(releaseCoinTime)).append("\n"); - sb.append(" representTime: ").append(toIndentedString(representTime)).append("\n"); - sb.append(" sellerRealName: ").append(toIndentedString(sellerRealName)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" withdrawTime: ").append(toIndentedString(withdrawTime)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("advNo"); - openapiFields.add("amount"); - openapiFields.add("buyerRealName"); - openapiFields.add("coin"); - openapiFields.add("count"); - openapiFields.add("ctime"); - openapiFields.add("fiat"); - openapiFields.add("orderId"); - openapiFields.add("orderNo"); - openapiFields.add("paymentInfo"); - openapiFields.add("paymentTime"); - openapiFields.add("price"); - openapiFields.add("releaseCoinTime"); - openapiFields.add("representTime"); - openapiFields.add("sellerRealName"); - openapiFields.add("status"); - openapiFields.add("type"); - openapiFields.add("withdrawTime"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantOrderInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantOrderInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantOrderInfo is not found in the empty JSON string", MerchantOrderInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("advNo") != null && !jsonObj.get("advNo").isJsonNull()) && !jsonObj.get("advNo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advNo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advNo").toString())); - } - if ((jsonObj.get("amount") != null && !jsonObj.get("amount").isJsonNull()) && !jsonObj.get("amount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); - } - if ((jsonObj.get("buyerRealName") != null && !jsonObj.get("buyerRealName").isJsonNull()) && !jsonObj.get("buyerRealName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `buyerRealName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("buyerRealName").toString())); - } - if ((jsonObj.get("coin") != null && !jsonObj.get("coin").isJsonNull()) && !jsonObj.get("coin").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coin").toString())); - } - if ((jsonObj.get("count") != null && !jsonObj.get("count").isJsonNull()) && !jsonObj.get("count").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `count` to be a primitive type in the JSON string but got `%s`", jsonObj.get("count").toString())); - } - if ((jsonObj.get("ctime") != null && !jsonObj.get("ctime").isJsonNull()) && !jsonObj.get("ctime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ctime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ctime").toString())); - } - if ((jsonObj.get("fiat") != null && !jsonObj.get("fiat").isJsonNull()) && !jsonObj.get("fiat").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fiat` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fiat").toString())); - } - if ((jsonObj.get("orderId") != null && !jsonObj.get("orderId").isJsonNull()) && !jsonObj.get("orderId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderId").toString())); - } - if ((jsonObj.get("orderNo") != null && !jsonObj.get("orderNo").isJsonNull()) && !jsonObj.get("orderNo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `orderNo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orderNo").toString())); - } - // validate the optional field `paymentInfo` - if (jsonObj.get("paymentInfo") != null && !jsonObj.get("paymentInfo").isJsonNull()) { - MerchantOrderPaymentInfo.validateJsonObject(jsonObj.getAsJsonObject("paymentInfo")); - } - if ((jsonObj.get("paymentTime") != null && !jsonObj.get("paymentTime").isJsonNull()) && !jsonObj.get("paymentTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `paymentTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("paymentTime").toString())); - } - if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull()) && !jsonObj.get("price").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `price` to be a primitive type in the JSON string but got `%s`", jsonObj.get("price").toString())); - } - if ((jsonObj.get("releaseCoinTime") != null && !jsonObj.get("releaseCoinTime").isJsonNull()) && !jsonObj.get("releaseCoinTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `releaseCoinTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("releaseCoinTime").toString())); - } - if ((jsonObj.get("representTime") != null && !jsonObj.get("representTime").isJsonNull()) && !jsonObj.get("representTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `representTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("representTime").toString())); - } - if ((jsonObj.get("sellerRealName") != null && !jsonObj.get("sellerRealName").isJsonNull()) && !jsonObj.get("sellerRealName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `sellerRealName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerRealName").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("withdrawTime") != null && !jsonObj.get("withdrawTime").isJsonNull()) && !jsonObj.get("withdrawTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `withdrawTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("withdrawTime").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantOrderInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantOrderInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantOrderInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantOrderInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantOrderInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantOrderInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantOrderInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantOrderInfo - * @throws IOException if the JSON string is invalid with respect to MerchantOrderInfo - */ - public static MerchantOrderInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantOrderInfo.class); - } - - /** - * Convert an instance of MerchantOrderInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderPaymentInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderPaymentInfo.java deleted file mode 100644 index 7780180e..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderPaymentInfo.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.OrderPaymentDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantOrderPaymentInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantOrderPaymentInfo { - public static final String SERIALIZED_NAME_PAYMETHOD_ID = "paymethodId"; - @SerializedName(SERIALIZED_NAME_PAYMETHOD_ID) - private String paymethodId; - - public static final String SERIALIZED_NAME_PAYMETHOD_INFO = "paymethodInfo"; - @SerializedName(SERIALIZED_NAME_PAYMETHOD_INFO) - private List paymethodInfo = null; - - public static final String SERIALIZED_NAME_PAYMETHOD_NAME = "paymethodName"; - @SerializedName(SERIALIZED_NAME_PAYMETHOD_NAME) - private String paymethodName; - - public MerchantOrderPaymentInfo() { - } - - public MerchantOrderPaymentInfo paymethodId(String paymethodId) { - - this.paymethodId = paymethodId; - return this; - } - - /** - * Get paymethodId - * @return paymethodId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPaymethodId() { - return paymethodId; - } - - - public void setPaymethodId(String paymethodId) { - this.paymethodId = paymethodId; - } - - - public MerchantOrderPaymentInfo paymethodInfo(List paymethodInfo) { - - this.paymethodInfo = paymethodInfo; - return this; - } - - public MerchantOrderPaymentInfo addPaymethodInfoItem(OrderPaymentDetailInfo paymethodInfoItem) { - if (this.paymethodInfo == null) { - this.paymethodInfo = new ArrayList<>(); - } - this.paymethodInfo.add(paymethodInfoItem); - return this; - } - - /** - * Get paymethodInfo - * @return paymethodInfo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getPaymethodInfo() { - return paymethodInfo; - } - - - public void setPaymethodInfo(List paymethodInfo) { - this.paymethodInfo = paymethodInfo; - } - - - public MerchantOrderPaymentInfo paymethodName(String paymethodName) { - - this.paymethodName = paymethodName; - return this; - } - - /** - * Get paymethodName - * @return paymethodName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getPaymethodName() { - return paymethodName; - } - - - public void setPaymethodName(String paymethodName) { - this.paymethodName = paymethodName; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantOrderPaymentInfo instance itself - */ - public MerchantOrderPaymentInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantOrderPaymentInfo merchantOrderPaymentInfo = (MerchantOrderPaymentInfo) o; - return Objects.equals(this.paymethodId, merchantOrderPaymentInfo.paymethodId) && - Objects.equals(this.paymethodInfo, merchantOrderPaymentInfo.paymethodInfo) && - Objects.equals(this.paymethodName, merchantOrderPaymentInfo.paymethodName)&& - Objects.equals(this.additionalProperties, merchantOrderPaymentInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(paymethodId, paymethodInfo, paymethodName, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantOrderPaymentInfo {\n"); - sb.append(" paymethodId: ").append(toIndentedString(paymethodId)).append("\n"); - sb.append(" paymethodInfo: ").append(toIndentedString(paymethodInfo)).append("\n"); - sb.append(" paymethodName: ").append(toIndentedString(paymethodName)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("paymethodId"); - openapiFields.add("paymethodInfo"); - openapiFields.add("paymethodName"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantOrderPaymentInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantOrderPaymentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantOrderPaymentInfo is not found in the empty JSON string", MerchantOrderPaymentInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("paymethodId") != null && !jsonObj.get("paymethodId").isJsonNull()) && !jsonObj.get("paymethodId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `paymethodId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("paymethodId").toString())); - } - if (jsonObj.get("paymethodInfo") != null && !jsonObj.get("paymethodInfo").isJsonNull()) { - JsonArray jsonArraypaymethodInfo = jsonObj.getAsJsonArray("paymethodInfo"); - if (jsonArraypaymethodInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("paymethodInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `paymethodInfo` to be an array in the JSON string but got `%s`", jsonObj.get("paymethodInfo").toString())); - } - - // validate the optional field `paymethodInfo` (array) - for (int i = 0; i < jsonArraypaymethodInfo.size(); i++) { - OrderPaymentDetailInfo.validateJsonObject(jsonArraypaymethodInfo.get(i).getAsJsonObject()); - }; - } - } - if ((jsonObj.get("paymethodName") != null && !jsonObj.get("paymethodName").isJsonNull()) && !jsonObj.get("paymethodName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `paymethodName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("paymethodName").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantOrderPaymentInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantOrderPaymentInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantOrderPaymentInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantOrderPaymentInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantOrderPaymentInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantOrderPaymentInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantOrderPaymentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantOrderPaymentInfo - * @throws IOException if the JSON string is invalid with respect to MerchantOrderPaymentInfo - */ - public static MerchantOrderPaymentInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantOrderPaymentInfo.class); - } - - /** - * Convert an instance of MerchantOrderPaymentInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderResult.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderResult.java deleted file mode 100644 index c2d5c4db..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantOrderResult.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.bitget.openapi.model.MerchantOrderInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantOrderResult - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantOrderResult { - public static final String SERIALIZED_NAME_MIN_ID = "minId"; - @SerializedName(SERIALIZED_NAME_MIN_ID) - private String minId; - - public static final String SERIALIZED_NAME_ORDER_LIST = "orderList"; - @SerializedName(SERIALIZED_NAME_ORDER_LIST) - private List orderList = null; - - public MerchantOrderResult() { - } - - public MerchantOrderResult minId(String minId) { - - this.minId = minId; - return this; - } - - /** - * Get minId - * @return minId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMinId() { - return minId; - } - - - public void setMinId(String minId) { - this.minId = minId; - } - - - public MerchantOrderResult orderList(List orderList) { - - this.orderList = orderList; - return this; - } - - public MerchantOrderResult addOrderListItem(MerchantOrderInfo orderListItem) { - if (this.orderList == null) { - this.orderList = new ArrayList<>(); - } - this.orderList.add(orderListItem); - return this; - } - - /** - * Get orderList - * @return orderList - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getOrderList() { - return orderList; - } - - - public void setOrderList(List orderList) { - this.orderList = orderList; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantOrderResult instance itself - */ - public MerchantOrderResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantOrderResult merchantOrderResult = (MerchantOrderResult) o; - return Objects.equals(this.minId, merchantOrderResult.minId) && - Objects.equals(this.orderList, merchantOrderResult.orderList)&& - Objects.equals(this.additionalProperties, merchantOrderResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(minId, orderList, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantOrderResult {\n"); - sb.append(" minId: ").append(toIndentedString(minId)).append("\n"); - sb.append(" orderList: ").append(toIndentedString(orderList)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("minId"); - openapiFields.add("orderList"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantOrderResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantOrderResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantOrderResult is not found in the empty JSON string", MerchantOrderResult.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("minId") != null && !jsonObj.get("minId").isJsonNull()) && !jsonObj.get("minId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minId").toString())); - } - if (jsonObj.get("orderList") != null && !jsonObj.get("orderList").isJsonNull()) { - JsonArray jsonArrayorderList = jsonObj.getAsJsonArray("orderList"); - if (jsonArrayorderList != null) { - // ensure the json data is an array - if (!jsonObj.get("orderList").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `orderList` to be an array in the JSON string but got `%s`", jsonObj.get("orderList").toString())); - } - - // validate the optional field `orderList` (array) - for (int i = 0; i < jsonArrayorderList.size(); i++) { - MerchantOrderInfo.validateJsonObject(jsonArrayorderList.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantOrderResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantOrderResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantOrderResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantOrderResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantOrderResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantOrderResult instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantOrderResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantOrderResult - * @throws IOException if the JSON string is invalid with respect to MerchantOrderResult - */ - public static MerchantOrderResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantOrderResult.class); - } - - /** - * Convert an instance of MerchantOrderResult to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantPersonInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantPersonInfo.java deleted file mode 100644 index d559dff9..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/MerchantPersonInfo.java +++ /dev/null @@ -1,868 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * MerchantPersonInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class MerchantPersonInfo { - public static final String SERIALIZED_NAME_AVERAGE_PAYMENT = "averagePayment"; - @SerializedName(SERIALIZED_NAME_AVERAGE_PAYMENT) - private String averagePayment; - - public static final String SERIALIZED_NAME_AVERAGE_REALESE = "averageRealese"; - @SerializedName(SERIALIZED_NAME_AVERAGE_REALESE) - private String averageRealese; - - public static final String SERIALIZED_NAME_EMAIL = "email"; - @SerializedName(SERIALIZED_NAME_EMAIL) - private String email; - - public static final String SERIALIZED_NAME_EMAIL_BIND_FLAG = "emailBindFlag"; - @SerializedName(SERIALIZED_NAME_EMAIL_BIND_FLAG) - private Boolean emailBindFlag; - - public static final String SERIALIZED_NAME_KYC_FLAG = "kycFlag"; - @SerializedName(SERIALIZED_NAME_KYC_FLAG) - private Boolean kycFlag; - - public static final String SERIALIZED_NAME_MERCHANT_ID = "merchantId"; - @SerializedName(SERIALIZED_NAME_MERCHANT_ID) - private String merchantId; - - public static final String SERIALIZED_NAME_MOBILE = "mobile"; - @SerializedName(SERIALIZED_NAME_MOBILE) - private String mobile; - - public static final String SERIALIZED_NAME_MOBILE_BIND_FLAG = "mobileBindFlag"; - @SerializedName(SERIALIZED_NAME_MOBILE_BIND_FLAG) - private Boolean mobileBindFlag; - - public static final String SERIALIZED_NAME_NICK_NAME = "nickName"; - @SerializedName(SERIALIZED_NAME_NICK_NAME) - private String nickName; - - public static final String SERIALIZED_NAME_REAL_NAME = "realName"; - @SerializedName(SERIALIZED_NAME_REAL_NAME) - private String realName; - - public static final String SERIALIZED_NAME_REGISTER_TIME = "registerTime"; - @SerializedName(SERIALIZED_NAME_REGISTER_TIME) - private String registerTime; - - public static final String SERIALIZED_NAME_THIRTY_BUY = "thirtyBuy"; - @SerializedName(SERIALIZED_NAME_THIRTY_BUY) - private String thirtyBuy; - - public static final String SERIALIZED_NAME_THIRTY_COMPLETION_RATE = "thirtyCompletionRate"; - @SerializedName(SERIALIZED_NAME_THIRTY_COMPLETION_RATE) - private String thirtyCompletionRate; - - public static final String SERIALIZED_NAME_THIRTY_SELL = "thirtySell"; - @SerializedName(SERIALIZED_NAME_THIRTY_SELL) - private String thirtySell; - - public static final String SERIALIZED_NAME_THIRTY_TRADES = "thirtyTrades"; - @SerializedName(SERIALIZED_NAME_THIRTY_TRADES) - private String thirtyTrades; - - public static final String SERIALIZED_NAME_TOTAL_BUY = "totalBuy"; - @SerializedName(SERIALIZED_NAME_TOTAL_BUY) - private String totalBuy; - - public static final String SERIALIZED_NAME_TOTAL_COMPLETION_RATE = "totalCompletionRate"; - @SerializedName(SERIALIZED_NAME_TOTAL_COMPLETION_RATE) - private String totalCompletionRate; - - public static final String SERIALIZED_NAME_TOTAL_SELL = "totalSell"; - @SerializedName(SERIALIZED_NAME_TOTAL_SELL) - private String totalSell; - - public static final String SERIALIZED_NAME_TOTAL_TRADES = "totalTrades"; - @SerializedName(SERIALIZED_NAME_TOTAL_TRADES) - private String totalTrades; - - public MerchantPersonInfo() { - } - - public MerchantPersonInfo averagePayment(String averagePayment) { - - this.averagePayment = averagePayment; - return this; - } - - /** - * Get averagePayment - * @return averagePayment - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAveragePayment() { - return averagePayment; - } - - - public void setAveragePayment(String averagePayment) { - this.averagePayment = averagePayment; - } - - - public MerchantPersonInfo averageRealese(String averageRealese) { - - this.averageRealese = averageRealese; - return this; - } - - /** - * Get averageRealese - * @return averageRealese - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getAverageRealese() { - return averageRealese; - } - - - public void setAverageRealese(String averageRealese) { - this.averageRealese = averageRealese; - } - - - public MerchantPersonInfo email(String email) { - - this.email = email; - return this; - } - - /** - * Get email - * @return email - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getEmail() { - return email; - } - - - public void setEmail(String email) { - this.email = email; - } - - - public MerchantPersonInfo emailBindFlag(Boolean emailBindFlag) { - - this.emailBindFlag = emailBindFlag; - return this; - } - - /** - * Get emailBindFlag - * @return emailBindFlag - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getEmailBindFlag() { - return emailBindFlag; - } - - - public void setEmailBindFlag(Boolean emailBindFlag) { - this.emailBindFlag = emailBindFlag; - } - - - public MerchantPersonInfo kycFlag(Boolean kycFlag) { - - this.kycFlag = kycFlag; - return this; - } - - /** - * Get kycFlag - * @return kycFlag - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getKycFlag() { - return kycFlag; - } - - - public void setKycFlag(Boolean kycFlag) { - this.kycFlag = kycFlag; - } - - - public MerchantPersonInfo merchantId(String merchantId) { - - this.merchantId = merchantId; - return this; - } - - /** - * Get merchantId - * @return merchantId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMerchantId() { - return merchantId; - } - - - public void setMerchantId(String merchantId) { - this.merchantId = merchantId; - } - - - public MerchantPersonInfo mobile(String mobile) { - - this.mobile = mobile; - return this; - } - - /** - * Get mobile - * @return mobile - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getMobile() { - return mobile; - } - - - public void setMobile(String mobile) { - this.mobile = mobile; - } - - - public MerchantPersonInfo mobileBindFlag(Boolean mobileBindFlag) { - - this.mobileBindFlag = mobileBindFlag; - return this; - } - - /** - * Get mobileBindFlag - * @return mobileBindFlag - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getMobileBindFlag() { - return mobileBindFlag; - } - - - public void setMobileBindFlag(Boolean mobileBindFlag) { - this.mobileBindFlag = mobileBindFlag; - } - - - public MerchantPersonInfo nickName(String nickName) { - - this.nickName = nickName; - return this; - } - - /** - * Get nickName - * @return nickName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getNickName() { - return nickName; - } - - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - - public MerchantPersonInfo realName(String realName) { - - this.realName = realName; - return this; - } - - /** - * Get realName - * @return realName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRealName() { - return realName; - } - - - public void setRealName(String realName) { - this.realName = realName; - } - - - public MerchantPersonInfo registerTime(String registerTime) { - - this.registerTime = registerTime; - return this; - } - - /** - * Get registerTime - * @return registerTime - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getRegisterTime() { - return registerTime; - } - - - public void setRegisterTime(String registerTime) { - this.registerTime = registerTime; - } - - - public MerchantPersonInfo thirtyBuy(String thirtyBuy) { - - this.thirtyBuy = thirtyBuy; - return this; - } - - /** - * Get thirtyBuy - * @return thirtyBuy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyBuy() { - return thirtyBuy; - } - - - public void setThirtyBuy(String thirtyBuy) { - this.thirtyBuy = thirtyBuy; - } - - - public MerchantPersonInfo thirtyCompletionRate(String thirtyCompletionRate) { - - this.thirtyCompletionRate = thirtyCompletionRate; - return this; - } - - /** - * Get thirtyCompletionRate - * @return thirtyCompletionRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyCompletionRate() { - return thirtyCompletionRate; - } - - - public void setThirtyCompletionRate(String thirtyCompletionRate) { - this.thirtyCompletionRate = thirtyCompletionRate; - } - - - public MerchantPersonInfo thirtySell(String thirtySell) { - - this.thirtySell = thirtySell; - return this; - } - - /** - * Get thirtySell - * @return thirtySell - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtySell() { - return thirtySell; - } - - - public void setThirtySell(String thirtySell) { - this.thirtySell = thirtySell; - } - - - public MerchantPersonInfo thirtyTrades(String thirtyTrades) { - - this.thirtyTrades = thirtyTrades; - return this; - } - - /** - * Get thirtyTrades - * @return thirtyTrades - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getThirtyTrades() { - return thirtyTrades; - } - - - public void setThirtyTrades(String thirtyTrades) { - this.thirtyTrades = thirtyTrades; - } - - - public MerchantPersonInfo totalBuy(String totalBuy) { - - this.totalBuy = totalBuy; - return this; - } - - /** - * Get totalBuy - * @return totalBuy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalBuy() { - return totalBuy; - } - - - public void setTotalBuy(String totalBuy) { - this.totalBuy = totalBuy; - } - - - public MerchantPersonInfo totalCompletionRate(String totalCompletionRate) { - - this.totalCompletionRate = totalCompletionRate; - return this; - } - - /** - * Get totalCompletionRate - * @return totalCompletionRate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalCompletionRate() { - return totalCompletionRate; - } - - - public void setTotalCompletionRate(String totalCompletionRate) { - this.totalCompletionRate = totalCompletionRate; - } - - - public MerchantPersonInfo totalSell(String totalSell) { - - this.totalSell = totalSell; - return this; - } - - /** - * Get totalSell - * @return totalSell - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalSell() { - return totalSell; - } - - - public void setTotalSell(String totalSell) { - this.totalSell = totalSell; - } - - - public MerchantPersonInfo totalTrades(String totalTrades) { - - this.totalTrades = totalTrades; - return this; - } - - /** - * Get totalTrades - * @return totalTrades - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getTotalTrades() { - return totalTrades; - } - - - public void setTotalTrades(String totalTrades) { - this.totalTrades = totalTrades; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the MerchantPersonInfo instance itself - */ - public MerchantPersonInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MerchantPersonInfo merchantPersonInfo = (MerchantPersonInfo) o; - return Objects.equals(this.averagePayment, merchantPersonInfo.averagePayment) && - Objects.equals(this.averageRealese, merchantPersonInfo.averageRealese) && - Objects.equals(this.email, merchantPersonInfo.email) && - Objects.equals(this.emailBindFlag, merchantPersonInfo.emailBindFlag) && - Objects.equals(this.kycFlag, merchantPersonInfo.kycFlag) && - Objects.equals(this.merchantId, merchantPersonInfo.merchantId) && - Objects.equals(this.mobile, merchantPersonInfo.mobile) && - Objects.equals(this.mobileBindFlag, merchantPersonInfo.mobileBindFlag) && - Objects.equals(this.nickName, merchantPersonInfo.nickName) && - Objects.equals(this.realName, merchantPersonInfo.realName) && - Objects.equals(this.registerTime, merchantPersonInfo.registerTime) && - Objects.equals(this.thirtyBuy, merchantPersonInfo.thirtyBuy) && - Objects.equals(this.thirtyCompletionRate, merchantPersonInfo.thirtyCompletionRate) && - Objects.equals(this.thirtySell, merchantPersonInfo.thirtySell) && - Objects.equals(this.thirtyTrades, merchantPersonInfo.thirtyTrades) && - Objects.equals(this.totalBuy, merchantPersonInfo.totalBuy) && - Objects.equals(this.totalCompletionRate, merchantPersonInfo.totalCompletionRate) && - Objects.equals(this.totalSell, merchantPersonInfo.totalSell) && - Objects.equals(this.totalTrades, merchantPersonInfo.totalTrades)&& - Objects.equals(this.additionalProperties, merchantPersonInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(averagePayment, averageRealese, email, emailBindFlag, kycFlag, merchantId, mobile, mobileBindFlag, nickName, realName, registerTime, thirtyBuy, thirtyCompletionRate, thirtySell, thirtyTrades, totalBuy, totalCompletionRate, totalSell, totalTrades, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MerchantPersonInfo {\n"); - sb.append(" averagePayment: ").append(toIndentedString(averagePayment)).append("\n"); - sb.append(" averageRealese: ").append(toIndentedString(averageRealese)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" emailBindFlag: ").append(toIndentedString(emailBindFlag)).append("\n"); - sb.append(" kycFlag: ").append(toIndentedString(kycFlag)).append("\n"); - sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); - sb.append(" mobile: ").append(toIndentedString(mobile)).append("\n"); - sb.append(" mobileBindFlag: ").append(toIndentedString(mobileBindFlag)).append("\n"); - sb.append(" nickName: ").append(toIndentedString(nickName)).append("\n"); - sb.append(" realName: ").append(toIndentedString(realName)).append("\n"); - sb.append(" registerTime: ").append(toIndentedString(registerTime)).append("\n"); - sb.append(" thirtyBuy: ").append(toIndentedString(thirtyBuy)).append("\n"); - sb.append(" thirtyCompletionRate: ").append(toIndentedString(thirtyCompletionRate)).append("\n"); - sb.append(" thirtySell: ").append(toIndentedString(thirtySell)).append("\n"); - sb.append(" thirtyTrades: ").append(toIndentedString(thirtyTrades)).append("\n"); - sb.append(" totalBuy: ").append(toIndentedString(totalBuy)).append("\n"); - sb.append(" totalCompletionRate: ").append(toIndentedString(totalCompletionRate)).append("\n"); - sb.append(" totalSell: ").append(toIndentedString(totalSell)).append("\n"); - sb.append(" totalTrades: ").append(toIndentedString(totalTrades)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("averagePayment"); - openapiFields.add("averageRealese"); - openapiFields.add("email"); - openapiFields.add("emailBindFlag"); - openapiFields.add("kycFlag"); - openapiFields.add("merchantId"); - openapiFields.add("mobile"); - openapiFields.add("mobileBindFlag"); - openapiFields.add("nickName"); - openapiFields.add("realName"); - openapiFields.add("registerTime"); - openapiFields.add("thirtyBuy"); - openapiFields.add("thirtyCompletionRate"); - openapiFields.add("thirtySell"); - openapiFields.add("thirtyTrades"); - openapiFields.add("totalBuy"); - openapiFields.add("totalCompletionRate"); - openapiFields.add("totalSell"); - openapiFields.add("totalTrades"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to MerchantPersonInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!MerchantPersonInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in MerchantPersonInfo is not found in the empty JSON string", MerchantPersonInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("averagePayment") != null && !jsonObj.get("averagePayment").isJsonNull()) && !jsonObj.get("averagePayment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `averagePayment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averagePayment").toString())); - } - if ((jsonObj.get("averageRealese") != null && !jsonObj.get("averageRealese").isJsonNull()) && !jsonObj.get("averageRealese").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `averageRealese` to be a primitive type in the JSON string but got `%s`", jsonObj.get("averageRealese").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - if ((jsonObj.get("merchantId") != null && !jsonObj.get("merchantId").isJsonNull()) && !jsonObj.get("merchantId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `merchantId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("merchantId").toString())); - } - if ((jsonObj.get("mobile") != null && !jsonObj.get("mobile").isJsonNull()) && !jsonObj.get("mobile").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `mobile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mobile").toString())); - } - if ((jsonObj.get("nickName") != null && !jsonObj.get("nickName").isJsonNull()) && !jsonObj.get("nickName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nickName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nickName").toString())); - } - if ((jsonObj.get("realName") != null && !jsonObj.get("realName").isJsonNull()) && !jsonObj.get("realName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `realName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("realName").toString())); - } - if ((jsonObj.get("registerTime") != null && !jsonObj.get("registerTime").isJsonNull()) && !jsonObj.get("registerTime").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `registerTime` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registerTime").toString())); - } - if ((jsonObj.get("thirtyBuy") != null && !jsonObj.get("thirtyBuy").isJsonNull()) && !jsonObj.get("thirtyBuy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyBuy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyBuy").toString())); - } - if ((jsonObj.get("thirtyCompletionRate") != null && !jsonObj.get("thirtyCompletionRate").isJsonNull()) && !jsonObj.get("thirtyCompletionRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyCompletionRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyCompletionRate").toString())); - } - if ((jsonObj.get("thirtySell") != null && !jsonObj.get("thirtySell").isJsonNull()) && !jsonObj.get("thirtySell").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtySell` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtySell").toString())); - } - if ((jsonObj.get("thirtyTrades") != null && !jsonObj.get("thirtyTrades").isJsonNull()) && !jsonObj.get("thirtyTrades").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `thirtyTrades` to be a primitive type in the JSON string but got `%s`", jsonObj.get("thirtyTrades").toString())); - } - if ((jsonObj.get("totalBuy") != null && !jsonObj.get("totalBuy").isJsonNull()) && !jsonObj.get("totalBuy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalBuy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalBuy").toString())); - } - if ((jsonObj.get("totalCompletionRate") != null && !jsonObj.get("totalCompletionRate").isJsonNull()) && !jsonObj.get("totalCompletionRate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalCompletionRate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalCompletionRate").toString())); - } - if ((jsonObj.get("totalSell") != null && !jsonObj.get("totalSell").isJsonNull()) && !jsonObj.get("totalSell").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalSell` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalSell").toString())); - } - if ((jsonObj.get("totalTrades") != null && !jsonObj.get("totalTrades").isJsonNull()) && !jsonObj.get("totalTrades").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `totalTrades` to be a primitive type in the JSON string but got `%s`", jsonObj.get("totalTrades").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!MerchantPersonInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MerchantPersonInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MerchantPersonInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MerchantPersonInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public MerchantPersonInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - MerchantPersonInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of MerchantPersonInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of MerchantPersonInfo - * @throws IOException if the JSON string is invalid with respect to MerchantPersonInfo - */ - public static MerchantPersonInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, MerchantPersonInfo.class); - } - - /** - * Convert an instance of MerchantPersonInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/OrderPaymentDetailInfo.java b/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/OrderPaymentDetailInfo.java deleted file mode 100644 index b1d91554..00000000 --- a/bitget-java-sdk-open-api/src/main/java/com/bitget/openapi/model/OrderPaymentDetailInfo.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.bitget.openapi.JSON; - -/** - * OrderPaymentDetailInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class OrderPaymentDetailInfo { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_REQUIRED = "required"; - @SerializedName(SERIALIZED_NAME_REQUIRED) - private Boolean required; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private String value; - - public OrderPaymentDetailInfo() { - } - - public OrderPaymentDetailInfo name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public OrderPaymentDetailInfo required(Boolean required) { - - this.required = required; - return this; - } - - /** - * Get required - * @return required - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getRequired() { - return required; - } - - - public void setRequired(Boolean required) { - this.required = required; - } - - - public OrderPaymentDetailInfo type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public OrderPaymentDetailInfo value(String value) { - - this.value = value; - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getValue() { - return value; - } - - - public void setValue(String value) { - this.value = value; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the OrderPaymentDetailInfo instance itself - */ - public OrderPaymentDetailInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderPaymentDetailInfo orderPaymentDetailInfo = (OrderPaymentDetailInfo) o; - return Objects.equals(this.name, orderPaymentDetailInfo.name) && - Objects.equals(this.required, orderPaymentDetailInfo.required) && - Objects.equals(this.type, orderPaymentDetailInfo.type) && - Objects.equals(this.value, orderPaymentDetailInfo.value)&& - Objects.equals(this.additionalProperties, orderPaymentDetailInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, required, type, value, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrderPaymentDetailInfo {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" required: ").append(toIndentedString(required)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("required"); - openapiFields.add("type"); - openapiFields.add("value"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to OrderPaymentDetailInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!OrderPaymentDetailInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in OrderPaymentDetailInfo is not found in the empty JSON string", OrderPaymentDetailInfo.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!OrderPaymentDetailInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OrderPaymentDetailInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OrderPaymentDetailInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OrderPaymentDetailInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additonal properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public OrderPaymentDetailInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - OrderPaymentDetailInfo instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of OrderPaymentDetailInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of OrderPaymentDetailInfo - * @throws IOException if the JSON string is invalid with respect to OrderPaymentDetailInfo - */ - public static OrderPaymentDetailInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, OrderPaymentDetailInfo.class); - } - - /** - * Convert an instance of OrderPaymentDetailInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossAccountApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossAccountApiTest.java deleted file mode 100644 index 22d18e5b..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossAccountApiTest.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import com.google.gson.JsonObject; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossAccountApi - */ -public class MarginCrossAccountApiTest { - - private final MarginCrossAccountApi api = new MarginCrossAccountApi(ApiConfig.getConfig()); - - /** - * assets - * - * Get Assets - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountAssetsTest() throws ApiException { - String coin = "USDT"; - ApiResponseResultOfListOfMarginCrossAssetsPopulationResult response = api.marginCrossAccountAssets(coin); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - for(MarginCrossAssetsPopulationResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getAvailable()).isNotNull(); - assertThat(item.getBorrow()).isNotNull(); - assertThat(item.getCoin()).isNotNull(); - assertThat(item.getCtime()).isNotNull(); - assertThat(item.getFrozen()).isNotNull(); - assertThat(item.getInterest()).isNotNull(); - assertThat(item.getNet()).isNotNull(); - assertThat(item.getTotalAmount()).isNotNull(); - } - } - - /** - * borrow - * - * borrow - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountBorrowTest() throws ApiException { - MarginCrossLimitRequest marginCrossLimitRequest = new MarginCrossLimitRequest(); - marginCrossLimitRequest.setBorrowAmount("1"); - marginCrossLimitRequest.setCoin("USDT"); - ApiResponseResultOfMarginCrossBorrowLimitResult response = api.marginCrossAccountBorrow(marginCrossLimitRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getBorrowAmount()).isNotNull(); - - } - - /** - * maxBorrowableAmount - * - * Get MaxBorrowableAmount - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountMaxBorrowableAmountTest() throws ApiException { - MarginCrossMaxBorrowRequest marginCrossMaxBorrowRequest = new MarginCrossMaxBorrowRequest(); - marginCrossMaxBorrowRequest.setCoin("USDT"); - ApiResponseResultOfMarginCrossMaxBorrowResult response = api.marginCrossAccountMaxBorrowableAmount(marginCrossMaxBorrowRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getMaxBorrowableAmount()).isNotNull(); - } - - /** - * maxTransferOutAmount - * - * Get Max TransferOutAmount - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountMaxTransferOutAmountTest() throws ApiException { - String coin = "USDT"; - ApiResponseResultOfMarginCrossAssetsResult response = api.marginCrossAccountMaxTransferOutAmount(coin); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getMaxTransferOutAmount()).isNotNull(); - } - - /** - * repay - * - * repay - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountRepayTest() throws ApiException { - MarginCrossRepayRequest marginCrossRepayRequest = new MarginCrossRepayRequest(); - marginCrossRepayRequest.setCoin("USDT"); - marginCrossRepayRequest.setRepayAmount("1"); - ApiResponseResultOfMarginCrossRepayResult response = api.marginCrossAccountRepay(marginCrossRepayRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getRepayAmount()).isNotNull(); - } - - /** - * riskRate - * - * riskRate - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossAccountRiskRateTest() throws ApiException { - ApiResponseResultOfMarginCrossAssetsRiskResult response = api.marginCrossAccountRiskRate(); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getRiskRate()).isNotNull(); - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossBorrowApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossBorrowApiTest.java deleted file mode 100644 index 54588a7e..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossBorrowApiTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.JSON; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossBorrowApi - */ -public class MarginCrossBorrowApiTest { - - private final MarginCrossBorrowApi api = new MarginCrossBorrowApi(ApiConfig.getConfig()); - - /** - * list - * - * Get Loan List - * - * @throws ApiException if the Api call fails - */ - @Test - public void loanListTest() throws ApiException { - String startTime = "1677274167003"; - String coin = null; - String endTime = "1680057356760"; - String loanId = null; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginLoanInfoResult response = api.crossLoanList(startTime, coin, endTime, loanId, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginLoanInfo item : response.getData().getResultList()) { - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getType()).isNotBlank(); - assertThat(item.getLoanId()).isNotBlank(); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossFinflowApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossFinflowApiTest.java deleted file mode 100644 index 0865e2a6..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossFinflowApiTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.JSON; -import com.bitget.openapi.model.ApiResponseResultOfMarginCrossFinFlowResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginCrossFinFlowInfo; -import com.bitget.openapi.model.MarginLoanInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossFinflowApi - */ -public class MarginCrossFinflowApiTest { - - private final MarginCrossFinflowApi api = new MarginCrossFinflowApi(ApiConfig.getConfig()); - - /** - * list - * - * Get finance flow List - * - * @throws ApiException if the Api call fails - */ - @Test - public void finListTest() throws ApiException { - String marginType = null; - String startTime = "1677274167003"; - String coin = null; - String endTime = "1680057356760"; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginCrossFinFlowResult response = api.crossFinList(startTime, coin, endTime, marginType, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginCrossFinFlowInfo item : response.getData().getResultList()) { - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getMarginId()).isNotBlank(); - assertThat(item.getMarginType()).isNotBlank(); - assertThat(item.getBalance()).isNotBlank(); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossInterestApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossInterestApiTest.java deleted file mode 100644 index 018b5230..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossInterestApiTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginInterestInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginInterestInfo; -import com.bitget.openapi.model.MarginIsolatedInterestInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossInterestApi - */ -public class MarginCrossInterestApiTest { - - private final MarginCrossInterestApi api = new MarginCrossInterestApi(ApiConfig.getConfig()); - - /** - * list - * - * Get interest List - * - * @throws ApiException if the Api call fails - */ - @Test - public void interestListTest() throws ApiException { - String startTime = "1677274167003"; - String coin = null; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginInterestInfoResult response = api.crossInterestList(startTime, coin, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginInterestInfo item : response.getData().getResultList()) { - assertThat(item.getType()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getInterestId()).isNotBlank(); - assertThat(item.getInterestCoin()).isNotBlank(); - assertThat(item.getLoanCoin()).isNotBlank(); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossLiquidationApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossLiquidationApiTest.java deleted file mode 100644 index 3cf7a8a9..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossLiquidationApiTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginLiquidationInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginInterestInfo; -import com.bitget.openapi.model.MarginLiquidationInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossLiquidationApi - */ -public class MarginCrossLiquidationApiTest { - - private final MarginCrossLiquidationApi api = new MarginCrossLiquidationApi(ApiConfig.getConfig()); - - /** - * list - * - * Get liquidation List - * - * @throws ApiException if the Api call fails - */ - @Test - public void liquidationListTest() throws ApiException { - String startTime = "1677274167003"; - String endTime = "1680057356760"; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginLiquidationInfoResult response = api.crossLiquidationList(startTime, endTime, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginLiquidationInfo item : response.getData().getResultList()) { - assertThat(item.getLiqFee()).isNotBlank(); - assertThat(item.getLiqEndTime()).isNotBlank(); - assertThat(item.getLiqStartTime()).isNotBlank(); - assertThat(item.getLiqRisk()).isNotBlank(); - assertThat(item.getTotalAssets()).isNotBlank(); - assertThat(item.getTotalDebt()).isNotBlank(); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossOrderApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossOrderApiTest.java deleted file mode 100644 index ac331dad..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossOrderApiTest.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; -import org.junit.platform.commons.util.CollectionUtils; - -import java.util.*; - -import static org.assertj.core.api.Assertions.assertThat; - - -/** - * API tests for MarginCrossOrderApi - */ -public class MarginCrossOrderApiTest { - - private final MarginCrossOrderApi api = new MarginCrossOrderApi(ApiConfig.getConfig()); - - /** - * batchCancelOrder - * - * Margin Cross BatchCancelOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossBatchCancelOrderTest() throws ApiException { - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); - String clientOid = String.valueOf(System.currentTimeMillis()); - marginOrderRequest.setSymbol("BTCUSDT"); - marginOrderRequest.setSide("buy"); - marginOrderRequest.setOrderType("limit"); - marginOrderRequest.setPrice("17000"); - marginOrderRequest.setTimeInForce("gtc"); - marginOrderRequest.setBaseQuantity("0.01"); - marginOrderRequest.setLoanType("normal"); - marginOrderRequest.setClientOid(clientOid); - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = api.marginCrossPlaceOrder(marginOrderRequest); - MarginBatchCancelOrderRequest marginBatchCancelOrderRequest = new MarginBatchCancelOrderRequest(); - marginBatchCancelOrderRequest.setOrderIds(Arrays.asList(placeOrderResult.getData().getOrderId())); - marginBatchCancelOrderRequest.setSymbol("BTCUSDT"); - ApiResponseResultOfMarginBatchCancelOrderResult response = api.marginCrossBatchCancelOrder(marginBatchCancelOrderRequest); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - for (MarginCancelOrderResult result : response.getData().getResultList()) { - assertThat(result.getOrderId()).isNotBlank(); - } - } - - /** - * fills - * - * Margin Cross Fills - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossBatchFillsTest() throws ApiException { - String symbol = "BTCUSDT"; - String startTime = "1679354812000"; - String source = null; - String endTime = "1680154960627"; - String orderId = null; - String lastFillId = null; - String pageSize = "10"; - ApiResponseResultOfMarginTradeDetailInfoResult response = api.marginCrossFills(symbol, startTime, source, endTime, orderId, lastFillId, pageSize); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getFills() != null && response.getData().getFills().size() > 0) { - for (MarginTradeDetailInfo marginTradeDetailInfo : response.getData().getFills()) { - assertThat(marginTradeDetailInfo.getOrderId()).isNotBlank(); - assertThat(marginTradeDetailInfo.getSide()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillId()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillPrice()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillQuantity()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillTotalAmount()).isNotBlank(); - assertThat(marginTradeDetailInfo.getOrderType()).isNotBlank(); - } - } - } - - /** - * history - * - * Margin Cross historyOrders - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossBatchHistoryOrdersTest() throws ApiException { - String startTime = String.valueOf(System.currentTimeMillis() - 5 * 24 * 60 * 60 * 1000L); - String symbol = "BTCUSDT"; - String source = null; - String endTime = "1680154960627"; - String orderId = null; - String clientOid = null; - String minId = null; - String pageSize = null; - ApiResponseResultOfMarginOpenOrderInfoResult response = api.marginCrossHistoryOrders(startTime, symbol, source, endTime, orderId, clientOid, minId, pageSize); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getOrderList()).isNotNull(); - for (MarginOrderInfo item : response.getData().getOrderList()) { - assertThat(item).isNotNull(); - assertThat(item.getSymbol()).isEqualTo("BTCUSDT"); - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getOrderType()).isNotBlank(); - assertThat(item.getBaseQuantity()).isNotBlank(); - assertThat(item.getFillPrice()).isNotBlank(); - assertThat(item.getFillQuantity()).isNotBlank(); - assertThat(item.getFillTotalAmount()).isNotBlank(); - assertThat(item.getLoanType()).isNotBlank(); - assertThat(item.getPrice()).isNotBlank(); - assertThat(item.getQuoteAmount()).isNotBlank(); - assertThat(item.getSide()).isNotBlank(); - assertThat(item.getSource()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - } - } - - /** - * openOrders - * - * Margin Cross openOrders - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossBatchOpenOrdersTest() throws ApiException { - String startTime = String.valueOf(System.currentTimeMillis() - 5 * 24 * 60 * 60 * 1000L); - String symbol = "BTCUSDT"; - String endTime = String.valueOf(System.currentTimeMillis()); - String orderId = null; - String clientOid = null; - String pageSize = null; - ApiResponseResultOfMarginOpenOrderInfoResult response = api.marginCrossOpenOrders(symbol, startTime, endTime, orderId, clientOid, pageSize); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getOrderList()).isNotNull(); - for (MarginOrderInfo item : response.getData().getOrderList()) { - assertThat(item).isNotNull(); - assertThat(item.getSymbol()).isEqualTo("BTCUSDT"); - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getOrderType()).isNotBlank(); - assertThat(item.getBaseQuantity()).isNotBlank(); - assertThat(item.getFillPrice()).isNotBlank(); - assertThat(item.getFillQuantity()).isNotBlank(); - assertThat(item.getFillTotalAmount()).isNotBlank(); - assertThat(item.getLoanType()).isNotBlank(); - assertThat(item.getPrice()).isNotBlank(); - assertThat(item.getQuoteAmount()).isNotBlank(); - assertThat(item.getSide()).isNotBlank(); - assertThat(item.getSource()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - } - } - - /** - * batchPlaceOrder - * - * Margin Cross PlaceOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossBatchPlaceOrderTest() throws ApiException { - MarginBatchOrdersRequest marginOrderRequest = new MarginBatchOrdersRequest(); - marginOrderRequest.setSymbol("BTCUSDT"); - MarginOrderRequest orderRequest = new MarginOrderRequest(); - String clientOid = String.valueOf(System.currentTimeMillis()); - orderRequest.setSide("buy"); - orderRequest.setOrderType("limit"); - orderRequest.setPrice("17000"); - orderRequest.setTimeInForce("gtc"); - orderRequest.setBaseQuantity("0.01"); - orderRequest.setLoanType("normal"); - orderRequest.setClientOid(clientOid); - marginOrderRequest.setOrderList(Arrays.asList(orderRequest)); - ApiResponseResultOfMarginBatchPlaceOrderResult response = api.marginCrossBatchPlaceOrder(marginOrderRequest); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getResultList()).isNotNull(); - for (MarginCancelOrderResult item : response.getData().getResultList()) { - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getClientOid()).isNotBlank(); - assertThat(item.getClientOid()).isEqualTo(clientOid); - } - } - - /** - * cancelOrder - * - * Margin Cross CancelOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossCancelOrderTest() throws ApiException { - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = placeOrderByLimit(); - - MarginCancelOrderRequest marginCancelOrderRequest = new MarginCancelOrderRequest(); - marginCancelOrderRequest.setSymbol("BTCUSDT"); - marginCancelOrderRequest.setOrderId(placeOrderResult.getData().getOrderId()); - ApiResponseResultOfMarginBatchCancelOrderResult response = api.marginCrossCancelOrder(marginCancelOrderRequest); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getResultList()).isNotNull(); - assertThat(response.getData().getResultList().size()).isEqualTo(1); - assertThat(response.getData().getResultList().get(0).getOrderId()).isEqualTo(placeOrderResult.getData().getOrderId()); - } - - /** - * placeOrder - * - * Margin Cross PlaceOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossPlaceOrderTest() throws ApiException { - placeOrderByMarker(); - } - - private ApiResponseResultOfMarginPlaceOrderResult placeOrderByMarker() throws ApiException { - String clientOid = String.valueOf(System.currentTimeMillis()); - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); - marginOrderRequest.setSymbol("BTCUSDT"); - marginOrderRequest.setSide("buy"); - marginOrderRequest.setOrderType("market"); - marginOrderRequest.setTimeInForce("gtc"); - marginOrderRequest.setQuoteAmount("10"); - marginOrderRequest.setLoanType("normal"); - marginOrderRequest.setClientOid(clientOid); - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = api.marginCrossPlaceOrder(marginOrderRequest); - - assertThat(placeOrderResult).isNotNull(); - assertThat(placeOrderResult.getCode()).isEqualTo("00000"); - assertThat(placeOrderResult.getMsg()).isEqualTo("success"); - assertThat(placeOrderResult.getData()).isNotNull(); - assertThat(placeOrderResult.getData().getOrderId()).isNotNull(); - assertThat(placeOrderResult.getData().getClientOid()).isEqualTo(clientOid); - - return placeOrderResult; - } - - private ApiResponseResultOfMarginPlaceOrderResult placeOrderByLimit() throws ApiException { - String clientOid = String.valueOf(System.currentTimeMillis()); - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); - marginOrderRequest.setSymbol("BTCUSDT"); - marginOrderRequest.setSide("buy"); - marginOrderRequest.setOrderType("limit"); - marginOrderRequest.setPrice("1600"); - marginOrderRequest.setTimeInForce("gtc"); - marginOrderRequest.setQuoteAmount("1000"); - marginOrderRequest.setBaseQuantity("0.625"); - marginOrderRequest.setLoanType("normal"); - marginOrderRequest.setClientOid(clientOid); - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = api.marginCrossPlaceOrder(marginOrderRequest); - - assertThat(placeOrderResult).isNotNull(); - assertThat(placeOrderResult.getCode()).isEqualTo("00000"); - assertThat(placeOrderResult.getMsg()).isEqualTo("success"); - assertThat(placeOrderResult.getData()).isNotNull(); - assertThat(placeOrderResult.getData().getOrderId()).isNotNull(); - assertThat(placeOrderResult.getData().getClientOid()).isEqualTo(clientOid); - - return placeOrderResult; - } -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossPublicApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossPublicApiTest.java deleted file mode 100644 index e1e29881..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossPublicApiTest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossPublicApi - */ -public class MarginCrossPublicApiTest { - - private final MarginCrossPublicApi api = new MarginCrossPublicApi(ApiConfig.getConfig()); - - /** - * interestRateAndLimit - * - * Get InterestRateAndLimit - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossPublicInterestRateAndLimitTest() throws ApiException { - String coin = "USDT"; - ApiResponseResultOfListOfMarginCrossRateAndLimitResult response = api.marginCrossPublicInterestRateAndLimit(coin); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for (MarginCrossRateAndLimitResult item : response.getData()) { - assertThat(item).isNotNull(); - assertThat(item.getBorrowAble()).isNotNull(); - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getDailyInterestRate()).isNotBlank(); - assertThat(item.getLeverage()).isNotBlank(); - assertThat(item.getMaxBorrowableAmount()).isNotBlank(); - assertThat(item.getTransferInAble()).isNotNull(); - assertThat(item.getYearlyInterestRate()).isNotBlank(); - assertThat(item.getVips()).isNotNull(); - for(MarginCrossVipResult marginCrossVipResult : item.getVips()){ - assertThat(marginCrossVipResult).isNotNull(); - assertThat(marginCrossVipResult.getDailyInterestRate()).isNotNull(); - assertThat(marginCrossVipResult.getYearlyInterestRate()).isNotNull(); - assertThat(marginCrossVipResult.getDiscountRate()).isNotNull(); - assertThat(marginCrossVipResult.getLevel()).isNotNull(); - } - } - } - - /** - * tierData - * - * Get TierData - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginCrossPublicTierDataTest() throws ApiException { - String coin = "USDT"; - ApiResponseResultOfListOfMarginCrossLevelResult response = api.marginCrossPublicTierData(coin); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for(MarginCrossLevelResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getCoin()).isNotNull(); - assertThat(item.getLeverage()).isNotBlank(); - assertThat(item.getMaintainMarginRate()).isNotBlank(); - assertThat(item.getMaxBorrowableAmount()).isNotBlank(); - assertThat(item.getTier()).isNotBlank(); - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossRepayApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossRepayApiTest.java deleted file mode 100644 index 6ca44bf8..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginCrossRepayApiTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginRepayInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginIsolatedRepayInfo; -import com.bitget.openapi.model.MarginRepayInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginCrossRepayApi - */ -public class MarginCrossRepayApiTest { - - private final MarginCrossRepayApi api = new MarginCrossRepayApi(ApiConfig.getConfig()); - - /** - * list - * - * Get liquidation List - * - * @throws ApiException if the Api call fails - */ - @Test - public void repayListTest() throws ApiException { - String startTime = "1677274167003"; - String endTime = "1680057356760"; - String pageSize = "10"; - String coin = null; - String repayId = null; - String pageId = null; - ApiResponseResultOfMarginRepayInfoResult response = api.crossRepayList(startTime, coin, repayId, endTime, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginRepayInfo item : response.getData().getResultList()) { - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getType()).isNotBlank(); - assertThat(item.getRepayId()).isNotBlank(); - assertThat(item.getInterest()).isNotBlank(); - assertThat(item.getTotalAmount()).isNotBlank(); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedAccountApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedAccountApiTest.java deleted file mode 100644 index e073b674..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedAccountApiTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedAccountApi - */ -public class MarginIsolatedAccountApiTest { - - private final MarginIsolatedAccountApi api = new MarginIsolatedAccountApi(ApiConfig.getConfig()); - - /** - * assets - * - * Get Assets - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountAssetsTest() throws ApiException { - String symbol = "BTCUSDT"; - ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult response = api.marginIsolatedAccountAssets(symbol); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for(MarginIsolatedAssetsPopulationResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getAvailable()).isNotNull(); - assertThat(item.getBorrow()).isNotNull(); - assertThat(item.getCoin()).isNotNull(); - assertThat(item.getCtime()).isNotNull(); - assertThat(item.getFrozen()).isNotNull(); - assertThat(item.getInterest()).isNotNull(); - assertThat(item.getNet()).isNotNull(); - assertThat(item.getTotalAmount()).isNotNull(); - } - } - - /** - * borrow - * - * borrow - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountBorrowTest() throws ApiException { - MarginIsolatedLimitRequest marginIsolatedLimitRequest = new MarginIsolatedLimitRequest(); - marginIsolatedLimitRequest.setBorrowAmount("1"); - marginIsolatedLimitRequest.setSymbol("BTCUSDT"); - marginIsolatedLimitRequest.setCoin("USDT"); - ApiResponseResultOfMarginIsolatedBorrowLimitResult response = api.marginIsolatedAccountBorrow(marginIsolatedLimitRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getBorrowAmount()).isNotNull(); - } - - /** - * maxBorrowableAmount - * - * Get MaxBorrowableAmount - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountMaxBorrowableAmountTest() throws ApiException { - MarginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest = new MarginIsolatedMaxBorrowRequest(); - marginIsolatedMaxBorrowRequest.setSymbol("BTCUSDT"); - marginIsolatedMaxBorrowRequest.setCoin("USDT"); - ApiResponseResultOfMarginIsolatedMaxBorrowResult response = api.marginIsolatedAccountMaxBorrowableAmount(marginIsolatedMaxBorrowRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getMaxBorrowableAmount()).isNotNull(); - assertThat(response.getData().getSymbol()).isNotNull(); - - } - - /** - * maxTransferOutAmount - * - * Get Max TransferOutAmount - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountMaxTransferOutAmountTest() throws ApiException { - String coin = "USDT"; - String symbol = "BTCUSDT"; - ApiResponseResultOfMarginIsolatedAssetsResult response = api.marginIsolatedAccountMaxTransferOutAmount(coin, symbol); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getMaxTransferOutAmount()).isNotNull(); - assertThat(response.getData().getSymbol()).isNotNull(); - - } - - /** - * repay - * - * repay - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountRepayTest() throws ApiException { - MarginIsolatedRepayRequest marginIsolatedRepayRequest = new MarginIsolatedRepayRequest(); - marginIsolatedRepayRequest.setCoin("USDT"); - marginIsolatedRepayRequest.setRepayAmount("1"); - marginIsolatedRepayRequest.setSymbol("BTCUSDT"); - ApiResponseResultOfMarginIsolatedRepayResult response = api.marginIsolatedAccountRepay(marginIsolatedRepayRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getCoin()).isNotNull(); - assertThat(response.getData().getRepayAmount()).isNotNull(); - assertThat(response.getData().getSymbol()).isNotNull(); - - } - - /** - * riskRate - * - * riskRate - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedAccountRiskRateTest() throws ApiException { - MarginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest = new MarginIsolatedAssetsRiskRequest(); - marginIsolatedAssetsRiskRequest.setSymbol("BTCUSDT"); - marginIsolatedAssetsRiskRequest.setPageNum("1"); - marginIsolatedAssetsRiskRequest.setPageSize("100"); - ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult response = api.marginIsolatedAccountRiskRate(marginIsolatedAssetsRiskRequest); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - for(MarginIsolatedAssetsRiskResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getRiskRate()).isNotNull(); - assertThat(item.getSymbol()).isNotNull(); - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedBorrowApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedBorrowApiTest.java deleted file mode 100644 index cf7f6053..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedBorrowApiTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLoanInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginIsolatedLoanInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedBorrowApi - */ -public class MarginIsolatedBorrowApiTest { - - private final MarginIsolatedBorrowApi api = new MarginIsolatedBorrowApi(ApiConfig.getConfig()); - - /** - * list - * - * Get Loan List - * - * @throws ApiException if the Api call fails - */ - @Test - public void loanList1Test() throws ApiException { - String startTime = "1677274167003"; - String symbol = "BTCUSDT"; - String coin = null; - String endTime = "1680057356760"; - String loanId = null; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginIsolatedLoanInfoResult response = api.isolatedLoanList(symbol, startTime, coin, endTime, loanId, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginIsolatedLoanInfo item : response.getData().getResultList()) { - assertThat(item.getSymbol()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getType()).isNotBlank(); - assertThat(item.getLoanId()).isNotBlank(); - assertThat(item.getSymbol()).isEqualTo(symbol); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedFinflowApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedFinflowApiTest.java deleted file mode 100644 index 30671287..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedFinflowApiTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedFinFlowResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginCrossFinFlowInfo; -import com.bitget.openapi.model.MarginIsolatedFinFlowInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedFinflowApi - */ -public class MarginIsolatedFinflowApiTest { - - private final MarginIsolatedFinflowApi api = new MarginIsolatedFinflowApi(ApiConfig.getConfig()); - - /** - * list - * - * Get finance flow List - * - * @throws ApiException if the Api call fails - */ - @Test - public void finList1Test() throws ApiException { - String symbol = "BTCUSDT"; - String marginType = null; - String startTime = "1677274167003"; - String coin = null; - String endTime = "1680057356760"; - String pageSize = "10"; - String pageId = null; - String loanId = null; - ApiResponseResultOfMarginIsolatedFinFlowResult response = api.isolatedFinList(symbol, startTime, coin, marginType, endTime, loanId, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginIsolatedFinFlowInfo item : response.getData().getResultList()) { - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getMarginId()).isNotBlank(); - assertThat(item.getMarginType()).isNotBlank(); - assertThat(item.getBalance()).isNotBlank(); - assertThat(item.getSymbol()).isNotBlank(); - assertThat(item.getSymbol()).isEqualTo(symbol); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedInterestApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedInterestApiTest.java deleted file mode 100644 index 8162d4be..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedInterestApiTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedInterestInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginIsolatedFinFlowInfo; -import com.bitget.openapi.model.MarginIsolatedInterestInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedInterestApi - */ -public class MarginIsolatedInterestApiTest { - - private final MarginIsolatedInterestApi api = new MarginIsolatedInterestApi(ApiConfig.getConfig()); - - /** - * list - * - * Get interest List - * - * @throws ApiException if the Api call fails - */ - @Test - public void interestList1Test() throws ApiException { - String symbol = "BTCUSDT"; - String startTime = "1677274167003"; - String coin = null; - String pageSize = "10"; - String pageId = null; - ApiResponseResultOfMarginIsolatedInterestInfoResult response = api.isolatedInterestList(symbol, startTime, coin, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginIsolatedInterestInfo item : response.getData().getResultList()) { - assertThat(item.getType()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getInterestId()).isNotBlank(); - assertThat(item.getSymbol()).isNotBlank(); - assertThat(item.getInterestCoin()).isNotBlank(); - assertThat(item.getLoanCoin()).isNotBlank(); - assertThat(item.getSymbol()).isEqualTo(symbol); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedLiquidationApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedLiquidationApiTest.java deleted file mode 100644 index c05b365a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedLiquidationApiTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfMarginIsolatedLiquidationInfoResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginIsolatedLiquidationInfo; -import com.bitget.openapi.model.MarginLiquidationInfo; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedLiquidationApi - */ -public class MarginIsolatedLiquidationApiTest { - - private final MarginIsolatedLiquidationApi api = new MarginIsolatedLiquidationApi(ApiConfig.getConfig()); - - /** - * list - * - * Get liquidation List - * - * @throws ApiException if the Api call fails - */ - @Test - public void liquidationList1Test() throws ApiException { - String startTime = "1677274167003"; - String endTime = "1680057356760"; - String pageSize = "10"; - String symbol = "BTCUSDT"; - String pageId = null; - ApiResponseResultOfMarginIsolatedLiquidationInfoResult response = api.isolatedLiquidationList(symbol, startTime, endTime, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginIsolatedLiquidationInfo item : response.getData().getResultList()) { - assertThat(item.getLiqFee()).isNotBlank(); - assertThat(item.getLiqEndTime()).isNotBlank(); - assertThat(item.getLiqStartTime()).isNotBlank(); - assertThat(item.getLiqRisk()).isNotBlank(); - assertThat(item.getTotalAssets()).isNotBlank(); - assertThat(item.getTotalDebt()).isNotBlank(); - assertThat(item.getSymbol()).isNotBlank(); - assertThat(item.getSymbol()).isEqualTo(symbol); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedOrderApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedOrderApiTest.java deleted file mode 100644 index 1c69fc78..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedOrderApiTest.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.*; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedOrderApi - */ -public class MarginIsolatedOrderApiTest { - - private final MarginIsolatedOrderApi api = new MarginIsolatedOrderApi(ApiConfig.getConfig()); - - /** - * batchCancelOrder - * - * Margin Isolated BatchCancelOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedBatchCancelOrderTest() throws ApiException { - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); - String clientOid = String.valueOf(System.currentTimeMillis()); - marginOrderRequest.setSymbol("BTCUSDT"); - marginOrderRequest.setSide("buy"); - marginOrderRequest.setOrderType("limit"); - marginOrderRequest.setPrice("17000"); - marginOrderRequest.setTimeInForce("gtc"); - marginOrderRequest.setBaseQuantity("0.01"); - marginOrderRequest.setLoanType("normal"); - marginOrderRequest.setClientOid(clientOid); - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = api.marginIsolatedPlaceOrder(marginOrderRequest); - MarginBatchCancelOrderRequest marginBatchCancelOrderRequest = new MarginBatchCancelOrderRequest(); - marginBatchCancelOrderRequest.setOrderIds(Arrays.asList(placeOrderResult.getData().getOrderId())); - marginBatchCancelOrderRequest.setSymbol("BTCUSDT"); - ApiResponseResultOfMarginBatchCancelOrderResult response = api.marginIsolatedBatchCancelOrder(marginBatchCancelOrderRequest); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - for (MarginCancelOrderResult result : response.getData().getResultList()) { - assertThat(result.getOrderId()).isNotBlank(); - } - } - - /** - * batchPlaceOrder - * - * Margin Isolated PlaceOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedBatchPlaceOrderTest() throws ApiException { - MarginBatchOrdersRequest marginOrderRequest = new MarginBatchOrdersRequest(); - marginOrderRequest.setSymbol("BTCUSDT"); - MarginOrderRequest orderRequest = new MarginOrderRequest(); - String clientOid = String.valueOf(System.currentTimeMillis()); - orderRequest.setSide("buy"); - orderRequest.setOrderType("limit"); - orderRequest.setPrice("17000"); - orderRequest.setTimeInForce("gtc"); - orderRequest.setBaseQuantity("0.01"); - orderRequest.setLoanType("normal"); - orderRequest.setClientOid(clientOid); - marginOrderRequest.setOrderList(Arrays.asList(orderRequest)); - ApiResponseResultOfMarginBatchPlaceOrderResult response = api.marginIsolatedBatchPlaceOrder(marginOrderRequest); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getResultList()).isNotNull(); - for (MarginCancelOrderResult item : response.getData().getResultList()) { - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getClientOid()).isNotBlank(); - assertThat(item.getClientOid()).isEqualTo(clientOid); - } - } - - /** - * cancelOrder - * - * Margin Isolated CancelOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedCancelOrderTest() throws ApiException { - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = placeOrderByLimit(); - - MarginCancelOrderRequest marginCancelOrderRequest = new MarginCancelOrderRequest(); - marginCancelOrderRequest.setSymbol("BTCUSDT"); - marginCancelOrderRequest.setOrderId(placeOrderResult.getData().getOrderId()); - ApiResponseResultOfMarginBatchCancelOrderResult response = api.marginIsolatedCancelOrder(marginCancelOrderRequest); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getResultList()).isNotNull(); - assertThat(response.getData().getResultList().size()).isEqualTo(1); - assertThat(response.getData().getResultList().get(0).getOrderId()).isEqualTo(placeOrderResult.getData().getOrderId()); - } - - /** - * fills - * - * Margin Isolated Fills - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedFillsTest() throws ApiException { - String symbol = "BTCUSDT"; - String startTime = "1679354812000"; - String source = null; - String endTime = "1680057356760"; - String orderId = null; - String lastFillId = null; - String pageSize = "10"; - ApiResponseResultOfMarginTradeDetailInfoResult response = api.marginIsolatedFills(startTime, endTime, symbol, orderId, lastFillId, pageSize); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getFills() != null && response.getData().getFills().size() > 0) { - for (MarginTradeDetailInfo marginTradeDetailInfo : response.getData().getFills()) { - assertThat(marginTradeDetailInfo.getOrderId()).isNotBlank(); - assertThat(marginTradeDetailInfo.getSide()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillId()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillPrice()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillQuantity()).isNotBlank(); - assertThat(marginTradeDetailInfo.getFillTotalAmount()).isNotBlank(); - assertThat(marginTradeDetailInfo.getOrderType()).isNotBlank(); - } - } - } - - /** - * history - * - * Margin Isolated historyOrders - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedHistoryOrdersTest() throws ApiException { - String startTime = String.valueOf(System.currentTimeMillis() - 5 * 24 * 60 * 60 * 1000L); - String symbol = "BTCUSDT"; - String source = null; - String endTime = "1680154960627"; - String orderId = null; - String clientOid = null; - String minId = null; - String pageSize = null; - ApiResponseResultOfMarginOpenOrderInfoResult response = api.marginIsolatedHistoryOrders(startTime, symbol, source, endTime, orderId, clientOid, pageSize, minId); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getOrderList()).isNotNull(); - for (MarginOrderInfo item : response.getData().getOrderList()) { - assertThat(item).isNotNull(); - assertThat(item.getSymbol()).isEqualTo("BTCUSDT"); - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getOrderType()).isNotBlank(); - assertThat(item.getBaseQuantity()).isNotBlank(); - assertThat(item.getFillPrice()).isNotBlank(); - assertThat(item.getFillQuantity()).isNotBlank(); - assertThat(item.getFillTotalAmount()).isNotBlank(); - assertThat(item.getLoanType()).isNotBlank(); - assertThat(item.getPrice()).isNotBlank(); - assertThat(item.getQuoteAmount()).isNotBlank(); - assertThat(item.getSide()).isNotBlank(); - assertThat(item.getSource()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - } - } - - /** - * openOrders - * - * Margin Isolated openOrders - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedOpenOrdersTest() throws ApiException { - String startTime = String.valueOf(System.currentTimeMillis() - 5 * 24 * 60 * 60 * 1000L); - String symbol = "BTCUSDT"; - String endTime = String.valueOf(System.currentTimeMillis()); - String orderId = null; - String clientOid = null; - String pageSize = null; - ApiResponseResultOfMarginOpenOrderInfoResult response = api.marginIsolatedOpenOrders(startTime, endTime, symbol, orderId, clientOid, pageSize); - - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getOrderList()).isNotNull(); - for (MarginOrderInfo item : response.getData().getOrderList()) { - assertThat(item).isNotNull(); - assertThat(item.getSymbol()).isEqualTo("BTCUSDT"); - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getOrderType()).isNotBlank(); - assertThat(item.getBaseQuantity()).isNotBlank(); - assertThat(item.getFillPrice()).isNotBlank(); - assertThat(item.getFillQuantity()).isNotBlank(); - assertThat(item.getFillTotalAmount()).isNotBlank(); - assertThat(item.getLoanType()).isNotBlank(); - assertThat(item.getPrice()).isNotBlank(); - assertThat(item.getQuoteAmount()).isNotBlank(); - assertThat(item.getSide()).isNotBlank(); - assertThat(item.getSource()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - } - } - - /** - * placeOrder - * - * Margin Isolated PlaceOrder - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedPlaceOrderTest() throws ApiException { - placeOrderByLimit(); - } - - private ApiResponseResultOfMarginPlaceOrderResult placeOrderByLimit() throws ApiException { - String clientOid = String.valueOf(System.currentTimeMillis()); - MarginOrderRequest marginOrderRequest = new MarginOrderRequest(); - marginOrderRequest.setSymbol("BTCUSDT"); - marginOrderRequest.setSide("buy"); - marginOrderRequest.setOrderType("limit"); - marginOrderRequest.setPrice("1600"); - marginOrderRequest.setTimeInForce("gtc"); - marginOrderRequest.setQuoteAmount("1000"); - marginOrderRequest.setBaseQuantity("0.625"); - marginOrderRequest.setLoanType("normal"); - marginOrderRequest.setClientOid(clientOid); - ApiResponseResultOfMarginPlaceOrderResult placeOrderResult = api.marginIsolatedPlaceOrder(marginOrderRequest); - - assertThat(placeOrderResult).isNotNull(); - assertThat(placeOrderResult.getCode()).isEqualTo("00000"); - assertThat(placeOrderResult.getMsg()).isEqualTo("success"); - assertThat(placeOrderResult.getData()).isNotNull(); - assertThat(placeOrderResult.getData().getOrderId()).isNotNull(); - assertThat(placeOrderResult.getData().getClientOid()).isEqualTo(clientOid); - - return placeOrderResult; - } -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedPublicApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedPublicApiTest.java deleted file mode 100644 index 6159b42a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedPublicApiTest.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedPublicApi - */ -public class MarginIsolatedPublicApiTest { - - private final MarginIsolatedPublicApi api = new MarginIsolatedPublicApi(ApiConfig.getConfig()); - - /** - * interestRateAndLimit - * - * Get InterestRateAndLimit - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedPublicInterestRateAndLimitTest() throws ApiException { - String symbol = "BTCUSDT"; - ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult response = api.marginIsolatedPublicInterestRateAndLimit(symbol); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for (MarginIsolatedRateAndLimitResult item : response.getData()) { - assertThat(item).isNotNull(); - assertThat(item.getBaseBorrowAble()).isNotNull(); - assertThat(item.getBaseDailyInterestRate()).isNotBlank(); - assertThat(item.getBaseCoin()).isNotBlank(); - assertThat(item.getLeverage()).isNotBlank(); - assertThat(item.getBaseYearlyInterestRate()).isNotBlank(); - assertThat(item.getBaseMaxBorrowableAmount()).isNotNull(); - assertThat(item.getBaseTransferInAble()).isNotNull(); - assertThat(item.getBaseVips()).isNotNull(); - for(MarginIsolatedVipResult marginCrossVipResult : item.getBaseVips()){ - assertThat(marginCrossVipResult).isNotNull(); - assertThat(marginCrossVipResult.getDailyInterestRate()).isNotNull(); - assertThat(marginCrossVipResult.getYearlyInterestRate()).isNotNull(); - assertThat(marginCrossVipResult.getDiscountRate()).isNotNull(); - assertThat(marginCrossVipResult.getLevel()).isNotNull(); - } - assertThat(item.getQuoteBorrowAble()).isNotNull(); - assertThat(item.getQuoteCoin()).isNotNull(); - assertThat(item.getQuoteDailyInterestRate()).isNotNull(); - assertThat(item.getQuoteYearlyInterestRate()).isNotNull(); - assertThat(item.getQuoteMaxBorrowableAmount()).isNotNull(); - assertThat(item.getQuoteTransferInAble()).isNotNull(); - assertThat(item.getQuoteVips()).isNotNull(); - for(MarginIsolatedVipResult marginIsolatedVipResult : item.getQuoteVips()){ - assertThat(marginIsolatedVipResult).isNotNull(); - assertThat(marginIsolatedVipResult.getDailyInterestRate()).isNotNull(); - assertThat(marginIsolatedVipResult.getYearlyInterestRate()).isNotNull(); - assertThat(marginIsolatedVipResult.getDiscountRate()).isNotNull(); - assertThat(marginIsolatedVipResult.getLevel()).isNotNull(); - } - } - } - - /** - * tierData - * - * Get TierData - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginIsolatedPublicTierDataTest() throws ApiException { - String symbol = "BTCUSDT"; - ApiResponseResultOfListOfMarginIsolatedLevelResult response = api.marginIsolatedPublicTierData(symbol); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for(MarginIsolatedLevelResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getQuoteCoin()).isNotNull(); - assertThat(item.getSymbol()).isNotNull(); - assertThat(item.getBaseCoin()).isNotNull(); - assertThat(item.getQuoteMaxBorrowableAmount()).isNotNull(); - assertThat(item.getBaseMaxBorrowableAmount()).isNotNull(); - assertThat(item.getInitRate()).isNotNull(); - assertThat(item.getLeverage()).isNotNull(); - assertThat(item.getMaintainMarginRate()).isNotNull(); - assertThat(item.getTier()).isNotNull(); - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedRepayApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedRepayApiTest.java deleted file mode 100644 index fa1a7105..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginIsolatedRepayApiTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginIsolatedRepayApi - */ -public class MarginIsolatedRepayApiTest { - - private final MarginIsolatedRepayApi api = new MarginIsolatedRepayApi(ApiConfig.getConfig()); - - /** - * list - * - * Get liquidation List - * - * @throws ApiException if the Api call fails - */ - @Test - public void repayList1Test() throws ApiException { - String startTime = "1677274167003"; - String endTime = "1680057356760"; - String pageSize = "10"; - String symbol = "BTCUSDT"; - String coin = null; - String repayId = null; - String pageId = null; - ApiResponseResultOfMarginIsolatedRepayInfoResult response = api.isolateRepayList(symbol, startTime, coin, repayId, endTime, pageSize, pageId); - assertThat(response).isNotNull(); - assertThat(response.getData()).isNotNull(); - if (response.getData().getResultList() != null && response.getData().getResultList().size() > 0) { - for(MarginIsolatedRepayInfo item : response.getData().getResultList()) { - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getType()).isNotBlank(); - assertThat(item.getRepayId()).isNotBlank(); - assertThat(item.getInterest()).isNotBlank(); - assertThat(item.getTotalAmount()).isNotBlank(); - assertThat(item.getSymbol()).isNotBlank(); - assertThat(item.getSymbol()).isEqualTo(symbol); - } - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginPublicApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginPublicApiTest.java deleted file mode 100644 index 526f92b0..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/MarginPublicApiTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.ApiResponseResultOfListOfMarginSystemResult; -import com.bitget.openapi.model.ApiResponseResultOfVoid; -import com.bitget.openapi.model.MarginSystemResult; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for MarginPublicApi - */ -public class MarginPublicApiTest { - - private final MarginPublicApi api = new MarginPublicApi(ApiConfig.getConfig()); - - /** - * currencies - * - * Get Currencies - * - * @throws ApiException if the Api call fails - */ - @Test - public void marginPublicCurrenciesTest() throws ApiException { - ApiResponseResultOfListOfMarginSystemResult response = api.marginPublicCurrencies(); - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo(("00000")); - assertThat(response.getData()).isNotNull(); - for(MarginSystemResult item : response.getData()){ - assertThat(item).isNotNull(); - assertThat(item.getBaseCoin()).isNotNull(); - assertThat(item.getSymbol()).isNotNull(); - assertThat(item.getIsBorrowable()).isNotNull(); - assertThat(item.getMakerFeeRate()).isNotNull(); - assertThat(item.getMaxCrossLeverage()).isNotNull(); - assertThat(item.getMaxIsolatedLeverage()).isNotNull(); - assertThat(item.getMaxTradeAmount()).isNotNull(); - assertThat(item.getMinTradeUSDT()).isNotNull(); - assertThat(item.getPriceScale()).isNotNull(); - assertThat(item.getQuoteCoin()).isNotNull(); - assertThat(item.getStatus()).isNotNull(); - assertThat(item.getTakerFeeRate()).isNotNull(); - assertThat(item.getUserMinBorrow()).isNotNull(); - assertThat(item.getWarningRiskRatio()).isNotNull(); - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/P2pMerchantApiTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/P2pMerchantApiTest.java deleted file mode 100644 index faa067c3..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/api/P2pMerchantApiTest.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.api; - -import com.bitget.openapi.ApiConfig; -import com.bitget.openapi.ApiException; -import com.bitget.openapi.model.*; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.assertj.core.api.Assertions.assertThat; - -/** - * API tests for P2pMerchantApi - */ -@Disabled -public class P2pMerchantApiTest { - - private final P2pMerchantApi api = new P2pMerchantApi(ApiConfig.getConfig()); - - /** - * advList - * - * P2P merchant adv info - * - * @throws ApiException if the Api call fails - */ - @Test - public void merchantAdvListTest() throws ApiException { - String startTime = "1676260773000"; - String endTime = null; - String status = null; - String type = null; - String advNo = null; - String coin = null; - String languageType = null; - String fiat = null; - String lastMinId = null; - String pageSize = "1"; - String orderBy = "price"; - ApiResponseResultOfMerchantAdvResult response = api.merchantAdvList(startTime, endTime, status, type, advNo, coin, languageType, fiat, lastMinId, pageSize, orderBy); - - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo("00000"); - assertThat(response.getMsg()).isEqualTo("success"); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getAdvList()).isNotNull(); - for(MerchantAdvInfo item : response.getData().getAdvList()){ - assertThat(item).isNotNull(); - assertThat(item.getAdvId()).isNotBlank(); - assertThat(item.getAdvNo()).isNotBlank(); - assertThat(item.getAmount()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getCoinPrecision()).isNotBlank(); - assertThat(item.getDealAmount()).isNotBlank(); - assertThat(item.getFiatCode()).isNotBlank(); - assertThat(item.getTurnoverNum()).isNotBlank(); - } - } - - /** - * merchantInfo - * - * P2P merchant info self - * - * @throws ApiException if the Api call fails - */ - @Test - public void merchantInfoTest() throws ApiException { - ApiResponseResultOfMerchantPersonInfo response = api.merchantInfo(); - - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo("00000"); - assertThat(response.getMsg()).isEqualTo("success"); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getMerchantId()).isNotBlank(); - assertThat(response.getData().getAveragePayment()).isNotBlank(); - assertThat(response.getData().getEmail()).isNotBlank(); - assertThat(response.getData().getMobile()).isNotBlank(); - assertThat(response.getData().getMobileBindFlag()).isNotNull(); - assertThat(response.getData().getNickName()).isNotBlank(); - assertThat(response.getData().getThirtyBuy()).isNotBlank(); - assertThat(response.getData().getTotalCompletionRate()).isNotBlank(); - assertThat(response.getData().getTotalSell()).isNotBlank(); - } - - /** - * merchantList - * - * P2P merchant list - * - * @throws ApiException if the Api call fails - */ - @Test - public void merchantListTest() throws ApiException { - String online = "no"; - String merchantId = null; - String lastMinId = null; - String pageSize = "1"; - ApiResponseResultOfMerchantInfoResult response = api.merchantList(online, merchantId, lastMinId, pageSize); - - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo("00000"); - assertThat(response.getMsg()).isEqualTo("success"); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getResultList()).isNotNull(); - for(MerchantInfo item : response.getData().getResultList()){ - assertThat(item).isNotNull(); - assertThat(item.getMerchantId()).isNotBlank(); - assertThat(item.getAveragePayment()).isNotBlank(); - assertThat(item.getThirtyBuy()).isNotBlank(); - assertThat(item.getThirtyCompletionRate()).isNotBlank(); - assertThat(item.getThirtyTrades()).isNotBlank(); - assertThat(item.getTotalTrades()).isNotBlank(); - assertThat(item.getIsOnline()).isNotBlank(); - } - } - - /** - * orderList - * - * P2P merchant order info - * - * @throws ApiException if the Api call fails - */ - @Test - public void merchantOrderListTest() throws ApiException { - String startTime = "1680598302000"; - String endTime = null; - String status = null; - String type = null; - String advNo = null; - String orderNo = null; - String coin = null; - String languageType = null; - String fiat = null; - String lastMinId = null; - String pageSize = "1"; - ApiResponseResultOfMerchantOrderResult response = api.merchantOrderList(startTime, endTime, status, type, advNo, orderNo, coin, languageType, fiat, lastMinId, pageSize); - - assertThat(response).isNotNull(); - assertThat(response.getCode()).isEqualTo("00000"); - assertThat(response.getMsg()).isEqualTo("success"); - assertThat(response.getData()).isNotNull(); - assertThat(response.getData().getOrderList()).isNotNull(); - for(MerchantOrderInfo item : response.getData().getOrderList()){ - assertThat(item).isNotNull(); - assertThat(item.getOrderId()).isNotBlank(); - assertThat(item.getOrderNo()).isNotBlank(); - assertThat(item.getCoin()).isNotBlank(); - assertThat(item.getStatus()).isNotBlank(); - assertThat(item.getBuyerRealName()).isNotBlank(); - assertThat(item.getSellerRealName()).isNotBlank(); - assertThat(item.getFiat()).isNotBlank(); - } - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.java deleted file mode 100644 index 068c8c2c..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossAssetsPopulationResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - */ -public class ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest { - private final ApiResponseResultOfListOfMarginCrossAssetsPopulationResult model = new ApiResponseResultOfListOfMarginCrossAssetsPopulationResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - */ - @Test - public void testApiResponseResultOfListOfMarginCrossAssetsPopulationResult() { - // TODO: test ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResultTest.java deleted file mode 100644 index 18f5e8f0..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossLevelResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossLevelResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginCrossLevelResult - */ -public class ApiResponseResultOfListOfMarginCrossLevelResultTest { - private final ApiResponseResultOfListOfMarginCrossLevelResult model = new ApiResponseResultOfListOfMarginCrossLevelResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginCrossLevelResult - */ - @Test - public void testApiResponseResultOfListOfMarginCrossLevelResult() { - // TODO: test ApiResponseResultOfListOfMarginCrossLevelResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.java deleted file mode 100644 index af1ac8b9..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossRateAndLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginCrossRateAndLimitResult - */ -public class ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest { - private final ApiResponseResultOfListOfMarginCrossRateAndLimitResult model = new ApiResponseResultOfListOfMarginCrossRateAndLimitResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginCrossRateAndLimitResult - */ - @Test - public void testApiResponseResultOfListOfMarginCrossRateAndLimitResult() { - // TODO: test ApiResponseResultOfListOfMarginCrossRateAndLimitResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.java deleted file mode 100644 index 6285d0ff..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedAssetsPopulationResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - */ -public class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest { - private final ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult model = new ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - */ - @Test - public void testApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult() { - // TODO: test ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.java deleted file mode 100644 index a18e4fa0..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedAssetsRiskResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - */ -public class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest { - private final ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult model = new ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - */ - @Test - public void testApiResponseResultOfListOfMarginIsolatedAssetsRiskResult() { - // TODO: test ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.java deleted file mode 100644 index f567cde9..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedLevelResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginIsolatedLevelResult - */ -public class ApiResponseResultOfListOfMarginIsolatedLevelResultTest { - private final ApiResponseResultOfListOfMarginIsolatedLevelResult model = new ApiResponseResultOfListOfMarginIsolatedLevelResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginIsolatedLevelResult - */ - @Test - public void testApiResponseResultOfListOfMarginIsolatedLevelResult() { - // TODO: test ApiResponseResultOfListOfMarginIsolatedLevelResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.java deleted file mode 100644 index 34381caa..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedRateAndLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - */ -public class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest { - private final ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult model = new ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - */ - @Test - public void testApiResponseResultOfListOfMarginIsolatedRateAndLimitResult() { - // TODO: test ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResultTest.java deleted file mode 100644 index f69c3269..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfListOfMarginSystemResultTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginSystemResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfListOfMarginSystemResult - */ -public class ApiResponseResultOfListOfMarginSystemResultTest { - private final ApiResponseResultOfListOfMarginSystemResult model = new ApiResponseResultOfListOfMarginSystemResult(); - - /** - * Model tests for ApiResponseResultOfListOfMarginSystemResult - */ - @Test - public void testApiResponseResultOfListOfMarginSystemResult() { - // TODO: test ApiResponseResultOfListOfMarginSystemResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResultTest.java deleted file mode 100644 index 90a13261..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchCancelOrderResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginBatchCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginBatchCancelOrderResult - */ -public class ApiResponseResultOfMarginBatchCancelOrderResultTest { - private final ApiResponseResultOfMarginBatchCancelOrderResult model = new ApiResponseResultOfMarginBatchCancelOrderResult(); - - /** - * Model tests for ApiResponseResultOfMarginBatchCancelOrderResult - */ - @Test - public void testApiResponseResultOfMarginBatchCancelOrderResult() { - // TODO: test ApiResponseResultOfMarginBatchCancelOrderResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.java deleted file mode 100644 index d8f8472c..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginBatchPlaceOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginBatchPlaceOrderResult - */ -public class ApiResponseResultOfMarginBatchPlaceOrderResultTest { - private final ApiResponseResultOfMarginBatchPlaceOrderResult model = new ApiResponseResultOfMarginBatchPlaceOrderResult(); - - /** - * Model tests for ApiResponseResultOfMarginBatchPlaceOrderResult - */ - @Test - public void testApiResponseResultOfMarginBatchPlaceOrderResult() { - // TODO: test ApiResponseResultOfMarginBatchPlaceOrderResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResultTest.java deleted file mode 100644 index b25d07b9..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossAssetsResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossAssetsResult - */ -public class ApiResponseResultOfMarginCrossAssetsResultTest { - private final ApiResponseResultOfMarginCrossAssetsResult model = new ApiResponseResultOfMarginCrossAssetsResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossAssetsResult - */ - @Test - public void testApiResponseResultOfMarginCrossAssetsResult() { - // TODO: test ApiResponseResultOfMarginCrossAssetsResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.java deleted file mode 100644 index 77d2b899..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossAssetsRiskResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossAssetsRiskResult - */ -public class ApiResponseResultOfMarginCrossAssetsRiskResultTest { - private final ApiResponseResultOfMarginCrossAssetsRiskResult model = new ApiResponseResultOfMarginCrossAssetsRiskResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossAssetsRiskResult - */ - @Test - public void testApiResponseResultOfMarginCrossAssetsRiskResult() { - // TODO: test ApiResponseResultOfMarginCrossAssetsRiskResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.java deleted file mode 100644 index f00bbc96..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossBorrowLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossBorrowLimitResult - */ -public class ApiResponseResultOfMarginCrossBorrowLimitResultTest { - private final ApiResponseResultOfMarginCrossBorrowLimitResult model = new ApiResponseResultOfMarginCrossBorrowLimitResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossBorrowLimitResult - */ - @Test - public void testApiResponseResultOfMarginCrossBorrowLimitResult() { - // TODO: test ApiResponseResultOfMarginCrossBorrowLimitResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResultTest.java deleted file mode 100644 index ffcbb1a7..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossFinFlowResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossFinFlowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossFinFlowResult - */ -public class ApiResponseResultOfMarginCrossFinFlowResultTest { - private final ApiResponseResultOfMarginCrossFinFlowResult model = new ApiResponseResultOfMarginCrossFinFlowResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossFinFlowResult - */ - @Test - public void testApiResponseResultOfMarginCrossFinFlowResult() { - // TODO: test ApiResponseResultOfMarginCrossFinFlowResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.java deleted file mode 100644 index f8804bb7..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossMaxBorrowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossMaxBorrowResult - */ -public class ApiResponseResultOfMarginCrossMaxBorrowResultTest { - private final ApiResponseResultOfMarginCrossMaxBorrowResult model = new ApiResponseResultOfMarginCrossMaxBorrowResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossMaxBorrowResult - */ - @Test - public void testApiResponseResultOfMarginCrossMaxBorrowResult() { - // TODO: test ApiResponseResultOfMarginCrossMaxBorrowResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResultTest.java deleted file mode 100644 index e57c89b9..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginCrossRepayResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossRepayResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginCrossRepayResult - */ -public class ApiResponseResultOfMarginCrossRepayResultTest { - private final ApiResponseResultOfMarginCrossRepayResult model = new ApiResponseResultOfMarginCrossRepayResult(); - - /** - * Model tests for ApiResponseResultOfMarginCrossRepayResult - */ - @Test - public void testApiResponseResultOfMarginCrossRepayResult() { - // TODO: test ApiResponseResultOfMarginCrossRepayResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResultTest.java deleted file mode 100644 index 1e6a6ef6..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginInterestInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginInterestInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginInterestInfoResult - */ -public class ApiResponseResultOfMarginInterestInfoResultTest { - private final ApiResponseResultOfMarginInterestInfoResult model = new ApiResponseResultOfMarginInterestInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginInterestInfoResult - */ - @Test - public void testApiResponseResultOfMarginInterestInfoResult() { - // TODO: test ApiResponseResultOfMarginInterestInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResultTest.java deleted file mode 100644 index f842d6ac..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedAssetsResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedAssetsResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedAssetsResult - */ -public class ApiResponseResultOfMarginIsolatedAssetsResultTest { - private final ApiResponseResultOfMarginIsolatedAssetsResult model = new ApiResponseResultOfMarginIsolatedAssetsResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedAssetsResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedAssetsResult() { - // TODO: test ApiResponseResultOfMarginIsolatedAssetsResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.java deleted file mode 100644 index 3e6ffc09..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedBorrowLimitResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedBorrowLimitResult - */ -public class ApiResponseResultOfMarginIsolatedBorrowLimitResultTest { - private final ApiResponseResultOfMarginIsolatedBorrowLimitResult model = new ApiResponseResultOfMarginIsolatedBorrowLimitResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedBorrowLimitResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedBorrowLimitResult() { - // TODO: test ApiResponseResultOfMarginIsolatedBorrowLimitResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.java deleted file mode 100644 index b605b075..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedFinFlowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedFinFlowResult - */ -public class ApiResponseResultOfMarginIsolatedFinFlowResultTest { - private final ApiResponseResultOfMarginIsolatedFinFlowResult model = new ApiResponseResultOfMarginIsolatedFinFlowResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedFinFlowResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedFinFlowResult() { - // TODO: test ApiResponseResultOfMarginIsolatedFinFlowResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.java deleted file mode 100644 index 4eb05624..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedInterestInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedInterestInfoResult - */ -public class ApiResponseResultOfMarginIsolatedInterestInfoResultTest { - private final ApiResponseResultOfMarginIsolatedInterestInfoResult model = new ApiResponseResultOfMarginIsolatedInterestInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedInterestInfoResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedInterestInfoResult() { - // TODO: test ApiResponseResultOfMarginIsolatedInterestInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.java deleted file mode 100644 index 1d960e17..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedLiquidationInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedLiquidationInfoResult - */ -public class ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest { - private final ApiResponseResultOfMarginIsolatedLiquidationInfoResult model = new ApiResponseResultOfMarginIsolatedLiquidationInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedLiquidationInfoResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedLiquidationInfoResult() { - // TODO: test ApiResponseResultOfMarginIsolatedLiquidationInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.java deleted file mode 100644 index 08983b52..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedLoanInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedLoanInfoResult - */ -public class ApiResponseResultOfMarginIsolatedLoanInfoResultTest { - private final ApiResponseResultOfMarginIsolatedLoanInfoResult model = new ApiResponseResultOfMarginIsolatedLoanInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedLoanInfoResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedLoanInfoResult() { - // TODO: test ApiResponseResultOfMarginIsolatedLoanInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.java deleted file mode 100644 index cf15dbcf..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedMaxBorrowResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedMaxBorrowResult - */ -public class ApiResponseResultOfMarginIsolatedMaxBorrowResultTest { - private final ApiResponseResultOfMarginIsolatedMaxBorrowResult model = new ApiResponseResultOfMarginIsolatedMaxBorrowResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedMaxBorrowResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedMaxBorrowResult() { - // TODO: test ApiResponseResultOfMarginIsolatedMaxBorrowResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.java deleted file mode 100644 index aa6fdbac..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedRepayInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedRepayInfoResult - */ -public class ApiResponseResultOfMarginIsolatedRepayInfoResultTest { - private final ApiResponseResultOfMarginIsolatedRepayInfoResult model = new ApiResponseResultOfMarginIsolatedRepayInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedRepayInfoResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedRepayInfoResult() { - // TODO: test ApiResponseResultOfMarginIsolatedRepayInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResultTest.java deleted file mode 100644 index f9a90922..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginIsolatedRepayResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedRepayResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginIsolatedRepayResult - */ -public class ApiResponseResultOfMarginIsolatedRepayResultTest { - private final ApiResponseResultOfMarginIsolatedRepayResult model = new ApiResponseResultOfMarginIsolatedRepayResult(); - - /** - * Model tests for ApiResponseResultOfMarginIsolatedRepayResult - */ - @Test - public void testApiResponseResultOfMarginIsolatedRepayResult() { - // TODO: test ApiResponseResultOfMarginIsolatedRepayResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResultTest.java deleted file mode 100644 index fe157d61..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLiquidationInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginLiquidationInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginLiquidationInfoResult - */ -public class ApiResponseResultOfMarginLiquidationInfoResultTest { - private final ApiResponseResultOfMarginLiquidationInfoResult model = new ApiResponseResultOfMarginLiquidationInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginLiquidationInfoResult - */ - @Test - public void testApiResponseResultOfMarginLiquidationInfoResult() { - // TODO: test ApiResponseResultOfMarginLiquidationInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResultTest.java deleted file mode 100644 index baff8a06..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginLoanInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginLoanInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginLoanInfoResult - */ -public class ApiResponseResultOfMarginLoanInfoResultTest { - private final ApiResponseResultOfMarginLoanInfoResult model = new ApiResponseResultOfMarginLoanInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginLoanInfoResult - */ - @Test - public void testApiResponseResultOfMarginLoanInfoResult() { - // TODO: test ApiResponseResultOfMarginLoanInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResultTest.java deleted file mode 100644 index 749c20c5..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginOpenOrderInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginOpenOrderInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginOpenOrderInfoResult - */ -public class ApiResponseResultOfMarginOpenOrderInfoResultTest { - private final ApiResponseResultOfMarginOpenOrderInfoResult model = new ApiResponseResultOfMarginOpenOrderInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginOpenOrderInfoResult - */ - @Test - public void testApiResponseResultOfMarginOpenOrderInfoResult() { - // TODO: test ApiResponseResultOfMarginOpenOrderInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResultTest.java deleted file mode 100644 index d7df2c25..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginPlaceOrderResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginPlaceOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginPlaceOrderResult - */ -public class ApiResponseResultOfMarginPlaceOrderResultTest { - private final ApiResponseResultOfMarginPlaceOrderResult model = new ApiResponseResultOfMarginPlaceOrderResult(); - - /** - * Model tests for ApiResponseResultOfMarginPlaceOrderResult - */ - @Test - public void testApiResponseResultOfMarginPlaceOrderResult() { - // TODO: test ApiResponseResultOfMarginPlaceOrderResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResultTest.java deleted file mode 100644 index 5671da47..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginRepayInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginRepayInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginRepayInfoResult - */ -public class ApiResponseResultOfMarginRepayInfoResultTest { - private final ApiResponseResultOfMarginRepayInfoResult model = new ApiResponseResultOfMarginRepayInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginRepayInfoResult - */ - @Test - public void testApiResponseResultOfMarginRepayInfoResult() { - // TODO: test ApiResponseResultOfMarginRepayInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResultTest.java deleted file mode 100644 index cfb4d62a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMarginTradeDetailInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginTradeDetailInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMarginTradeDetailInfoResult - */ -public class ApiResponseResultOfMarginTradeDetailInfoResultTest { - private final ApiResponseResultOfMarginTradeDetailInfoResult model = new ApiResponseResultOfMarginTradeDetailInfoResult(); - - /** - * Model tests for ApiResponseResultOfMarginTradeDetailInfoResult - */ - @Test - public void testApiResponseResultOfMarginTradeDetailInfoResult() { - // TODO: test ApiResponseResultOfMarginTradeDetailInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResultTest.java deleted file mode 100644 index 3d1fe888..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantAdvResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantAdvResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMerchantAdvResult - */ -public class ApiResponseResultOfMerchantAdvResultTest { - private final ApiResponseResultOfMerchantAdvResult model = new ApiResponseResultOfMerchantAdvResult(); - - /** - * Model tests for ApiResponseResultOfMerchantAdvResult - */ - @Test - public void testApiResponseResultOfMerchantAdvResult() { - // TODO: test ApiResponseResultOfMerchantAdvResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResultTest.java deleted file mode 100644 index 34b623d1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantInfoResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantInfoResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMerchantInfoResult - */ -public class ApiResponseResultOfMerchantInfoResultTest { - private final ApiResponseResultOfMerchantInfoResult model = new ApiResponseResultOfMerchantInfoResult(); - - /** - * Model tests for ApiResponseResultOfMerchantInfoResult - */ - @Test - public void testApiResponseResultOfMerchantInfoResult() { - // TODO: test ApiResponseResultOfMerchantInfoResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResultTest.java deleted file mode 100644 index dcdea279..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantOrderResultTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMerchantOrderResult - */ -public class ApiResponseResultOfMerchantOrderResultTest { - private final ApiResponseResultOfMerchantOrderResult model = new ApiResponseResultOfMerchantOrderResult(); - - /** - * Model tests for ApiResponseResultOfMerchantOrderResult - */ - @Test - public void testApiResponseResultOfMerchantOrderResult() { - // TODO: test ApiResponseResultOfMerchantOrderResult - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfoTest.java deleted file mode 100644 index 40364b0f..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfMerchantPersonInfoTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantPersonInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfMerchantPersonInfo - */ -public class ApiResponseResultOfMerchantPersonInfoTest { - private final ApiResponseResultOfMerchantPersonInfo model = new ApiResponseResultOfMerchantPersonInfo(); - - /** - * Model tests for ApiResponseResultOfMerchantPersonInfo - */ - @Test - public void testApiResponseResultOfMerchantPersonInfo() { - // TODO: test ApiResponseResultOfMerchantPersonInfo - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfVoidTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfVoidTest.java deleted file mode 100644 index 2e3d4cf5..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/ApiResponseResultOfVoidTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for ApiResponseResultOfVoid - */ -public class ApiResponseResultOfVoidTest { - private final ApiResponseResultOfVoid model = new ApiResponseResultOfVoid(); - - /** - * Model tests for ApiResponseResultOfVoid - */ - @Test - public void testApiResponseResultOfVoid() { - // TODO: test ApiResponseResultOfVoid - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * Test the property 'msg' - */ - @Test - public void msgTest() { - // TODO: test msg - } - - /** - * Test the property 'requestTime' - */ - @Test - public void requestTimeTest() { - // TODO: test requestTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentDetailInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentDetailInfoTest.java deleted file mode 100644 index afda9f74..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentDetailInfoTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for FiatPaymentDetailInfo - */ -public class FiatPaymentDetailInfoTest { - private final FiatPaymentDetailInfo model = new FiatPaymentDetailInfo(); - - /** - * Model tests for FiatPaymentDetailInfo - */ - @Test - public void testFiatPaymentDetailInfo() { - // TODO: test FiatPaymentDetailInfo - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentInfoTest.java deleted file mode 100644 index 708a4d78..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/FiatPaymentInfoTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.FiatPaymentDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for FiatPaymentInfo - */ -public class FiatPaymentInfoTest { - private final FiatPaymentInfo model = new FiatPaymentInfo(); - - /** - * Model tests for FiatPaymentInfo - */ - @Test - public void testFiatPaymentInfo() { - // TODO: test FiatPaymentInfo - } - - /** - * Test the property 'paymentId' - */ - @Test - public void paymentIdTest() { - // TODO: test paymentId - } - - /** - * Test the property 'paymentInfo' - */ - @Test - public void paymentInfoTest() { - // TODO: test paymentInfo - } - - /** - * Test the property 'paymentMethod' - */ - @Test - public void paymentMethodTest() { - // TODO: test paymentMethod - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderRequestTest.java deleted file mode 100644 index 831d3005..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderRequestTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginBatchCancelOrderRequest - */ -public class MarginBatchCancelOrderRequestTest { - private final MarginBatchCancelOrderRequest model = new MarginBatchCancelOrderRequest(); - - /** - * Model tests for MarginBatchCancelOrderRequest - */ - @Test - public void testMarginBatchCancelOrderRequest() { - // TODO: test MarginBatchCancelOrderRequest - } - - /** - * Test the property 'clientOids' - */ - @Test - public void clientOidsTest() { - // TODO: test clientOids - } - - /** - * Test the property 'orderIds' - */ - @Test - public void orderIdsTest() { - // TODO: test orderIds - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderResultTest.java deleted file mode 100644 index de015ea1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchCancelOrderResultTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCancelOrderFailureResult; -import com.bitget.openapi.model.MarginCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginBatchCancelOrderResult - */ -public class MarginBatchCancelOrderResultTest { - private final MarginBatchCancelOrderResult model = new MarginBatchCancelOrderResult(); - - /** - * Model tests for MarginBatchCancelOrderResult - */ - @Test - public void testMarginBatchCancelOrderResult() { - // TODO: test MarginBatchCancelOrderResult - } - - /** - * Test the property 'failure' - */ - @Test - public void failureTest() { - // TODO: test failure - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchOrdersRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchOrdersRequestTest.java deleted file mode 100644 index 14fe49b1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchOrdersRequestTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginOrderRequest; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginBatchOrdersRequest - */ -public class MarginBatchOrdersRequestTest { - private final MarginBatchOrdersRequest model = new MarginBatchOrdersRequest(); - - /** - * Model tests for MarginBatchOrdersRequest - */ - @Test - public void testMarginBatchOrdersRequest() { - // TODO: test MarginBatchOrdersRequest - } - - /** - * Test the property 'channelApiCode' - */ - @Test - public void channelApiCodeTest() { - // TODO: test channelApiCode - } - - /** - * Test the property 'ip' - */ - @Test - public void ipTest() { - // TODO: test ip - } - - /** - * Test the property 'orderList' - */ - @Test - public void orderListTest() { - // TODO: test orderList - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResultTest.java deleted file mode 100644 index 5e5ffb29..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderFailureResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginBatchPlaceOrderFailureResult - */ -public class MarginBatchPlaceOrderFailureResultTest { - private final MarginBatchPlaceOrderFailureResult model = new MarginBatchPlaceOrderFailureResult(); - - /** - * Model tests for MarginBatchPlaceOrderFailureResult - */ - @Test - public void testMarginBatchPlaceOrderFailureResult() { - // TODO: test MarginBatchPlaceOrderFailureResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'errorMsg' - */ - @Test - public void errorMsgTest() { - // TODO: test errorMsg - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderResultTest.java deleted file mode 100644 index 049c6563..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginBatchPlaceOrderResultTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginBatchPlaceOrderFailureResult; -import com.bitget.openapi.model.MarginCancelOrderResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginBatchPlaceOrderResult - */ -public class MarginBatchPlaceOrderResultTest { - private final MarginBatchPlaceOrderResult model = new MarginBatchPlaceOrderResult(); - - /** - * Model tests for MarginBatchPlaceOrderResult - */ - @Test - public void testMarginBatchPlaceOrderResult() { - // TODO: test MarginBatchPlaceOrderResult - } - - /** - * Test the property 'failure' - */ - @Test - public void failureTest() { - // TODO: test failure - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderFailureResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderFailureResultTest.java deleted file mode 100644 index f251ea06..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderFailureResultTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCancelOrderFailureResult - */ -public class MarginCancelOrderFailureResultTest { - private final MarginCancelOrderFailureResult model = new MarginCancelOrderFailureResult(); - - /** - * Model tests for MarginCancelOrderFailureResult - */ - @Test - public void testMarginCancelOrderFailureResult() { - // TODO: test MarginCancelOrderFailureResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'errorMsg' - */ - @Test - public void errorMsgTest() { - // TODO: test errorMsg - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderRequestTest.java deleted file mode 100644 index 1fa40d97..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderRequestTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCancelOrderRequest - */ -public class MarginCancelOrderRequestTest { - private final MarginCancelOrderRequest model = new MarginCancelOrderRequest(); - - /** - * Model tests for MarginCancelOrderRequest - */ - @Test - public void testMarginCancelOrderRequest() { - // TODO: test MarginCancelOrderRequest - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderResultTest.java deleted file mode 100644 index b9e94599..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCancelOrderResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCancelOrderResult - */ -public class MarginCancelOrderResultTest { - private final MarginCancelOrderResult model = new MarginCancelOrderResult(); - - /** - * Model tests for MarginCancelOrderResult - */ - @Test - public void testMarginCancelOrderResult() { - // TODO: test MarginCancelOrderResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResultTest.java deleted file mode 100644 index f432ae22..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsPopulationResultTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossAssetsPopulationResult - */ -public class MarginCrossAssetsPopulationResultTest { - private final MarginCrossAssetsPopulationResult model = new MarginCrossAssetsPopulationResult(); - - /** - * Model tests for MarginCrossAssetsPopulationResult - */ - @Test - public void testMarginCrossAssetsPopulationResult() { - // TODO: test MarginCrossAssetsPopulationResult - } - - /** - * Test the property 'available' - */ - @Test - public void availableTest() { - // TODO: test available - } - - /** - * Test the property 'borrow' - */ - @Test - public void borrowTest() { - // TODO: test borrow - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'frozen' - */ - @Test - public void frozenTest() { - // TODO: test frozen - } - - /** - * Test the property 'interest' - */ - @Test - public void interestTest() { - // TODO: test interest - } - - /** - * Test the property 'net' - */ - @Test - public void netTest() { - // TODO: test net - } - - /** - * Test the property 'totalAmount' - */ - @Test - public void totalAmountTest() { - // TODO: test totalAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsResultTest.java deleted file mode 100644 index b17005c5..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossAssetsResult - */ -public class MarginCrossAssetsResultTest { - private final MarginCrossAssetsResult model = new MarginCrossAssetsResult(); - - /** - * Model tests for MarginCrossAssetsResult - */ - @Test - public void testMarginCrossAssetsResult() { - // TODO: test MarginCrossAssetsResult - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'maxTransferOutAmount' - */ - @Test - public void maxTransferOutAmountTest() { - // TODO: test maxTransferOutAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsRiskResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsRiskResultTest.java deleted file mode 100644 index 885444d3..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossAssetsRiskResultTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossAssetsRiskResult - */ -public class MarginCrossAssetsRiskResultTest { - private final MarginCrossAssetsRiskResult model = new MarginCrossAssetsRiskResult(); - - /** - * Model tests for MarginCrossAssetsRiskResult - */ - @Test - public void testMarginCrossAssetsRiskResult() { - // TODO: test MarginCrossAssetsRiskResult - } - - /** - * Test the property 'riskRate' - */ - @Test - public void riskRateTest() { - // TODO: test riskRate - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossBorrowLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossBorrowLimitResultTest.java deleted file mode 100644 index 6d2fef28..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossBorrowLimitResultTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossBorrowLimitResult - */ -public class MarginCrossBorrowLimitResultTest { - private final MarginCrossBorrowLimitResult model = new MarginCrossBorrowLimitResult(); - - /** - * Model tests for MarginCrossBorrowLimitResult - */ - @Test - public void testMarginCrossBorrowLimitResult() { - // TODO: test MarginCrossBorrowLimitResult - } - - /** - * Test the property 'borrowAmount' - */ - @Test - public void borrowAmountTest() { - // TODO: test borrowAmount - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowInfoTest.java deleted file mode 100644 index b85c7c22..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowInfoTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossFinFlowInfo - */ -public class MarginCrossFinFlowInfoTest { - private final MarginCrossFinFlowInfo model = new MarginCrossFinFlowInfo(); - - /** - * Model tests for MarginCrossFinFlowInfo - */ - @Test - public void testMarginCrossFinFlowInfo() { - // TODO: test MarginCrossFinFlowInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'balance' - */ - @Test - public void balanceTest() { - // TODO: test balance - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'fee' - */ - @Test - public void feeTest() { - // TODO: test fee - } - - /** - * Test the property 'marginId' - */ - @Test - public void marginIdTest() { - // TODO: test marginId - } - - /** - * Test the property 'marginType' - */ - @Test - public void marginTypeTest() { - // TODO: test marginType - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowResultTest.java deleted file mode 100644 index cd57c02d..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossFinFlowResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossFinFlowInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossFinFlowResult - */ -public class MarginCrossFinFlowResultTest { - private final MarginCrossFinFlowResult model = new MarginCrossFinFlowResult(); - - /** - * Model tests for MarginCrossFinFlowResult - */ - @Test - public void testMarginCrossFinFlowResult() { - // TODO: test MarginCrossFinFlowResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLevelResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLevelResultTest.java deleted file mode 100644 index 81896437..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLevelResultTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossLevelResult - */ -public class MarginCrossLevelResultTest { - private final MarginCrossLevelResult model = new MarginCrossLevelResult(); - - /** - * Model tests for MarginCrossLevelResult - */ - @Test - public void testMarginCrossLevelResult() { - // TODO: test MarginCrossLevelResult - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'leverage' - */ - @Test - public void leverageTest() { - // TODO: test leverage - } - - /** - * Test the property 'maintainMarginRate' - */ - @Test - public void maintainMarginRateTest() { - // TODO: test maintainMarginRate - } - - /** - * Test the property 'maxBorrowableAmount' - */ - @Test - public void maxBorrowableAmountTest() { - // TODO: test maxBorrowableAmount - } - - /** - * Test the property 'tier' - */ - @Test - public void tierTest() { - // TODO: test tier - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLimitRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLimitRequestTest.java deleted file mode 100644 index 06dfcf66..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossLimitRequestTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossLimitRequest - */ -public class MarginCrossLimitRequestTest { - private final MarginCrossLimitRequest model = new MarginCrossLimitRequest(); - - /** - * Model tests for MarginCrossLimitRequest - */ - @Test - public void testMarginCrossLimitRequest() { - // TODO: test MarginCrossLimitRequest - } - - /** - * Test the property 'borrowAmount' - */ - @Test - public void borrowAmountTest() { - // TODO: test borrowAmount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequestTest.java deleted file mode 100644 index d2ef0c63..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowRequestTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossMaxBorrowRequest - */ -public class MarginCrossMaxBorrowRequestTest { - private final MarginCrossMaxBorrowRequest model = new MarginCrossMaxBorrowRequest(); - - /** - * Model tests for MarginCrossMaxBorrowRequest - */ - @Test - public void testMarginCrossMaxBorrowRequest() { - // TODO: test MarginCrossMaxBorrowRequest - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowResultTest.java deleted file mode 100644 index 8e72c35f..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossMaxBorrowResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossMaxBorrowResult - */ -public class MarginCrossMaxBorrowResultTest { - private final MarginCrossMaxBorrowResult model = new MarginCrossMaxBorrowResult(); - - /** - * Model tests for MarginCrossMaxBorrowResult - */ - @Test - public void testMarginCrossMaxBorrowResult() { - // TODO: test MarginCrossMaxBorrowResult - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'maxBorrowableAmount' - */ - @Test - public void maxBorrowableAmountTest() { - // TODO: test maxBorrowableAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRateAndLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRateAndLimitResultTest.java deleted file mode 100644 index 17f666ef..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRateAndLimitResultTest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginCrossVipResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossRateAndLimitResult - */ -public class MarginCrossRateAndLimitResultTest { - private final MarginCrossRateAndLimitResult model = new MarginCrossRateAndLimitResult(); - - /** - * Model tests for MarginCrossRateAndLimitResult - */ - @Test - public void testMarginCrossRateAndLimitResult() { - // TODO: test MarginCrossRateAndLimitResult - } - - /** - * Test the property 'borrowAble' - */ - @Test - public void borrowAbleTest() { - // TODO: test borrowAble - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'dailyInterestRate' - */ - @Test - public void dailyInterestRateTest() { - // TODO: test dailyInterestRate - } - - /** - * Test the property 'leverage' - */ - @Test - public void leverageTest() { - // TODO: test leverage - } - - /** - * Test the property 'maxBorrowableAmount' - */ - @Test - public void maxBorrowableAmountTest() { - // TODO: test maxBorrowableAmount - } - - /** - * Test the property 'transferInAble' - */ - @Test - public void transferInAbleTest() { - // TODO: test transferInAble - } - - /** - * Test the property 'vips' - */ - @Test - public void vipsTest() { - // TODO: test vips - } - - /** - * Test the property 'yearlyInterestRate' - */ - @Test - public void yearlyInterestRateTest() { - // TODO: test yearlyInterestRate - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayRequestTest.java deleted file mode 100644 index 0811c5a8..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayRequestTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossRepayRequest - */ -public class MarginCrossRepayRequestTest { - private final MarginCrossRepayRequest model = new MarginCrossRepayRequest(); - - /** - * Model tests for MarginCrossRepayRequest - */ - @Test - public void testMarginCrossRepayRequest() { - // TODO: test MarginCrossRepayRequest - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'repayAmount' - */ - @Test - public void repayAmountTest() { - // TODO: test repayAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayResultTest.java deleted file mode 100644 index a6cfd037..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossRepayResultTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossRepayResult - */ -public class MarginCrossRepayResultTest { - private final MarginCrossRepayResult model = new MarginCrossRepayResult(); - - /** - * Model tests for MarginCrossRepayResult - */ - @Test - public void testMarginCrossRepayResult() { - // TODO: test MarginCrossRepayResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'remainDebtAmount' - */ - @Test - public void remainDebtAmountTest() { - // TODO: test remainDebtAmount - } - - /** - * Test the property 'repayAmount' - */ - @Test - public void repayAmountTest() { - // TODO: test repayAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossVipResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossVipResultTest.java deleted file mode 100644 index 6616c61c..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginCrossVipResultTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginCrossVipResult - */ -public class MarginCrossVipResultTest { - private final MarginCrossVipResult model = new MarginCrossVipResult(); - - /** - * Model tests for MarginCrossVipResult - */ - @Test - public void testMarginCrossVipResult() { - // TODO: test MarginCrossVipResult - } - - /** - * Test the property 'dailyInterestRate' - */ - @Test - public void dailyInterestRateTest() { - // TODO: test dailyInterestRate - } - - /** - * Test the property 'discountRate' - */ - @Test - public void discountRateTest() { - // TODO: test discountRate - } - - /** - * Test the property 'level' - */ - @Test - public void levelTest() { - // TODO: test level - } - - /** - * Test the property 'yearlyInterestRate' - */ - @Test - public void yearlyInterestRateTest() { - // TODO: test yearlyInterestRate - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoResultTest.java deleted file mode 100644 index 5f39ba62..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginInterestInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginInterestInfoResult - */ -public class MarginInterestInfoResultTest { - private final MarginInterestInfoResult model = new MarginInterestInfoResult(); - - /** - * Model tests for MarginInterestInfoResult - */ - @Test - public void testMarginInterestInfoResult() { - // TODO: test MarginInterestInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoTest.java deleted file mode 100644 index 14227a71..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginInterestInfoTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginInterestInfo - */ -public class MarginInterestInfoTest { - private final MarginInterestInfo model = new MarginInterestInfo(); - - /** - * Model tests for MarginInterestInfo - */ - @Test - public void testMarginInterestInfo() { - // TODO: test MarginInterestInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'interestCoin' - */ - @Test - public void interestCoinTest() { - // TODO: test interestCoin - } - - /** - * Test the property 'interestId' - */ - @Test - public void interestIdTest() { - // TODO: test interestId - } - - /** - * Test the property 'interestRate' - */ - @Test - public void interestRateTest() { - // TODO: test interestRate - } - - /** - * Test the property 'loanCoin' - */ - @Test - public void loanCoinTest() { - // TODO: test loanCoin - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResultTest.java deleted file mode 100644 index fbdea9d8..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsPopulationResultTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedAssetsPopulationResult - */ -public class MarginIsolatedAssetsPopulationResultTest { - private final MarginIsolatedAssetsPopulationResult model = new MarginIsolatedAssetsPopulationResult(); - - /** - * Model tests for MarginIsolatedAssetsPopulationResult - */ - @Test - public void testMarginIsolatedAssetsPopulationResult() { - // TODO: test MarginIsolatedAssetsPopulationResult - } - - /** - * Test the property 'available' - */ - @Test - public void availableTest() { - // TODO: test available - } - - /** - * Test the property 'borrow' - */ - @Test - public void borrowTest() { - // TODO: test borrow - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'frozen' - */ - @Test - public void frozenTest() { - // TODO: test frozen - } - - /** - * Test the property 'interest' - */ - @Test - public void interestTest() { - // TODO: test interest - } - - /** - * Test the property 'net' - */ - @Test - public void netTest() { - // TODO: test net - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'totalAmount' - */ - @Test - public void totalAmountTest() { - // TODO: test totalAmount - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsResultTest.java deleted file mode 100644 index 7f55718a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsResultTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedAssetsResult - */ -public class MarginIsolatedAssetsResultTest { - private final MarginIsolatedAssetsResult model = new MarginIsolatedAssetsResult(); - - /** - * Model tests for MarginIsolatedAssetsResult - */ - @Test - public void testMarginIsolatedAssetsResult() { - // TODO: test MarginIsolatedAssetsResult - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'maxTransferOutAmount' - */ - @Test - public void maxTransferOutAmountTest() { - // TODO: test maxTransferOutAmount - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequestTest.java deleted file mode 100644 index 7bd6e124..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskRequestTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedAssetsRiskRequest - */ -public class MarginIsolatedAssetsRiskRequestTest { - private final MarginIsolatedAssetsRiskRequest model = new MarginIsolatedAssetsRiskRequest(); - - /** - * Model tests for MarginIsolatedAssetsRiskRequest - */ - @Test - public void testMarginIsolatedAssetsRiskRequest() { - // TODO: test MarginIsolatedAssetsRiskRequest - } - - /** - * Test the property 'pageNum' - */ - @Test - public void pageNumTest() { - // TODO: test pageNum - } - - /** - * Test the property 'pageSize' - */ - @Test - public void pageSizeTest() { - // TODO: test pageSize - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResultTest.java deleted file mode 100644 index c2f7d611..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedAssetsRiskResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedAssetsRiskResult - */ -public class MarginIsolatedAssetsRiskResultTest { - private final MarginIsolatedAssetsRiskResult model = new MarginIsolatedAssetsRiskResult(); - - /** - * Model tests for MarginIsolatedAssetsRiskResult - */ - @Test - public void testMarginIsolatedAssetsRiskResult() { - // TODO: test MarginIsolatedAssetsRiskResult - } - - /** - * Test the property 'riskRate' - */ - @Test - public void riskRateTest() { - // TODO: test riskRate - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResultTest.java deleted file mode 100644 index 32ab7ba7..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedBorrowLimitResultTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedBorrowLimitResult - */ -public class MarginIsolatedBorrowLimitResultTest { - private final MarginIsolatedBorrowLimitResult model = new MarginIsolatedBorrowLimitResult(); - - /** - * Model tests for MarginIsolatedBorrowLimitResult - */ - @Test - public void testMarginIsolatedBorrowLimitResult() { - // TODO: test MarginIsolatedBorrowLimitResult - } - - /** - * Test the property 'borrowAmount' - */ - @Test - public void borrowAmountTest() { - // TODO: test borrowAmount - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfoTest.java deleted file mode 100644 index 2698b04a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowInfoTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedFinFlowInfo - */ -public class MarginIsolatedFinFlowInfoTest { - private final MarginIsolatedFinFlowInfo model = new MarginIsolatedFinFlowInfo(); - - /** - * Model tests for MarginIsolatedFinFlowInfo - */ - @Test - public void testMarginIsolatedFinFlowInfo() { - // TODO: test MarginIsolatedFinFlowInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'balance' - */ - @Test - public void balanceTest() { - // TODO: test balance - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'fee' - */ - @Test - public void feeTest() { - // TODO: test fee - } - - /** - * Test the property 'marginId' - */ - @Test - public void marginIdTest() { - // TODO: test marginId - } - - /** - * Test the property 'marginType' - */ - @Test - public void marginTypeTest() { - // TODO: test marginType - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowResultTest.java deleted file mode 100644 index 2286e337..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedFinFlowResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedFinFlowInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedFinFlowResult - */ -public class MarginIsolatedFinFlowResultTest { - private final MarginIsolatedFinFlowResult model = new MarginIsolatedFinFlowResult(); - - /** - * Model tests for MarginIsolatedFinFlowResult - */ - @Test - public void testMarginIsolatedFinFlowResult() { - // TODO: test MarginIsolatedFinFlowResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResultTest.java deleted file mode 100644 index d269db69..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedInterestInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedInterestInfoResult - */ -public class MarginIsolatedInterestInfoResultTest { - private final MarginIsolatedInterestInfoResult model = new MarginIsolatedInterestInfoResult(); - - /** - * Model tests for MarginIsolatedInterestInfoResult - */ - @Test - public void testMarginIsolatedInterestInfoResult() { - // TODO: test MarginIsolatedInterestInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoTest.java deleted file mode 100644 index efd15b4a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedInterestInfoTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedInterestInfo - */ -public class MarginIsolatedInterestInfoTest { - private final MarginIsolatedInterestInfo model = new MarginIsolatedInterestInfo(); - - /** - * Model tests for MarginIsolatedInterestInfo - */ - @Test - public void testMarginIsolatedInterestInfo() { - // TODO: test MarginIsolatedInterestInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'interestCoin' - */ - @Test - public void interestCoinTest() { - // TODO: test interestCoin - } - - /** - * Test the property 'interestId' - */ - @Test - public void interestIdTest() { - // TODO: test interestId - } - - /** - * Test the property 'interestRate' - */ - @Test - public void interestRateTest() { - // TODO: test interestRate - } - - /** - * Test the property 'loanCoin' - */ - @Test - public void loanCoinTest() { - // TODO: test loanCoin - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLevelResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLevelResultTest.java deleted file mode 100644 index 7c880d01..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLevelResultTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLevelResult - */ -public class MarginIsolatedLevelResultTest { - private final MarginIsolatedLevelResult model = new MarginIsolatedLevelResult(); - - /** - * Model tests for MarginIsolatedLevelResult - */ - @Test - public void testMarginIsolatedLevelResult() { - // TODO: test MarginIsolatedLevelResult - } - - /** - * Test the property 'baseCoin' - */ - @Test - public void baseCoinTest() { - // TODO: test baseCoin - } - - /** - * Test the property 'baseMaxBorrowableAmount' - */ - @Test - public void baseMaxBorrowableAmountTest() { - // TODO: test baseMaxBorrowableAmount - } - - /** - * Test the property 'initRate' - */ - @Test - public void initRateTest() { - // TODO: test initRate - } - - /** - * Test the property 'leverage' - */ - @Test - public void leverageTest() { - // TODO: test leverage - } - - /** - * Test the property 'maintainMarginRate' - */ - @Test - public void maintainMarginRateTest() { - // TODO: test maintainMarginRate - } - - /** - * Test the property 'quoteCoin' - */ - @Test - public void quoteCoinTest() { - // TODO: test quoteCoin - } - - /** - * Test the property 'quoteMaxBorrowableAmount' - */ - @Test - public void quoteMaxBorrowableAmountTest() { - // TODO: test quoteMaxBorrowableAmount - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'tier' - */ - @Test - public void tierTest() { - // TODO: test tier - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLimitRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLimitRequestTest.java deleted file mode 100644 index 9fbf51d6..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLimitRequestTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLimitRequest - */ -public class MarginIsolatedLimitRequestTest { - private final MarginIsolatedLimitRequest model = new MarginIsolatedLimitRequest(); - - /** - * Model tests for MarginIsolatedLimitRequest - */ - @Test - public void testMarginIsolatedLimitRequest() { - // TODO: test MarginIsolatedLimitRequest - } - - /** - * Test the property 'borrowAmount' - */ - @Test - public void borrowAmountTest() { - // TODO: test borrowAmount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResultTest.java deleted file mode 100644 index 38a6ba9e..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedLiquidationInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLiquidationInfoResult - */ -public class MarginIsolatedLiquidationInfoResultTest { - private final MarginIsolatedLiquidationInfoResult model = new MarginIsolatedLiquidationInfoResult(); - - /** - * Model tests for MarginIsolatedLiquidationInfoResult - */ - @Test - public void testMarginIsolatedLiquidationInfoResult() { - // TODO: test MarginIsolatedLiquidationInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoTest.java deleted file mode 100644 index 41abce2a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLiquidationInfoTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLiquidationInfo - */ -public class MarginIsolatedLiquidationInfoTest { - private final MarginIsolatedLiquidationInfo model = new MarginIsolatedLiquidationInfo(); - - /** - * Model tests for MarginIsolatedLiquidationInfo - */ - @Test - public void testMarginIsolatedLiquidationInfo() { - // TODO: test MarginIsolatedLiquidationInfo - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'liqEndTime' - */ - @Test - public void liqEndTimeTest() { - // TODO: test liqEndTime - } - - /** - * Test the property 'liqFee' - */ - @Test - public void liqFeeTest() { - // TODO: test liqFee - } - - /** - * Test the property 'liqId' - */ - @Test - public void liqIdTest() { - // TODO: test liqId - } - - /** - * Test the property 'liqRisk' - */ - @Test - public void liqRiskTest() { - // TODO: test liqRisk - } - - /** - * Test the property 'liqStartTime' - */ - @Test - public void liqStartTimeTest() { - // TODO: test liqStartTime - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'totalAssets' - */ - @Test - public void totalAssetsTest() { - // TODO: test totalAssets - } - - /** - * Test the property 'totalDebt' - */ - @Test - public void totalDebtTest() { - // TODO: test totalDebt - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResultTest.java deleted file mode 100644 index 11ff63b0..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedLoanInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLoanInfoResult - */ -public class MarginIsolatedLoanInfoResultTest { - private final MarginIsolatedLoanInfoResult model = new MarginIsolatedLoanInfoResult(); - - /** - * Model tests for MarginIsolatedLoanInfoResult - */ - @Test - public void testMarginIsolatedLoanInfoResult() { - // TODO: test MarginIsolatedLoanInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoTest.java deleted file mode 100644 index a713b199..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedLoanInfoTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedLoanInfo - */ -public class MarginIsolatedLoanInfoTest { - private final MarginIsolatedLoanInfo model = new MarginIsolatedLoanInfo(); - - /** - * Model tests for MarginIsolatedLoanInfo - */ - @Test - public void testMarginIsolatedLoanInfo() { - // TODO: test MarginIsolatedLoanInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'loanId' - */ - @Test - public void loanIdTest() { - // TODO: test loanId - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequestTest.java deleted file mode 100644 index 18a1344c..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowRequestTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedMaxBorrowRequest - */ -public class MarginIsolatedMaxBorrowRequestTest { - private final MarginIsolatedMaxBorrowRequest model = new MarginIsolatedMaxBorrowRequest(); - - /** - * Model tests for MarginIsolatedMaxBorrowRequest - */ - @Test - public void testMarginIsolatedMaxBorrowRequest() { - // TODO: test MarginIsolatedMaxBorrowRequest - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResultTest.java deleted file mode 100644 index 16ac3e73..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedMaxBorrowResultTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedMaxBorrowResult - */ -public class MarginIsolatedMaxBorrowResultTest { - private final MarginIsolatedMaxBorrowResult model = new MarginIsolatedMaxBorrowResult(); - - /** - * Model tests for MarginIsolatedMaxBorrowResult - */ - @Test - public void testMarginIsolatedMaxBorrowResult() { - // TODO: test MarginIsolatedMaxBorrowResult - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'maxBorrowableAmount' - */ - @Test - public void maxBorrowableAmountTest() { - // TODO: test maxBorrowableAmount - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResultTest.java deleted file mode 100644 index 1c732ea1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRateAndLimitResultTest.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedVipResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedRateAndLimitResult - */ -public class MarginIsolatedRateAndLimitResultTest { - private final MarginIsolatedRateAndLimitResult model = new MarginIsolatedRateAndLimitResult(); - - /** - * Model tests for MarginIsolatedRateAndLimitResult - */ - @Test - public void testMarginIsolatedRateAndLimitResult() { - // TODO: test MarginIsolatedRateAndLimitResult - } - - /** - * Test the property 'baseBorrowAble' - */ - @Test - public void baseBorrowAbleTest() { - // TODO: test baseBorrowAble - } - - /** - * Test the property 'baseCoin' - */ - @Test - public void baseCoinTest() { - // TODO: test baseCoin - } - - /** - * Test the property 'baseDailyInterestRate' - */ - @Test - public void baseDailyInterestRateTest() { - // TODO: test baseDailyInterestRate - } - - /** - * Test the property 'baseMaxBorrowableAmount' - */ - @Test - public void baseMaxBorrowableAmountTest() { - // TODO: test baseMaxBorrowableAmount - } - - /** - * Test the property 'baseTransferInAble' - */ - @Test - public void baseTransferInAbleTest() { - // TODO: test baseTransferInAble - } - - /** - * Test the property 'baseVips' - */ - @Test - public void baseVipsTest() { - // TODO: test baseVips - } - - /** - * Test the property 'baseYearlyInterestRate' - */ - @Test - public void baseYearlyInterestRateTest() { - // TODO: test baseYearlyInterestRate - } - - /** - * Test the property 'leverage' - */ - @Test - public void leverageTest() { - // TODO: test leverage - } - - /** - * Test the property 'quoteBorrowAble' - */ - @Test - public void quoteBorrowAbleTest() { - // TODO: test quoteBorrowAble - } - - /** - * Test the property 'quoteCoin' - */ - @Test - public void quoteCoinTest() { - // TODO: test quoteCoin - } - - /** - * Test the property 'quoteDailyInterestRate' - */ - @Test - public void quoteDailyInterestRateTest() { - // TODO: test quoteDailyInterestRate - } - - /** - * Test the property 'quoteMaxBorrowableAmount' - */ - @Test - public void quoteMaxBorrowableAmountTest() { - // TODO: test quoteMaxBorrowableAmount - } - - /** - * Test the property 'quoteTransferInAble' - */ - @Test - public void quoteTransferInAbleTest() { - // TODO: test quoteTransferInAble - } - - /** - * Test the property 'quoteVips' - */ - @Test - public void quoteVipsTest() { - // TODO: test quoteVips - } - - /** - * Test the property 'quoteYearlyInterestRate' - */ - @Test - public void quoteYearlyInterestRateTest() { - // TODO: test quoteYearlyInterestRate - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResultTest.java deleted file mode 100644 index 6eb14564..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginIsolatedRepayInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedRepayInfoResult - */ -public class MarginIsolatedRepayInfoResultTest { - private final MarginIsolatedRepayInfoResult model = new MarginIsolatedRepayInfoResult(); - - /** - * Model tests for MarginIsolatedRepayInfoResult - */ - @Test - public void testMarginIsolatedRepayInfoResult() { - // TODO: test MarginIsolatedRepayInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoTest.java deleted file mode 100644 index 25aeeb1d..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayInfoTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedRepayInfo - */ -public class MarginIsolatedRepayInfoTest { - private final MarginIsolatedRepayInfo model = new MarginIsolatedRepayInfo(); - - /** - * Model tests for MarginIsolatedRepayInfo - */ - @Test - public void testMarginIsolatedRepayInfo() { - // TODO: test MarginIsolatedRepayInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'interest' - */ - @Test - public void interestTest() { - // TODO: test interest - } - - /** - * Test the property 'repayId' - */ - @Test - public void repayIdTest() { - // TODO: test repayId - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'totalAmount' - */ - @Test - public void totalAmountTest() { - // TODO: test totalAmount - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayRequestTest.java deleted file mode 100644 index e54c9f4f..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayRequestTest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedRepayRequest - */ -public class MarginIsolatedRepayRequestTest { - private final MarginIsolatedRepayRequest model = new MarginIsolatedRepayRequest(); - - /** - * Model tests for MarginIsolatedRepayRequest - */ - @Test - public void testMarginIsolatedRepayRequest() { - // TODO: test MarginIsolatedRepayRequest - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'repayAmount' - */ - @Test - public void repayAmountTest() { - // TODO: test repayAmount - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayResultTest.java deleted file mode 100644 index c6c44a2e..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedRepayResultTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedRepayResult - */ -public class MarginIsolatedRepayResultTest { - private final MarginIsolatedRepayResult model = new MarginIsolatedRepayResult(); - - /** - * Model tests for MarginIsolatedRepayResult - */ - @Test - public void testMarginIsolatedRepayResult() { - // TODO: test MarginIsolatedRepayResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'remainDebtAmount' - */ - @Test - public void remainDebtAmountTest() { - // TODO: test remainDebtAmount - } - - /** - * Test the property 'repayAmount' - */ - @Test - public void repayAmountTest() { - // TODO: test repayAmount - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedVipResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedVipResultTest.java deleted file mode 100644 index 96e8c571..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginIsolatedVipResultTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginIsolatedVipResult - */ -public class MarginIsolatedVipResultTest { - private final MarginIsolatedVipResult model = new MarginIsolatedVipResult(); - - /** - * Model tests for MarginIsolatedVipResult - */ - @Test - public void testMarginIsolatedVipResult() { - // TODO: test MarginIsolatedVipResult - } - - /** - * Test the property 'dailyInterestRate' - */ - @Test - public void dailyInterestRateTest() { - // TODO: test dailyInterestRate - } - - /** - * Test the property 'discountRate' - */ - @Test - public void discountRateTest() { - // TODO: test discountRate - } - - /** - * Test the property 'level' - */ - @Test - public void levelTest() { - // TODO: test level - } - - /** - * Test the property 'yearlyInterestRate' - */ - @Test - public void yearlyInterestRateTest() { - // TODO: test yearlyInterestRate - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoResultTest.java deleted file mode 100644 index 171a57fa..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginLiquidationInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginLiquidationInfoResult - */ -public class MarginLiquidationInfoResultTest { - private final MarginLiquidationInfoResult model = new MarginLiquidationInfoResult(); - - /** - * Model tests for MarginLiquidationInfoResult - */ - @Test - public void testMarginLiquidationInfoResult() { - // TODO: test MarginLiquidationInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoTest.java deleted file mode 100644 index 0b6ee3e3..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLiquidationInfoTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginLiquidationInfo - */ -public class MarginLiquidationInfoTest { - private final MarginLiquidationInfo model = new MarginLiquidationInfo(); - - /** - * Model tests for MarginLiquidationInfo - */ - @Test - public void testMarginLiquidationInfo() { - // TODO: test MarginLiquidationInfo - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'liqEndTime' - */ - @Test - public void liqEndTimeTest() { - // TODO: test liqEndTime - } - - /** - * Test the property 'liqFee' - */ - @Test - public void liqFeeTest() { - // TODO: test liqFee - } - - /** - * Test the property 'liqId' - */ - @Test - public void liqIdTest() { - // TODO: test liqId - } - - /** - * Test the property 'liqRisk' - */ - @Test - public void liqRiskTest() { - // TODO: test liqRisk - } - - /** - * Test the property 'liqStartTime' - */ - @Test - public void liqStartTimeTest() { - // TODO: test liqStartTime - } - - /** - * Test the property 'totalAssets' - */ - @Test - public void totalAssetsTest() { - // TODO: test totalAssets - } - - /** - * Test the property 'totalDebt' - */ - @Test - public void totalDebtTest() { - // TODO: test totalDebt - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoResultTest.java deleted file mode 100644 index 98dac89f..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginLoanInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginLoanInfoResult - */ -public class MarginLoanInfoResultTest { - private final MarginLoanInfoResult model = new MarginLoanInfoResult(); - - /** - * Model tests for MarginLoanInfoResult - */ - @Test - public void testMarginLoanInfoResult() { - // TODO: test MarginLoanInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoTest.java deleted file mode 100644 index 38aa97ca..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginLoanInfoTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginLoanInfo - */ -public class MarginLoanInfoTest { - private final MarginLoanInfo model = new MarginLoanInfo(); - - /** - * Model tests for MarginLoanInfo - */ - @Test - public void testMarginLoanInfo() { - // TODO: test MarginLoanInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'loanId' - */ - @Test - public void loanIdTest() { - // TODO: test loanId - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOpenOrderInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOpenOrderInfoResultTest.java deleted file mode 100644 index 74fbb135..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOpenOrderInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginOrderInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginOpenOrderInfoResult - */ -public class MarginOpenOrderInfoResultTest { - private final MarginOpenOrderInfoResult model = new MarginOpenOrderInfoResult(); - - /** - * Model tests for MarginOpenOrderInfoResult - */ - @Test - public void testMarginOpenOrderInfoResult() { - // TODO: test MarginOpenOrderInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'orderList' - */ - @Test - public void orderListTest() { - // TODO: test orderList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderInfoTest.java deleted file mode 100644 index e36d120e..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderInfoTest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginOrderInfo - */ -public class MarginOrderInfoTest { - private final MarginOrderInfo model = new MarginOrderInfo(); - - /** - * Model tests for MarginOrderInfo - */ - @Test - public void testMarginOrderInfo() { - // TODO: test MarginOrderInfo - } - - /** - * Test the property 'baseQuantity' - */ - @Test - public void baseQuantityTest() { - // TODO: test baseQuantity - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'fillPrice' - */ - @Test - public void fillPriceTest() { - // TODO: test fillPrice - } - - /** - * Test the property 'fillQuantity' - */ - @Test - public void fillQuantityTest() { - // TODO: test fillQuantity - } - - /** - * Test the property 'fillTotalAmount' - */ - @Test - public void fillTotalAmountTest() { - // TODO: test fillTotalAmount - } - - /** - * Test the property 'loanType' - */ - @Test - public void loanTypeTest() { - // TODO: test loanType - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - - /** - * Test the property 'orderType' - */ - @Test - public void orderTypeTest() { - // TODO: test orderType - } - - /** - * Test the property 'price' - */ - @Test - public void priceTest() { - // TODO: test price - } - - /** - * Test the property 'quoteAmount' - */ - @Test - public void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** - * Test the property 'side' - */ - @Test - public void sideTest() { - // TODO: test side - } - - /** - * Test the property 'source' - */ - @Test - public void sourceTest() { - // TODO: test source - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderRequestTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderRequestTest.java deleted file mode 100644 index cd547cc1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginOrderRequestTest.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginOrderRequest - */ -public class MarginOrderRequestTest { - private final MarginOrderRequest model = new MarginOrderRequest(); - - /** - * Model tests for MarginOrderRequest - */ - @Test - public void testMarginOrderRequest() { - // TODO: test MarginOrderRequest - } - - /** - * Test the property 'baseQuantity' - */ - @Test - public void baseQuantityTest() { - // TODO: test baseQuantity - } - - /** - * Test the property 'channelApiCode' - */ - @Test - public void channelApiCodeTest() { - // TODO: test channelApiCode - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'ip' - */ - @Test - public void ipTest() { - // TODO: test ip - } - - /** - * Test the property 'loanType' - */ - @Test - public void loanTypeTest() { - // TODO: test loanType - } - - /** - * Test the property 'orderType' - */ - @Test - public void orderTypeTest() { - // TODO: test orderType - } - - /** - * Test the property 'price' - */ - @Test - public void priceTest() { - // TODO: test price - } - - /** - * Test the property 'quoteAmount' - */ - @Test - public void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** - * Test the property 'side' - */ - @Test - public void sideTest() { - // TODO: test side - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'timeInForce' - */ - @Test - public void timeInForceTest() { - // TODO: test timeInForce - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginPlaceOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginPlaceOrderResultTest.java deleted file mode 100644 index 76ff9262..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginPlaceOrderResultTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginPlaceOrderResult - */ -public class MarginPlaceOrderResultTest { - private final MarginPlaceOrderResult model = new MarginPlaceOrderResult(); - - /** - * Model tests for MarginPlaceOrderResult - */ - @Test - public void testMarginPlaceOrderResult() { - // TODO: test MarginPlaceOrderResult - } - - /** - * Test the property 'clientOid' - */ - @Test - public void clientOidTest() { - // TODO: test clientOid - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoResultTest.java deleted file mode 100644 index 43ba00e6..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginRepayInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginRepayInfoResult - */ -public class MarginRepayInfoResultTest { - private final MarginRepayInfoResult model = new MarginRepayInfoResult(); - - /** - * Model tests for MarginRepayInfoResult - */ - @Test - public void testMarginRepayInfoResult() { - // TODO: test MarginRepayInfoResult - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoTest.java deleted file mode 100644 index 17774d6c..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginRepayInfoTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginRepayInfo - */ -public class MarginRepayInfoTest { - private final MarginRepayInfo model = new MarginRepayInfo(); - - /** - * Model tests for MarginRepayInfo - */ - @Test - public void testMarginRepayInfo() { - // TODO: test MarginRepayInfo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'interest' - */ - @Test - public void interestTest() { - // TODO: test interest - } - - /** - * Test the property 'repayId' - */ - @Test - public void repayIdTest() { - // TODO: test repayId - } - - /** - * Test the property 'totalAmount' - */ - @Test - public void totalAmountTest() { - // TODO: test totalAmount - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginSystemResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginSystemResultTest.java deleted file mode 100644 index 4f8bc08a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginSystemResultTest.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginSystemResult - */ -public class MarginSystemResultTest { - private final MarginSystemResult model = new MarginSystemResult(); - - /** - * Model tests for MarginSystemResult - */ - @Test - public void testMarginSystemResult() { - // TODO: test MarginSystemResult - } - - /** - * Test the property 'baseCoin' - */ - @Test - public void baseCoinTest() { - // TODO: test baseCoin - } - - /** - * Test the property 'isBorrowable' - */ - @Test - public void isBorrowableTest() { - // TODO: test isBorrowable - } - - /** - * Test the property 'liquidationRiskRatio' - */ - @Test - public void liquidationRiskRatioTest() { - // TODO: test liquidationRiskRatio - } - - /** - * Test the property 'makerFeeRate' - */ - @Test - public void makerFeeRateTest() { - // TODO: test makerFeeRate - } - - /** - * Test the property 'maxCrossLeverage' - */ - @Test - public void maxCrossLeverageTest() { - // TODO: test maxCrossLeverage - } - - /** - * Test the property 'maxIsolatedLeverage' - */ - @Test - public void maxIsolatedLeverageTest() { - // TODO: test maxIsolatedLeverage - } - - /** - * Test the property 'maxTradeAmount' - */ - @Test - public void maxTradeAmountTest() { - // TODO: test maxTradeAmount - } - - /** - * Test the property 'minTradeAmount' - */ - @Test - public void minTradeAmountTest() { - // TODO: test minTradeAmount - } - - /** - * Test the property 'minTradeUSDT' - */ - @Test - public void minTradeUSDTTest() { - // TODO: test minTradeUSDT - } - - /** - * Test the property 'priceScale' - */ - @Test - public void priceScaleTest() { - // TODO: test priceScale - } - - /** - * Test the property 'quantityScale' - */ - @Test - public void quantityScaleTest() { - // TODO: test quantityScale - } - - /** - * Test the property 'quoteCoin' - */ - @Test - public void quoteCoinTest() { - // TODO: test quoteCoin - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'symbol' - */ - @Test - public void symbolTest() { - // TODO: test symbol - } - - /** - * Test the property 'takerFeeRate' - */ - @Test - public void takerFeeRateTest() { - // TODO: test takerFeeRate - } - - /** - * Test the property 'userMinBorrow' - */ - @Test - public void userMinBorrowTest() { - // TODO: test userMinBorrow - } - - /** - * Test the property 'warningRiskRatio' - */ - @Test - public void warningRiskRatioTest() { - // TODO: test warningRiskRatio - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoResultTest.java deleted file mode 100644 index 727b3894..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoResultTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MarginTradeDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginTradeDetailInfoResult - */ -public class MarginTradeDetailInfoResultTest { - private final MarginTradeDetailInfoResult model = new MarginTradeDetailInfoResult(); - - /** - * Model tests for MarginTradeDetailInfoResult - */ - @Test - public void testMarginTradeDetailInfoResult() { - // TODO: test MarginTradeDetailInfoResult - } - - /** - * Test the property 'fills' - */ - @Test - public void fillsTest() { - // TODO: test fills - } - - /** - * Test the property 'maxId' - */ - @Test - public void maxIdTest() { - // TODO: test maxId - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoTest.java deleted file mode 100644 index 7ef22778..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MarginTradeDetailInfoTest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MarginTradeDetailInfo - */ -public class MarginTradeDetailInfoTest { - private final MarginTradeDetailInfo model = new MarginTradeDetailInfo(); - - /** - * Model tests for MarginTradeDetailInfo - */ - @Test - public void testMarginTradeDetailInfo() { - // TODO: test MarginTradeDetailInfo - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'feeCcy' - */ - @Test - public void feeCcyTest() { - // TODO: test feeCcy - } - - /** - * Test the property 'fees' - */ - @Test - public void feesTest() { - // TODO: test fees - } - - /** - * Test the property 'fillId' - */ - @Test - public void fillIdTest() { - // TODO: test fillId - } - - /** - * Test the property 'fillPrice' - */ - @Test - public void fillPriceTest() { - // TODO: test fillPrice - } - - /** - * Test the property 'fillQuantity' - */ - @Test - public void fillQuantityTest() { - // TODO: test fillQuantity - } - - /** - * Test the property 'fillTotalAmount' - */ - @Test - public void fillTotalAmountTest() { - // TODO: test fillTotalAmount - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - - /** - * Test the property 'orderType' - */ - @Test - public void orderTypeTest() { - // TODO: test orderType - } - - /** - * Test the property 'side' - */ - @Test - public void sideTest() { - // TODO: test side - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvInfoTest.java deleted file mode 100644 index c22782bc..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvInfoTest.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.FiatPaymentInfo; -import com.bitget.openapi.model.MerchantAdvUserLimitInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantAdvInfo - */ -public class MerchantAdvInfoTest { - private final MerchantAdvInfo model = new MerchantAdvInfo(); - - /** - * Model tests for MerchantAdvInfo - */ - @Test - public void testMerchantAdvInfo() { - // TODO: test MerchantAdvInfo - } - - /** - * Test the property 'advId' - */ - @Test - public void advIdTest() { - // TODO: test advId - } - - /** - * Test the property 'advNo' - */ - @Test - public void advNoTest() { - // TODO: test advNo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'coinPrecision' - */ - @Test - public void coinPrecisionTest() { - // TODO: test coinPrecision - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'dealAmount' - */ - @Test - public void dealAmountTest() { - // TODO: test dealAmount - } - - /** - * Test the property 'fiatCode' - */ - @Test - public void fiatCodeTest() { - // TODO: test fiatCode - } - - /** - * Test the property 'fiatPrecision' - */ - @Test - public void fiatPrecisionTest() { - // TODO: test fiatPrecision - } - - /** - * Test the property 'fiatSymbol' - */ - @Test - public void fiatSymbolTest() { - // TODO: test fiatSymbol - } - - /** - * Test the property 'hide' - */ - @Test - public void hideTest() { - // TODO: test hide - } - - /** - * Test the property 'maxAmount' - */ - @Test - public void maxAmountTest() { - // TODO: test maxAmount - } - - /** - * Test the property 'minAmount' - */ - @Test - public void minAmountTest() { - // TODO: test minAmount - } - - /** - * Test the property 'payDuration' - */ - @Test - public void payDurationTest() { - // TODO: test payDuration - } - - /** - * Test the property 'paymentMethod' - */ - @Test - public void paymentMethodTest() { - // TODO: test paymentMethod - } - - /** - * Test the property 'price' - */ - @Test - public void priceTest() { - // TODO: test price - } - - /** - * Test the property 'remark' - */ - @Test - public void remarkTest() { - // TODO: test remark - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'turnoverNum' - */ - @Test - public void turnoverNumTest() { - // TODO: test turnoverNum - } - - /** - * Test the property 'turnoverRate' - */ - @Test - public void turnoverRateTest() { - // TODO: test turnoverRate - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'userLimit' - */ - @Test - public void userLimitTest() { - // TODO: test userLimit - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvResultTest.java deleted file mode 100644 index f0542cab..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvResultTest.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantAdvInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantAdvResult - */ -public class MerchantAdvResultTest { - private final MerchantAdvResult model = new MerchantAdvResult(); - - /** - * Model tests for MerchantAdvResult - */ - @Test - public void testMerchantAdvResult() { - // TODO: test MerchantAdvResult - } - - /** - * Test the property 'advList' - */ - @Test - public void advListTest() { - // TODO: test advList - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvUserLimitInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvUserLimitInfoTest.java deleted file mode 100644 index a55b83d4..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantAdvUserLimitInfoTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantAdvUserLimitInfo - */ -public class MerchantAdvUserLimitInfoTest { - private final MerchantAdvUserLimitInfo model = new MerchantAdvUserLimitInfo(); - - /** - * Model tests for MerchantAdvUserLimitInfo - */ - @Test - public void testMerchantAdvUserLimitInfo() { - // TODO: test MerchantAdvUserLimitInfo - } - - /** - * Test the property 'allowMerchantPlace' - */ - @Test - public void allowMerchantPlaceTest() { - // TODO: test allowMerchantPlace - } - - /** - * Test the property 'country' - */ - @Test - public void countryTest() { - // TODO: test country - } - - /** - * Test the property 'maxCompleteNum' - */ - @Test - public void maxCompleteNumTest() { - // TODO: test maxCompleteNum - } - - /** - * Test the property 'minCompleteNum' - */ - @Test - public void minCompleteNumTest() { - // TODO: test minCompleteNum - } - - /** - * Test the property 'placeOrderNum' - */ - @Test - public void placeOrderNumTest() { - // TODO: test placeOrderNum - } - - /** - * Test the property 'thirtyCompleteRate' - */ - @Test - public void thirtyCompleteRateTest() { - // TODO: test thirtyCompleteRate - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoResultTest.java deleted file mode 100644 index 3ad1d2aa..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoResultTest.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantInfoResult - */ -public class MerchantInfoResultTest { - private final MerchantInfoResult model = new MerchantInfoResult(); - - /** - * Model tests for MerchantInfoResult - */ - @Test - public void testMerchantInfoResult() { - // TODO: test MerchantInfoResult - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'resultList' - */ - @Test - public void resultListTest() { - // TODO: test resultList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoTest.java deleted file mode 100644 index b292e9c1..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantInfoTest.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantInfo - */ -public class MerchantInfoTest { - private final MerchantInfo model = new MerchantInfo(); - - /** - * Model tests for MerchantInfo - */ - @Test - public void testMerchantInfo() { - // TODO: test MerchantInfo - } - - /** - * Test the property 'averagePayment' - */ - @Test - public void averagePaymentTest() { - // TODO: test averagePayment - } - - /** - * Test the property 'averageRealese' - */ - @Test - public void averageRealeseTest() { - // TODO: test averageRealese - } - - /** - * Test the property 'isOnline' - */ - @Test - public void isOnlineTest() { - // TODO: test isOnline - } - - /** - * Test the property 'merchantId' - */ - @Test - public void merchantIdTest() { - // TODO: test merchantId - } - - /** - * Test the property 'nickName' - */ - @Test - public void nickNameTest() { - // TODO: test nickName - } - - /** - * Test the property 'registerTime' - */ - @Test - public void registerTimeTest() { - // TODO: test registerTime - } - - /** - * Test the property 'thirtyBuy' - */ - @Test - public void thirtyBuyTest() { - // TODO: test thirtyBuy - } - - /** - * Test the property 'thirtyCompletionRate' - */ - @Test - public void thirtyCompletionRateTest() { - // TODO: test thirtyCompletionRate - } - - /** - * Test the property 'thirtySell' - */ - @Test - public void thirtySellTest() { - // TODO: test thirtySell - } - - /** - * Test the property 'thirtyTrades' - */ - @Test - public void thirtyTradesTest() { - // TODO: test thirtyTrades - } - - /** - * Test the property 'totalBuy' - */ - @Test - public void totalBuyTest() { - // TODO: test totalBuy - } - - /** - * Test the property 'totalCompletionRate' - */ - @Test - public void totalCompletionRateTest() { - // TODO: test totalCompletionRate - } - - /** - * Test the property 'totalSell' - */ - @Test - public void totalSellTest() { - // TODO: test totalSell - } - - /** - * Test the property 'totalTrades' - */ - @Test - public void totalTradesTest() { - // TODO: test totalTrades - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderInfoTest.java deleted file mode 100644 index 3f805d18..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderInfoTest.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantOrderPaymentInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantOrderInfo - */ -public class MerchantOrderInfoTest { - private final MerchantOrderInfo model = new MerchantOrderInfo(); - - /** - * Model tests for MerchantOrderInfo - */ - @Test - public void testMerchantOrderInfo() { - // TODO: test MerchantOrderInfo - } - - /** - * Test the property 'advNo' - */ - @Test - public void advNoTest() { - // TODO: test advNo - } - - /** - * Test the property 'amount' - */ - @Test - public void amountTest() { - // TODO: test amount - } - - /** - * Test the property 'buyerRealName' - */ - @Test - public void buyerRealNameTest() { - // TODO: test buyerRealName - } - - /** - * Test the property 'coin' - */ - @Test - public void coinTest() { - // TODO: test coin - } - - /** - * Test the property 'count' - */ - @Test - public void countTest() { - // TODO: test count - } - - /** - * Test the property 'ctime' - */ - @Test - public void ctimeTest() { - // TODO: test ctime - } - - /** - * Test the property 'fiat' - */ - @Test - public void fiatTest() { - // TODO: test fiat - } - - /** - * Test the property 'orderId' - */ - @Test - public void orderIdTest() { - // TODO: test orderId - } - - /** - * Test the property 'orderNo' - */ - @Test - public void orderNoTest() { - // TODO: test orderNo - } - - /** - * Test the property 'paymentInfo' - */ - @Test - public void paymentInfoTest() { - // TODO: test paymentInfo - } - - /** - * Test the property 'paymentTime' - */ - @Test - public void paymentTimeTest() { - // TODO: test paymentTime - } - - /** - * Test the property 'price' - */ - @Test - public void priceTest() { - // TODO: test price - } - - /** - * Test the property 'releaseCoinTime' - */ - @Test - public void releaseCoinTimeTest() { - // TODO: test releaseCoinTime - } - - /** - * Test the property 'representTime' - */ - @Test - public void representTimeTest() { - // TODO: test representTime - } - - /** - * Test the property 'sellerRealName' - */ - @Test - public void sellerRealNameTest() { - // TODO: test sellerRealName - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'withdrawTime' - */ - @Test - public void withdrawTimeTest() { - // TODO: test withdrawTime - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderPaymentInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderPaymentInfoTest.java deleted file mode 100644 index 6dfbd515..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderPaymentInfoTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.OrderPaymentDetailInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantOrderPaymentInfo - */ -public class MerchantOrderPaymentInfoTest { - private final MerchantOrderPaymentInfo model = new MerchantOrderPaymentInfo(); - - /** - * Model tests for MerchantOrderPaymentInfo - */ - @Test - public void testMerchantOrderPaymentInfo() { - // TODO: test MerchantOrderPaymentInfo - } - - /** - * Test the property 'paymethodId' - */ - @Test - public void paymethodIdTest() { - // TODO: test paymethodId - } - - /** - * Test the property 'paymethodInfo' - */ - @Test - public void paymethodInfoTest() { - // TODO: test paymethodInfo - } - - /** - * Test the property 'paymethodName' - */ - @Test - public void paymethodNameTest() { - // TODO: test paymethodName - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderResultTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderResultTest.java deleted file mode 100644 index cd715e5d..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantOrderResultTest.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.bitget.openapi.model.MerchantOrderInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantOrderResult - */ -public class MerchantOrderResultTest { - private final MerchantOrderResult model = new MerchantOrderResult(); - - /** - * Model tests for MerchantOrderResult - */ - @Test - public void testMerchantOrderResult() { - // TODO: test MerchantOrderResult - } - - /** - * Test the property 'minId' - */ - @Test - public void minIdTest() { - // TODO: test minId - } - - /** - * Test the property 'orderList' - */ - @Test - public void orderListTest() { - // TODO: test orderList - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantPersonInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantPersonInfoTest.java deleted file mode 100644 index 7c7ac51a..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/MerchantPersonInfoTest.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for MerchantPersonInfo - */ -public class MerchantPersonInfoTest { - private final MerchantPersonInfo model = new MerchantPersonInfo(); - - /** - * Model tests for MerchantPersonInfo - */ - @Test - public void testMerchantPersonInfo() { - // TODO: test MerchantPersonInfo - } - - /** - * Test the property 'averagePayment' - */ - @Test - public void averagePaymentTest() { - // TODO: test averagePayment - } - - /** - * Test the property 'averageRealese' - */ - @Test - public void averageRealeseTest() { - // TODO: test averageRealese - } - - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } - - /** - * Test the property 'emailBindFlag' - */ - @Test - public void emailBindFlagTest() { - // TODO: test emailBindFlag - } - - /** - * Test the property 'kycFlag' - */ - @Test - public void kycFlagTest() { - // TODO: test kycFlag - } - - /** - * Test the property 'merchantId' - */ - @Test - public void merchantIdTest() { - // TODO: test merchantId - } - - /** - * Test the property 'mobile' - */ - @Test - public void mobileTest() { - // TODO: test mobile - } - - /** - * Test the property 'mobileBindFlag' - */ - @Test - public void mobileBindFlagTest() { - // TODO: test mobileBindFlag - } - - /** - * Test the property 'nickName' - */ - @Test - public void nickNameTest() { - // TODO: test nickName - } - - /** - * Test the property 'realName' - */ - @Test - public void realNameTest() { - // TODO: test realName - } - - /** - * Test the property 'registerTime' - */ - @Test - public void registerTimeTest() { - // TODO: test registerTime - } - - /** - * Test the property 'thirtyBuy' - */ - @Test - public void thirtyBuyTest() { - // TODO: test thirtyBuy - } - - /** - * Test the property 'thirtyCompletionRate' - */ - @Test - public void thirtyCompletionRateTest() { - // TODO: test thirtyCompletionRate - } - - /** - * Test the property 'thirtySell' - */ - @Test - public void thirtySellTest() { - // TODO: test thirtySell - } - - /** - * Test the property 'thirtyTrades' - */ - @Test - public void thirtyTradesTest() { - // TODO: test thirtyTrades - } - - /** - * Test the property 'totalBuy' - */ - @Test - public void totalBuyTest() { - // TODO: test totalBuy - } - - /** - * Test the property 'totalCompletionRate' - */ - @Test - public void totalCompletionRateTest() { - // TODO: test totalCompletionRate - } - - /** - * Test the property 'totalSell' - */ - @Test - public void totalSellTest() { - // TODO: test totalSell - } - - /** - * Test the property 'totalTrades' - */ - @Test - public void totalTradesTest() { - // TODO: test totalTrades - } - -} diff --git a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/OrderPaymentDetailInfoTest.java b/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/OrderPaymentDetailInfoTest.java deleted file mode 100644 index 17b428b2..00000000 --- a/bitget-java-sdk-open-api/src/test/java/com/bitget/openapi/model/OrderPaymentDetailInfoTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bitget.openapi.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for OrderPaymentDetailInfo - */ -public class OrderPaymentDetailInfoTest { - private final OrderPaymentDetailInfo model = new OrderPaymentDetailInfo(); - - /** - * Model tests for OrderPaymentDetailInfo - */ - @Test - public void testOrderPaymentDetailInfo() { - // TODO: test OrderPaymentDetailInfo - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - -} diff --git a/bitget-node-sdk-open-api/README.md b/bitget-node-sdk-open-api/README.md deleted file mode 100644 index 39d7d3a4..00000000 --- a/bitget-node-sdk-open-api/README.md +++ /dev/null @@ -1,98 +0,0 @@ -## bitget@1.0.0 - -This generator creates TypeScript-Node/JavaScript client that utilizes fetch-api. - -### Building - -To build and compile the typescript sources to javascript use: -``` -npm install -npm run build -``` - -### Publishing - -First build the package then run ```npm publish``` - -### Consuming - -navigate to the folder of your consuming project and run one of the following commands. - -_published:_ - -``` -npm install bitget@1.0.0 --save -``` - -_unPublished (not recommended):_ - -``` -npm install PATH_TO_GENERATED_PACKAGE --save - - -``` - -### Demo -```JavaScript -import {describe, test} from '@jest/globals'; - -import * as Console from 'console'; -import {MixOrderApi, MixOrderApiApiKeys} from "../api/mixOrderApi"; -import {MixPlaceOrderRequest} from "../model/mixPlaceOrderRequest"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - test('placeOrder', () => { - Console.info("ApiTest start"); - const apiInstance = new MixOrderApi("https://api.bitget.com"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.SECRET_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_PASSPHRASE, "your value"); - - let body: MixPlaceOrderRequest = { - symbol: "BTCUSDT_UMCBL", - marginCoin: "USDT", - orderType: "market", - side: "open_long", - size: 0.01, - timeInForceValue: "normal", - }; - return apiInstance.placeOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('getMarginCoinCurrent', () => { - Console.info("ApiTest start"); - const apiInstance = new MixOrderApi("https://api.bitget.com"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.SECRET_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_PASSPHRASE, "your value"); - return apiInstance.marginCoinCurrent("umcbl", "USDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('history', () => { - Console.info("ApiTest start"); - const apiInstance = new MixOrderApi("https://api.bitget.com"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.SECRET_KEY, "your value"); - apiInstance.setApiKey(MixOrderApiApiKeys.ACCESS_PASSPHRASE, "your value"); - return apiInstance.historyProductType("umcbl", "1671493129000", "1673517445000", "10", undefined, undefined).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); -``` \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossAccountApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossAccountApi.spec.ts deleted file mode 100644 index 3079bc85..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossAccountApi.spec.ts +++ /dev/null @@ -1,134 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossAccountApi, MarginCrossAccountApiApiKeys} from "../api/marginCrossAccountApi"; -import {Config} from "../api/Config"; -import {MarginCrossLimitRequest} from "../model/marginCrossLimitRequest"; -import {MarginCrossMaxBorrowRequest} from "../model/marginCrossMaxBorrowRequest"; -import {MarginCrossRepayRequest} from "../model/marginCrossRepayRequest"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossAccountApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossAccountApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossAccountApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossAccountApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginCrossAccountAssets', () => { - return apiInstance.marginCrossAccountAssets("USDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.coin).toBe("USDT"); - expect(item.totalAmount).not.toBeNull(); - expect(item.available).not.toBeNull(); - expect(item.frozen).not.toBeNull(); - expect(item.borrow).not.toBeNull(); - expect(item.interest).not.toBeNull(); - expect(item.net).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossAccountBorrow', () => { - let body: MarginCrossLimitRequest = { - coin: "USDT", - borrowAmount: '1', - }; - return apiInstance.marginCrossAccountBorrow(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.borrowAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossAccountMaxBorrowableAmount', () => { - let body: MarginCrossMaxBorrowRequest = { - coin: "USDT", - }; - return apiInstance.marginCrossAccountMaxBorrowableAmount(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.maxBorrowableAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossAccountMaxTransferOutAmount', () => { - return apiInstance.marginCrossAccountMaxTransferOutAmount("USDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.maxTransferOutAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossAccountRepay', () => { - let body: MarginCrossRepayRequest = { - coin: "USDT", - repayAmount: "1" - }; - return apiInstance.marginCrossAccountRepay(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.repayAmount).not.toBeNull(); - expect(data.body.data.remainDebtAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossAccountRiskRate', () => { - return apiInstance.marginCrossAccountRiskRate().then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.riskRate).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossBorrowApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossBorrowApi.spec.ts deleted file mode 100644 index 311c3f36..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossBorrowApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossBorrowApi, MarginCrossBorrowApiApiKeys} from "../api/marginCrossBorrowApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossBorrowApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossBorrowApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossBorrowApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossBorrowApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('crossLiquidationList', () => { - return apiInstance.crossLoanList("1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.loanId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.amount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossFinFlowApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossFinFlowApi.spec.ts deleted file mode 100644 index 42af3b64..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossFinFlowApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossFinflowApi, MarginCrossFinflowApiApiKeys} from "../api/marginCrossFinflowApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossFinflowApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossFinflowApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossFinflowApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossFinflowApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('crossFinList', () => { - return apiInstance.crossFinList("1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.marginId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.marginType).not.toBeNull(); - expect(item.balance).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossInterestApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossInterestApi.spec.ts deleted file mode 100644 index 7aefe305..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossInterestApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossInterestApi, MarginCrossInterestApiApiKeys} from "../api/marginCrossInterestApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossInterestApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossInterestApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossInterestApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossInterestApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('crossInterestList', () => { - return apiInstance.crossInterestList("1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.interestId).not.toBeNull(); - expect(item.loanCoin).not.toBeNull(); - expect(item.amount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossLiquidationApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossLiquidationApi.spec.ts deleted file mode 100644 index 1fa84fe4..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossLiquidationApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossLiquidationApi, MarginCrossLiquidationApiApiKeys} from "../api/marginCrossLiquidationApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossLiquidationApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossLiquidationApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossLiquidationApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossLiquidationApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('crossLiquidationList', () => { - return apiInstance.crossLiquidationList("1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.liqId).not.toBeNull(); - expect(item.liqRisk).not.toBeNull(); - expect(item.totalAssets).not.toBeNull(); - expect(item.LiqFee).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossOrderApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossOrderApi.spec.ts deleted file mode 100644 index 7e084b8d..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossOrderApi.spec.ts +++ /dev/null @@ -1,249 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossOrderApi, MarginCrossOrderApiApiKeys} from "../api/marginCrossOrderApi"; -import {Config} from "../api/Config"; -import {MarginOrderRequest} from "../model/marginOrderRequest"; -import {MarginBatchOrdersRequest} from "../model/marginBatchOrdersRequest"; -import {MarginCancelOrderRequest} from "../model/marginCancelOrderRequest"; -import {MarginBatchCancelOrderRequest} from "../model/marginBatchCancelOrderRequest"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossOrderApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossOrderApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossOrderApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossOrderApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginCrossPlaceOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "market", - timeInForce: "gtc", - quoteAmount: "10", - loanType: "normal", - }; - return apiInstance.marginCrossPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossBatchPlaceOrder', () => { - let item: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "market", - timeInForce: "gtc", - quoteAmount: "10", - loanType: "normal", - }; - let body: MarginBatchOrdersRequest = { - symbol: "BTCUSDT", - orderList: [item] - } - return apiInstance.marginCrossBatchPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.resultList).not.toBeNull(); - expect(data.body.data.resultList[0].orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossCancelOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "limit", - price: "1600", - timeInForce: "gtc", - baseQuantity: "0.625", - quoteAmount: "1000", - loanType: "normal", - }; - return apiInstance.marginCrossPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - - let body: MarginCancelOrderRequest = { - symbol: "BTCUSDT", - orderId: data.body.data.orderId, - }; - return apiInstance.marginCrossCancelOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossBatchCancelOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "limit", - price: "1600", - timeInForce: "gtc", - baseQuantity: "0.625", - quoteAmount: "1000", - loanType: "normal", - }; - return apiInstance.marginCrossPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - - let body: MarginBatchCancelOrderRequest = { - symbol: "BTCUSDT", - orderIds: [data.body.data.orderId], - }; - return apiInstance.marginCrossBatchCancelOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.resultList).not.toBeNull(); - expect(data.body.data.resultList[0].orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossFills', () => { - return apiInstance.marginCrossFills("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.fills) { - console.log(item); - expect(item).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.fillId).not.toBeNull(); - expect(item.fees).not.toBeNull(); - expect(item.feeCcy).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - - test('marginCrossOpenOrders', () => { - return apiInstance.marginCrossOpenOrders("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.orderList) { - console.log(item); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.orderType).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.loanType).not.toBeNull(); - expect(item.price).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.status).not.toBeNull(); - expect(item.baseQuantity).not.toBeNull(); - expect(item.quoteAmount).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossHistoryOrders', () => { - return apiInstance.marginCrossHistoryOrders("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.orderList) { - console.log(item); - expect(item).not.toBeNull(); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.orderType).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.loanType).not.toBeNull(); - expect(item.price).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.status).not.toBeNull(); - expect(item.baseQuantity).not.toBeNull(); - expect(item.quoteAmount).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossPublicApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossPublicApi.spec.ts deleted file mode 100644 index d0602a87..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossPublicApi.spec.ts +++ /dev/null @@ -1,63 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossPublicApi, MarginCrossPublicApiApiKeys} from "../api/marginCrossPublicApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossPublicApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossPublicApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossPublicApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossPublicApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginCrossPublicInterestRateAndLimit', () => { - return apiInstance.marginCrossPublicInterestRateAndLimit("USDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.coin).toBe("USDT"); - expect(item.leverage).not.toBeNull(); - expect(item.transferInAble).not.toBeNull(); - expect(item.borrowAble).not.toBeNull(); - expect(item.dailyInterestRate).not.toBeNull(); - expect(item.yearlyInterestRate).not.toBeNull(); - expect(item.maxBorrowableAmount).not.toBeNull(); - expect(item.vips).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginCrossPublicTierData', () => { - return apiInstance.marginCrossPublicTierData("USDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.coin).toBe("USDT"); - expect(item.tier).not.toBeNull(); - expect(item.leverage).not.toBeNull(); - expect(item.maxBorrowableAmount).not.toBeNull(); - expect(item.maintainMarginRate).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginCrossRepayApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginCrossRepayApi.spec.ts deleted file mode 100644 index 29ea63fe..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginCrossRepayApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginCrossRepayApi, MarginCrossRepayApiApiKeys} from "../api/marginCrossRepayApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginCrossRepayApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginCrossRepayApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginCrossRepayApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginCrossRepayApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('crossRepayList', () => { - return apiInstance.crossRepayList("1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.repayId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.totalAmount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatecInterestApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatecInterestApi.spec.ts deleted file mode 100644 index 28dc3718..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatecInterestApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedInterestApi, MarginIsolatedInterestApiApiKeys} from "../api/marginIsolatedInterestApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedInterestApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedInterestApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedInterestApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedInterestApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('isolatedInterestList', () => { - return apiInstance.isolatedInterestList("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.interestId).not.toBeNull(); - expect(item.loanCoin).not.toBeNull(); - expect(item.amount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedAccountApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedAccountApi.spec.ts deleted file mode 100644 index 2111df7c..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedAccountApi.spec.ts +++ /dev/null @@ -1,143 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedAccountApi, MarginIsolatedAccountApiApiKeys} from "../api/marginIsolatedAccountApi"; -import {Config} from "../api/Config"; -import {MarginIsolatedLimitRequest} from "../model/marginIsolatedLimitRequest"; -import {MarginIsolatedMaxBorrowRequest} from "../model/marginIsolatedMaxBorrowRequest"; -import {MarginIsolatedRepayRequest} from "../model/marginIsolatedRepayRequest"; -import {MarginIsolatedAssetsRiskRequest} from "../model/marginIsolatedAssetsRiskRequest"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedAccountApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedAccountApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedAccountApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedAccountApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginIsolatedAccountAssets', () => { - return apiInstance.marginIsolatedAccountAssets("BTCUSDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.totalAmount).not.toBeNull(); - expect(item.available).not.toBeNull(); - expect(item.frozen).not.toBeNull(); - expect(item.borrow).not.toBeNull(); - expect(item.interest).not.toBeNull(); - expect(item.net).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedAccountBorrow', () => { - let body: MarginIsolatedLimitRequest = { - coin: "USDT", - symbol: "BTCUSDT", - borrowAmount: '1', - }; - return apiInstance.marginIsolatedAccountBorrow(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.symbol).toBe("BTCUSDT"); - expect(data.body.data.borrowAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedAccountMaxBorrowableAmount', () => { - let body: MarginIsolatedMaxBorrowRequest = { - coin: "USDT", - symbol: "BTCUSDT", - }; - return apiInstance.marginIsolatedAccountMaxBorrowableAmount(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.symbol).toBe("BTCUSDT"); - expect(data.body.data.maxBorrowableAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedAccountMaxTransferOutAmount', () => { - return apiInstance.marginIsolatedAccountMaxTransferOutAmount("USDT","BTCUSDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.maxTransferOutAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedAccountRepay', () => { - let body: MarginIsolatedRepayRequest = { - coin: "USDT", - symbol: "BTCUSDT", - repayAmount: "1" - }; - return apiInstance.marginIsolatedAccountRepay(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.coin).toBe("USDT"); - expect(data.body.data.repayAmount).not.toBeNull(); - expect(data.body.data.remainDebtAmount).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedAccountRiskRate', () => { - let body: MarginIsolatedAssetsRiskRequest = { - symbol: "BTCUSDT", - }; - return apiInstance.marginIsolatedAccountRiskRate(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.riskRate).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedBorrowApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedBorrowApi.spec.ts deleted file mode 100644 index 4e0a7311..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedBorrowApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedBorrowApi, MarginIsolatedBorrowApiApiKeys} from "../api/marginIsolatedBorrowApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedBorrowApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedBorrowApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedBorrowApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedBorrowApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('isolatedLoanList', () => { - return apiInstance.isolatedLoanList("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.loanId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.amount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedFinFlowApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedFinFlowApi.spec.ts deleted file mode 100644 index 766d4bf8..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedFinFlowApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedFinflowApi, MarginIsolatedFinflowApiApiKeys} from "../api/marginIsolatedFinflowApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedFinflowApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedFinflowApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedFinflowApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedFinflowApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('isolatedFinList', () => { - return apiInstance.isolatedFinList("BTCUSDT","1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.marginId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.marginType).not.toBeNull(); - expect(item.balance).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedLiquidationApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedLiquidationApi.spec.ts deleted file mode 100644 index e39f04df..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedLiquidationApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedLiquidationApi, MarginIsolatedLiquidationApiApiKeys} from "../api/marginIsolatedLiquidationApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedLiquidationApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedLiquidationApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedLiquidationApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedLiquidationApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('isolatedLiquidationList', () => { - return apiInstance.isolatedLiquidationList("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.liqId).not.toBeNull(); - expect(item.liqRisk).not.toBeNull(); - expect(item.totalAssets).not.toBeNull(); - expect(item.LiqFee).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedOrderApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedOrderApi.spec.ts deleted file mode 100644 index b9717416..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedOrderApi.spec.ts +++ /dev/null @@ -1,249 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedOrderApi, MarginIsolatedOrderApiApiKeys} from "../api/marginIsolatedOrderApi"; -import {Config} from "../api/Config"; -import {MarginOrderRequest} from "../model/marginOrderRequest"; -import {MarginBatchOrdersRequest} from "../model/marginBatchOrdersRequest"; -import {MarginCancelOrderRequest} from "../model/marginCancelOrderRequest"; -import {MarginBatchCancelOrderRequest} from "../model/marginBatchCancelOrderRequest"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedOrderApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedOrderApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedOrderApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedOrderApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginIsolatedPlaceOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "market", - timeInForce: "gtc", - quoteAmount: "10", - loanType: "normal", - }; - return apiInstance.marginIsolatedPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedBatchPlaceOrder', () => { - let item: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "market", - timeInForce: "gtc", - quoteAmount: "10", - loanType: "normal", - }; - let body: MarginBatchOrdersRequest = { - symbol: "BTCUSDT", - orderList: [item] - } - return apiInstance.marginIsolatedBatchPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.resultList).not.toBeNull(); - expect(data.body.data.resultList[0].orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedCancelOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "limit", - price: "1600", - timeInForce: "gtc", - baseQuantity: "0.625", - quoteAmount: "1000", - loanType: "normal", - }; - return apiInstance.marginIsolatedPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - - let body: MarginCancelOrderRequest = { - symbol: "BTCUSDT", - orderId: data.body.data.orderId, - }; - return apiInstance.marginIsolatedCancelOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedBatchCancelOrder', () => { - let body: MarginOrderRequest = { - symbol: "BTCUSDT", - side: "buy", - orderType: "limit", - price: "1600", - timeInForce: "gtc", - baseQuantity: "0.625", - quoteAmount: "1000", - loanType: "normal", - }; - return apiInstance.marginIsolatedPlaceOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderId).not.toBeNull(); - - let body: MarginBatchCancelOrderRequest = { - symbol: "BTCUSDT", - orderIds: [data.body.data.orderId], - }; - return apiInstance.marginIsolatedBatchCancelOrder(body).then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.resultList).not.toBeNull(); - expect(data.body.data.resultList[0].orderId).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedFills', () => { - return apiInstance.marginIsolatedFills("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.fills) { - console.log(item); - expect(item).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.fillId).not.toBeNull(); - expect(item.fees).not.toBeNull(); - expect(item.feeCcy).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - - test('marginIsolatedOpenOrders', () => { - return apiInstance.marginIsolatedOpenOrders("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.orderList) { - console.log(item); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.orderType).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.loanType).not.toBeNull(); - expect(item.price).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.status).not.toBeNull(); - expect(item.baseQuantity).not.toBeNull(); - expect(item.quoteAmount).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedHistoryOrders', () => { - return apiInstance.marginIsolatedHistoryOrders("BTCUSDT", "1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.orderList).not.toBeNull(); - for (let item of data.body.data.orderList) { - console.log(item); - expect(item).not.toBeNull(); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.orderType).not.toBeNull(); - expect(item.source).not.toBeNull(); - expect(item.orderId).not.toBeNull(); - expect(item.loanType).not.toBeNull(); - expect(item.price).not.toBeNull(); - expect(item.side).not.toBeNull(); - expect(item.status).not.toBeNull(); - expect(item.baseQuantity).not.toBeNull(); - expect(item.quoteAmount).not.toBeNull(); - expect(item.fillPrice).not.toBeNull(); - expect(item.fillTotalAmount).not.toBeNull(); - expect(item.fillQuantity).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedPublicApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedPublicApi.spec.ts deleted file mode 100644 index 58362a93..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedPublicApi.spec.ts +++ /dev/null @@ -1,67 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedPublicApi, MarginIsolatedPublicApiApiKeys} from "../api/marginIsolatedPublicApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedPublicApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedPublicApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedPublicApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedPublicApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginIsolatedPublicInterestRateAndLimit', () => { - return apiInstance.marginIsolatedPublicInterestRateAndLimit("BTCUSDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.leverage).not.toBeNull(); - expect(item.baseCoin).not.toBeNull(); - expect(item.baseBorrowAble).not.toBeNull(); - expect(item.baseDailyInterestRate).not.toBeNull(); - expect(item.baseYearlyInterestRate).not.toBeNull(); - expect(item.baseMaxBorrowableAmount).not.toBeNull(); - expect(item.baseVips).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('marginIsolatedPublicTierDatatier', () => { - return apiInstance.marginIsolatedPublicTierData("BTCUSDT").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.symbol).toBe("BTCUSDT"); - expect(item.tier).not.toBeNull(); - expect(item.leverage).not.toBeNull(); - expect(item.baseCoin).not.toBeNull(); - expect(item.quoteCoin).not.toBeNull(); - expect(item.baseMaxBorrowableAmount).not.toBeNull(); - expect(item.quoteMaxBorrowableAmount).not.toBeNull(); - expect(item.maintainMarginRate).not.toBeNull(); - expect(item.initRate).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginIsolatedRepayApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginIsolatedRepayApi.spec.ts deleted file mode 100644 index 8a24a9a9..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginIsolatedRepayApi.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginIsolatedRepayApi, MarginIsolatedRepayApiApiKeys} from "../api/marginIsolatedRepayApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginIsolatedRepayApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginIsolatedRepayApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginIsolatedRepayApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginIsolatedRepayApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('isolateRepayList', () => { - return apiInstance.isolateRepayList("BTCUSDT","1679133422000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.repayId).not.toBeNull(); - expect(item.coin).not.toBeNull(); - expect(item.totalAmount).not.toBeNull(); - expect(item.type).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/MarginPublicApi.spec.ts b/bitget-node-sdk-open-api/__test__/MarginPublicApi.spec.ts deleted file mode 100644 index b34dd9ad..00000000 --- a/bitget-node-sdk-open-api/__test__/MarginPublicApi.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {MarginPublicApi, MarginPublicApiApiKeys} from "../api/marginPublicApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new MarginPublicApi(Config.BASE_PATH); - apiInstance.setApiKey(MarginPublicApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(MarginPublicApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(MarginPublicApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('marginPublicCurrencies', () => { - return apiInstance.marginPublicCurrencies().then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data) { - console.log(item); - expect(item.symbol).not.toBeNull(); - expect(item.quoteCoin).not.toBeNull(); - expect(item.baseCoin).not.toBeNull(); - expect(item.maxCrossLeverage).not.toBeNull(); - expect(item.liquidationRiskRatio).not.toBeNull(); - expect(item.maxTradeAmount).not.toBeNull(); - expect(item.makerFeeRate).not.toBeNull(); - expect(item.quantityScale).not.toBeNull(); - expect(item.isBorrowable).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/__test__/P2PMerchantApi.spec.ts b/bitget-node-sdk-open-api/__test__/P2PMerchantApi.spec.ts deleted file mode 100644 index 501352c0..00000000 --- a/bitget-node-sdk-open-api/__test__/P2PMerchantApi.spec.ts +++ /dev/null @@ -1,96 +0,0 @@ -import {describe, expect, test} from '@jest/globals'; - -import * as Console from 'console'; - -import {P2pMerchantApi, P2pMerchantApiApiKeys} from "../api/P2pMerchantApi"; -import {Config} from "../api/Config"; - -export * from '../api/apis'; -export * from '../model/models'; - -describe('ApiTest', () => { - const apiInstance = new P2pMerchantApi(Config.BASE_PATH); - apiInstance.setApiKey(P2pMerchantApiApiKeys.ACCESS_KEY, Config.API_KEY); - apiInstance.setApiKey(P2pMerchantApiApiKeys.SECRET_KEY, Config.SECRET_KEY); - apiInstance.setApiKey(P2pMerchantApiApiKeys.ACCESS_PASSPHRASE, Config.PASSPHRASE); - - test('merchantAdvList', () => { - return apiInstance.merchantAdvList("1676260773000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.advList) { - console.log(item); - expect(item.advId).not.toBeNull(); - expect(item.type).not.toBeNull(); - expect(item.advNo).not.toBeNull(); - expect(item.amount).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('merchantList', () => { - return apiInstance.merchantList("no").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.resultList) { - console.log(item); - expect(item.nickName).not.toBeNull(); - expect(item.merchantId).not.toBeNull(); - expect(item.isOnline).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('merchantOrderList', () => { - return apiInstance.merchantOrderList("1680598302000").then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - for (let item of data.body.data.orderList) { - console.log(item); - expect(item.orderId).not.toBeNull(); - expect(item.orderNo).not.toBeNull(); - expect(item.advNo).not.toBeNull(); - expect(item.price).not.toBeNull(); - } - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) - - test('merchantInfo', () => { - return apiInstance.merchantInfo().then((data: any) => { - Console.log('API called successfully. Returned data: ' + JSON.stringify(data)); - expect(data).not.toBeNull(); - expect(data.body).not.toBeNull(); - expect(data.body.data).not.toBeNull(); - expect(data.body.code).toBe("00000"); - expect(data.body.msg).toBe("success"); - expect(data.body.data.nickName).not.toBeNull(); - expect(data.body.data.merchantId).not.toBeNull(); - expect(data.body.data.email).not.toBeNull(); - expect(data.body.data.mobile).not.toBeNull(); - }).catch((error: any) => { - Console.log('API called error.', JSON.stringify(error)); - Console.error(error); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-open-api/api.ts b/bitget-node-sdk-open-api/api.ts deleted file mode 100644 index 4b76122d..00000000 --- a/bitget-node-sdk-open-api/api.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This is the entrypoint for the package -export * from './api/apis'; -export * from './model/models'; \ No newline at end of file diff --git a/bitget-node-sdk-open-api/api/apis.ts b/bitget-node-sdk-open-api/api/apis.ts deleted file mode 100644 index 46c5e245..00000000 --- a/bitget-node-sdk-open-api/api/apis.ts +++ /dev/null @@ -1,48 +0,0 @@ -export * from './marginCrossAccountApi'; -import { MarginCrossAccountApi } from './marginCrossAccountApi'; -export * from './marginCrossBorrowApi'; -import { MarginCrossBorrowApi } from './marginCrossBorrowApi'; -export * from './marginCrossFinflowApi'; -import { MarginCrossFinflowApi } from './marginCrossFinflowApi'; -export * from './marginCrossInterestApi'; -import { MarginCrossInterestApi } from './marginCrossInterestApi'; -export * from './marginCrossLiquidationApi'; -import { MarginCrossLiquidationApi } from './marginCrossLiquidationApi'; -export * from './marginCrossOrderApi'; -import { MarginCrossOrderApi } from './marginCrossOrderApi'; -export * from './marginCrossPublicApi'; -import { MarginCrossPublicApi } from './marginCrossPublicApi'; -export * from './marginCrossRepayApi'; -import { MarginCrossRepayApi } from './marginCrossRepayApi'; -export * from './marginIsolatedAccountApi'; -import { MarginIsolatedAccountApi } from './marginIsolatedAccountApi'; -export * from './marginIsolatedBorrowApi'; -import { MarginIsolatedBorrowApi } from './marginIsolatedBorrowApi'; -export * from './marginIsolatedFinflowApi'; -import { MarginIsolatedFinflowApi } from './marginIsolatedFinflowApi'; -export * from './marginIsolatedInterestApi'; -import { MarginIsolatedInterestApi } from './marginIsolatedInterestApi'; -export * from './marginIsolatedLiquidationApi'; -import { MarginIsolatedLiquidationApi } from './marginIsolatedLiquidationApi'; -export * from './marginIsolatedOrderApi'; -import { MarginIsolatedOrderApi } from './marginIsolatedOrderApi'; -export * from './marginIsolatedPublicApi'; -import { MarginIsolatedPublicApi } from './marginIsolatedPublicApi'; -export * from './marginIsolatedRepayApi'; -import { MarginIsolatedRepayApi } from './marginIsolatedRepayApi'; -export * from './marginPublicApi'; -import { MarginPublicApi } from './marginPublicApi'; -export * from './p2pMerchantApi'; -import { P2pMerchantApi } from './p2pMerchantApi'; -import * as http from 'http'; - -export class HttpError extends Error { - constructor (public response: http.IncomingMessage, public body: any, public statusCode?: number) { - super('HTTP request failed'); - this.name = 'HttpError'; - } -} - -export { RequestFile } from '../model/models'; - -export const APIS = [MarginCrossAccountApi, MarginCrossBorrowApi, MarginCrossFinflowApi, MarginCrossInterestApi, MarginCrossLiquidationApi, MarginCrossOrderApi, MarginCrossPublicApi, MarginCrossRepayApi, MarginIsolatedAccountApi, MarginIsolatedBorrowApi, MarginIsolatedFinflowApi, MarginIsolatedInterestApi, MarginIsolatedLiquidationApi, MarginIsolatedOrderApi, MarginIsolatedPublicApi, MarginIsolatedRepayApi, MarginPublicApi, P2pMerchantApi]; diff --git a/bitget-node-sdk-open-api/api/config.ts b/bitget-node-sdk-open-api/api/config.ts deleted file mode 100644 index 00edf9e7..00000000 --- a/bitget-node-sdk-open-api/api/config.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -export class Config { - public static BASE_PATH = 'https://api.bitget.com'; - public static SECRET_KEY = 'your value'; - public static API_KEY = 'your value'; - public static PASSPHRASE = 'your value'; -} \ No newline at end of file diff --git a/bitget-node-sdk-open-api/api/marginCrossAccountApi.ts b/bitget-node-sdk-open-api/api/marginCrossAccountApi.ts deleted file mode 100644 index 4eb28346..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossAccountApi.ts +++ /dev/null @@ -1,689 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfListOfMarginCrossAssetsPopulationResult } from '../model/apiResponseResultOfListOfMarginCrossAssetsPopulationResult'; -import { ApiResponseResultOfMarginCrossAssetsResult } from '../model/apiResponseResultOfMarginCrossAssetsResult'; -import { ApiResponseResultOfMarginCrossAssetsRiskResult } from '../model/apiResponseResultOfMarginCrossAssetsRiskResult'; -import { ApiResponseResultOfMarginCrossBorrowLimitResult } from '../model/apiResponseResultOfMarginCrossBorrowLimitResult'; -import { ApiResponseResultOfMarginCrossMaxBorrowResult } from '../model/apiResponseResultOfMarginCrossMaxBorrowResult'; -import { ApiResponseResultOfMarginCrossRepayResult } from '../model/apiResponseResultOfMarginCrossRepayResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; -import { MarginCrossLimitRequest } from '../model/marginCrossLimitRequest'; -import { MarginCrossMaxBorrowRequest } from '../model/marginCrossMaxBorrowRequest'; -import { MarginCrossRepayRequest } from '../model/marginCrossRepayRequest'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossAccountApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossAccountApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossAccountApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossAccountApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * empty - * @summary void - */ - public async _void (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfVoid; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/void'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfVoid; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfVoid"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get Assets - * @summary assets - * @param coin coin - */ - public async marginCrossAccountAssets (coin: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossAssetsPopulationResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/assets'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'coin' is not null or undefined - if (coin === null || coin === undefined) { - throw new Error('Required parameter coin was null or undefined when calling marginCrossAccountAssets.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossAssetsPopulationResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginCrossAssetsPopulationResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * borrow - * @summary borrow - * @param marginCrossLimitRequest marginCrossLimitRequest - */ - public async marginCrossAccountBorrow (marginCrossLimitRequest: MarginCrossLimitRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossBorrowLimitResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/borrow'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginCrossLimitRequest' is not null or undefined - if (marginCrossLimitRequest === null || marginCrossLimitRequest === undefined) { - throw new Error('Required parameter marginCrossLimitRequest was null or undefined when calling marginCrossAccountBorrow.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginCrossLimitRequest, "MarginCrossLimitRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossBorrowLimitResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossBorrowLimitResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get MaxBorrowableAmount - * @summary maxBorrowableAmount - * @param marginCrossMaxBorrowRequest marginCrossMaxBorrowRequest - */ - public async marginCrossAccountMaxBorrowableAmount (marginCrossMaxBorrowRequest: MarginCrossMaxBorrowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossMaxBorrowResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/maxBorrowableAmount'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginCrossMaxBorrowRequest' is not null or undefined - if (marginCrossMaxBorrowRequest === null || marginCrossMaxBorrowRequest === undefined) { - throw new Error('Required parameter marginCrossMaxBorrowRequest was null or undefined when calling marginCrossAccountMaxBorrowableAmount.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginCrossMaxBorrowRequest, "MarginCrossMaxBorrowRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossMaxBorrowResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossMaxBorrowResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get Max TransferOutAmount - * @summary maxTransferOutAmount - * @param coin coin - */ - public async marginCrossAccountMaxTransferOutAmount (coin: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossAssetsResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/maxTransferOutAmount'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'coin' is not null or undefined - if (coin === null || coin === undefined) { - throw new Error('Required parameter coin was null or undefined when calling marginCrossAccountMaxTransferOutAmount.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossAssetsResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossAssetsResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * repay - * @summary repay - * @param marginCrossRepayRequest marginCrossRepayRequest - */ - public async marginCrossAccountRepay (marginCrossRepayRequest: MarginCrossRepayRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossRepayResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/repay'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginCrossRepayRequest' is not null or undefined - if (marginCrossRepayRequest === null || marginCrossRepayRequest === undefined) { - throw new Error('Required parameter marginCrossRepayRequest was null or undefined when calling marginCrossAccountRepay.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginCrossRepayRequest, "MarginCrossRepayRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossRepayResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossRepayResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * riskRate - * @summary riskRate - */ - public async marginCrossAccountRiskRate (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossAssetsRiskResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/account/riskRate'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossAssetsRiskResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossAssetsRiskResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossBorrowApi.ts b/bitget-node-sdk-open-api/api/marginCrossBorrowApi.ts deleted file mode 100644 index 6b80bddb..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossBorrowApi.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginLoanInfoResult } from '../model/apiResponseResultOfMarginLoanInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossBorrowApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossBorrowApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossBorrowApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossBorrowApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get Loan List - * @summary list - * @param startTime startTime - * @param coin coin - * @param endTime endTime - * @param loanId loanId - * @param pageSize pageSize - * @param pageId pageId - */ - public async crossLoanList (startTime: string, coin?: string, endTime?: string, loanId?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginLoanInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/loan/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling crossLoanList.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (loanId !== undefined) { - localVarQueryParameters['loanId'] = ObjectSerializer.serialize(loanId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginLoanInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginLoanInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossFinflowApi.ts b/bitget-node-sdk-open-api/api/marginCrossFinflowApi.ts deleted file mode 100644 index 93023e7b..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossFinflowApi.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginCrossFinFlowResult } from '../model/apiResponseResultOfMarginCrossFinFlowResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossFinflowApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossFinflowApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossFinflowApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossFinflowApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get finance flow List - * @summary list - * @param startTime startTime - * @param coin coin - * @param endTime endTime - * @param marginType marginType - * @param pageSize pageSize - * @param pageId pageId - */ - public async crossFinList (startTime: string, coin?: string, endTime?: string, marginType?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossFinFlowResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/fin/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling crossFinList.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (marginType !== undefined) { - localVarQueryParameters['marginType'] = ObjectSerializer.serialize(marginType, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginCrossFinFlowResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginCrossFinFlowResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossInterestApi.ts b/bitget-node-sdk-open-api/api/marginCrossInterestApi.ts deleted file mode 100644 index db4ef5d9..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossInterestApi.ts +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginInterestInfoResult } from '../model/apiResponseResultOfMarginInterestInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossInterestApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossInterestApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossInterestApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossInterestApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get interest List - * @summary list - * @param startTime startTime - * @param coin coin - * @param pageSize pageSize - * @param pageId pageId - */ - public async crossInterestList (startTime: string, coin?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginInterestInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/interest/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling crossInterestList.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginInterestInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginInterestInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossLiquidationApi.ts b/bitget-node-sdk-open-api/api/marginCrossLiquidationApi.ts deleted file mode 100644 index fc875caa..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossLiquidationApi.ts +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginLiquidationInfoResult } from '../model/apiResponseResultOfMarginLiquidationInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossLiquidationApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossLiquidationApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossLiquidationApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossLiquidationApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get liquidation List - * @summary list - * @param startTime startTime - * @param endTime endTime - * @param pageSize pageSize - * @param pageId pageId - */ - public async crossLiquidationList (startTime: string, endTime?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginLiquidationInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/liquidation/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling crossLiquidationList.'); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginLiquidationInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginLiquidationInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossOrderApi.ts b/bitget-node-sdk-open-api/api/marginCrossOrderApi.ts deleted file mode 100644 index b54a96bf..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossOrderApi.ts +++ /dev/null @@ -1,811 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginBatchCancelOrderResult } from '../model/apiResponseResultOfMarginBatchCancelOrderResult'; -import { ApiResponseResultOfMarginBatchPlaceOrderResult } from '../model/apiResponseResultOfMarginBatchPlaceOrderResult'; -import { ApiResponseResultOfMarginOpenOrderInfoResult } from '../model/apiResponseResultOfMarginOpenOrderInfoResult'; -import { ApiResponseResultOfMarginPlaceOrderResult } from '../model/apiResponseResultOfMarginPlaceOrderResult'; -import { ApiResponseResultOfMarginTradeDetailInfoResult } from '../model/apiResponseResultOfMarginTradeDetailInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; -import { MarginBatchCancelOrderRequest } from '../model/marginBatchCancelOrderRequest'; -import { MarginBatchOrdersRequest } from '../model/marginBatchOrdersRequest'; -import { MarginCancelOrderRequest } from '../model/marginCancelOrderRequest'; -import { MarginOrderRequest } from '../model/marginOrderRequest'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossOrderApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossOrderApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossOrderApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossOrderApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Margin Cross BatchCancelOrder - * @summary batchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest - */ - public async marginCrossBatchCancelOrder (marginBatchCancelOrderRequest: MarginBatchCancelOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/batchCancelOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginBatchCancelOrderRequest' is not null or undefined - if (marginBatchCancelOrderRequest === null || marginBatchCancelOrderRequest === undefined) { - throw new Error('Required parameter marginBatchCancelOrderRequest was null or undefined when calling marginCrossBatchCancelOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginBatchCancelOrderRequest, "MarginBatchCancelOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchCancelOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross PlaceOrder - * @summary batchPlaceOrder - * @param marginOrderRequest marginOrderRequest - */ - public async marginCrossBatchPlaceOrder (marginOrderRequest: MarginBatchOrdersRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchPlaceOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/batchPlaceOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginOrderRequest' is not null or undefined - if (marginOrderRequest === null || marginOrderRequest === undefined) { - throw new Error('Required parameter marginOrderRequest was null or undefined when calling marginCrossBatchPlaceOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginOrderRequest, "MarginBatchOrdersRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchPlaceOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchPlaceOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross CancelOrder - * @summary cancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest - */ - public async marginCrossCancelOrder (marginCancelOrderRequest: MarginCancelOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/cancelOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginCancelOrderRequest' is not null or undefined - if (marginCancelOrderRequest === null || marginCancelOrderRequest === undefined) { - throw new Error('Required parameter marginCancelOrderRequest was null or undefined when calling marginCrossCancelOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginCancelOrderRequest, "MarginCancelOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchCancelOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross Fills - * @summary fills - * @param symbol symbol - * @param startTime startTime - * @param source source - * @param endTime endTime - * @param orderId orderId - * @param lastFillId lastFillId - * @param pageSize pageSize - */ - public async marginCrossFills (symbol: string, startTime: string, source?: string, endTime?: string, orderId?: string, lastFillId?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginTradeDetailInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/fills'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginCrossFills.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginCrossFills.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (source !== undefined) { - localVarQueryParameters['source'] = ObjectSerializer.serialize(source, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (lastFillId !== undefined) { - localVarQueryParameters['lastFillId'] = ObjectSerializer.serialize(lastFillId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginTradeDetailInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginTradeDetailInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross historyOrders - * @summary history - * @param symbol symbol - * @param startTime startTime - * @param source source - * @param endTime endTime - * @param orderId orderId - * @param clientOid clientOid - * @param minId minId - * @param pageSize pageSize - */ - public async marginCrossHistoryOrders (symbol: string, startTime: string, source?: string, endTime?: string, orderId?: string, clientOid?: string, minId?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/history'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginCrossHistoryOrders.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginCrossHistoryOrders.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (source !== undefined) { - localVarQueryParameters['source'] = ObjectSerializer.serialize(source, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (clientOid !== undefined) { - localVarQueryParameters['clientOid'] = ObjectSerializer.serialize(clientOid, "string"); - } - - if (minId !== undefined) { - localVarQueryParameters['minId'] = ObjectSerializer.serialize(minId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginOpenOrderInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross openOrders - * @summary openOrders - * @param symbol symbol - * @param startTime startTime - * @param endTime endTime - * @param orderId orderId - * @param clientOid clientOid - * @param pageSize pageSize - */ - public async marginCrossOpenOrders (symbol: string, startTime: string, endTime?: string, orderId?: string, clientOid?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/openOrders'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginCrossOpenOrders.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginCrossOpenOrders.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (clientOid !== undefined) { - localVarQueryParameters['clientOid'] = ObjectSerializer.serialize(clientOid, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginOpenOrderInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Cross PlaceOrder - * @summary placeOrder - * @param marginOrderRequest marginOrderRequest - */ - public async marginCrossPlaceOrder (marginOrderRequest: MarginOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginPlaceOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/order/placeOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginOrderRequest' is not null or undefined - if (marginOrderRequest === null || marginOrderRequest === undefined) { - throw new Error('Required parameter marginOrderRequest was null or undefined when calling marginCrossPlaceOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginOrderRequest, "MarginOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginPlaceOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginPlaceOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossPublicApi.ts b/bitget-node-sdk-open-api/api/marginCrossPublicApi.ts deleted file mode 100644 index 6d844f0b..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossPublicApi.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfListOfMarginCrossLevelResult } from '../model/apiResponseResultOfListOfMarginCrossLevelResult'; -import { ApiResponseResultOfListOfMarginCrossRateAndLimitResult } from '../model/apiResponseResultOfListOfMarginCrossRateAndLimitResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossPublicApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossPublicApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossPublicApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossPublicApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get InterestRateAndLimit - * @summary interestRateAndLimit - * @param coin coin - */ - public async marginCrossPublicInterestRateAndLimit (coin: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossRateAndLimitResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/public/interestRateAndLimit'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'coin' is not null or undefined - if (coin === null || coin === undefined) { - throw new Error('Required parameter coin was null or undefined when calling marginCrossPublicInterestRateAndLimit.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossRateAndLimitResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginCrossRateAndLimitResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get TierData - * @summary tierData - * @param coin coin - */ - public async marginCrossPublicTierData (coin: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossLevelResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/public/tierData'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'coin' is not null or undefined - if (coin === null || coin === undefined) { - throw new Error('Required parameter coin was null or undefined when calling marginCrossPublicTierData.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginCrossLevelResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginCrossLevelResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginCrossRepayApi.ts b/bitget-node-sdk-open-api/api/marginCrossRepayApi.ts deleted file mode 100644 index 249a0c2a..00000000 --- a/bitget-node-sdk-open-api/api/marginCrossRepayApi.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginRepayInfoResult } from '../model/apiResponseResultOfMarginRepayInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginCrossRepayApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginCrossRepayApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginCrossRepayApiApiKeys, value: string) { - (this.authentications as any)[MarginCrossRepayApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get liquidation List - * @summary list - * @param startTime startTime - * @param coin coin - * @param repayId repayId - * @param endTime endTime - * @param pageSize pageSize - * @param pageId pageId - */ - public async crossRepayList (startTime: string, coin?: string, repayId?: string, endTime?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginRepayInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/cross/repay/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling crossRepayList.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (repayId !== undefined) { - localVarQueryParameters['repayId'] = ObjectSerializer.serialize(repayId, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginRepayInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginRepayInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedAccountApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedAccountApi.ts deleted file mode 100644 index 1061c85b..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedAccountApi.ts +++ /dev/null @@ -1,630 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult } from '../model/apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; -import { ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult } from '../model/apiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; -import { ApiResponseResultOfMarginIsolatedAssetsResult } from '../model/apiResponseResultOfMarginIsolatedAssetsResult'; -import { ApiResponseResultOfMarginIsolatedBorrowLimitResult } from '../model/apiResponseResultOfMarginIsolatedBorrowLimitResult'; -import { ApiResponseResultOfMarginIsolatedMaxBorrowResult } from '../model/apiResponseResultOfMarginIsolatedMaxBorrowResult'; -import { ApiResponseResultOfMarginIsolatedRepayResult } from '../model/apiResponseResultOfMarginIsolatedRepayResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; -import { MarginIsolatedAssetsRiskRequest } from '../model/marginIsolatedAssetsRiskRequest'; -import { MarginIsolatedLimitRequest } from '../model/marginIsolatedLimitRequest'; -import { MarginIsolatedMaxBorrowRequest } from '../model/marginIsolatedMaxBorrowRequest'; -import { MarginIsolatedRepayRequest } from '../model/marginIsolatedRepayRequest'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedAccountApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedAccountApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedAccountApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedAccountApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get Assets - * @summary assets - * @param symbol symbol - */ - public async marginIsolatedAccountAssets (symbol: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/assets'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginIsolatedAccountAssets.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * borrow - * @summary borrow - * @param marginIsolatedLimitRequest marginIsolatedLimitRequest - */ - public async marginIsolatedAccountBorrow (marginIsolatedLimitRequest: MarginIsolatedLimitRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedBorrowLimitResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/borrow'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginIsolatedLimitRequest' is not null or undefined - if (marginIsolatedLimitRequest === null || marginIsolatedLimitRequest === undefined) { - throw new Error('Required parameter marginIsolatedLimitRequest was null or undefined when calling marginIsolatedAccountBorrow.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginIsolatedLimitRequest, "MarginIsolatedLimitRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedBorrowLimitResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedBorrowLimitResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get MaxBorrowableAmount - * @summary maxBorrowableAmount - * @param marginIsolatedMaxBorrowRequest marginIsolatedMaxBorrowRequest - */ - public async marginIsolatedAccountMaxBorrowableAmount (marginIsolatedMaxBorrowRequest: MarginIsolatedMaxBorrowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedMaxBorrowResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/maxBorrowableAmount'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginIsolatedMaxBorrowRequest' is not null or undefined - if (marginIsolatedMaxBorrowRequest === null || marginIsolatedMaxBorrowRequest === undefined) { - throw new Error('Required parameter marginIsolatedMaxBorrowRequest was null or undefined when calling marginIsolatedAccountMaxBorrowableAmount.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginIsolatedMaxBorrowRequest, "MarginIsolatedMaxBorrowRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedMaxBorrowResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedMaxBorrowResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get Max TransferOutAmount - * @summary maxTransferOutAmount - * @param coin coin - * @param symbol symbol - */ - public async marginIsolatedAccountMaxTransferOutAmount (coin: string, symbol: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedAssetsResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/maxTransferOutAmount'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'coin' is not null or undefined - if (coin === null || coin === undefined) { - throw new Error('Required parameter coin was null or undefined when calling marginIsolatedAccountMaxTransferOutAmount.'); - } - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginIsolatedAccountMaxTransferOutAmount.'); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedAssetsResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedAssetsResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * repay - * @summary repay - * @param marginIsolatedRepayRequest marginIsolatedRepayRequest - */ - public async marginIsolatedAccountRepay (marginIsolatedRepayRequest: MarginIsolatedRepayRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedRepayResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/repay'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginIsolatedRepayRequest' is not null or undefined - if (marginIsolatedRepayRequest === null || marginIsolatedRepayRequest === undefined) { - throw new Error('Required parameter marginIsolatedRepayRequest was null or undefined when calling marginIsolatedAccountRepay.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginIsolatedRepayRequest, "MarginIsolatedRepayRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedRepayResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedRepayResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * riskRate - * @summary riskRate - * @param marginIsolatedAssetsRiskRequest marginIsolatedAssetsRiskRequest - */ - public async marginIsolatedAccountRiskRate (marginIsolatedAssetsRiskRequest: MarginIsolatedAssetsRiskRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/account/riskRate'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginIsolatedAssetsRiskRequest' is not null or undefined - if (marginIsolatedAssetsRiskRequest === null || marginIsolatedAssetsRiskRequest === undefined) { - throw new Error('Required parameter marginIsolatedAssetsRiskRequest was null or undefined when calling marginIsolatedAccountRiskRate.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginIsolatedAssetsRiskRequest, "MarginIsolatedAssetsRiskRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedBorrowApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedBorrowApi.ts deleted file mode 100644 index a43a612d..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedBorrowApi.ts +++ /dev/null @@ -1,223 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginIsolatedLoanInfoResult } from '../model/apiResponseResultOfMarginIsolatedLoanInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedBorrowApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedBorrowApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedBorrowApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedBorrowApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get Loan List - * @summary list - * @param symbol symbol - * @param startTime startTime - * @param coin coin - * @param endTime endTime - * @param loanId loanId - * @param pageSize pageSize - * @param pageId pageId - */ - public async isolatedLoanList (symbol: string, startTime: string, coin?: string, endTime?: string, loanId?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedLoanInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/loan/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling isolatedLoanList.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling isolatedLoanList.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (loanId !== undefined) { - localVarQueryParameters['loanId'] = ObjectSerializer.serialize(loanId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedLoanInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedLoanInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedFinflowApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedFinflowApi.ts deleted file mode 100644 index f76d1bca..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedFinflowApi.ts +++ /dev/null @@ -1,228 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginIsolatedFinFlowResult } from '../model/apiResponseResultOfMarginIsolatedFinFlowResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedFinflowApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedFinflowApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedFinflowApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedFinflowApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get finance flow List - * @summary list - * @param symbol symbol - * @param startTime startTime - * @param coin coin - * @param marginType marginType - * @param endTime endTime - * @param loanId loanId - * @param pageSize pageSize - * @param pageId pageId - */ - public async isolatedFinList (symbol: string, startTime: string, coin?: string, marginType?: string, endTime?: string, loanId?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedFinFlowResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/fin/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling isolatedFinList.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling isolatedFinList.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (marginType !== undefined) { - localVarQueryParameters['marginType'] = ObjectSerializer.serialize(marginType, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (loanId !== undefined) { - localVarQueryParameters['loanId'] = ObjectSerializer.serialize(loanId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedFinFlowResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedFinFlowResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedInterestApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedInterestApi.ts deleted file mode 100644 index aea769e8..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedInterestApi.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginIsolatedInterestInfoResult } from '../model/apiResponseResultOfMarginIsolatedInterestInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedInterestApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedInterestApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedInterestApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedInterestApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get interest List - * @summary list - * @param symbol symbol - * @param startTime startTime - * @param coin coin - * @param pageSize pageSize - * @param pageId pageId - */ - public async isolatedInterestList (symbol: string, startTime: string, coin?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedInterestInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/interest/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling isolatedInterestList.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling isolatedInterestList.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedInterestInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedInterestInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedLiquidationApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedLiquidationApi.ts deleted file mode 100644 index 55b199f1..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedLiquidationApi.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginIsolatedLiquidationInfoResult } from '../model/apiResponseResultOfMarginIsolatedLiquidationInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedLiquidationApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedLiquidationApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedLiquidationApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedLiquidationApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get liquidation List - * @summary list - * @param symbol symbol - * @param startTime startTime - * @param endTime endTime - * @param pageSize pageSize - * @param pageId pageId - */ - public async isolatedLiquidationList (symbol: string, startTime: string, endTime?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedLiquidationInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/liquidation/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling isolatedLiquidationList.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling isolatedLiquidationList.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedLiquidationInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedLiquidationInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedOrderApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedOrderApi.ts deleted file mode 100644 index 7ec2a225..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedOrderApi.ts +++ /dev/null @@ -1,796 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginBatchCancelOrderResult } from '../model/apiResponseResultOfMarginBatchCancelOrderResult'; -import { ApiResponseResultOfMarginBatchPlaceOrderResult } from '../model/apiResponseResultOfMarginBatchPlaceOrderResult'; -import { ApiResponseResultOfMarginOpenOrderInfoResult } from '../model/apiResponseResultOfMarginOpenOrderInfoResult'; -import { ApiResponseResultOfMarginPlaceOrderResult } from '../model/apiResponseResultOfMarginPlaceOrderResult'; -import { ApiResponseResultOfMarginTradeDetailInfoResult } from '../model/apiResponseResultOfMarginTradeDetailInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; -import { MarginBatchCancelOrderRequest } from '../model/marginBatchCancelOrderRequest'; -import { MarginBatchOrdersRequest } from '../model/marginBatchOrdersRequest'; -import { MarginCancelOrderRequest } from '../model/marginCancelOrderRequest'; -import { MarginOrderRequest } from '../model/marginOrderRequest'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedOrderApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedOrderApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedOrderApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedOrderApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Margin Isolated BatchCancelOrder - * @summary batchCancelOrder - * @param marginBatchCancelOrderRequest marginBatchCancelOrderRequest - */ - public async marginIsolatedBatchCancelOrder (marginBatchCancelOrderRequest: MarginBatchCancelOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/batchCancelOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginBatchCancelOrderRequest' is not null or undefined - if (marginBatchCancelOrderRequest === null || marginBatchCancelOrderRequest === undefined) { - throw new Error('Required parameter marginBatchCancelOrderRequest was null or undefined when calling marginIsolatedBatchCancelOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginBatchCancelOrderRequest, "MarginBatchCancelOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchCancelOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated PlaceOrder - * @summary batchPlaceOrder - * @param marginOrderRequest marginOrderRequest - */ - public async marginIsolatedBatchPlaceOrder (marginOrderRequest: MarginBatchOrdersRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchPlaceOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/batchPlaceOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginOrderRequest' is not null or undefined - if (marginOrderRequest === null || marginOrderRequest === undefined) { - throw new Error('Required parameter marginOrderRequest was null or undefined when calling marginIsolatedBatchPlaceOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginOrderRequest, "MarginBatchOrdersRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchPlaceOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchPlaceOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated CancelOrder - * @summary cancelOrder - * @param marginCancelOrderRequest marginCancelOrderRequest - */ - public async marginIsolatedCancelOrder (marginCancelOrderRequest: MarginCancelOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/cancelOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginCancelOrderRequest' is not null or undefined - if (marginCancelOrderRequest === null || marginCancelOrderRequest === undefined) { - throw new Error('Required parameter marginCancelOrderRequest was null or undefined when calling marginIsolatedCancelOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginCancelOrderRequest, "MarginCancelOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginBatchCancelOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginBatchCancelOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated Fills - * @summary fills - * @param startTime startTime - * @param symbol symbol - * @param endTime endTime - * @param orderId orderId - * @param lastFillId lastFillId - * @param pageSize pageSize - */ - public async marginIsolatedFills (startTime: string, symbol?: string, endTime?: string, orderId?: string, lastFillId?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginTradeDetailInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/fills'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginIsolatedFills.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (lastFillId !== undefined) { - localVarQueryParameters['lastFillId'] = ObjectSerializer.serialize(lastFillId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginTradeDetailInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginTradeDetailInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated historyOrders - * @summary history - * @param startTime startTime - * @param symbol symbol - * @param source source - * @param endTime endTime - * @param orderId orderId - * @param clientOid clientOid - * @param pageSize pageSize - * @param minId minId - */ - public async marginIsolatedHistoryOrders (startTime: string, symbol?: string, source?: string, endTime?: string, orderId?: string, clientOid?: string, pageSize?: string, minId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/history'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginIsolatedHistoryOrders.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (source !== undefined) { - localVarQueryParameters['source'] = ObjectSerializer.serialize(source, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (clientOid !== undefined) { - localVarQueryParameters['clientOid'] = ObjectSerializer.serialize(clientOid, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (minId !== undefined) { - localVarQueryParameters['minId'] = ObjectSerializer.serialize(minId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginOpenOrderInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated openOrders - * @summary openOrders - * @param symbol symbol - * @param startTime startTime - * @param endTime endTime - * @param orderId orderId - * @param clientOid clientOid - * @param pageSize pageSize - */ - public async marginIsolatedOpenOrders (symbol: string, startTime: string, endTime?: string, orderId?: string, clientOid?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/openOrders'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginIsolatedOpenOrders.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling marginIsolatedOpenOrders.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (orderId !== undefined) { - localVarQueryParameters['orderId'] = ObjectSerializer.serialize(orderId, "string"); - } - - if (clientOid !== undefined) { - localVarQueryParameters['clientOid'] = ObjectSerializer.serialize(clientOid, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginOpenOrderInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginOpenOrderInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Margin Isolated PlaceOrder - * @summary placeOrder - * @param marginOrderRequest marginOrderRequest - */ - public async marginIsolatedPlaceOrder (marginOrderRequest: MarginOrderRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginPlaceOrderResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/order/placeOrder'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'marginOrderRequest' is not null or undefined - if (marginOrderRequest === null || marginOrderRequest === undefined) { - throw new Error('Required parameter marginOrderRequest was null or undefined when calling marginIsolatedPlaceOrder.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(marginOrderRequest, "MarginOrderRequest") - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginPlaceOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginPlaceOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedPublicApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedPublicApi.ts deleted file mode 100644 index a3ccdc86..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedPublicApi.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfListOfMarginIsolatedLevelResult } from '../model/apiResponseResultOfListOfMarginIsolatedLevelResult'; -import { ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult } from '../model/apiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedPublicApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedPublicApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedPublicApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedPublicApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get InterestRateAndLimit - * @summary interestRateAndLimit - * @param symbol symbol - */ - public async marginIsolatedPublicInterestRateAndLimit (symbol: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/public/interestRateAndLimit'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginIsolatedPublicInterestRateAndLimit.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * Get TierData - * @summary tierData - * @param symbol symbol - */ - public async marginIsolatedPublicTierData (symbol: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedLevelResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/public/tierData'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling marginIsolatedPublicTierData.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginIsolatedLevelResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginIsolatedLevelResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginIsolatedRepayApi.ts b/bitget-node-sdk-open-api/api/marginIsolatedRepayApi.ts deleted file mode 100644 index 72db45ca..00000000 --- a/bitget-node-sdk-open-api/api/marginIsolatedRepayApi.ts +++ /dev/null @@ -1,223 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMarginIsolatedRepayInfoResult } from '../model/apiResponseResultOfMarginIsolatedRepayInfoResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginIsolatedRepayApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginIsolatedRepayApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginIsolatedRepayApiApiKeys, value: string) { - (this.authentications as any)[MarginIsolatedRepayApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get liquidation List - * @summary list - * @param symbol symbol - * @param startTime startTime - * @param coin coin - * @param repayId repayId - * @param endTime endTime - * @param pageSize pageSize - * @param pageId pageId - */ - public async isolateRepayList (symbol: string, startTime: string, coin?: string, repayId?: string, endTime?: string, pageSize?: string, pageId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedRepayInfoResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/isolated/repay/list'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'symbol' is not null or undefined - if (symbol === null || symbol === undefined) { - throw new Error('Required parameter symbol was null or undefined when calling isolateRepayList.'); - } - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling isolateRepayList.'); - } - - if (symbol !== undefined) { - localVarQueryParameters['symbol'] = ObjectSerializer.serialize(symbol, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (repayId !== undefined) { - localVarQueryParameters['repayId'] = ObjectSerializer.serialize(repayId, "string"); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (pageId !== undefined) { - localVarQueryParameters['pageId'] = ObjectSerializer.serialize(pageId, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMarginIsolatedRepayInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMarginIsolatedRepayInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/marginPublicApi.ts b/bitget-node-sdk-open-api/api/marginPublicApi.ts deleted file mode 100644 index b35615aa..00000000 --- a/bitget-node-sdk-open-api/api/marginPublicApi.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfListOfMarginSystemResult } from '../model/apiResponseResultOfListOfMarginSystemResult'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MarginPublicApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class MarginPublicApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MarginPublicApiApiKeys, value: string) { - (this.authentications as any)[MarginPublicApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * Get Currencies - * @summary currencies - */ - public async marginPublicCurrencies (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginSystemResult; }> { - const localVarPath = this.basePath + '/api/margin/v1/public/currencies'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfListOfMarginSystemResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfListOfMarginSystemResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/api/p2pMerchantApi.ts b/bitget-node-sdk-open-api/api/p2pMerchantApi.ts deleted file mode 100644 index ff61329d..00000000 --- a/bitget-node-sdk-open-api/api/p2pMerchantApi.ts +++ /dev/null @@ -1,552 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import localVarRequest from 'request'; -import http from 'http'; - -/* tslint:disable:no-unused-locals */ -import { ApiResponseResultOfMerchantAdvResult } from '../model/apiResponseResultOfMerchantAdvResult'; -import { ApiResponseResultOfMerchantInfoResult } from '../model/apiResponseResultOfMerchantInfoResult'; -import { ApiResponseResultOfMerchantOrderResult } from '../model/apiResponseResultOfMerchantOrderResult'; -import { ApiResponseResultOfMerchantPersonInfo } from '../model/apiResponseResultOfMerchantPersonInfo'; -import { ApiResponseResultOfVoid } from '../model/apiResponseResultOfVoid'; - -import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; -import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; - -import { HttpError, RequestFile } from './apis'; - -let defaultBasePath = 'https://api.bitget.com'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum P2pMerchantApiApiKeys { - ACCESS_KEY, - ACCESS_PASSPHRASE, - ACCESS_SIGN, - ACCESS_TIMESTAMP, - SECRET_KEY, -} - -export class P2pMerchantApi { - protected _basePath = defaultBasePath; - protected _defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'ACCESS_KEY': new ApiKeyAuth('header', 'ACCESS-KEY'), - 'ACCESS_PASSPHRASE': new ApiKeyAuth('header', 'ACCESS-PASSPHRASE'), - 'ACCESS_SIGN': new ApiKeyAuth('header', 'ACCESS-SIGN'), - 'ACCESS_TIMESTAMP': new ApiKeyAuth('header', 'ACCESS-TIMESTAMP'), - 'SECRET_KEY': new ApiKeyAuth('header', 'SECRET-KEY'), - } - - protected interceptors: Interceptor[] = []; - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - set defaultHeaders(defaultHeaders: any) { - this._defaultHeaders = defaultHeaders; - } - - get defaultHeaders() { - return this._defaultHeaders; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: P2pMerchantApiApiKeys, value: string) { - (this.authentications as any)[P2pMerchantApiApiKeys[key]].apiKey = value; - } - - public addInterceptor(interceptor: Interceptor) { - this.interceptors.push(interceptor); - } - - /** - * P2P merchant adv info - * @summary advList - * @param startTime startTime - * @param endTime endTime - * @param status status - * @param type type - * @param advNo advNo - * @param coin coin - * @param languageType languageType - * @param fiat fiat - * @param lastMinId languageType - * @param pageSize pageSize - * @param orderBy orderBy - */ - public async merchantAdvList (startTime: string, endTime?: string, status?: string, type?: string, advNo?: string, coin?: string, languageType?: string, fiat?: string, lastMinId?: string, pageSize?: string, orderBy?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantAdvResult; }> { - const localVarPath = this.basePath + '/api/p2p/v1/merchant/advList'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling merchantAdvList.'); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (status !== undefined) { - localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "string"); - } - - if (type !== undefined) { - localVarQueryParameters['type'] = ObjectSerializer.serialize(type, "string"); - } - - if (advNo !== undefined) { - localVarQueryParameters['advNo'] = ObjectSerializer.serialize(advNo, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (languageType !== undefined) { - localVarQueryParameters['languageType'] = ObjectSerializer.serialize(languageType, "string"); - } - - if (fiat !== undefined) { - localVarQueryParameters['fiat'] = ObjectSerializer.serialize(fiat, "string"); - } - - if (lastMinId !== undefined) { - localVarQueryParameters['lastMinId'] = ObjectSerializer.serialize(lastMinId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - if (orderBy !== undefined) { - localVarQueryParameters['orderBy'] = ObjectSerializer.serialize(orderBy, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantAdvResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMerchantAdvResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * P2P merchant info self - * @summary merchantInfo - */ - public async merchantInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantPersonInfo; }> { - const localVarPath = this.basePath + '/api/p2p/v1/merchant/merchantInfo'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantPersonInfo; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMerchantPersonInfo"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * P2P merchant list - * @summary merchantList - * @param online online - * @param merchantId merchantId - * @param lastMinId lastMinId - * @param pageSize pageSize - */ - public async merchantList (online?: string, merchantId?: string, lastMinId?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantInfoResult; }> { - const localVarPath = this.basePath + '/api/p2p/v1/merchant/merchantList'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - if (online !== undefined) { - localVarQueryParameters['online'] = ObjectSerializer.serialize(online, "string"); - } - - if (merchantId !== undefined) { - localVarQueryParameters['merchantId'] = ObjectSerializer.serialize(merchantId, "string"); - } - - if (lastMinId !== undefined) { - localVarQueryParameters['lastMinId'] = ObjectSerializer.serialize(lastMinId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantInfoResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMerchantInfoResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } - /** - * P2P merchant order info - * @summary orderList - * @param startTime startTime - * @param endTime endTime - * @param status status - * @param type type - * @param advNo advNo - * @param orderNo orderNo - * @param coin coin - * @param languageType languageType - * @param fiat fiat - * @param lastMinId languageType - * @param pageSize pageSize - */ - public async merchantOrderList (startTime: string, endTime?: string, status?: string, type?: string, advNo?: string, orderNo?: string, coin?: string, languageType?: string, fiat?: string, lastMinId?: string, pageSize?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantOrderResult; }> { - const localVarPath = this.basePath + '/api/p2p/v1/merchant/orderList'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); - const produces = ['application/json']; - // give precedence to 'application/json' - if (produces.indexOf('application/json') >= 0) { - localVarHeaderParams.Accept = 'application/json'; - } else { - localVarHeaderParams.Accept = produces.join(','); - } - let localVarFormParams: any = {}; - - // verify required parameter 'startTime' is not null or undefined - if (startTime === null || startTime === undefined) { - throw new Error('Required parameter startTime was null or undefined when calling merchantOrderList.'); - } - - if (startTime !== undefined) { - localVarQueryParameters['startTime'] = ObjectSerializer.serialize(startTime, "string"); - } - - if (endTime !== undefined) { - localVarQueryParameters['endTime'] = ObjectSerializer.serialize(endTime, "string"); - } - - if (status !== undefined) { - localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "string"); - } - - if (type !== undefined) { - localVarQueryParameters['type'] = ObjectSerializer.serialize(type, "string"); - } - - if (advNo !== undefined) { - localVarQueryParameters['advNo'] = ObjectSerializer.serialize(advNo, "string"); - } - - if (orderNo !== undefined) { - localVarQueryParameters['orderNo'] = ObjectSerializer.serialize(orderNo, "string"); - } - - if (coin !== undefined) { - localVarQueryParameters['coin'] = ObjectSerializer.serialize(coin, "string"); - } - - if (languageType !== undefined) { - localVarQueryParameters['languageType'] = ObjectSerializer.serialize(languageType, "string"); - } - - if (fiat !== undefined) { - localVarQueryParameters['fiat'] = ObjectSerializer.serialize(fiat, "string"); - } - - if (lastMinId !== undefined) { - localVarQueryParameters['lastMinId'] = ObjectSerializer.serialize(lastMinId, "string"); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - if (this.authentications.ACCESS_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_KEY.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_PASSPHRASE.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_PASSPHRASE.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_SIGN.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_SIGN.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.ACCESS_TIMESTAMP.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.ACCESS_TIMESTAMP.applyToRequest(localVarRequestOptions)); - } - if (this.authentications.SECRET_KEY.apiKey) { - authenticationPromise = authenticationPromise.then(() => this.authentications.SECRET_KEY.applyToRequest(localVarRequestOptions)); - } - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - - let interceptorPromise = authenticationPromise; - for (const interceptor of this.interceptors) { - interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); - } - - return interceptorPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.IncomingMessage; body: ApiResponseResultOfMerchantOrderResult; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - body = ObjectSerializer.deserialize(body, "ApiResponseResultOfMerchantOrderResult"); - resolve({ response: response, body: body }); - } else { - reject(new HttpError(response, body, response.statusCode)); - } - } - }); - }); - }); - } -} diff --git a/bitget-node-sdk-open-api/git_push.sh b/bitget-node-sdk-open-api/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/bitget-node-sdk-open-api/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/bitget-node-sdk-open-api/jest.config.js b/bitget-node-sdk-open-api/jest.config.js deleted file mode 100644 index 4e1ccfb9..00000000 --- a/bitget-node-sdk-open-api/jest.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', - testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$', -}; \ No newline at end of file diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossAssetsPopulationResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossAssetsPopulationResult.ts deleted file mode 100644 index fd5b0c6f..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossAssetsPopulationResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossAssetsPopulationResult } from './marginCrossAssetsPopulationResult'; - -export class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossLevelResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossLevelResult.ts deleted file mode 100644 index cf24dc42..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossLevelResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossLevelResult } from './marginCrossLevelResult'; - -export class ApiResponseResultOfListOfMarginCrossLevelResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginCrossLevelResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossRateAndLimitResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossRateAndLimitResult.ts deleted file mode 100644 index 3a3b15c8..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginCrossRateAndLimitResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossRateAndLimitResult } from './marginCrossRateAndLimitResult'; - -export class ApiResponseResultOfListOfMarginCrossRateAndLimitResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginCrossRateAndLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.ts deleted file mode 100644 index 93a80116..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedAssetsPopulationResult } from './marginIsolatedAssetsPopulationResult'; - -export class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.ts deleted file mode 100644 index d5cacaa4..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedAssetsRiskResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedAssetsRiskResult } from './marginIsolatedAssetsRiskResult'; - -export class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedLevelResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedLevelResult.ts deleted file mode 100644 index 71cab600..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedLevelResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedLevelResult } from './marginIsolatedLevelResult'; - -export class ApiResponseResultOfListOfMarginIsolatedLevelResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginIsolatedLevelResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.ts deleted file mode 100644 index 9b6f46fa..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginIsolatedRateAndLimitResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedRateAndLimitResult } from './marginIsolatedRateAndLimitResult'; - -export class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginSystemResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginSystemResult.ts deleted file mode 100644 index eed4bafa..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfListOfMarginSystemResult.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginSystemResult } from './marginSystemResult'; - -export class ApiResponseResultOfListOfMarginSystemResult { - /** - * code - */ - 'code'?: string; - /** - * data - */ - 'data'?: Array; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "Array" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfListOfMarginSystemResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchCancelOrderResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchCancelOrderResult.ts deleted file mode 100644 index 64e8ddde..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchCancelOrderResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginBatchCancelOrderResult } from './marginBatchCancelOrderResult'; - -export class ApiResponseResultOfMarginBatchCancelOrderResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginBatchCancelOrderResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginBatchCancelOrderResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginBatchCancelOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchPlaceOrderResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchPlaceOrderResult.ts deleted file mode 100644 index b0df53ba..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginBatchPlaceOrderResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginBatchPlaceOrderResult } from './marginBatchPlaceOrderResult'; - -export class ApiResponseResultOfMarginBatchPlaceOrderResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginBatchPlaceOrderResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginBatchPlaceOrderResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginBatchPlaceOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsResult.ts deleted file mode 100644 index 7faa6ce6..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossAssetsResult } from './marginCrossAssetsResult'; - -export class ApiResponseResultOfMarginCrossAssetsResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossAssetsResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossAssetsResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossAssetsResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsRiskResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsRiskResult.ts deleted file mode 100644 index 0b0ad3c0..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossAssetsRiskResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossAssetsRiskResult } from './marginCrossAssetsRiskResult'; - -export class ApiResponseResultOfMarginCrossAssetsRiskResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossAssetsRiskResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossAssetsRiskResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossAssetsRiskResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossBorrowLimitResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossBorrowLimitResult.ts deleted file mode 100644 index 8861c06c..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossBorrowLimitResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossBorrowLimitResult } from './marginCrossBorrowLimitResult'; - -export class ApiResponseResultOfMarginCrossBorrowLimitResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossBorrowLimitResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossBorrowLimitResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossBorrowLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossFinFlowResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossFinFlowResult.ts deleted file mode 100644 index 35d8213f..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossFinFlowResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossFinFlowResult } from './marginCrossFinFlowResult'; - -export class ApiResponseResultOfMarginCrossFinFlowResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossFinFlowResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossFinFlowResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossFinFlowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossMaxBorrowResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossMaxBorrowResult.ts deleted file mode 100644 index c1c1f305..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossMaxBorrowResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossMaxBorrowResult } from './marginCrossMaxBorrowResult'; - -export class ApiResponseResultOfMarginCrossMaxBorrowResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossMaxBorrowResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossMaxBorrowResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossMaxBorrowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossRepayResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossRepayResult.ts deleted file mode 100644 index 9c344960..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginCrossRepayResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossRepayResult } from './marginCrossRepayResult'; - -export class ApiResponseResultOfMarginCrossRepayResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginCrossRepayResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginCrossRepayResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginCrossRepayResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginInterestInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginInterestInfoResult.ts deleted file mode 100644 index 368fa942..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginInterestInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginInterestInfoResult } from './marginInterestInfoResult'; - -export class ApiResponseResultOfMarginInterestInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginInterestInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginInterestInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginInterestInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedAssetsResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedAssetsResult.ts deleted file mode 100644 index c5ec21a6..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedAssetsResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedAssetsResult } from './marginIsolatedAssetsResult'; - -export class ApiResponseResultOfMarginIsolatedAssetsResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedAssetsResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedAssetsResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedAssetsResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedBorrowLimitResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedBorrowLimitResult.ts deleted file mode 100644 index 69cc57eb..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedBorrowLimitResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedBorrowLimitResult } from './marginIsolatedBorrowLimitResult'; - -export class ApiResponseResultOfMarginIsolatedBorrowLimitResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedBorrowLimitResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedBorrowLimitResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedBorrowLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedFinFlowResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedFinFlowResult.ts deleted file mode 100644 index f3bc530f..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedFinFlowResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedFinFlowResult } from './marginIsolatedFinFlowResult'; - -export class ApiResponseResultOfMarginIsolatedFinFlowResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedFinFlowResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedFinFlowResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedFinFlowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedInterestInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedInterestInfoResult.ts deleted file mode 100644 index 1572293c..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedInterestInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedInterestInfoResult } from './marginIsolatedInterestInfoResult'; - -export class ApiResponseResultOfMarginIsolatedInterestInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedInterestInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedInterestInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedInterestInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLiquidationInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLiquidationInfoResult.ts deleted file mode 100644 index 3a579108..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLiquidationInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedLiquidationInfoResult } from './marginIsolatedLiquidationInfoResult'; - -export class ApiResponseResultOfMarginIsolatedLiquidationInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedLiquidationInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedLiquidationInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedLiquidationInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLoanInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLoanInfoResult.ts deleted file mode 100644 index 50a46d36..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedLoanInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedLoanInfoResult } from './marginIsolatedLoanInfoResult'; - -export class ApiResponseResultOfMarginIsolatedLoanInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedLoanInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedLoanInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedLoanInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedMaxBorrowResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedMaxBorrowResult.ts deleted file mode 100644 index dd1a816a..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedMaxBorrowResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedMaxBorrowResult } from './marginIsolatedMaxBorrowResult'; - -export class ApiResponseResultOfMarginIsolatedMaxBorrowResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedMaxBorrowResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedMaxBorrowResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedMaxBorrowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayInfoResult.ts deleted file mode 100644 index 41fa0e65..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedRepayInfoResult } from './marginIsolatedRepayInfoResult'; - -export class ApiResponseResultOfMarginIsolatedRepayInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedRepayInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedRepayInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedRepayInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayResult.ts deleted file mode 100644 index f18187ea..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginIsolatedRepayResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedRepayResult } from './marginIsolatedRepayResult'; - -export class ApiResponseResultOfMarginIsolatedRepayResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginIsolatedRepayResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginIsolatedRepayResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginIsolatedRepayResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLiquidationInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLiquidationInfoResult.ts deleted file mode 100644 index 3f34484e..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLiquidationInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginLiquidationInfoResult } from './marginLiquidationInfoResult'; - -export class ApiResponseResultOfMarginLiquidationInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginLiquidationInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginLiquidationInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginLiquidationInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLoanInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLoanInfoResult.ts deleted file mode 100644 index cdb1a3b0..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginLoanInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginLoanInfoResult } from './marginLoanInfoResult'; - -export class ApiResponseResultOfMarginLoanInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginLoanInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginLoanInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginLoanInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginOpenOrderInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginOpenOrderInfoResult.ts deleted file mode 100644 index bc2cc088..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginOpenOrderInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginOpenOrderInfoResult } from './marginOpenOrderInfoResult'; - -export class ApiResponseResultOfMarginOpenOrderInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginOpenOrderInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginOpenOrderInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginOpenOrderInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginPlaceOrderResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginPlaceOrderResult.ts deleted file mode 100644 index 839d953c..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginPlaceOrderResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginPlaceOrderResult } from './marginPlaceOrderResult'; - -export class ApiResponseResultOfMarginPlaceOrderResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginPlaceOrderResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginPlaceOrderResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginPlaceOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginRepayInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginRepayInfoResult.ts deleted file mode 100644 index be32010f..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginRepayInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginRepayInfoResult } from './marginRepayInfoResult'; - -export class ApiResponseResultOfMarginRepayInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginRepayInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginRepayInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginRepayInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginTradeDetailInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMarginTradeDetailInfoResult.ts deleted file mode 100644 index 20d20a9b..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMarginTradeDetailInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginTradeDetailInfoResult } from './marginTradeDetailInfoResult'; - -export class ApiResponseResultOfMarginTradeDetailInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MarginTradeDetailInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MarginTradeDetailInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMarginTradeDetailInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantAdvResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantAdvResult.ts deleted file mode 100644 index 74ad2388..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantAdvResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantAdvResult } from './merchantAdvResult'; - -export class ApiResponseResultOfMerchantAdvResult { - /** - * code - */ - 'code'?: string; - 'data'?: MerchantAdvResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MerchantAdvResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMerchantAdvResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantInfoResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantInfoResult.ts deleted file mode 100644 index 289f61ef..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantInfoResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantInfoResult } from './merchantInfoResult'; - -export class ApiResponseResultOfMerchantInfoResult { - /** - * code - */ - 'code'?: string; - 'data'?: MerchantInfoResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MerchantInfoResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMerchantInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantOrderResult.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantOrderResult.ts deleted file mode 100644 index 497262c9..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantOrderResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantOrderResult } from './merchantOrderResult'; - -export class ApiResponseResultOfMerchantOrderResult { - /** - * code - */ - 'code'?: string; - 'data'?: MerchantOrderResult; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MerchantOrderResult" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMerchantOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantPersonInfo.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantPersonInfo.ts deleted file mode 100644 index a9ac310e..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfMerchantPersonInfo.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantPersonInfo } from './merchantPersonInfo'; - -export class ApiResponseResultOfMerchantPersonInfo { - /** - * code - */ - 'code'?: string; - 'data'?: MerchantPersonInfo; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "data", - "baseName": "data", - "type": "MerchantPersonInfo" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfMerchantPersonInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/apiResponseResultOfVoid.ts b/bitget-node-sdk-open-api/model/apiResponseResultOfVoid.ts deleted file mode 100644 index e839fff1..00000000 --- a/bitget-node-sdk-open-api/model/apiResponseResultOfVoid.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class ApiResponseResultOfVoid { - /** - * code - */ - 'code'?: string; - /** - * msg - */ - 'msg'?: string; - /** - * requestTime - */ - 'requestTime'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "msg", - "baseName": "msg", - "type": "string" - }, - { - "name": "requestTime", - "baseName": "requestTime", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ApiResponseResultOfVoid.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/fiatPaymentDetailInfo.ts b/bitget-node-sdk-open-api/model/fiatPaymentDetailInfo.ts deleted file mode 100644 index f4961742..00000000 --- a/bitget-node-sdk-open-api/model/fiatPaymentDetailInfo.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class FiatPaymentDetailInfo { - 'name'?: string; - 'required'?: boolean; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "name", - "baseName": "name", - "type": "string" - }, - { - "name": "required", - "baseName": "required", - "type": "boolean" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return FiatPaymentDetailInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/fiatPaymentInfo.ts b/bitget-node-sdk-open-api/model/fiatPaymentInfo.ts deleted file mode 100644 index 62f15128..00000000 --- a/bitget-node-sdk-open-api/model/fiatPaymentInfo.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { FiatPaymentDetailInfo } from './fiatPaymentDetailInfo'; - -export class FiatPaymentInfo { - 'paymentId'?: string; - 'paymentInfo'?: Array; - 'paymentMethod'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "paymentId", - "baseName": "paymentId", - "type": "string" - }, - { - "name": "paymentInfo", - "baseName": "paymentInfo", - "type": "Array" - }, - { - "name": "paymentMethod", - "baseName": "paymentMethod", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return FiatPaymentInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginBatchCancelOrderRequest.ts b/bitget-node-sdk-open-api/model/marginBatchCancelOrderRequest.ts deleted file mode 100644 index dfec711f..00000000 --- a/bitget-node-sdk-open-api/model/marginBatchCancelOrderRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginBatchCancelOrderRequest { - /** - * clientOids - */ - 'clientOids'?: Array; - /** - * orderIds - */ - 'orderIds'?: Array; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOids", - "baseName": "clientOids", - "type": "Array" - }, - { - "name": "orderIds", - "baseName": "orderIds", - "type": "Array" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginBatchCancelOrderRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginBatchCancelOrderResult.ts b/bitget-node-sdk-open-api/model/marginBatchCancelOrderResult.ts deleted file mode 100644 index fcff2482..00000000 --- a/bitget-node-sdk-open-api/model/marginBatchCancelOrderResult.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCancelOrderFailureResult } from './marginCancelOrderFailureResult'; -import { MarginCancelOrderResult } from './marginCancelOrderResult'; - -export class MarginBatchCancelOrderResult { - 'failure'?: Array; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "failure", - "baseName": "failure", - "type": "Array" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginBatchCancelOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginBatchOrdersRequest.ts b/bitget-node-sdk-open-api/model/marginBatchOrdersRequest.ts deleted file mode 100644 index 5ca035a6..00000000 --- a/bitget-node-sdk-open-api/model/marginBatchOrdersRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginOrderRequest } from './marginOrderRequest'; - -export class MarginBatchOrdersRequest { - 'channelApiCode'?: string; - 'ip'?: string; - 'orderList'?: Array; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "channelApiCode", - "baseName": "channelApiCode", - "type": "string" - }, - { - "name": "ip", - "baseName": "ip", - "type": "string" - }, - { - "name": "orderList", - "baseName": "orderList", - "type": "Array" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginBatchOrdersRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginBatchPlaceOrderFailureResult.ts b/bitget-node-sdk-open-api/model/marginBatchPlaceOrderFailureResult.ts deleted file mode 100644 index 0bad5792..00000000 --- a/bitget-node-sdk-open-api/model/marginBatchPlaceOrderFailureResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginBatchPlaceOrderFailureResult { - 'clientOid'?: string; - 'errorMsg'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "errorMsg", - "baseName": "errorMsg", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginBatchPlaceOrderFailureResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginBatchPlaceOrderResult.ts b/bitget-node-sdk-open-api/model/marginBatchPlaceOrderResult.ts deleted file mode 100644 index 8bf1bee0..00000000 --- a/bitget-node-sdk-open-api/model/marginBatchPlaceOrderResult.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginBatchPlaceOrderFailureResult } from './marginBatchPlaceOrderFailureResult'; -import { MarginCancelOrderResult } from './marginCancelOrderResult'; - -export class MarginBatchPlaceOrderResult { - 'failure'?: Array; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "failure", - "baseName": "failure", - "type": "Array" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginBatchPlaceOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCancelOrderFailureResult.ts b/bitget-node-sdk-open-api/model/marginCancelOrderFailureResult.ts deleted file mode 100644 index a148b460..00000000 --- a/bitget-node-sdk-open-api/model/marginCancelOrderFailureResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCancelOrderFailureResult { - 'clientOid'?: string; - 'errorMsg'?: string; - 'orderId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "errorMsg", - "baseName": "errorMsg", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCancelOrderFailureResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCancelOrderRequest.ts b/bitget-node-sdk-open-api/model/marginCancelOrderRequest.ts deleted file mode 100644 index bcf2fcfa..00000000 --- a/bitget-node-sdk-open-api/model/marginCancelOrderRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCancelOrderRequest { - /** - * clientOid - */ - 'clientOid'?: string; - /** - * orderId - */ - 'orderId'?: string; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCancelOrderRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCancelOrderResult.ts b/bitget-node-sdk-open-api/model/marginCancelOrderResult.ts deleted file mode 100644 index c7070e14..00000000 --- a/bitget-node-sdk-open-api/model/marginCancelOrderResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCancelOrderResult { - 'clientOid'?: string; - 'orderId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCancelOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossAssetsPopulationResult.ts b/bitget-node-sdk-open-api/model/marginCrossAssetsPopulationResult.ts deleted file mode 100644 index 3635b71c..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossAssetsPopulationResult.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossAssetsPopulationResult { - 'available'?: string; - 'borrow'?: string; - 'coin'?: string; - 'ctime'?: string; - 'frozen'?: string; - 'interest'?: string; - 'net'?: string; - 'totalAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "available", - "baseName": "available", - "type": "string" - }, - { - "name": "borrow", - "baseName": "borrow", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "frozen", - "baseName": "frozen", - "type": "string" - }, - { - "name": "interest", - "baseName": "interest", - "type": "string" - }, - { - "name": "net", - "baseName": "net", - "type": "string" - }, - { - "name": "totalAmount", - "baseName": "totalAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossAssetsPopulationResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossAssetsResult.ts b/bitget-node-sdk-open-api/model/marginCrossAssetsResult.ts deleted file mode 100644 index 35cd1992..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossAssetsResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossAssetsResult { - 'coin'?: string; - 'maxTransferOutAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "maxTransferOutAmount", - "baseName": "maxTransferOutAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossAssetsResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossAssetsRiskResult.ts b/bitget-node-sdk-open-api/model/marginCrossAssetsRiskResult.ts deleted file mode 100644 index 65f74bd1..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossAssetsRiskResult.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossAssetsRiskResult { - 'riskRate'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "riskRate", - "baseName": "riskRate", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossAssetsRiskResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossBorrowLimitResult.ts b/bitget-node-sdk-open-api/model/marginCrossBorrowLimitResult.ts deleted file mode 100644 index b95e0adf..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossBorrowLimitResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossBorrowLimitResult { - 'borrowAmount'?: string; - 'clientOid'?: string; - 'coin'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "borrowAmount", - "baseName": "borrowAmount", - "type": "string" - }, - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossBorrowLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossFinFlowInfo.ts b/bitget-node-sdk-open-api/model/marginCrossFinFlowInfo.ts deleted file mode 100644 index c4403f3c..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossFinFlowInfo.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossFinFlowInfo { - 'amount'?: string; - 'balance'?: string; - 'coin'?: string; - 'ctime'?: string; - 'fee'?: string; - 'marginId'?: string; - 'marginType'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "balance", - "baseName": "balance", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "fee", - "baseName": "fee", - "type": "string" - }, - { - "name": "marginId", - "baseName": "marginId", - "type": "string" - }, - { - "name": "marginType", - "baseName": "marginType", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossFinFlowInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossFinFlowResult.ts b/bitget-node-sdk-open-api/model/marginCrossFinFlowResult.ts deleted file mode 100644 index 5172c8a7..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossFinFlowResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossFinFlowInfo } from './marginCrossFinFlowInfo'; - -export class MarginCrossFinFlowResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginCrossFinFlowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossLevelResult.ts b/bitget-node-sdk-open-api/model/marginCrossLevelResult.ts deleted file mode 100644 index d72ccce8..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossLevelResult.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossLevelResult { - 'coin'?: string; - 'leverage'?: string; - 'maintainMarginRate'?: string; - 'maxBorrowableAmount'?: string; - 'tier'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "leverage", - "baseName": "leverage", - "type": "string" - }, - { - "name": "maintainMarginRate", - "baseName": "maintainMarginRate", - "type": "string" - }, - { - "name": "maxBorrowableAmount", - "baseName": "maxBorrowableAmount", - "type": "string" - }, - { - "name": "tier", - "baseName": "tier", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossLevelResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossLimitRequest.ts b/bitget-node-sdk-open-api/model/marginCrossLimitRequest.ts deleted file mode 100644 index c7fbab83..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossLimitRequest.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossLimitRequest { - /** - * borrowAmount - */ - 'borrowAmount': string; - /** - * coin - */ - 'coin': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "borrowAmount", - "baseName": "borrowAmount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossLimitRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossMaxBorrowRequest.ts b/bitget-node-sdk-open-api/model/marginCrossMaxBorrowRequest.ts deleted file mode 100644 index 31d3e58e..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossMaxBorrowRequest.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossMaxBorrowRequest { - /** - * coin - */ - 'coin': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossMaxBorrowRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossMaxBorrowResult.ts b/bitget-node-sdk-open-api/model/marginCrossMaxBorrowResult.ts deleted file mode 100644 index 2d2dee6d..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossMaxBorrowResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossMaxBorrowResult { - 'coin'?: string; - 'maxBorrowableAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "maxBorrowableAmount", - "baseName": "maxBorrowableAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossMaxBorrowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossRateAndLimitResult.ts b/bitget-node-sdk-open-api/model/marginCrossRateAndLimitResult.ts deleted file mode 100644 index a9421770..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossRateAndLimitResult.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginCrossVipResult } from './marginCrossVipResult'; - -export class MarginCrossRateAndLimitResult { - 'borrowAble'?: boolean; - 'coin'?: string; - 'dailyInterestRate'?: string; - 'leverage'?: string; - 'maxBorrowableAmount'?: string; - 'transferInAble'?: boolean; - 'vips'?: Array; - 'yearlyInterestRate'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "borrowAble", - "baseName": "borrowAble", - "type": "boolean" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "dailyInterestRate", - "baseName": "dailyInterestRate", - "type": "string" - }, - { - "name": "leverage", - "baseName": "leverage", - "type": "string" - }, - { - "name": "maxBorrowableAmount", - "baseName": "maxBorrowableAmount", - "type": "string" - }, - { - "name": "transferInAble", - "baseName": "transferInAble", - "type": "boolean" - }, - { - "name": "vips", - "baseName": "vips", - "type": "Array" - }, - { - "name": "yearlyInterestRate", - "baseName": "yearlyInterestRate", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossRateAndLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossRepayRequest.ts b/bitget-node-sdk-open-api/model/marginCrossRepayRequest.ts deleted file mode 100644 index 7cd6b577..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossRepayRequest.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossRepayRequest { - /** - * coin - */ - 'coin': string; - /** - * repayAmount - */ - 'repayAmount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "repayAmount", - "baseName": "repayAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossRepayRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossRepayResult.ts b/bitget-node-sdk-open-api/model/marginCrossRepayResult.ts deleted file mode 100644 index e097cc1e..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossRepayResult.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossRepayResult { - 'clientOid'?: string; - 'coin'?: string; - 'remainDebtAmount'?: string; - 'repayAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "remainDebtAmount", - "baseName": "remainDebtAmount", - "type": "string" - }, - { - "name": "repayAmount", - "baseName": "repayAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossRepayResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginCrossVipResult.ts b/bitget-node-sdk-open-api/model/marginCrossVipResult.ts deleted file mode 100644 index a703f027..00000000 --- a/bitget-node-sdk-open-api/model/marginCrossVipResult.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginCrossVipResult { - 'dailyInterestRate'?: string; - 'discountRate'?: string; - 'level'?: string; - 'yearlyInterestRate'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "dailyInterestRate", - "baseName": "dailyInterestRate", - "type": "string" - }, - { - "name": "discountRate", - "baseName": "discountRate", - "type": "string" - }, - { - "name": "level", - "baseName": "level", - "type": "string" - }, - { - "name": "yearlyInterestRate", - "baseName": "yearlyInterestRate", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginCrossVipResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginInterestInfo.ts b/bitget-node-sdk-open-api/model/marginInterestInfo.ts deleted file mode 100644 index 024395f2..00000000 --- a/bitget-node-sdk-open-api/model/marginInterestInfo.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginInterestInfo { - 'amount'?: string; - 'ctime'?: string; - 'interestCoin'?: string; - 'interestId'?: string; - 'interestRate'?: string; - 'loanCoin'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "interestCoin", - "baseName": "interestCoin", - "type": "string" - }, - { - "name": "interestId", - "baseName": "interestId", - "type": "string" - }, - { - "name": "interestRate", - "baseName": "interestRate", - "type": "string" - }, - { - "name": "loanCoin", - "baseName": "loanCoin", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginInterestInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginInterestInfoResult.ts b/bitget-node-sdk-open-api/model/marginInterestInfoResult.ts deleted file mode 100644 index 5f21ff9f..00000000 --- a/bitget-node-sdk-open-api/model/marginInterestInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginInterestInfo } from './marginInterestInfo'; - -export class MarginInterestInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginInterestInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedAssetsPopulationResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedAssetsPopulationResult.ts deleted file mode 100644 index 98fc153a..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedAssetsPopulationResult.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedAssetsPopulationResult { - 'available'?: string; - 'borrow'?: string; - 'coin'?: string; - 'ctime'?: string; - 'frozen'?: string; - 'interest'?: string; - 'net'?: string; - 'symbol'?: string; - 'totalAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "available", - "baseName": "available", - "type": "string" - }, - { - "name": "borrow", - "baseName": "borrow", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "frozen", - "baseName": "frozen", - "type": "string" - }, - { - "name": "interest", - "baseName": "interest", - "type": "string" - }, - { - "name": "net", - "baseName": "net", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "totalAmount", - "baseName": "totalAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedAssetsPopulationResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedAssetsResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedAssetsResult.ts deleted file mode 100644 index f09cf69b..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedAssetsResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedAssetsResult { - 'coin'?: string; - 'maxTransferOutAmount'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "maxTransferOutAmount", - "baseName": "maxTransferOutAmount", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedAssetsResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskRequest.ts b/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskRequest.ts deleted file mode 100644 index 5e6726b5..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedAssetsRiskRequest { - /** - * pageNum - */ - 'pageNum'?: string; - /** - * pageSize - */ - 'pageSize'?: string; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "pageNum", - "baseName": "pageNum", - "type": "string" - }, - { - "name": "pageSize", - "baseName": "pageSize", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedAssetsRiskRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskResult.ts deleted file mode 100644 index 011dfe69..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedAssetsRiskResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedAssetsRiskResult { - 'riskRate'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "riskRate", - "baseName": "riskRate", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedAssetsRiskResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedBorrowLimitResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedBorrowLimitResult.ts deleted file mode 100644 index 1ac2f4cb..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedBorrowLimitResult.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedBorrowLimitResult { - 'borrowAmount'?: string; - 'clientOid'?: string; - 'coin'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "borrowAmount", - "baseName": "borrowAmount", - "type": "string" - }, - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedBorrowLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedFinFlowInfo.ts b/bitget-node-sdk-open-api/model/marginIsolatedFinFlowInfo.ts deleted file mode 100644 index db55ef83..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedFinFlowInfo.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedFinFlowInfo { - 'amount'?: string; - 'balance'?: string; - 'coin'?: string; - 'ctime'?: string; - 'fee'?: string; - 'marginId'?: string; - 'marginType'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "balance", - "baseName": "balance", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "fee", - "baseName": "fee", - "type": "string" - }, - { - "name": "marginId", - "baseName": "marginId", - "type": "string" - }, - { - "name": "marginType", - "baseName": "marginType", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedFinFlowInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedFinFlowResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedFinFlowResult.ts deleted file mode 100644 index a24a1bf6..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedFinFlowResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedFinFlowInfo } from './marginIsolatedFinFlowInfo'; - -export class MarginIsolatedFinFlowResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedFinFlowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedInterestInfo.ts b/bitget-node-sdk-open-api/model/marginIsolatedInterestInfo.ts deleted file mode 100644 index 66a8824e..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedInterestInfo.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedInterestInfo { - 'amount'?: string; - 'ctime'?: string; - 'interestCoin'?: string; - 'interestId'?: string; - 'interestRate'?: string; - 'loanCoin'?: string; - 'symbol'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "interestCoin", - "baseName": "interestCoin", - "type": "string" - }, - { - "name": "interestId", - "baseName": "interestId", - "type": "string" - }, - { - "name": "interestRate", - "baseName": "interestRate", - "type": "string" - }, - { - "name": "loanCoin", - "baseName": "loanCoin", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedInterestInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedInterestInfoResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedInterestInfoResult.ts deleted file mode 100644 index 4ac31b54..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedInterestInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedInterestInfo } from './marginIsolatedInterestInfo'; - -export class MarginIsolatedInterestInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedInterestInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLevelResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedLevelResult.ts deleted file mode 100644 index 2ac4986b..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLevelResult.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedLevelResult { - 'baseCoin'?: string; - 'baseMaxBorrowableAmount'?: string; - 'initRate'?: string; - 'leverage'?: string; - 'maintainMarginRate'?: string; - 'quoteCoin'?: string; - 'quoteMaxBorrowableAmount'?: string; - 'symbol'?: string; - 'tier'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "baseCoin", - "baseName": "baseCoin", - "type": "string" - }, - { - "name": "baseMaxBorrowableAmount", - "baseName": "baseMaxBorrowableAmount", - "type": "string" - }, - { - "name": "initRate", - "baseName": "initRate", - "type": "string" - }, - { - "name": "leverage", - "baseName": "leverage", - "type": "string" - }, - { - "name": "maintainMarginRate", - "baseName": "maintainMarginRate", - "type": "string" - }, - { - "name": "quoteCoin", - "baseName": "quoteCoin", - "type": "string" - }, - { - "name": "quoteMaxBorrowableAmount", - "baseName": "quoteMaxBorrowableAmount", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "tier", - "baseName": "tier", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLevelResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLimitRequest.ts b/bitget-node-sdk-open-api/model/marginIsolatedLimitRequest.ts deleted file mode 100644 index 3e85f94a..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLimitRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedLimitRequest { - /** - * borrowAmount - */ - 'borrowAmount': string; - /** - * coin - */ - 'coin': string; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "borrowAmount", - "baseName": "borrowAmount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLimitRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfo.ts b/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfo.ts deleted file mode 100644 index ca810d52..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfo.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedLiquidationInfo { - 'ctime'?: string; - 'liqEndTime'?: string; - 'liqFee'?: string; - 'liqId'?: string; - 'liqRisk'?: string; - 'liqStartTime'?: string; - 'symbol'?: string; - 'totalAssets'?: string; - 'totalDebt'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "liqEndTime", - "baseName": "liqEndTime", - "type": "string" - }, - { - "name": "liqFee", - "baseName": "liqFee", - "type": "string" - }, - { - "name": "liqId", - "baseName": "liqId", - "type": "string" - }, - { - "name": "liqRisk", - "baseName": "liqRisk", - "type": "string" - }, - { - "name": "liqStartTime", - "baseName": "liqStartTime", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "totalAssets", - "baseName": "totalAssets", - "type": "string" - }, - { - "name": "totalDebt", - "baseName": "totalDebt", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLiquidationInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfoResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfoResult.ts deleted file mode 100644 index 7e9285e0..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLiquidationInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedLiquidationInfo } from './marginIsolatedLiquidationInfo'; - -export class MarginIsolatedLiquidationInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLiquidationInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLoanInfo.ts b/bitget-node-sdk-open-api/model/marginIsolatedLoanInfo.ts deleted file mode 100644 index e6c7b0dc..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLoanInfo.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedLoanInfo { - 'amount'?: string; - 'coin'?: string; - 'ctime'?: string; - 'loanId'?: string; - 'symbol'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "loanId", - "baseName": "loanId", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLoanInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedLoanInfoResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedLoanInfoResult.ts deleted file mode 100644 index c1302cf4..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedLoanInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedLoanInfo } from './marginIsolatedLoanInfo'; - -export class MarginIsolatedLoanInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedLoanInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowRequest.ts b/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowRequest.ts deleted file mode 100644 index e32a613e..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowRequest.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedMaxBorrowRequest { - /** - * coin - */ - 'coin': string; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedMaxBorrowRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowResult.ts deleted file mode 100644 index 6115ac70..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedMaxBorrowResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedMaxBorrowResult { - 'coin'?: string; - 'maxBorrowableAmount'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "maxBorrowableAmount", - "baseName": "maxBorrowableAmount", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedMaxBorrowResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedRateAndLimitResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedRateAndLimitResult.ts deleted file mode 100644 index 0fbf9cfb..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedRateAndLimitResult.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedVipResult } from './marginIsolatedVipResult'; - -export class MarginIsolatedRateAndLimitResult { - 'baseBorrowAble'?: boolean; - 'baseCoin'?: string; - 'baseDailyInterestRate'?: string; - 'baseMaxBorrowableAmount'?: string; - 'baseTransferInAble'?: boolean; - 'baseVips'?: Array; - 'baseYearlyInterestRate'?: string; - 'leverage'?: string; - 'quoteBorrowAble'?: boolean; - 'quoteCoin'?: string; - 'quoteDailyInterestRate'?: string; - 'quoteMaxBorrowableAmount'?: string; - 'quoteTransferInAble'?: boolean; - 'quoteVips'?: Array; - 'quoteYearlyInterestRate'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "baseBorrowAble", - "baseName": "baseBorrowAble", - "type": "boolean" - }, - { - "name": "baseCoin", - "baseName": "baseCoin", - "type": "string" - }, - { - "name": "baseDailyInterestRate", - "baseName": "baseDailyInterestRate", - "type": "string" - }, - { - "name": "baseMaxBorrowableAmount", - "baseName": "baseMaxBorrowableAmount", - "type": "string" - }, - { - "name": "baseTransferInAble", - "baseName": "baseTransferInAble", - "type": "boolean" - }, - { - "name": "baseVips", - "baseName": "baseVips", - "type": "Array" - }, - { - "name": "baseYearlyInterestRate", - "baseName": "baseYearlyInterestRate", - "type": "string" - }, - { - "name": "leverage", - "baseName": "leverage", - "type": "string" - }, - { - "name": "quoteBorrowAble", - "baseName": "quoteBorrowAble", - "type": "boolean" - }, - { - "name": "quoteCoin", - "baseName": "quoteCoin", - "type": "string" - }, - { - "name": "quoteDailyInterestRate", - "baseName": "quoteDailyInterestRate", - "type": "string" - }, - { - "name": "quoteMaxBorrowableAmount", - "baseName": "quoteMaxBorrowableAmount", - "type": "string" - }, - { - "name": "quoteTransferInAble", - "baseName": "quoteTransferInAble", - "type": "boolean" - }, - { - "name": "quoteVips", - "baseName": "quoteVips", - "type": "Array" - }, - { - "name": "quoteYearlyInterestRate", - "baseName": "quoteYearlyInterestRate", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedRateAndLimitResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedRepayInfo.ts b/bitget-node-sdk-open-api/model/marginIsolatedRepayInfo.ts deleted file mode 100644 index 5824368f..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedRepayInfo.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedRepayInfo { - 'amount'?: string; - 'coin'?: string; - 'ctime'?: string; - 'interest'?: string; - 'repayId'?: string; - 'symbol'?: string; - 'totalAmount'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "interest", - "baseName": "interest", - "type": "string" - }, - { - "name": "repayId", - "baseName": "repayId", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "totalAmount", - "baseName": "totalAmount", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedRepayInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedRepayInfoResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedRepayInfoResult.ts deleted file mode 100644 index bec7b5a9..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedRepayInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginIsolatedRepayInfo } from './marginIsolatedRepayInfo'; - -export class MarginIsolatedRepayInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedRepayInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedRepayRequest.ts b/bitget-node-sdk-open-api/model/marginIsolatedRepayRequest.ts deleted file mode 100644 index e317127a..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedRepayRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedRepayRequest { - /** - * coin - */ - 'coin': string; - /** - * repayAmount - */ - 'repayAmount': string; - /** - * symbol - */ - 'symbol': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "repayAmount", - "baseName": "repayAmount", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedRepayRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedRepayResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedRepayResult.ts deleted file mode 100644 index 6198734c..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedRepayResult.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedRepayResult { - 'clientOid'?: string; - 'coin'?: string; - 'remainDebtAmount'?: string; - 'repayAmount'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "remainDebtAmount", - "baseName": "remainDebtAmount", - "type": "string" - }, - { - "name": "repayAmount", - "baseName": "repayAmount", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedRepayResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginIsolatedVipResult.ts b/bitget-node-sdk-open-api/model/marginIsolatedVipResult.ts deleted file mode 100644 index 9db78ea5..00000000 --- a/bitget-node-sdk-open-api/model/marginIsolatedVipResult.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginIsolatedVipResult { - 'dailyInterestRate'?: string; - 'discountRate'?: string; - 'level'?: string; - 'yearlyInterestRate'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "dailyInterestRate", - "baseName": "dailyInterestRate", - "type": "string" - }, - { - "name": "discountRate", - "baseName": "discountRate", - "type": "string" - }, - { - "name": "level", - "baseName": "level", - "type": "string" - }, - { - "name": "yearlyInterestRate", - "baseName": "yearlyInterestRate", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginIsolatedVipResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginLiquidationInfo.ts b/bitget-node-sdk-open-api/model/marginLiquidationInfo.ts deleted file mode 100644 index 39a8bc81..00000000 --- a/bitget-node-sdk-open-api/model/marginLiquidationInfo.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginLiquidationInfo { - 'ctime'?: string; - 'liqEndTime'?: string; - 'liqFee'?: string; - 'liqId'?: string; - 'liqRisk'?: string; - 'liqStartTime'?: string; - 'totalAssets'?: string; - 'totalDebt'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "liqEndTime", - "baseName": "liqEndTime", - "type": "string" - }, - { - "name": "liqFee", - "baseName": "liqFee", - "type": "string" - }, - { - "name": "liqId", - "baseName": "liqId", - "type": "string" - }, - { - "name": "liqRisk", - "baseName": "liqRisk", - "type": "string" - }, - { - "name": "liqStartTime", - "baseName": "liqStartTime", - "type": "string" - }, - { - "name": "totalAssets", - "baseName": "totalAssets", - "type": "string" - }, - { - "name": "totalDebt", - "baseName": "totalDebt", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginLiquidationInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginLiquidationInfoResult.ts b/bitget-node-sdk-open-api/model/marginLiquidationInfoResult.ts deleted file mode 100644 index 3c754587..00000000 --- a/bitget-node-sdk-open-api/model/marginLiquidationInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginLiquidationInfo } from './marginLiquidationInfo'; - -export class MarginLiquidationInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginLiquidationInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginLoanInfo.ts b/bitget-node-sdk-open-api/model/marginLoanInfo.ts deleted file mode 100644 index 597acf81..00000000 --- a/bitget-node-sdk-open-api/model/marginLoanInfo.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginLoanInfo { - 'amount'?: string; - 'coin'?: string; - 'ctime'?: string; - 'loanId'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "loanId", - "baseName": "loanId", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginLoanInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginLoanInfoResult.ts b/bitget-node-sdk-open-api/model/marginLoanInfoResult.ts deleted file mode 100644 index 488c0d3d..00000000 --- a/bitget-node-sdk-open-api/model/marginLoanInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginLoanInfo } from './marginLoanInfo'; - -export class MarginLoanInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginLoanInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginOpenOrderInfoResult.ts b/bitget-node-sdk-open-api/model/marginOpenOrderInfoResult.ts deleted file mode 100644 index 35ba8821..00000000 --- a/bitget-node-sdk-open-api/model/marginOpenOrderInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginOrderInfo } from './marginOrderInfo'; - -export class MarginOpenOrderInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'orderList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "orderList", - "baseName": "orderList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginOpenOrderInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginOrderInfo.ts b/bitget-node-sdk-open-api/model/marginOrderInfo.ts deleted file mode 100644 index 1c1f84ce..00000000 --- a/bitget-node-sdk-open-api/model/marginOrderInfo.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginOrderInfo { - 'baseQuantity'?: string; - 'clientOid'?: string; - 'ctime'?: string; - 'fillPrice'?: string; - 'fillQuantity'?: string; - 'fillTotalAmount'?: string; - 'loanType'?: string; - 'orderId'?: string; - 'orderType'?: string; - 'price'?: string; - 'quoteAmount'?: string; - 'side'?: string; - 'source'?: string; - 'status'?: string; - 'symbol'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "baseQuantity", - "baseName": "baseQuantity", - "type": "string" - }, - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "fillPrice", - "baseName": "fillPrice", - "type": "string" - }, - { - "name": "fillQuantity", - "baseName": "fillQuantity", - "type": "string" - }, - { - "name": "fillTotalAmount", - "baseName": "fillTotalAmount", - "type": "string" - }, - { - "name": "loanType", - "baseName": "loanType", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - }, - { - "name": "orderType", - "baseName": "orderType", - "type": "string" - }, - { - "name": "price", - "baseName": "price", - "type": "string" - }, - { - "name": "quoteAmount", - "baseName": "quoteAmount", - "type": "string" - }, - { - "name": "side", - "baseName": "side", - "type": "string" - }, - { - "name": "source", - "baseName": "source", - "type": "string" - }, - { - "name": "status", - "baseName": "status", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginOrderInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginOrderRequest.ts b/bitget-node-sdk-open-api/model/marginOrderRequest.ts deleted file mode 100644 index b358fbab..00000000 --- a/bitget-node-sdk-open-api/model/marginOrderRequest.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginOrderRequest { - /** - * baseQuantity - */ - 'baseQuantity'?: string; - 'channelApiCode'?: string; - /** - * clientOid - */ - 'clientOid'?: string; - 'ip'?: string; - /** - * loanType - */ - 'loanType': string; - /** - * orderType - */ - 'orderType': string; - /** - * price - */ - 'price'?: string; - /** - * quoteAmount - */ - 'quoteAmount'?: string; - /** - * side - */ - 'side': string; - /** - * symbol - */ - 'symbol': string; - /** - * timeInForce - */ - 'timeInForce'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "baseQuantity", - "baseName": "baseQuantity", - "type": "string" - }, - { - "name": "channelApiCode", - "baseName": "channelApiCode", - "type": "string" - }, - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "ip", - "baseName": "ip", - "type": "string" - }, - { - "name": "loanType", - "baseName": "loanType", - "type": "string" - }, - { - "name": "orderType", - "baseName": "orderType", - "type": "string" - }, - { - "name": "price", - "baseName": "price", - "type": "string" - }, - { - "name": "quoteAmount", - "baseName": "quoteAmount", - "type": "string" - }, - { - "name": "side", - "baseName": "side", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "timeInForce", - "baseName": "timeInForce", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginOrderRequest.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginPlaceOrderResult.ts b/bitget-node-sdk-open-api/model/marginPlaceOrderResult.ts deleted file mode 100644 index d2e31883..00000000 --- a/bitget-node-sdk-open-api/model/marginPlaceOrderResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginPlaceOrderResult { - 'clientOid'?: string; - 'orderId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "clientOid", - "baseName": "clientOid", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginPlaceOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginRepayInfo.ts b/bitget-node-sdk-open-api/model/marginRepayInfo.ts deleted file mode 100644 index 79b0e9f8..00000000 --- a/bitget-node-sdk-open-api/model/marginRepayInfo.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginRepayInfo { - 'amount'?: string; - 'coin'?: string; - 'ctime'?: string; - 'interest'?: string; - 'repayId'?: string; - 'totalAmount'?: string; - 'type'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "interest", - "baseName": "interest", - "type": "string" - }, - { - "name": "repayId", - "baseName": "repayId", - "type": "string" - }, - { - "name": "totalAmount", - "baseName": "totalAmount", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginRepayInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginRepayInfoResult.ts b/bitget-node-sdk-open-api/model/marginRepayInfoResult.ts deleted file mode 100644 index a4e87626..00000000 --- a/bitget-node-sdk-open-api/model/marginRepayInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginRepayInfo } from './marginRepayInfo'; - -export class MarginRepayInfoResult { - 'maxId'?: string; - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MarginRepayInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginSystemResult.ts b/bitget-node-sdk-open-api/model/marginSystemResult.ts deleted file mode 100644 index 6de2f54d..00000000 --- a/bitget-node-sdk-open-api/model/marginSystemResult.ts +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginSystemResult { - 'baseCoin'?: string; - 'isBorrowable'?: boolean; - 'liquidationRiskRatio'?: string; - 'makerFeeRate'?: string; - 'maxCrossLeverage'?: string; - 'maxIsolatedLeverage'?: string; - 'maxTradeAmount'?: string; - 'minTradeAmount'?: string; - 'minTradeUSDT'?: string; - 'priceScale'?: string; - 'quantityScale'?: string; - 'quoteCoin'?: string; - 'status'?: string; - 'symbol'?: string; - 'takerFeeRate'?: string; - 'userMinBorrow'?: string; - 'warningRiskRatio'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "baseCoin", - "baseName": "baseCoin", - "type": "string" - }, - { - "name": "isBorrowable", - "baseName": "isBorrowable", - "type": "boolean" - }, - { - "name": "liquidationRiskRatio", - "baseName": "liquidationRiskRatio", - "type": "string" - }, - { - "name": "makerFeeRate", - "baseName": "makerFeeRate", - "type": "string" - }, - { - "name": "maxCrossLeverage", - "baseName": "maxCrossLeverage", - "type": "string" - }, - { - "name": "maxIsolatedLeverage", - "baseName": "maxIsolatedLeverage", - "type": "string" - }, - { - "name": "maxTradeAmount", - "baseName": "maxTradeAmount", - "type": "string" - }, - { - "name": "minTradeAmount", - "baseName": "minTradeAmount", - "type": "string" - }, - { - "name": "minTradeUSDT", - "baseName": "minTradeUSDT", - "type": "string" - }, - { - "name": "priceScale", - "baseName": "priceScale", - "type": "string" - }, - { - "name": "quantityScale", - "baseName": "quantityScale", - "type": "string" - }, - { - "name": "quoteCoin", - "baseName": "quoteCoin", - "type": "string" - }, - { - "name": "status", - "baseName": "status", - "type": "string" - }, - { - "name": "symbol", - "baseName": "symbol", - "type": "string" - }, - { - "name": "takerFeeRate", - "baseName": "takerFeeRate", - "type": "string" - }, - { - "name": "userMinBorrow", - "baseName": "userMinBorrow", - "type": "string" - }, - { - "name": "warningRiskRatio", - "baseName": "warningRiskRatio", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginSystemResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginTradeDetailInfo.ts b/bitget-node-sdk-open-api/model/marginTradeDetailInfo.ts deleted file mode 100644 index 8127eb4b..00000000 --- a/bitget-node-sdk-open-api/model/marginTradeDetailInfo.ts +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MarginTradeDetailInfo { - 'ctime'?: string; - 'feeCcy'?: string; - 'fees'?: string; - 'fillId'?: string; - 'fillPrice'?: string; - 'fillQuantity'?: string; - 'fillTotalAmount'?: string; - 'orderId'?: string; - 'orderType'?: string; - 'side'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "feeCcy", - "baseName": "feeCcy", - "type": "string" - }, - { - "name": "fees", - "baseName": "fees", - "type": "string" - }, - { - "name": "fillId", - "baseName": "fillId", - "type": "string" - }, - { - "name": "fillPrice", - "baseName": "fillPrice", - "type": "string" - }, - { - "name": "fillQuantity", - "baseName": "fillQuantity", - "type": "string" - }, - { - "name": "fillTotalAmount", - "baseName": "fillTotalAmount", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - }, - { - "name": "orderType", - "baseName": "orderType", - "type": "string" - }, - { - "name": "side", - "baseName": "side", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginTradeDetailInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/marginTradeDetailInfoResult.ts b/bitget-node-sdk-open-api/model/marginTradeDetailInfoResult.ts deleted file mode 100644 index fa8bff76..00000000 --- a/bitget-node-sdk-open-api/model/marginTradeDetailInfoResult.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MarginTradeDetailInfo } from './marginTradeDetailInfo'; - -export class MarginTradeDetailInfoResult { - 'fills'?: Array; - 'maxId'?: string; - 'minId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "fills", - "baseName": "fills", - "type": "Array" - }, - { - "name": "maxId", - "baseName": "maxId", - "type": "string" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MarginTradeDetailInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantAdvInfo.ts b/bitget-node-sdk-open-api/model/merchantAdvInfo.ts deleted file mode 100644 index bbb38eb5..00000000 --- a/bitget-node-sdk-open-api/model/merchantAdvInfo.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { FiatPaymentInfo } from './fiatPaymentInfo'; -import { MerchantAdvUserLimitInfo } from './merchantAdvUserLimitInfo'; - -export class MerchantAdvInfo { - 'advId'?: string; - 'advNo'?: string; - 'amount'?: string; - 'coin'?: string; - 'coinPrecision'?: string; - 'ctime'?: string; - 'dealAmount'?: string; - 'fiatCode'?: string; - 'fiatPrecision'?: string; - 'fiatSymbol'?: string; - 'hide'?: string; - 'maxAmount'?: string; - 'minAmount'?: string; - 'payDuration'?: string; - 'paymentMethod'?: Array; - 'price'?: string; - 'remark'?: string; - 'status'?: string; - 'turnoverNum'?: string; - 'turnoverRate'?: string; - 'type'?: string; - 'userLimit'?: MerchantAdvUserLimitInfo; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "advId", - "baseName": "advId", - "type": "string" - }, - { - "name": "advNo", - "baseName": "advNo", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "coinPrecision", - "baseName": "coinPrecision", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "dealAmount", - "baseName": "dealAmount", - "type": "string" - }, - { - "name": "fiatCode", - "baseName": "fiatCode", - "type": "string" - }, - { - "name": "fiatPrecision", - "baseName": "fiatPrecision", - "type": "string" - }, - { - "name": "fiatSymbol", - "baseName": "fiatSymbol", - "type": "string" - }, - { - "name": "hide", - "baseName": "hide", - "type": "string" - }, - { - "name": "maxAmount", - "baseName": "maxAmount", - "type": "string" - }, - { - "name": "minAmount", - "baseName": "minAmount", - "type": "string" - }, - { - "name": "payDuration", - "baseName": "payDuration", - "type": "string" - }, - { - "name": "paymentMethod", - "baseName": "paymentMethod", - "type": "Array" - }, - { - "name": "price", - "baseName": "price", - "type": "string" - }, - { - "name": "remark", - "baseName": "remark", - "type": "string" - }, - { - "name": "status", - "baseName": "status", - "type": "string" - }, - { - "name": "turnoverNum", - "baseName": "turnoverNum", - "type": "string" - }, - { - "name": "turnoverRate", - "baseName": "turnoverRate", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "userLimit", - "baseName": "userLimit", - "type": "MerchantAdvUserLimitInfo" - } ]; - - static getAttributeTypeMap() { - return MerchantAdvInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantAdvResult.ts b/bitget-node-sdk-open-api/model/merchantAdvResult.ts deleted file mode 100644 index c1a0a945..00000000 --- a/bitget-node-sdk-open-api/model/merchantAdvResult.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantAdvInfo } from './merchantAdvInfo'; - -export class MerchantAdvResult { - 'advList'?: Array; - 'minId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "advList", - "baseName": "advList", - "type": "Array" - }, - { - "name": "minId", - "baseName": "minId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantAdvResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantAdvUserLimitInfo.ts b/bitget-node-sdk-open-api/model/merchantAdvUserLimitInfo.ts deleted file mode 100644 index 5739fae6..00000000 --- a/bitget-node-sdk-open-api/model/merchantAdvUserLimitInfo.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MerchantAdvUserLimitInfo { - 'allowMerchantPlace'?: string; - 'country'?: string; - 'maxCompleteNum'?: string; - 'minCompleteNum'?: string; - 'placeOrderNum'?: string; - 'thirtyCompleteRate'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "allowMerchantPlace", - "baseName": "allowMerchantPlace", - "type": "string" - }, - { - "name": "country", - "baseName": "country", - "type": "string" - }, - { - "name": "maxCompleteNum", - "baseName": "maxCompleteNum", - "type": "string" - }, - { - "name": "minCompleteNum", - "baseName": "minCompleteNum", - "type": "string" - }, - { - "name": "placeOrderNum", - "baseName": "placeOrderNum", - "type": "string" - }, - { - "name": "thirtyCompleteRate", - "baseName": "thirtyCompleteRate", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantAdvUserLimitInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantInfo.ts b/bitget-node-sdk-open-api/model/merchantInfo.ts deleted file mode 100644 index 2538f7eb..00000000 --- a/bitget-node-sdk-open-api/model/merchantInfo.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MerchantInfo { - 'averagePayment'?: string; - 'averageRealese'?: string; - 'isOnline'?: string; - 'merchantId'?: string; - 'nickName'?: string; - 'registerTime'?: string; - 'thirtyBuy'?: string; - 'thirtyCompletionRate'?: string; - 'thirtySell'?: string; - 'thirtyTrades'?: string; - 'totalBuy'?: string; - 'totalCompletionRate'?: string; - 'totalSell'?: string; - 'totalTrades'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "averagePayment", - "baseName": "averagePayment", - "type": "string" - }, - { - "name": "averageRealese", - "baseName": "averageRealese", - "type": "string" - }, - { - "name": "isOnline", - "baseName": "isOnline", - "type": "string" - }, - { - "name": "merchantId", - "baseName": "merchantId", - "type": "string" - }, - { - "name": "nickName", - "baseName": "nickName", - "type": "string" - }, - { - "name": "registerTime", - "baseName": "registerTime", - "type": "string" - }, - { - "name": "thirtyBuy", - "baseName": "thirtyBuy", - "type": "string" - }, - { - "name": "thirtyCompletionRate", - "baseName": "thirtyCompletionRate", - "type": "string" - }, - { - "name": "thirtySell", - "baseName": "thirtySell", - "type": "string" - }, - { - "name": "thirtyTrades", - "baseName": "thirtyTrades", - "type": "string" - }, - { - "name": "totalBuy", - "baseName": "totalBuy", - "type": "string" - }, - { - "name": "totalCompletionRate", - "baseName": "totalCompletionRate", - "type": "string" - }, - { - "name": "totalSell", - "baseName": "totalSell", - "type": "string" - }, - { - "name": "totalTrades", - "baseName": "totalTrades", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantInfoResult.ts b/bitget-node-sdk-open-api/model/merchantInfoResult.ts deleted file mode 100644 index c501534f..00000000 --- a/bitget-node-sdk-open-api/model/merchantInfoResult.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantInfo } from './merchantInfo'; - -export class MerchantInfoResult { - 'minId'?: string; - 'resultList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "resultList", - "baseName": "resultList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MerchantInfoResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantOrderInfo.ts b/bitget-node-sdk-open-api/model/merchantOrderInfo.ts deleted file mode 100644 index c99ccd31..00000000 --- a/bitget-node-sdk-open-api/model/merchantOrderInfo.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantOrderPaymentInfo } from './merchantOrderPaymentInfo'; - -export class MerchantOrderInfo { - 'advNo'?: string; - 'amount'?: string; - 'buyerRealName'?: string; - 'coin'?: string; - 'count'?: string; - 'ctime'?: string; - 'fiat'?: string; - 'orderId'?: string; - 'orderNo'?: string; - 'paymentInfo'?: MerchantOrderPaymentInfo; - 'paymentTime'?: string; - 'price'?: string; - 'releaseCoinTime'?: string; - 'representTime'?: string; - 'sellerRealName'?: string; - 'status'?: string; - 'type'?: string; - 'withdrawTime'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "advNo", - "baseName": "advNo", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "buyerRealName", - "baseName": "buyerRealName", - "type": "string" - }, - { - "name": "coin", - "baseName": "coin", - "type": "string" - }, - { - "name": "count", - "baseName": "count", - "type": "string" - }, - { - "name": "ctime", - "baseName": "ctime", - "type": "string" - }, - { - "name": "fiat", - "baseName": "fiat", - "type": "string" - }, - { - "name": "orderId", - "baseName": "orderId", - "type": "string" - }, - { - "name": "orderNo", - "baseName": "orderNo", - "type": "string" - }, - { - "name": "paymentInfo", - "baseName": "paymentInfo", - "type": "MerchantOrderPaymentInfo" - }, - { - "name": "paymentTime", - "baseName": "paymentTime", - "type": "string" - }, - { - "name": "price", - "baseName": "price", - "type": "string" - }, - { - "name": "releaseCoinTime", - "baseName": "releaseCoinTime", - "type": "string" - }, - { - "name": "representTime", - "baseName": "representTime", - "type": "string" - }, - { - "name": "sellerRealName", - "baseName": "sellerRealName", - "type": "string" - }, - { - "name": "status", - "baseName": "status", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "withdrawTime", - "baseName": "withdrawTime", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantOrderInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantOrderPaymentInfo.ts b/bitget-node-sdk-open-api/model/merchantOrderPaymentInfo.ts deleted file mode 100644 index 5015bdbe..00000000 --- a/bitget-node-sdk-open-api/model/merchantOrderPaymentInfo.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { OrderPaymentDetailInfo } from './orderPaymentDetailInfo'; - -export class MerchantOrderPaymentInfo { - 'paymethodId'?: string; - 'paymethodInfo'?: Array; - 'paymethodName'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "paymethodId", - "baseName": "paymethodId", - "type": "string" - }, - { - "name": "paymethodInfo", - "baseName": "paymethodInfo", - "type": "Array" - }, - { - "name": "paymethodName", - "baseName": "paymethodName", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantOrderPaymentInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantOrderResult.ts b/bitget-node-sdk-open-api/model/merchantOrderResult.ts deleted file mode 100644 index e1fb1225..00000000 --- a/bitget-node-sdk-open-api/model/merchantOrderResult.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; -import { MerchantOrderInfo } from './merchantOrderInfo'; - -export class MerchantOrderResult { - 'minId'?: string; - 'orderList'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "minId", - "baseName": "minId", - "type": "string" - }, - { - "name": "orderList", - "baseName": "orderList", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MerchantOrderResult.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/merchantPersonInfo.ts b/bitget-node-sdk-open-api/model/merchantPersonInfo.ts deleted file mode 100644 index 9914b6e6..00000000 --- a/bitget-node-sdk-open-api/model/merchantPersonInfo.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class MerchantPersonInfo { - 'averagePayment'?: string; - 'averageRealese'?: string; - 'email'?: string; - 'emailBindFlag'?: boolean; - 'kycFlag'?: boolean; - 'merchantId'?: string; - 'mobile'?: string; - 'mobileBindFlag'?: boolean; - 'nickName'?: string; - 'realName'?: string; - 'registerTime'?: string; - 'thirtyBuy'?: string; - 'thirtyCompletionRate'?: string; - 'thirtySell'?: string; - 'thirtyTrades'?: string; - 'totalBuy'?: string; - 'totalCompletionRate'?: string; - 'totalSell'?: string; - 'totalTrades'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "averagePayment", - "baseName": "averagePayment", - "type": "string" - }, - { - "name": "averageRealese", - "baseName": "averageRealese", - "type": "string" - }, - { - "name": "email", - "baseName": "email", - "type": "string" - }, - { - "name": "emailBindFlag", - "baseName": "emailBindFlag", - "type": "boolean" - }, - { - "name": "kycFlag", - "baseName": "kycFlag", - "type": "boolean" - }, - { - "name": "merchantId", - "baseName": "merchantId", - "type": "string" - }, - { - "name": "mobile", - "baseName": "mobile", - "type": "string" - }, - { - "name": "mobileBindFlag", - "baseName": "mobileBindFlag", - "type": "boolean" - }, - { - "name": "nickName", - "baseName": "nickName", - "type": "string" - }, - { - "name": "realName", - "baseName": "realName", - "type": "string" - }, - { - "name": "registerTime", - "baseName": "registerTime", - "type": "string" - }, - { - "name": "thirtyBuy", - "baseName": "thirtyBuy", - "type": "string" - }, - { - "name": "thirtyCompletionRate", - "baseName": "thirtyCompletionRate", - "type": "string" - }, - { - "name": "thirtySell", - "baseName": "thirtySell", - "type": "string" - }, - { - "name": "thirtyTrades", - "baseName": "thirtyTrades", - "type": "string" - }, - { - "name": "totalBuy", - "baseName": "totalBuy", - "type": "string" - }, - { - "name": "totalCompletionRate", - "baseName": "totalCompletionRate", - "type": "string" - }, - { - "name": "totalSell", - "baseName": "totalSell", - "type": "string" - }, - { - "name": "totalTrades", - "baseName": "totalTrades", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerchantPersonInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/models.ts b/bitget-node-sdk-open-api/model/models.ts deleted file mode 100644 index 0849d45c..00000000 --- a/bitget-node-sdk-open-api/model/models.ts +++ /dev/null @@ -1,563 +0,0 @@ -import localVarRequest from 'request'; - -export * from './apiResponseResultOfListOfMarginCrossAssetsPopulationResult'; -export * from './apiResponseResultOfListOfMarginCrossLevelResult'; -export * from './apiResponseResultOfListOfMarginCrossRateAndLimitResult'; -export * from './apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; -export * from './apiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; -export * from './apiResponseResultOfListOfMarginIsolatedLevelResult'; -export * from './apiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; -export * from './apiResponseResultOfListOfMarginSystemResult'; -export * from './apiResponseResultOfMarginBatchCancelOrderResult'; -export * from './apiResponseResultOfMarginBatchPlaceOrderResult'; -export * from './apiResponseResultOfMarginCrossAssetsResult'; -export * from './apiResponseResultOfMarginCrossAssetsRiskResult'; -export * from './apiResponseResultOfMarginCrossBorrowLimitResult'; -export * from './apiResponseResultOfMarginCrossFinFlowResult'; -export * from './apiResponseResultOfMarginCrossMaxBorrowResult'; -export * from './apiResponseResultOfMarginCrossRepayResult'; -export * from './apiResponseResultOfMarginInterestInfoResult'; -export * from './apiResponseResultOfMarginIsolatedAssetsResult'; -export * from './apiResponseResultOfMarginIsolatedBorrowLimitResult'; -export * from './apiResponseResultOfMarginIsolatedFinFlowResult'; -export * from './apiResponseResultOfMarginIsolatedInterestInfoResult'; -export * from './apiResponseResultOfMarginIsolatedLiquidationInfoResult'; -export * from './apiResponseResultOfMarginIsolatedLoanInfoResult'; -export * from './apiResponseResultOfMarginIsolatedMaxBorrowResult'; -export * from './apiResponseResultOfMarginIsolatedRepayInfoResult'; -export * from './apiResponseResultOfMarginIsolatedRepayResult'; -export * from './apiResponseResultOfMarginLiquidationInfoResult'; -export * from './apiResponseResultOfMarginLoanInfoResult'; -export * from './apiResponseResultOfMarginOpenOrderInfoResult'; -export * from './apiResponseResultOfMarginPlaceOrderResult'; -export * from './apiResponseResultOfMarginRepayInfoResult'; -export * from './apiResponseResultOfMarginTradeDetailInfoResult'; -export * from './apiResponseResultOfMerchantAdvResult'; -export * from './apiResponseResultOfMerchantInfoResult'; -export * from './apiResponseResultOfMerchantOrderResult'; -export * from './apiResponseResultOfMerchantPersonInfo'; -export * from './apiResponseResultOfVoid'; -export * from './fiatPaymentDetailInfo'; -export * from './fiatPaymentInfo'; -export * from './marginBatchCancelOrderRequest'; -export * from './marginBatchCancelOrderResult'; -export * from './marginBatchOrdersRequest'; -export * from './marginBatchPlaceOrderFailureResult'; -export * from './marginBatchPlaceOrderResult'; -export * from './marginCancelOrderFailureResult'; -export * from './marginCancelOrderRequest'; -export * from './marginCancelOrderResult'; -export * from './marginCrossAssetsPopulationResult'; -export * from './marginCrossAssetsResult'; -export * from './marginCrossAssetsRiskResult'; -export * from './marginCrossBorrowLimitResult'; -export * from './marginCrossFinFlowInfo'; -export * from './marginCrossFinFlowResult'; -export * from './marginCrossLevelResult'; -export * from './marginCrossLimitRequest'; -export * from './marginCrossMaxBorrowRequest'; -export * from './marginCrossMaxBorrowResult'; -export * from './marginCrossRateAndLimitResult'; -export * from './marginCrossRepayRequest'; -export * from './marginCrossRepayResult'; -export * from './marginCrossVipResult'; -export * from './marginInterestInfo'; -export * from './marginInterestInfoResult'; -export * from './marginIsolatedAssetsPopulationResult'; -export * from './marginIsolatedAssetsResult'; -export * from './marginIsolatedAssetsRiskRequest'; -export * from './marginIsolatedAssetsRiskResult'; -export * from './marginIsolatedBorrowLimitResult'; -export * from './marginIsolatedFinFlowInfo'; -export * from './marginIsolatedFinFlowResult'; -export * from './marginIsolatedInterestInfo'; -export * from './marginIsolatedInterestInfoResult'; -export * from './marginIsolatedLevelResult'; -export * from './marginIsolatedLimitRequest'; -export * from './marginIsolatedLiquidationInfo'; -export * from './marginIsolatedLiquidationInfoResult'; -export * from './marginIsolatedLoanInfo'; -export * from './marginIsolatedLoanInfoResult'; -export * from './marginIsolatedMaxBorrowRequest'; -export * from './marginIsolatedMaxBorrowResult'; -export * from './marginIsolatedRateAndLimitResult'; -export * from './marginIsolatedRepayInfo'; -export * from './marginIsolatedRepayInfoResult'; -export * from './marginIsolatedRepayRequest'; -export * from './marginIsolatedRepayResult'; -export * from './marginIsolatedVipResult'; -export * from './marginLiquidationInfo'; -export * from './marginLiquidationInfoResult'; -export * from './marginLoanInfo'; -export * from './marginLoanInfoResult'; -export * from './marginOpenOrderInfoResult'; -export * from './marginOrderInfo'; -export * from './marginOrderRequest'; -export * from './marginPlaceOrderResult'; -export * from './marginRepayInfo'; -export * from './marginRepayInfoResult'; -export * from './marginSystemResult'; -export * from './marginTradeDetailInfo'; -export * from './marginTradeDetailInfoResult'; -export * from './merchantAdvInfo'; -export * from './merchantAdvResult'; -export * from './merchantAdvUserLimitInfo'; -export * from './merchantInfo'; -export * from './merchantInfoResult'; -export * from './merchantOrderInfo'; -export * from './merchantOrderPaymentInfo'; -export * from './merchantOrderResult'; -export * from './merchantPersonInfo'; -export * from './orderPaymentDetailInfo'; - -import * as fs from 'fs'; - -export interface RequestDetailedFile { - value: Buffer; - options?: { - filename?: string; - contentType?: string; - } -} - -export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile; - - -import { ApiResponseResultOfListOfMarginCrossAssetsPopulationResult } from './apiResponseResultOfListOfMarginCrossAssetsPopulationResult'; -import { ApiResponseResultOfListOfMarginCrossLevelResult } from './apiResponseResultOfListOfMarginCrossLevelResult'; -import { ApiResponseResultOfListOfMarginCrossRateAndLimitResult } from './apiResponseResultOfListOfMarginCrossRateAndLimitResult'; -import { ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult } from './apiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; -import { ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult } from './apiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; -import { ApiResponseResultOfListOfMarginIsolatedLevelResult } from './apiResponseResultOfListOfMarginIsolatedLevelResult'; -import { ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult } from './apiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; -import { ApiResponseResultOfListOfMarginSystemResult } from './apiResponseResultOfListOfMarginSystemResult'; -import { ApiResponseResultOfMarginBatchCancelOrderResult } from './apiResponseResultOfMarginBatchCancelOrderResult'; -import { ApiResponseResultOfMarginBatchPlaceOrderResult } from './apiResponseResultOfMarginBatchPlaceOrderResult'; -import { ApiResponseResultOfMarginCrossAssetsResult } from './apiResponseResultOfMarginCrossAssetsResult'; -import { ApiResponseResultOfMarginCrossAssetsRiskResult } from './apiResponseResultOfMarginCrossAssetsRiskResult'; -import { ApiResponseResultOfMarginCrossBorrowLimitResult } from './apiResponseResultOfMarginCrossBorrowLimitResult'; -import { ApiResponseResultOfMarginCrossFinFlowResult } from './apiResponseResultOfMarginCrossFinFlowResult'; -import { ApiResponseResultOfMarginCrossMaxBorrowResult } from './apiResponseResultOfMarginCrossMaxBorrowResult'; -import { ApiResponseResultOfMarginCrossRepayResult } from './apiResponseResultOfMarginCrossRepayResult'; -import { ApiResponseResultOfMarginInterestInfoResult } from './apiResponseResultOfMarginInterestInfoResult'; -import { ApiResponseResultOfMarginIsolatedAssetsResult } from './apiResponseResultOfMarginIsolatedAssetsResult'; -import { ApiResponseResultOfMarginIsolatedBorrowLimitResult } from './apiResponseResultOfMarginIsolatedBorrowLimitResult'; -import { ApiResponseResultOfMarginIsolatedFinFlowResult } from './apiResponseResultOfMarginIsolatedFinFlowResult'; -import { ApiResponseResultOfMarginIsolatedInterestInfoResult } from './apiResponseResultOfMarginIsolatedInterestInfoResult'; -import { ApiResponseResultOfMarginIsolatedLiquidationInfoResult } from './apiResponseResultOfMarginIsolatedLiquidationInfoResult'; -import { ApiResponseResultOfMarginIsolatedLoanInfoResult } from './apiResponseResultOfMarginIsolatedLoanInfoResult'; -import { ApiResponseResultOfMarginIsolatedMaxBorrowResult } from './apiResponseResultOfMarginIsolatedMaxBorrowResult'; -import { ApiResponseResultOfMarginIsolatedRepayInfoResult } from './apiResponseResultOfMarginIsolatedRepayInfoResult'; -import { ApiResponseResultOfMarginIsolatedRepayResult } from './apiResponseResultOfMarginIsolatedRepayResult'; -import { ApiResponseResultOfMarginLiquidationInfoResult } from './apiResponseResultOfMarginLiquidationInfoResult'; -import { ApiResponseResultOfMarginLoanInfoResult } from './apiResponseResultOfMarginLoanInfoResult'; -import { ApiResponseResultOfMarginOpenOrderInfoResult } from './apiResponseResultOfMarginOpenOrderInfoResult'; -import { ApiResponseResultOfMarginPlaceOrderResult } from './apiResponseResultOfMarginPlaceOrderResult'; -import { ApiResponseResultOfMarginRepayInfoResult } from './apiResponseResultOfMarginRepayInfoResult'; -import { ApiResponseResultOfMarginTradeDetailInfoResult } from './apiResponseResultOfMarginTradeDetailInfoResult'; -import { ApiResponseResultOfMerchantAdvResult } from './apiResponseResultOfMerchantAdvResult'; -import { ApiResponseResultOfMerchantInfoResult } from './apiResponseResultOfMerchantInfoResult'; -import { ApiResponseResultOfMerchantOrderResult } from './apiResponseResultOfMerchantOrderResult'; -import { ApiResponseResultOfMerchantPersonInfo } from './apiResponseResultOfMerchantPersonInfo'; -import { ApiResponseResultOfVoid } from './apiResponseResultOfVoid'; -import { FiatPaymentDetailInfo } from './fiatPaymentDetailInfo'; -import { FiatPaymentInfo } from './fiatPaymentInfo'; -import { MarginBatchCancelOrderRequest } from './marginBatchCancelOrderRequest'; -import { MarginBatchCancelOrderResult } from './marginBatchCancelOrderResult'; -import { MarginBatchOrdersRequest } from './marginBatchOrdersRequest'; -import { MarginBatchPlaceOrderFailureResult } from './marginBatchPlaceOrderFailureResult'; -import { MarginBatchPlaceOrderResult } from './marginBatchPlaceOrderResult'; -import { MarginCancelOrderFailureResult } from './marginCancelOrderFailureResult'; -import { MarginCancelOrderRequest } from './marginCancelOrderRequest'; -import { MarginCancelOrderResult } from './marginCancelOrderResult'; -import { MarginCrossAssetsPopulationResult } from './marginCrossAssetsPopulationResult'; -import { MarginCrossAssetsResult } from './marginCrossAssetsResult'; -import { MarginCrossAssetsRiskResult } from './marginCrossAssetsRiskResult'; -import { MarginCrossBorrowLimitResult } from './marginCrossBorrowLimitResult'; -import { MarginCrossFinFlowInfo } from './marginCrossFinFlowInfo'; -import { MarginCrossFinFlowResult } from './marginCrossFinFlowResult'; -import { MarginCrossLevelResult } from './marginCrossLevelResult'; -import { MarginCrossLimitRequest } from './marginCrossLimitRequest'; -import { MarginCrossMaxBorrowRequest } from './marginCrossMaxBorrowRequest'; -import { MarginCrossMaxBorrowResult } from './marginCrossMaxBorrowResult'; -import { MarginCrossRateAndLimitResult } from './marginCrossRateAndLimitResult'; -import { MarginCrossRepayRequest } from './marginCrossRepayRequest'; -import { MarginCrossRepayResult } from './marginCrossRepayResult'; -import { MarginCrossVipResult } from './marginCrossVipResult'; -import { MarginInterestInfo } from './marginInterestInfo'; -import { MarginInterestInfoResult } from './marginInterestInfoResult'; -import { MarginIsolatedAssetsPopulationResult } from './marginIsolatedAssetsPopulationResult'; -import { MarginIsolatedAssetsResult } from './marginIsolatedAssetsResult'; -import { MarginIsolatedAssetsRiskRequest } from './marginIsolatedAssetsRiskRequest'; -import { MarginIsolatedAssetsRiskResult } from './marginIsolatedAssetsRiskResult'; -import { MarginIsolatedBorrowLimitResult } from './marginIsolatedBorrowLimitResult'; -import { MarginIsolatedFinFlowInfo } from './marginIsolatedFinFlowInfo'; -import { MarginIsolatedFinFlowResult } from './marginIsolatedFinFlowResult'; -import { MarginIsolatedInterestInfo } from './marginIsolatedInterestInfo'; -import { MarginIsolatedInterestInfoResult } from './marginIsolatedInterestInfoResult'; -import { MarginIsolatedLevelResult } from './marginIsolatedLevelResult'; -import { MarginIsolatedLimitRequest } from './marginIsolatedLimitRequest'; -import { MarginIsolatedLiquidationInfo } from './marginIsolatedLiquidationInfo'; -import { MarginIsolatedLiquidationInfoResult } from './marginIsolatedLiquidationInfoResult'; -import { MarginIsolatedLoanInfo } from './marginIsolatedLoanInfo'; -import { MarginIsolatedLoanInfoResult } from './marginIsolatedLoanInfoResult'; -import { MarginIsolatedMaxBorrowRequest } from './marginIsolatedMaxBorrowRequest'; -import { MarginIsolatedMaxBorrowResult } from './marginIsolatedMaxBorrowResult'; -import { MarginIsolatedRateAndLimitResult } from './marginIsolatedRateAndLimitResult'; -import { MarginIsolatedRepayInfo } from './marginIsolatedRepayInfo'; -import { MarginIsolatedRepayInfoResult } from './marginIsolatedRepayInfoResult'; -import { MarginIsolatedRepayRequest } from './marginIsolatedRepayRequest'; -import { MarginIsolatedRepayResult } from './marginIsolatedRepayResult'; -import { MarginIsolatedVipResult } from './marginIsolatedVipResult'; -import { MarginLiquidationInfo } from './marginLiquidationInfo'; -import { MarginLiquidationInfoResult } from './marginLiquidationInfoResult'; -import { MarginLoanInfo } from './marginLoanInfo'; -import { MarginLoanInfoResult } from './marginLoanInfoResult'; -import { MarginOpenOrderInfoResult } from './marginOpenOrderInfoResult'; -import { MarginOrderInfo } from './marginOrderInfo'; -import { MarginOrderRequest } from './marginOrderRequest'; -import { MarginPlaceOrderResult } from './marginPlaceOrderResult'; -import { MarginRepayInfo } from './marginRepayInfo'; -import { MarginRepayInfoResult } from './marginRepayInfoResult'; -import { MarginSystemResult } from './marginSystemResult'; -import { MarginTradeDetailInfo } from './marginTradeDetailInfo'; -import { MarginTradeDetailInfoResult } from './marginTradeDetailInfoResult'; -import { MerchantAdvInfo } from './merchantAdvInfo'; -import { MerchantAdvResult } from './merchantAdvResult'; -import { MerchantAdvUserLimitInfo } from './merchantAdvUserLimitInfo'; -import { MerchantInfo } from './merchantInfo'; -import { MerchantInfoResult } from './merchantInfoResult'; -import { MerchantOrderInfo } from './merchantOrderInfo'; -import { MerchantOrderPaymentInfo } from './merchantOrderPaymentInfo'; -import { MerchantOrderResult } from './merchantOrderResult'; -import { MerchantPersonInfo } from './merchantPersonInfo'; -import { OrderPaymentDetailInfo } from './orderPaymentDetailInfo'; -import {encrypt} from "./util"; -import * as querystring from "querystring"; -import * as url from "url"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: {[index: string]: any} = { -} - -let typeMap: {[index: string]: any} = { - "ApiResponseResultOfListOfMarginCrossAssetsPopulationResult": ApiResponseResultOfListOfMarginCrossAssetsPopulationResult, - "ApiResponseResultOfListOfMarginCrossLevelResult": ApiResponseResultOfListOfMarginCrossLevelResult, - "ApiResponseResultOfListOfMarginCrossRateAndLimitResult": ApiResponseResultOfListOfMarginCrossRateAndLimitResult, - "ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult": ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult, - "ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult": ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult, - "ApiResponseResultOfListOfMarginIsolatedLevelResult": ApiResponseResultOfListOfMarginIsolatedLevelResult, - "ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult": ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult, - "ApiResponseResultOfListOfMarginSystemResult": ApiResponseResultOfListOfMarginSystemResult, - "ApiResponseResultOfMarginBatchCancelOrderResult": ApiResponseResultOfMarginBatchCancelOrderResult, - "ApiResponseResultOfMarginBatchPlaceOrderResult": ApiResponseResultOfMarginBatchPlaceOrderResult, - "ApiResponseResultOfMarginCrossAssetsResult": ApiResponseResultOfMarginCrossAssetsResult, - "ApiResponseResultOfMarginCrossAssetsRiskResult": ApiResponseResultOfMarginCrossAssetsRiskResult, - "ApiResponseResultOfMarginCrossBorrowLimitResult": ApiResponseResultOfMarginCrossBorrowLimitResult, - "ApiResponseResultOfMarginCrossFinFlowResult": ApiResponseResultOfMarginCrossFinFlowResult, - "ApiResponseResultOfMarginCrossMaxBorrowResult": ApiResponseResultOfMarginCrossMaxBorrowResult, - "ApiResponseResultOfMarginCrossRepayResult": ApiResponseResultOfMarginCrossRepayResult, - "ApiResponseResultOfMarginInterestInfoResult": ApiResponseResultOfMarginInterestInfoResult, - "ApiResponseResultOfMarginIsolatedAssetsResult": ApiResponseResultOfMarginIsolatedAssetsResult, - "ApiResponseResultOfMarginIsolatedBorrowLimitResult": ApiResponseResultOfMarginIsolatedBorrowLimitResult, - "ApiResponseResultOfMarginIsolatedFinFlowResult": ApiResponseResultOfMarginIsolatedFinFlowResult, - "ApiResponseResultOfMarginIsolatedInterestInfoResult": ApiResponseResultOfMarginIsolatedInterestInfoResult, - "ApiResponseResultOfMarginIsolatedLiquidationInfoResult": ApiResponseResultOfMarginIsolatedLiquidationInfoResult, - "ApiResponseResultOfMarginIsolatedLoanInfoResult": ApiResponseResultOfMarginIsolatedLoanInfoResult, - "ApiResponseResultOfMarginIsolatedMaxBorrowResult": ApiResponseResultOfMarginIsolatedMaxBorrowResult, - "ApiResponseResultOfMarginIsolatedRepayInfoResult": ApiResponseResultOfMarginIsolatedRepayInfoResult, - "ApiResponseResultOfMarginIsolatedRepayResult": ApiResponseResultOfMarginIsolatedRepayResult, - "ApiResponseResultOfMarginLiquidationInfoResult": ApiResponseResultOfMarginLiquidationInfoResult, - "ApiResponseResultOfMarginLoanInfoResult": ApiResponseResultOfMarginLoanInfoResult, - "ApiResponseResultOfMarginOpenOrderInfoResult": ApiResponseResultOfMarginOpenOrderInfoResult, - "ApiResponseResultOfMarginPlaceOrderResult": ApiResponseResultOfMarginPlaceOrderResult, - "ApiResponseResultOfMarginRepayInfoResult": ApiResponseResultOfMarginRepayInfoResult, - "ApiResponseResultOfMarginTradeDetailInfoResult": ApiResponseResultOfMarginTradeDetailInfoResult, - "ApiResponseResultOfMerchantAdvResult": ApiResponseResultOfMerchantAdvResult, - "ApiResponseResultOfMerchantInfoResult": ApiResponseResultOfMerchantInfoResult, - "ApiResponseResultOfMerchantOrderResult": ApiResponseResultOfMerchantOrderResult, - "ApiResponseResultOfMerchantPersonInfo": ApiResponseResultOfMerchantPersonInfo, - "ApiResponseResultOfVoid": ApiResponseResultOfVoid, - "FiatPaymentDetailInfo": FiatPaymentDetailInfo, - "FiatPaymentInfo": FiatPaymentInfo, - "MarginBatchCancelOrderRequest": MarginBatchCancelOrderRequest, - "MarginBatchCancelOrderResult": MarginBatchCancelOrderResult, - "MarginBatchOrdersRequest": MarginBatchOrdersRequest, - "MarginBatchPlaceOrderFailureResult": MarginBatchPlaceOrderFailureResult, - "MarginBatchPlaceOrderResult": MarginBatchPlaceOrderResult, - "MarginCancelOrderFailureResult": MarginCancelOrderFailureResult, - "MarginCancelOrderRequest": MarginCancelOrderRequest, - "MarginCancelOrderResult": MarginCancelOrderResult, - "MarginCrossAssetsPopulationResult": MarginCrossAssetsPopulationResult, - "MarginCrossAssetsResult": MarginCrossAssetsResult, - "MarginCrossAssetsRiskResult": MarginCrossAssetsRiskResult, - "MarginCrossBorrowLimitResult": MarginCrossBorrowLimitResult, - "MarginCrossFinFlowInfo": MarginCrossFinFlowInfo, - "MarginCrossFinFlowResult": MarginCrossFinFlowResult, - "MarginCrossLevelResult": MarginCrossLevelResult, - "MarginCrossLimitRequest": MarginCrossLimitRequest, - "MarginCrossMaxBorrowRequest": MarginCrossMaxBorrowRequest, - "MarginCrossMaxBorrowResult": MarginCrossMaxBorrowResult, - "MarginCrossRateAndLimitResult": MarginCrossRateAndLimitResult, - "MarginCrossRepayRequest": MarginCrossRepayRequest, - "MarginCrossRepayResult": MarginCrossRepayResult, - "MarginCrossVipResult": MarginCrossVipResult, - "MarginInterestInfo": MarginInterestInfo, - "MarginInterestInfoResult": MarginInterestInfoResult, - "MarginIsolatedAssetsPopulationResult": MarginIsolatedAssetsPopulationResult, - "MarginIsolatedAssetsResult": MarginIsolatedAssetsResult, - "MarginIsolatedAssetsRiskRequest": MarginIsolatedAssetsRiskRequest, - "MarginIsolatedAssetsRiskResult": MarginIsolatedAssetsRiskResult, - "MarginIsolatedBorrowLimitResult": MarginIsolatedBorrowLimitResult, - "MarginIsolatedFinFlowInfo": MarginIsolatedFinFlowInfo, - "MarginIsolatedFinFlowResult": MarginIsolatedFinFlowResult, - "MarginIsolatedInterestInfo": MarginIsolatedInterestInfo, - "MarginIsolatedInterestInfoResult": MarginIsolatedInterestInfoResult, - "MarginIsolatedLevelResult": MarginIsolatedLevelResult, - "MarginIsolatedLimitRequest": MarginIsolatedLimitRequest, - "MarginIsolatedLiquidationInfo": MarginIsolatedLiquidationInfo, - "MarginIsolatedLiquidationInfoResult": MarginIsolatedLiquidationInfoResult, - "MarginIsolatedLoanInfo": MarginIsolatedLoanInfo, - "MarginIsolatedLoanInfoResult": MarginIsolatedLoanInfoResult, - "MarginIsolatedMaxBorrowRequest": MarginIsolatedMaxBorrowRequest, - "MarginIsolatedMaxBorrowResult": MarginIsolatedMaxBorrowResult, - "MarginIsolatedRateAndLimitResult": MarginIsolatedRateAndLimitResult, - "MarginIsolatedRepayInfo": MarginIsolatedRepayInfo, - "MarginIsolatedRepayInfoResult": MarginIsolatedRepayInfoResult, - "MarginIsolatedRepayRequest": MarginIsolatedRepayRequest, - "MarginIsolatedRepayResult": MarginIsolatedRepayResult, - "MarginIsolatedVipResult": MarginIsolatedVipResult, - "MarginLiquidationInfo": MarginLiquidationInfo, - "MarginLiquidationInfoResult": MarginLiquidationInfoResult, - "MarginLoanInfo": MarginLoanInfo, - "MarginLoanInfoResult": MarginLoanInfoResult, - "MarginOpenOrderInfoResult": MarginOpenOrderInfoResult, - "MarginOrderInfo": MarginOrderInfo, - "MarginOrderRequest": MarginOrderRequest, - "MarginPlaceOrderResult": MarginPlaceOrderResult, - "MarginRepayInfo": MarginRepayInfo, - "MarginRepayInfoResult": MarginRepayInfoResult, - "MarginSystemResult": MarginSystemResult, - "MarginTradeDetailInfo": MarginTradeDetailInfo, - "MarginTradeDetailInfoResult": MarginTradeDetailInfoResult, - "MerchantAdvInfo": MerchantAdvInfo, - "MerchantAdvResult": MerchantAdvResult, - "MerchantAdvUserLimitInfo": MerchantAdvUserLimitInfo, - "MerchantInfo": MerchantInfo, - "MerchantInfoResult": MerchantInfoResult, - "MerchantOrderInfo": MerchantOrderInfo, - "MerchantOrderPaymentInfo": MerchantOrderPaymentInfo, - "MerchantOrderResult": MerchantOrderResult, - "MerchantPersonInfo": MerchantPersonInfo, - "OrderPaymentDetailInfo": OrderPaymentDetailInfo, -} - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap[expectedType]) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - if(typeMap[discriminatorType]){ - return discriminatorType; // use the type given in the discriminator - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - public static serialize(data: any, type: string) { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 - let subType: string = type.replace("Array<", ""); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - let transformedData: any[] = []; - for (let index = 0; index < data.length; index++) { - let datum = data[index]; - transformedData.push(ObjectSerializer.serialize(datum, subType)); - } - return transformedData; - } else if (type === "Date") { - return data.toISOString(); - } else { - if (enumsMap[type]) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let index = 0; index < attributeTypes.length; index++) { - let attributeType = attributeTypes[index]; - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); - } - return instance; - } - } - - public static deserialize(data: any, type: string) { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 - let subType: string = type.replace("Array<", ""); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - let transformedData: any[] = []; - for (let index = 0; index < data.length; index++) { - let datum = data[index]; - transformedData.push(ObjectSerializer.deserialize(datum, subType)); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap[type]) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let index = 0; index < attributeTypes.length; index++) { - let attributeType = attributeTypes[index]; - instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); - } - return instance; - } - } -} - -export interface Authentication { - /** - * Apply authentication settings to header and query params. - */ - applyToRequest(requestOptions: localVarRequest.Options): Promise | void; -} - -export class HttpBasicAuth implements Authentication { - public username: string = ''; - public password: string = ''; - - applyToRequest(requestOptions: localVarRequest.Options): void { - requestOptions.auth = { - username: this.username, password: this.password - } - } -} - -export class HttpBearerAuth implements Authentication { - public accessToken: string | (() => string) = ''; - - applyToRequest(requestOptions: localVarRequest.Options): void { - if (requestOptions && requestOptions.headers) { - const accessToken = typeof this.accessToken === 'function' - ? this.accessToken() - : this.accessToken; - requestOptions.headers["Authorization"] = "Bearer " + accessToken; - } - } -} - -export class ApiKeyAuth implements Authentication { - public apiKey: string = ''; - - constructor(private location: string, private paramName: string) { - } - - applyToRequest(requestOptions: localVarRequest.Options): void { - if (this.location == "query") { - (requestOptions.qs)[this.paramName] = this.apiKey; - } else if (this.location == "header" && requestOptions && requestOptions.headers) { - requestOptions.headers[this.paramName] = this.apiKey; - } else if (this.location == 'cookie' && requestOptions && requestOptions.headers) { - if (requestOptions.headers['Cookie']) { - requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey); - } - else { - requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey); - } - } - - // auto sign - if (this.paramName == "SECRET-KEY" && requestOptions.headers) { - const timestamp = Date.now(); - const uri = JSON.parse(JSON.stringify(requestOptions))['uri'] - let query = ""; - if (requestOptions.qs) { - query = querystring.stringify(requestOptions.qs); - } - let sign = encrypt(String(requestOptions.method), url.parse(uri).path, query, requestOptions.body, timestamp, this.apiKey) - requestOptions.headers['ACCESS-SIGN'] = sign; - requestOptions.headers['ACCESS-TIMESTAMP'] = timestamp; - requestOptions.headers['SECRET-KEY'] = ''; - } - } -} - -export class OAuth implements Authentication { - public accessToken: string = ''; - - applyToRequest(requestOptions: localVarRequest.Options): void { - if (requestOptions && requestOptions.headers) { - requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; - } - } -} - -export class VoidAuth implements Authentication { - public username: string = ''; - public password: string = ''; - - applyToRequest(_: localVarRequest.Options): void { - // Do nothing - } -} - -export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise | void); diff --git a/bitget-node-sdk-open-api/model/orderPaymentDetailInfo.ts b/bitget-node-sdk-open-api/model/orderPaymentDetailInfo.ts deleted file mode 100644 index 7a659f4b..00000000 --- a/bitget-node-sdk-open-api/model/orderPaymentDetailInfo.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Bitget Open API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -export class OrderPaymentDetailInfo { - 'name'?: string; - 'required'?: boolean; - 'type'?: string; - 'value'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "name", - "baseName": "name", - "type": "string" - }, - { - "name": "required", - "baseName": "required", - "type": "boolean" - }, - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return OrderPaymentDetailInfo.attributeTypeMap; - } -} - diff --git a/bitget-node-sdk-open-api/model/util.ts b/bitget-node-sdk-open-api/model/util.ts deleted file mode 100644 index 7860f35b..00000000 --- a/bitget-node-sdk-open-api/model/util.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {createHmac} from 'crypto' - -export function encrypt(httpMethod: string, path: string | null, query: string | null, body: NodeJS.Dict | null, timestamp: number, secretKey: string) { - httpMethod = httpMethod.toUpperCase() - let preHash = String(timestamp) + httpMethod + path; - if (query != "") { - preHash = preHash + '?' + query; - } - if (body) { - preHash += JSON.stringify(body, null); - } - - const mac = createHmac('sha256', secretKey) - const preHashToMacBuffer = mac.update(preHash).digest() - return preHashToMacBuffer.toString('base64') -} diff --git a/bitget-node-sdk-open-api/package.json b/bitget-node-sdk-open-api/package.json deleted file mode 100644 index 7d0a46e1..00000000 --- a/bitget-node-sdk-open-api/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "bitget", - "version": "1.0.0", - "description": "NodeJS client for bitget", - "repository": { - "type": "git", - "url": "https://github.com/bitget/openapi.git" - }, - "main": "dist/api.js", - "types": "dist/api.d.ts", - "scripts": { - "clean": "rm -Rf node_modules/ *.js", - "build": "tsc", - "test": "jest" - }, - "author": "OpenAPI-Generator Contributors", - "license": "Unlicense", - "dependencies": { - "bluebird": "^3.5.0", - "request": "^2.81.0", - "rewire": "^3.0.2", - "@jest/globals": "^29.4.2", - "@types/node": "^18.13.0", - "http": "^0.0.1-security", - "typescript": "^3.9.7", - "jest": "^26.1.0", - "ts-jest": "^26.1.3" - }, - "devDependencies": { - "@types/bluebird": "^3.5.33", - "@types/node": "^12", - "@types/request": "^2.48.8", - "typescript": "^4.0" - }, - "publishConfig": { - "registry": "https://github.com/bitget/openapi.git" - } -} diff --git a/bitget-node-sdk-open-api/tsconfig.json b/bitget-node-sdk-open-api/tsconfig.json deleted file mode 100644 index 82a8b637..00000000 --- a/bitget-node-sdk-open-api/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "noImplicitAny": false, - "suppressImplicitAnyIndexErrors": true, - "target": "ES6", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "strict": true, - "moduleResolution": "node", - "removeComments": true, - "sourceMap": true, - "noLib": false, - "declaration": true, - "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"], - "outDir": "dist", - "typeRoots": [ - "node_modules/@types" - ] - }, - "exclude": [ - "dist", - "node_modules" - ] -} diff --git a/bitget-php-sdk-open-api/README.md b/bitget-php-sdk-open-api/README.md deleted file mode 100644 index 76084cfa..00000000 --- a/bitget-php-sdk-open-api/README.md +++ /dev/null @@ -1,377 +0,0 @@ -# OpenAPIClient-php - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - -## Installation & Usage - -### Requirements - -PHP 7.4 and later. -Should also work with PHP 8.0. - -### Composer - -To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" - } - ], - "require": { - "GIT_USER_ID/GIT_REPO_ID": "*@dev" - } -} -``` - -Then run `composer install` - -### Manual Installation - -Download the files and include `autoload.php`: - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$coin = USDT; // string | coin - -try { - $result = $apiInstance->marginCrossAccountAssets($coin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountAssets: ', $e->getMessage(), PHP_EOL; -} - -``` - -```php -setHost('https://api.bitget.com'); -$config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-KEY', 'your value'); -$config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'your value'); -$config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'your value'); - -$apiInstance = new \Bitget\Api\MixOrderApi( -// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. -// This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $config -); - -try { - $placeOrderReq = new \Bitget\Model\MixPlaceOrderRequest(); // - $placeOrderReq->setSymsbol("BTCUSDT_UMCBL"); - $placeOrderReq->setMarginCoin("USDT"); - $placeOrderReq->setSide("open_long"); - $placeOrderReq->setSize("2"); - $placeOrderReq->setTimeInForceValue("normal"); - $placeOrderReq->setOrderType("market"); - - $result = $apiInstance->placeOrder($placeOrderReq); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MixOrderApi->placeOrder: ', $e->getMessage(), PHP_EOL; -} - -try { - $result = $apiInstance->marginCoinCurrent("umcbl", "USDT"); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MixOrderApi->marginCoinCurrent: ', $e->getMessage(), PHP_EOL; -} - -try { - $result = $apiInstance->historyProductType("1673517445000", - "umcbl", - "1671493129000", - null, null, "5"); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MixOrderApi->historyProductType: ', $e->getMessage(), PHP_EOL; -} - -``` - -## API Endpoints - -All URIs are relative to *https://api.bitget.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*MarginCrossAccountApi* | [**marginCrossAccountAssets**](docs/Api/MarginCrossAccountApi.md#margincrossaccountassets) | **GET** /api/margin/v1/cross/account/assets | assets -*MarginCrossAccountApi* | [**marginCrossAccountBorrow**](docs/Api/MarginCrossAccountApi.md#margincrossaccountborrow) | **POST** /api/margin/v1/cross/account/borrow | borrow -*MarginCrossAccountApi* | [**marginCrossAccountMaxBorrowableAmount**](docs/Api/MarginCrossAccountApi.md#margincrossaccountmaxborrowableamount) | **POST** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -*MarginCrossAccountApi* | [**marginCrossAccountMaxTransferOutAmount**](docs/Api/MarginCrossAccountApi.md#margincrossaccountmaxtransferoutamount) | **GET** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -*MarginCrossAccountApi* | [**marginCrossAccountRepay**](docs/Api/MarginCrossAccountApi.md#margincrossaccountrepay) | **POST** /api/margin/v1/cross/account/repay | repay -*MarginCrossAccountApi* | [**marginCrossAccountRiskRate**](docs/Api/MarginCrossAccountApi.md#margincrossaccountriskrate) | **GET** /api/margin/v1/cross/account/riskRate | riskRate -*MarginCrossAccountApi* | [**void**](docs/Api/MarginCrossAccountApi.md#void) | **GET** /api/margin/v1/cross/account/void | void -*MarginCrossBorrowApi* | [**crossLoanList**](docs/Api/MarginCrossBorrowApi.md#crossloanlist) | **GET** /api/margin/v1/cross/loan/list | list -*MarginCrossFinflowApi* | [**crossFinList**](docs/Api/MarginCrossFinflowApi.md#crossfinlist) | **GET** /api/margin/v1/cross/fin/list | list -*MarginCrossInterestApi* | [**crossInterestList**](docs/Api/MarginCrossInterestApi.md#crossinterestlist) | **GET** /api/margin/v1/cross/interest/list | list -*MarginCrossLiquidationApi* | [**crossLiquidationList**](docs/Api/MarginCrossLiquidationApi.md#crossliquidationlist) | **GET** /api/margin/v1/cross/liquidation/list | list -*MarginCrossOrderApi* | [**marginCrossBatchCancelOrder**](docs/Api/MarginCrossOrderApi.md#margincrossbatchcancelorder) | **POST** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -*MarginCrossOrderApi* | [**marginCrossBatchPlaceOrder**](docs/Api/MarginCrossOrderApi.md#margincrossbatchplaceorder) | **POST** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -*MarginCrossOrderApi* | [**marginCrossCancelOrder**](docs/Api/MarginCrossOrderApi.md#margincrosscancelorder) | **POST** /api/margin/v1/cross/order/cancelOrder | cancelOrder -*MarginCrossOrderApi* | [**marginCrossFills**](docs/Api/MarginCrossOrderApi.md#margincrossfills) | **GET** /api/margin/v1/cross/order/fills | fills -*MarginCrossOrderApi* | [**marginCrossHistoryOrders**](docs/Api/MarginCrossOrderApi.md#margincrosshistoryorders) | **GET** /api/margin/v1/cross/order/history | history -*MarginCrossOrderApi* | [**marginCrossOpenOrders**](docs/Api/MarginCrossOrderApi.md#margincrossopenorders) | **GET** /api/margin/v1/cross/order/openOrders | openOrders -*MarginCrossOrderApi* | [**marginCrossPlaceOrder**](docs/Api/MarginCrossOrderApi.md#margincrossplaceorder) | **POST** /api/margin/v1/cross/order/placeOrder | placeOrder -*MarginCrossPublicApi* | [**marginCrossPublicInterestRateAndLimit**](docs/Api/MarginCrossPublicApi.md#margincrosspublicinterestrateandlimit) | **GET** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -*MarginCrossPublicApi* | [**marginCrossPublicTierData**](docs/Api/MarginCrossPublicApi.md#margincrosspublictierdata) | **GET** /api/margin/v1/cross/public/tierData | tierData -*MarginCrossRepayApi* | [**crossRepayList**](docs/Api/MarginCrossRepayApi.md#crossrepaylist) | **GET** /api/margin/v1/cross/repay/list | list -*MarginIsolatedAccountApi* | [**marginIsolatedAccountAssets**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountassets) | **GET** /api/margin/v1/isolated/account/assets | assets -*MarginIsolatedAccountApi* | [**marginIsolatedAccountBorrow**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountborrow) | **POST** /api/margin/v1/isolated/account/borrow | borrow -*MarginIsolatedAccountApi* | [**marginIsolatedAccountMaxBorrowableAmount**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountmaxborrowableamount) | **POST** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -*MarginIsolatedAccountApi* | [**marginIsolatedAccountMaxTransferOutAmount**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountmaxtransferoutamount) | **GET** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -*MarginIsolatedAccountApi* | [**marginIsolatedAccountRepay**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountrepay) | **POST** /api/margin/v1/isolated/account/repay | repay -*MarginIsolatedAccountApi* | [**marginIsolatedAccountRiskRate**](docs/Api/MarginIsolatedAccountApi.md#marginisolatedaccountriskrate) | **POST** /api/margin/v1/isolated/account/riskRate | riskRate -*MarginIsolatedBorrowApi* | [**isolatedLoanList**](docs/Api/MarginIsolatedBorrowApi.md#isolatedloanlist) | **GET** /api/margin/v1/isolated/loan/list | list -*MarginIsolatedFinflowApi* | [**isolatedFinList**](docs/Api/MarginIsolatedFinflowApi.md#isolatedfinlist) | **GET** /api/margin/v1/isolated/fin/list | list -*MarginIsolatedInterestApi* | [**isolatedInterestList**](docs/Api/MarginIsolatedInterestApi.md#isolatedinterestlist) | **GET** /api/margin/v1/isolated/interest/list | list -*MarginIsolatedLiquidationApi* | [**isolatedLiquidationList**](docs/Api/MarginIsolatedLiquidationApi.md#isolatedliquidationlist) | **GET** /api/margin/v1/isolated/liquidation/list | list -*MarginIsolatedOrderApi* | [**marginIsolatedBatchCancelOrder**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedbatchcancelorder) | **POST** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -*MarginIsolatedOrderApi* | [**marginIsolatedBatchPlaceOrder**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedbatchplaceorder) | **POST** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -*MarginIsolatedOrderApi* | [**marginIsolatedCancelOrder**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedcancelorder) | **POST** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -*MarginIsolatedOrderApi* | [**marginIsolatedFills**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedfills) | **GET** /api/margin/v1/isolated/order/fills | fills -*MarginIsolatedOrderApi* | [**marginIsolatedHistoryOrders**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedhistoryorders) | **GET** /api/margin/v1/isolated/order/history | history -*MarginIsolatedOrderApi* | [**marginIsolatedOpenOrders**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedopenorders) | **GET** /api/margin/v1/isolated/order/openOrders | openOrders -*MarginIsolatedOrderApi* | [**marginIsolatedPlaceOrder**](docs/Api/MarginIsolatedOrderApi.md#marginisolatedplaceorder) | **POST** /api/margin/v1/isolated/order/placeOrder | placeOrder -*MarginIsolatedPublicApi* | [**marginIsolatedPublicInterestRateAndLimit**](docs/Api/MarginIsolatedPublicApi.md#marginisolatedpublicinterestrateandlimit) | **GET** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -*MarginIsolatedPublicApi* | [**marginIsolatedPublicTierData**](docs/Api/MarginIsolatedPublicApi.md#marginisolatedpublictierdata) | **GET** /api/margin/v1/isolated/public/tierData | tierData -*MarginIsolatedRepayApi* | [**isolateRepayList**](docs/Api/MarginIsolatedRepayApi.md#isolaterepaylist) | **GET** /api/margin/v1/isolated/repay/list | list -*MarginPublicApi* | [**marginPublicCurrencies**](docs/Api/MarginPublicApi.md#marginpubliccurrencies) | **GET** /api/margin/v1/public/currencies | currencies -*P2pMerchantApi* | [**merchantAdvList**](docs/Api/P2pMerchantApi.md#merchantadvlist) | **GET** /api/p2p/v1/merchant/advList | advList -*P2pMerchantApi* | [**merchantInfo**](docs/Api/P2pMerchantApi.md#merchantinfo) | **GET** /api/p2p/v1/merchant/merchantInfo | merchantInfo -*P2pMerchantApi* | [**merchantList**](docs/Api/P2pMerchantApi.md#merchantlist) | **GET** /api/p2p/v1/merchant/merchantList | merchantList -*P2pMerchantApi* | [**merchantOrderList**](docs/Api/P2pMerchantApi.md#merchantorderlist) | **GET** /api/p2p/v1/merchant/orderList | orderList - -## Models - -- [ApiResponseResultOfListOfMarginCrossAssetsPopulationResult](docs/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) -- [ApiResponseResultOfListOfMarginCrossLevelResult](docs/Model/ApiResponseResultOfListOfMarginCrossLevelResult.md) -- [ApiResponseResultOfListOfMarginCrossRateAndLimitResult](docs/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) -- [ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult](docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) -- [ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult](docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) -- [ApiResponseResultOfListOfMarginIsolatedLevelResult](docs/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) -- [ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult](docs/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) -- [ApiResponseResultOfListOfMarginSystemResult](docs/Model/ApiResponseResultOfListOfMarginSystemResult.md) -- [ApiResponseResultOfMarginBatchCancelOrderResult](docs/Model/ApiResponseResultOfMarginBatchCancelOrderResult.md) -- [ApiResponseResultOfMarginBatchPlaceOrderResult](docs/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md) -- [ApiResponseResultOfMarginCrossAssetsResult](docs/Model/ApiResponseResultOfMarginCrossAssetsResult.md) -- [ApiResponseResultOfMarginCrossAssetsRiskResult](docs/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md) -- [ApiResponseResultOfMarginCrossBorrowLimitResult](docs/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md) -- [ApiResponseResultOfMarginCrossFinFlowResult](docs/Model/ApiResponseResultOfMarginCrossFinFlowResult.md) -- [ApiResponseResultOfMarginCrossMaxBorrowResult](docs/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md) -- [ApiResponseResultOfMarginCrossRepayResult](docs/Model/ApiResponseResultOfMarginCrossRepayResult.md) -- [ApiResponseResultOfMarginInterestInfoResult](docs/Model/ApiResponseResultOfMarginInterestInfoResult.md) -- [ApiResponseResultOfMarginIsolatedAssetsResult](docs/Model/ApiResponseResultOfMarginIsolatedAssetsResult.md) -- [ApiResponseResultOfMarginIsolatedBorrowLimitResult](docs/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) -- [ApiResponseResultOfMarginIsolatedFinFlowResult](docs/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md) -- [ApiResponseResultOfMarginIsolatedInterestInfoResult](docs/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) -- [ApiResponseResultOfMarginIsolatedLiquidationInfoResult](docs/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) -- [ApiResponseResultOfMarginIsolatedLoanInfoResult](docs/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) -- [ApiResponseResultOfMarginIsolatedMaxBorrowResult](docs/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) -- [ApiResponseResultOfMarginIsolatedRepayInfoResult](docs/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) -- [ApiResponseResultOfMarginIsolatedRepayResult](docs/Model/ApiResponseResultOfMarginIsolatedRepayResult.md) -- [ApiResponseResultOfMarginLiquidationInfoResult](docs/Model/ApiResponseResultOfMarginLiquidationInfoResult.md) -- [ApiResponseResultOfMarginLoanInfoResult](docs/Model/ApiResponseResultOfMarginLoanInfoResult.md) -- [ApiResponseResultOfMarginOpenOrderInfoResult](docs/Model/ApiResponseResultOfMarginOpenOrderInfoResult.md) -- [ApiResponseResultOfMarginPlaceOrderResult](docs/Model/ApiResponseResultOfMarginPlaceOrderResult.md) -- [ApiResponseResultOfMarginRepayInfoResult](docs/Model/ApiResponseResultOfMarginRepayInfoResult.md) -- [ApiResponseResultOfMarginTradeDetailInfoResult](docs/Model/ApiResponseResultOfMarginTradeDetailInfoResult.md) -- [ApiResponseResultOfMerchantAdvResult](docs/Model/ApiResponseResultOfMerchantAdvResult.md) -- [ApiResponseResultOfMerchantInfoResult](docs/Model/ApiResponseResultOfMerchantInfoResult.md) -- [ApiResponseResultOfMerchantOrderResult](docs/Model/ApiResponseResultOfMerchantOrderResult.md) -- [ApiResponseResultOfMerchantPersonInfo](docs/Model/ApiResponseResultOfMerchantPersonInfo.md) -- [ApiResponseResultOfVoid](docs/Model/ApiResponseResultOfVoid.md) -- [FiatPaymentDetailInfo](docs/Model/FiatPaymentDetailInfo.md) -- [FiatPaymentInfo](docs/Model/FiatPaymentInfo.md) -- [MarginBatchCancelOrderRequest](docs/Model/MarginBatchCancelOrderRequest.md) -- [MarginBatchCancelOrderResult](docs/Model/MarginBatchCancelOrderResult.md) -- [MarginBatchOrdersRequest](docs/Model/MarginBatchOrdersRequest.md) -- [MarginBatchPlaceOrderFailureResult](docs/Model/MarginBatchPlaceOrderFailureResult.md) -- [MarginBatchPlaceOrderResult](docs/Model/MarginBatchPlaceOrderResult.md) -- [MarginCancelOrderFailureResult](docs/Model/MarginCancelOrderFailureResult.md) -- [MarginCancelOrderRequest](docs/Model/MarginCancelOrderRequest.md) -- [MarginCancelOrderResult](docs/Model/MarginCancelOrderResult.md) -- [MarginCrossAssetsPopulationResult](docs/Model/MarginCrossAssetsPopulationResult.md) -- [MarginCrossAssetsResult](docs/Model/MarginCrossAssetsResult.md) -- [MarginCrossAssetsRiskResult](docs/Model/MarginCrossAssetsRiskResult.md) -- [MarginCrossBorrowLimitResult](docs/Model/MarginCrossBorrowLimitResult.md) -- [MarginCrossFinFlowInfo](docs/Model/MarginCrossFinFlowInfo.md) -- [MarginCrossFinFlowResult](docs/Model/MarginCrossFinFlowResult.md) -- [MarginCrossLevelResult](docs/Model/MarginCrossLevelResult.md) -- [MarginCrossLimitRequest](docs/Model/MarginCrossLimitRequest.md) -- [MarginCrossMaxBorrowRequest](docs/Model/MarginCrossMaxBorrowRequest.md) -- [MarginCrossMaxBorrowResult](docs/Model/MarginCrossMaxBorrowResult.md) -- [MarginCrossRateAndLimitResult](docs/Model/MarginCrossRateAndLimitResult.md) -- [MarginCrossRepayRequest](docs/Model/MarginCrossRepayRequest.md) -- [MarginCrossRepayResult](docs/Model/MarginCrossRepayResult.md) -- [MarginCrossVipResult](docs/Model/MarginCrossVipResult.md) -- [MarginInterestInfo](docs/Model/MarginInterestInfo.md) -- [MarginInterestInfoResult](docs/Model/MarginInterestInfoResult.md) -- [MarginIsolatedAssetsPopulationResult](docs/Model/MarginIsolatedAssetsPopulationResult.md) -- [MarginIsolatedAssetsResult](docs/Model/MarginIsolatedAssetsResult.md) -- [MarginIsolatedAssetsRiskRequest](docs/Model/MarginIsolatedAssetsRiskRequest.md) -- [MarginIsolatedAssetsRiskResult](docs/Model/MarginIsolatedAssetsRiskResult.md) -- [MarginIsolatedBorrowLimitResult](docs/Model/MarginIsolatedBorrowLimitResult.md) -- [MarginIsolatedFinFlowInfo](docs/Model/MarginIsolatedFinFlowInfo.md) -- [MarginIsolatedFinFlowResult](docs/Model/MarginIsolatedFinFlowResult.md) -- [MarginIsolatedInterestInfo](docs/Model/MarginIsolatedInterestInfo.md) -- [MarginIsolatedInterestInfoResult](docs/Model/MarginIsolatedInterestInfoResult.md) -- [MarginIsolatedLevelResult](docs/Model/MarginIsolatedLevelResult.md) -- [MarginIsolatedLimitRequest](docs/Model/MarginIsolatedLimitRequest.md) -- [MarginIsolatedLiquidationInfo](docs/Model/MarginIsolatedLiquidationInfo.md) -- [MarginIsolatedLiquidationInfoResult](docs/Model/MarginIsolatedLiquidationInfoResult.md) -- [MarginIsolatedLoanInfo](docs/Model/MarginIsolatedLoanInfo.md) -- [MarginIsolatedLoanInfoResult](docs/Model/MarginIsolatedLoanInfoResult.md) -- [MarginIsolatedMaxBorrowRequest](docs/Model/MarginIsolatedMaxBorrowRequest.md) -- [MarginIsolatedMaxBorrowResult](docs/Model/MarginIsolatedMaxBorrowResult.md) -- [MarginIsolatedRateAndLimitResult](docs/Model/MarginIsolatedRateAndLimitResult.md) -- [MarginIsolatedRepayInfo](docs/Model/MarginIsolatedRepayInfo.md) -- [MarginIsolatedRepayInfoResult](docs/Model/MarginIsolatedRepayInfoResult.md) -- [MarginIsolatedRepayRequest](docs/Model/MarginIsolatedRepayRequest.md) -- [MarginIsolatedRepayResult](docs/Model/MarginIsolatedRepayResult.md) -- [MarginIsolatedVipResult](docs/Model/MarginIsolatedVipResult.md) -- [MarginLiquidationInfo](docs/Model/MarginLiquidationInfo.md) -- [MarginLiquidationInfoResult](docs/Model/MarginLiquidationInfoResult.md) -- [MarginLoanInfo](docs/Model/MarginLoanInfo.md) -- [MarginLoanInfoResult](docs/Model/MarginLoanInfoResult.md) -- [MarginOpenOrderInfoResult](docs/Model/MarginOpenOrderInfoResult.md) -- [MarginOrderInfo](docs/Model/MarginOrderInfo.md) -- [MarginOrderRequest](docs/Model/MarginOrderRequest.md) -- [MarginPlaceOrderResult](docs/Model/MarginPlaceOrderResult.md) -- [MarginRepayInfo](docs/Model/MarginRepayInfo.md) -- [MarginRepayInfoResult](docs/Model/MarginRepayInfoResult.md) -- [MarginSystemResult](docs/Model/MarginSystemResult.md) -- [MarginTradeDetailInfo](docs/Model/MarginTradeDetailInfo.md) -- [MarginTradeDetailInfoResult](docs/Model/MarginTradeDetailInfoResult.md) -- [MerchantAdvInfo](docs/Model/MerchantAdvInfo.md) -- [MerchantAdvResult](docs/Model/MerchantAdvResult.md) -- [MerchantAdvUserLimitInfo](docs/Model/MerchantAdvUserLimitInfo.md) -- [MerchantInfo](docs/Model/MerchantInfo.md) -- [MerchantInfoResult](docs/Model/MerchantInfoResult.md) -- [MerchantOrderInfo](docs/Model/MerchantOrderInfo.md) -- [MerchantOrderPaymentInfo](docs/Model/MerchantOrderPaymentInfo.md) -- [MerchantOrderResult](docs/Model/MerchantOrderResult.md) -- [MerchantPersonInfo](docs/Model/MerchantPersonInfo.md) -- [OrderPaymentDetailInfo](docs/Model/OrderPaymentDetailInfo.md) - -## Authorization - -### ACCESS_KEY - -- **Type**: API key -- **API key parameter name**: ACCESS-KEY -- **Location**: HTTP header - - - -### ACCESS_PASSPHRASE - -- **Type**: API key -- **API key parameter name**: ACCESS-PASSPHRASE -- **Location**: HTTP header - - - -### ACCESS_SIGN - -- **Type**: API key -- **API key parameter name**: ACCESS-SIGN -- **Location**: HTTP header - - - -### ACCESS_TIMESTAMP - -- **Type**: API key -- **API key parameter name**: ACCESS-TIMESTAMP -- **Location**: HTTP header - - - -### SECRET_KEY - -- **Type**: API key -- **API key parameter name**: SECRET-KEY -- **Location**: HTTP header - - -## Tests - -To run the tests, use: - -```bash -composer install -vendor/bin/phpunit -``` - -## Author - - - -## About this package - -This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: `2.0.0` -- Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/bitget-php-sdk-open-api/composer.json b/bitget-php-sdk-open-api/composer.json deleted file mode 100644 index 991a009b..00000000 --- a/bitget-php-sdk-open-api/composer.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)", - "keywords": [ - "openapitools", - "openapi-generator", - "openapi", - "php", - "sdk", - "rest", - "api" - ], - "homepage": "https://openapi-generator.tech", - "license": "unlicense", - "authors": [ - { - "name": "OpenAPI-Generator contributors", - "homepage": "https://openapi-generator.tech" - } - ], - "require": { - "php": "^7.4 || ^8.0", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "guzzlehttp/guzzle": "^7.3", - "guzzlehttp/psr7": "^1.7 || ^2.0" - }, - "require-dev": { - "phpunit/phpunit": "^8.0 || ^9.0", - "friendsofphp/php-cs-fixer": "^3.5" - }, - "autoload": { - "psr-4": { "Bitget\\" : "lib/" } - }, - "autoload-dev": { - "psr-4": { "Bitget\\Test\\" : "test/" } - } -} diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossAccountApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossAccountApi.md deleted file mode 100644 index 0dd3008c..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossAccountApi.md +++ /dev/null @@ -1,582 +0,0 @@ -# Bitget\MarginCrossAccountApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginCrossAccountAssets()**](MarginCrossAccountApi.md#marginCrossAccountAssets) | **GET** /api/margin/v1/cross/account/assets | assets | -| [**marginCrossAccountBorrow()**](MarginCrossAccountApi.md#marginCrossAccountBorrow) | **POST** /api/margin/v1/cross/account/borrow | borrow | -| [**marginCrossAccountMaxBorrowableAmount()**](MarginCrossAccountApi.md#marginCrossAccountMaxBorrowableAmount) | **POST** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount | -| [**marginCrossAccountMaxTransferOutAmount()**](MarginCrossAccountApi.md#marginCrossAccountMaxTransferOutAmount) | **GET** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount | -| [**marginCrossAccountRepay()**](MarginCrossAccountApi.md#marginCrossAccountRepay) | **POST** /api/margin/v1/cross/account/repay | repay | -| [**marginCrossAccountRiskRate()**](MarginCrossAccountApi.md#marginCrossAccountRiskRate) | **GET** /api/margin/v1/cross/account/riskRate | riskRate | -| [**void()**](MarginCrossAccountApi.md#void) | **GET** /api/margin/v1/cross/account/void | void | - - -## `marginCrossAccountAssets()` - -```php -marginCrossAccountAssets($coin): \Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -``` - -assets - -Get Assets - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$coin = USDT; // string | coin - -try { - $result = $apiInstance->marginCrossAccountAssets($coin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountAssets: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **coin** | **string**| coin | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult**](../Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossAccountBorrow()` - -```php -marginCrossAccountBorrow($margin_cross_limit_request): \Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult -``` - -borrow - -borrow - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_cross_limit_request = new \Bitget\Model\MarginCrossLimitRequest(); // \Bitget\Model\MarginCrossLimitRequest | marginCrossLimitRequest - -try { - $result = $apiInstance->marginCrossAccountBorrow($margin_cross_limit_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountBorrow: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_cross_limit_request** | [**\Bitget\Model\MarginCrossLimitRequest**](../Model/MarginCrossLimitRequest.md)| marginCrossLimitRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult**](../Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossAccountMaxBorrowableAmount()` - -```php -marginCrossAccountMaxBorrowableAmount($margin_cross_max_borrow_request): \Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult -``` - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_cross_max_borrow_request = new \Bitget\Model\MarginCrossMaxBorrowRequest(); // \Bitget\Model\MarginCrossMaxBorrowRequest | marginCrossMaxBorrowRequest - -try { - $result = $apiInstance->marginCrossAccountMaxBorrowableAmount($margin_cross_max_borrow_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountMaxBorrowableAmount: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_cross_max_borrow_request** | [**\Bitget\Model\MarginCrossMaxBorrowRequest**](../Model/MarginCrossMaxBorrowRequest.md)| marginCrossMaxBorrowRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult**](../Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossAccountMaxTransferOutAmount()` - -```php -marginCrossAccountMaxTransferOutAmount($coin): \Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult -``` - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$coin = USDT; // string | coin - -try { - $result = $apiInstance->marginCrossAccountMaxTransferOutAmount($coin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountMaxTransferOutAmount: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **coin** | **string**| coin | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult**](../Model/ApiResponseResultOfMarginCrossAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossAccountRepay()` - -```php -marginCrossAccountRepay($margin_cross_repay_request): \Bitget\Model\ApiResponseResultOfMarginCrossRepayResult -``` - -repay - -repay - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_cross_repay_request = new \Bitget\Model\MarginCrossRepayRequest(); // \Bitget\Model\MarginCrossRepayRequest | marginCrossRepayRequest - -try { - $result = $apiInstance->marginCrossAccountRepay($margin_cross_repay_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountRepay: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_cross_repay_request** | [**\Bitget\Model\MarginCrossRepayRequest**](../Model/MarginCrossRepayRequest.md)| marginCrossRepayRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult**](../Model/ApiResponseResultOfMarginCrossRepayResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossAccountRiskRate()` - -```php -marginCrossAccountRiskRate(): \Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult -``` - -riskRate - -riskRate - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); - -try { - $result = $apiInstance->marginCrossAccountRiskRate(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->marginCrossAccountRiskRate: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult**](../Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `void()` - -```php -void(): \Bitget\Model\ApiResponseResultOfVoid -``` - -void - -empty - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); - -try { - $result = $apiInstance->void(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossAccountApi->void: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\Bitget\Model\ApiResponseResultOfVoid**](../Model/ApiResponseResultOfVoid.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossBorrowApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossBorrowApi.md deleted file mode 100644 index d3b43ca0..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossBorrowApi.md +++ /dev/null @@ -1,100 +0,0 @@ -# Bitget\MarginCrossBorrowApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**crossLoanList()**](MarginCrossBorrowApi.md#crossLoanList) | **GET** /api/margin/v1/cross/loan/list | list | - - -## `crossLoanList()` - -```php -crossLoanList($start_time, $coin, $end_time, $loan_id, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginLoanInfoResult -``` - -list - -Get Loan List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossBorrowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$end_time = 1678193338000; // string | endTime -$loan_id = 'loan_id_example'; // string | loanId -$page_size = 10; // string | pageSize -$page_id = minId; // string | pageId - -try { - $result = $apiInstance->crossLoanList($start_time, $coin, $end_time, $loan_id, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossBorrowApi->crossLoanList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **loan_id** | **string**| loanId | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult**](../Model/ApiResponseResultOfMarginLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossFinflowApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossFinflowApi.md deleted file mode 100644 index 670a2bea..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossFinflowApi.md +++ /dev/null @@ -1,100 +0,0 @@ -# Bitget\MarginCrossFinflowApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**crossFinList()**](MarginCrossFinflowApi.md#crossFinList) | **GET** /api/margin/v1/cross/fin/list | list | - - -## `crossFinList()` - -```php -crossFinList($start_time, $coin, $end_time, $margin_type, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult -``` - -list - -Get finance flow List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossFinflowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$end_time = 1678193338000; // string | endTime -$margin_type = transfer_in; // string | marginType -$page_size = 10; // string | pageSize -$page_id = minId; // string | pageId - -try { - $result = $apiInstance->crossFinList($start_time, $coin, $end_time, $margin_type, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossFinflowApi->crossFinList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **margin_type** | **string**| marginType | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult**](../Model/ApiResponseResultOfMarginCrossFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossInterestApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossInterestApi.md deleted file mode 100644 index 50dfb70c..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossInterestApi.md +++ /dev/null @@ -1,96 +0,0 @@ -# Bitget\MarginCrossInterestApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**crossInterestList()**](MarginCrossInterestApi.md#crossInterestList) | **GET** /api/margin/v1/cross/interest/list | list | - - -## `crossInterestList()` - -```php -crossInterestList($start_time, $coin, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginInterestInfoResult -``` - -list - -Get interest List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossInterestApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193138000; // string | startTime -$coin = USDT; // string | coin -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->crossInterestList($start_time, $coin, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossInterestApi->crossInterestList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult**](../Model/ApiResponseResultOfMarginInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossLiquidationApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossLiquidationApi.md deleted file mode 100644 index 889e2e93..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossLiquidationApi.md +++ /dev/null @@ -1,96 +0,0 @@ -# Bitget\MarginCrossLiquidationApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**crossLiquidationList()**](MarginCrossLiquidationApi.md#crossLiquidationList) | **GET** /api/margin/v1/cross/liquidation/list | list | - - -## `crossLiquidationList()` - -```php -crossLiquidationList($start_time, $end_time, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult -``` - -list - -Get liquidation List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossLiquidationApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193138000; // string | startTime -$end_time = 1678193338000; // string | endTime -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->crossLiquidationList($start_time, $end_time, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossLiquidationApi->crossLiquidationList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult**](../Model/ApiResponseResultOfMarginLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossOrderApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossOrderApi.md deleted file mode 100644 index 1a4fd484..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossOrderApi.md +++ /dev/null @@ -1,624 +0,0 @@ -# Bitget\MarginCrossOrderApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginCrossBatchCancelOrder()**](MarginCrossOrderApi.md#marginCrossBatchCancelOrder) | **POST** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder | -| [**marginCrossBatchPlaceOrder()**](MarginCrossOrderApi.md#marginCrossBatchPlaceOrder) | **POST** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder | -| [**marginCrossCancelOrder()**](MarginCrossOrderApi.md#marginCrossCancelOrder) | **POST** /api/margin/v1/cross/order/cancelOrder | cancelOrder | -| [**marginCrossFills()**](MarginCrossOrderApi.md#marginCrossFills) | **GET** /api/margin/v1/cross/order/fills | fills | -| [**marginCrossHistoryOrders()**](MarginCrossOrderApi.md#marginCrossHistoryOrders) | **GET** /api/margin/v1/cross/order/history | history | -| [**marginCrossOpenOrders()**](MarginCrossOrderApi.md#marginCrossOpenOrders) | **GET** /api/margin/v1/cross/order/openOrders | openOrders | -| [**marginCrossPlaceOrder()**](MarginCrossOrderApi.md#marginCrossPlaceOrder) | **POST** /api/margin/v1/cross/order/placeOrder | placeOrder | - - -## `marginCrossBatchCancelOrder()` - -```php -marginCrossBatchCancelOrder($margin_batch_cancel_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult -``` - -batchCancelOrder - -Margin Cross BatchCancelOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_batch_cancel_order_request = new \Bitget\Model\MarginBatchCancelOrderRequest(); // \Bitget\Model\MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - -try { - $result = $apiInstance->marginCrossBatchCancelOrder($margin_batch_cancel_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossBatchCancelOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_batch_cancel_order_request** | [**\Bitget\Model\MarginBatchCancelOrderRequest**](../Model/MarginBatchCancelOrderRequest.md)| marginBatchCancelOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult**](../Model/ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossBatchPlaceOrder()` - -```php -marginCrossBatchPlaceOrder($margin_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult -``` - -batchPlaceOrder - -Margin Cross PlaceOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_order_request = new \Bitget\Model\MarginBatchOrdersRequest(); // \Bitget\Model\MarginBatchOrdersRequest | marginOrderRequest - -try { - $result = $apiInstance->marginCrossBatchPlaceOrder($margin_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossBatchPlaceOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_order_request** | [**\Bitget\Model\MarginBatchOrdersRequest**](../Model/MarginBatchOrdersRequest.md)| marginOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult**](../Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossCancelOrder()` - -```php -marginCrossCancelOrder($margin_cancel_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult -``` - -cancelOrder - -Margin Cross CancelOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_cancel_order_request = new \Bitget\Model\MarginCancelOrderRequest(); // \Bitget\Model\MarginCancelOrderRequest | marginCancelOrderRequest - -try { - $result = $apiInstance->marginCrossCancelOrder($margin_cancel_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossCancelOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_cancel_order_request** | [**\Bitget\Model\MarginCancelOrderRequest**](../Model/MarginCancelOrderRequest.md)| marginCancelOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult**](../Model/ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossFills()` - -```php -marginCrossFills($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size): \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult -``` - -fills - -Margin Cross Fills - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$source = API; // string | source -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$last_fill_id = 'last_fill_id_example'; // string | lastFillId -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->marginCrossFills($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossFills: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **source** | **string**| source | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **last_fill_id** | **string**| lastFillId | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult**](../Model/ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossHistoryOrders()` - -```php -marginCrossHistoryOrders($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size): \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult -``` - -history - -Margin Cross historyOrders - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$source = API; // string | source -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$client_oid = 123456; // string | clientOid -$min_id = 'min_id_example'; // string | minId -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->marginCrossHistoryOrders($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossHistoryOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **source** | **string**| source | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **client_oid** | **string**| clientOid | [optional] | -| **min_id** | **string**| minId | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult**](../Model/ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossOpenOrders()` - -```php -marginCrossOpenOrders($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size): \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult -``` - -openOrders - -Margin Cross openOrders - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$client_oid = 123456; // string | clientOid -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->marginCrossOpenOrders($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossOpenOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **client_oid** | **string**| clientOid | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult**](../Model/ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossPlaceOrder()` - -```php -marginCrossPlaceOrder($margin_order_request): \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult -``` - -placeOrder - -Margin Cross PlaceOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_order_request = new \Bitget\Model\MarginOrderRequest(); // \Bitget\Model\MarginOrderRequest | marginOrderRequest - -try { - $result = $apiInstance->marginCrossPlaceOrder($margin_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossOrderApi->marginCrossPlaceOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_order_request** | [**\Bitget\Model\MarginOrderRequest**](../Model/MarginOrderRequest.md)| marginOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult**](../Model/ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossPublicApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossPublicApi.md deleted file mode 100644 index 7cc22855..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossPublicApi.md +++ /dev/null @@ -1,121 +0,0 @@ -# Bitget\MarginCrossPublicApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginCrossPublicInterestRateAndLimit()**](MarginCrossPublicApi.md#marginCrossPublicInterestRateAndLimit) | **GET** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit | -| [**marginCrossPublicTierData()**](MarginCrossPublicApi.md#marginCrossPublicTierData) | **GET** /api/margin/v1/cross/public/tierData | tierData | - - -## `marginCrossPublicInterestRateAndLimit()` - -```php -marginCrossPublicInterestRateAndLimit($coin): \Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult -``` - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example - -```php -marginCrossPublicInterestRateAndLimit($coin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossPublicApi->marginCrossPublicInterestRateAndLimit: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **coin** | **string**| coin | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult**](../Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginCrossPublicTierData()` - -```php -marginCrossPublicTierData($coin): \Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult -``` - -tierData - -Get TierData - -### Example - -```php -marginCrossPublicTierData($coin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossPublicApi->marginCrossPublicTierData: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **coin** | **string**| coin | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult**](../Model/ApiResponseResultOfListOfMarginCrossLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginCrossRepayApi.md b/bitget-php-sdk-open-api/docs/Api/MarginCrossRepayApi.md deleted file mode 100644 index 9194e9d5..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginCrossRepayApi.md +++ /dev/null @@ -1,100 +0,0 @@ -# Bitget\MarginCrossRepayApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**crossRepayList()**](MarginCrossRepayApi.md#crossRepayList) | **GET** /api/margin/v1/cross/repay/list | list | - - -## `crossRepayList()` - -```php -crossRepayList($start_time, $coin, $repay_id, $end_time, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginRepayInfoResult -``` - -list - -Get liquidation List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginCrossRepayApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$repay_id = 32428347234; // string | repayId -$end_time = 1678193338000; // string | endTime -$page_size = 10; // string | pageSize -$page_id = minId; // string | pageId - -try { - $result = $apiInstance->crossRepayList($start_time, $coin, $repay_id, $end_time, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginCrossRepayApi->crossRepayList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **repay_id** | **string**| repayId | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult**](../Model/ApiResponseResultOfMarginRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedAccountApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedAccountApi.md deleted file mode 100644 index d0020068..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedAccountApi.md +++ /dev/null @@ -1,507 +0,0 @@ -# Bitget\MarginIsolatedAccountApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginIsolatedAccountAssets()**](MarginIsolatedAccountApi.md#marginIsolatedAccountAssets) | **GET** /api/margin/v1/isolated/account/assets | assets | -| [**marginIsolatedAccountBorrow()**](MarginIsolatedAccountApi.md#marginIsolatedAccountBorrow) | **POST** /api/margin/v1/isolated/account/borrow | borrow | -| [**marginIsolatedAccountMaxBorrowableAmount()**](MarginIsolatedAccountApi.md#marginIsolatedAccountMaxBorrowableAmount) | **POST** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount | -| [**marginIsolatedAccountMaxTransferOutAmount()**](MarginIsolatedAccountApi.md#marginIsolatedAccountMaxTransferOutAmount) | **GET** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount | -| [**marginIsolatedAccountRepay()**](MarginIsolatedAccountApi.md#marginIsolatedAccountRepay) | **POST** /api/margin/v1/isolated/account/repay | repay | -| [**marginIsolatedAccountRiskRate()**](MarginIsolatedAccountApi.md#marginIsolatedAccountRiskRate) | **POST** /api/margin/v1/isolated/account/riskRate | riskRate | - - -## `marginIsolatedAccountAssets()` - -```php -marginIsolatedAccountAssets($symbol): \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -``` - -assets - -Get Assets - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol - -try { - $result = $apiInstance->marginIsolatedAccountAssets($symbol); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountAssets: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult**](../Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedAccountBorrow()` - -```php -marginIsolatedAccountBorrow($margin_isolated_limit_request): \Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult -``` - -borrow - -borrow - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_isolated_limit_request = new \Bitget\Model\MarginIsolatedLimitRequest(); // \Bitget\Model\MarginIsolatedLimitRequest | marginIsolatedLimitRequest - -try { - $result = $apiInstance->marginIsolatedAccountBorrow($margin_isolated_limit_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountBorrow: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_isolated_limit_request** | [**\Bitget\Model\MarginIsolatedLimitRequest**](../Model/MarginIsolatedLimitRequest.md)| marginIsolatedLimitRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult**](../Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedAccountMaxBorrowableAmount()` - -```php -marginIsolatedAccountMaxBorrowableAmount($margin_isolated_max_borrow_request): \Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult -``` - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_isolated_max_borrow_request = new \Bitget\Model\MarginIsolatedMaxBorrowRequest(); // \Bitget\Model\MarginIsolatedMaxBorrowRequest | marginIsolatedMaxBorrowRequest - -try { - $result = $apiInstance->marginIsolatedAccountMaxBorrowableAmount($margin_isolated_max_borrow_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountMaxBorrowableAmount: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_isolated_max_borrow_request** | [**\Bitget\Model\MarginIsolatedMaxBorrowRequest**](../Model/MarginIsolatedMaxBorrowRequest.md)| marginIsolatedMaxBorrowRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult**](../Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedAccountMaxTransferOutAmount()` - -```php -marginIsolatedAccountMaxTransferOutAmount($coin, $symbol): \Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult -``` - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$coin = USDT; // string | coin -$symbol = BTCUSDT; // string | symbol - -try { - $result = $apiInstance->marginIsolatedAccountMaxTransferOutAmount($coin, $symbol); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountMaxTransferOutAmount: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **coin** | **string**| coin | | -| **symbol** | **string**| symbol | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult**](../Model/ApiResponseResultOfMarginIsolatedAssetsResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedAccountRepay()` - -```php -marginIsolatedAccountRepay($margin_isolated_repay_request): \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult -``` - -repay - -repay - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_isolated_repay_request = new \Bitget\Model\MarginIsolatedRepayRequest(); // \Bitget\Model\MarginIsolatedRepayRequest | marginIsolatedRepayRequest - -try { - $result = $apiInstance->marginIsolatedAccountRepay($margin_isolated_repay_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountRepay: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_isolated_repay_request** | [**\Bitget\Model\MarginIsolatedRepayRequest**](../Model/MarginIsolatedRepayRequest.md)| marginIsolatedRepayRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult**](../Model/ApiResponseResultOfMarginIsolatedRepayResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedAccountRiskRate()` - -```php -marginIsolatedAccountRiskRate($margin_isolated_assets_risk_request): \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -``` - -riskRate - -riskRate - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_isolated_assets_risk_request = new \Bitget\Model\MarginIsolatedAssetsRiskRequest(); // \Bitget\Model\MarginIsolatedAssetsRiskRequest | marginIsolatedAssetsRiskRequest - -try { - $result = $apiInstance->marginIsolatedAccountRiskRate($margin_isolated_assets_risk_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedAccountApi->marginIsolatedAccountRiskRate: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_isolated_assets_risk_request** | [**\Bitget\Model\MarginIsolatedAssetsRiskRequest**](../Model/MarginIsolatedAssetsRiskRequest.md)| marginIsolatedAssetsRiskRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult**](../Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedBorrowApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedBorrowApi.md deleted file mode 100644 index caf5f6f8..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedBorrowApi.md +++ /dev/null @@ -1,102 +0,0 @@ -# Bitget\MarginIsolatedBorrowApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**isolatedLoanList()**](MarginIsolatedBorrowApi.md#isolatedLoanList) | **GET** /api/margin/v1/isolated/loan/list | list | - - -## `isolatedLoanList()` - -```php -isolatedLoanList($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult -``` - -list - -Get Loan List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedBorrowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$end_time = 1678193338000; // string | endTime -$loan_id = 'loan_id_example'; // string | loanId -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->isolatedLoanList($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedBorrowApi->isolatedLoanList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **loan_id** | **string**| loanId | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult**](../Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedFinflowApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedFinflowApi.md deleted file mode 100644 index c6c79d4b..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedFinflowApi.md +++ /dev/null @@ -1,104 +0,0 @@ -# Bitget\MarginIsolatedFinflowApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**isolatedFinList()**](MarginIsolatedFinflowApi.md#isolatedFinList) | **GET** /api/margin/v1/isolated/fin/list | list | - - -## `isolatedFinList()` - -```php -isolatedFinList($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult -``` - -list - -Get finance flow List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedFinflowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$margin_type = transfer_in; // string | marginType -$end_time = 1678193338000; // string | endTime -$loan_id = 'loan_id_example'; // string | loanId -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->isolatedFinList($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedFinflowApi->isolatedFinList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **margin_type** | **string**| marginType | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **loan_id** | **string**| loanId | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult**](../Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedInterestApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedInterestApi.md deleted file mode 100644 index 3fbbc836..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedInterestApi.md +++ /dev/null @@ -1,98 +0,0 @@ -# Bitget\MarginIsolatedInterestApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**isolatedInterestList()**](MarginIsolatedInterestApi.md#isolatedInterestList) | **GET** /api/margin/v1/isolated/interest/list | list | - - -## `isolatedInterestList()` - -```php -isolatedInterestList($symbol, $start_time, $coin, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult -``` - -list - -Get interest List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedInterestApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193138000; // string | startTime -$coin = USDT; // string | coin -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->isolatedInterestList($symbol, $start_time, $coin, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedInterestApi->isolatedInterestList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult**](../Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedLiquidationApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedLiquidationApi.md deleted file mode 100644 index 8f22c16e..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedLiquidationApi.md +++ /dev/null @@ -1,98 +0,0 @@ -# Bitget\MarginIsolatedLiquidationApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**isolatedLiquidationList()**](MarginIsolatedLiquidationApi.md#isolatedLiquidationList) | **GET** /api/margin/v1/isolated/liquidation/list | list | - - -## `isolatedLiquidationList()` - -```php -isolatedLiquidationList($symbol, $start_time, $end_time, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult -``` - -list - -Get liquidation List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedLiquidationApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193138000; // string | startTime -$end_time = 1678193338000; // string | endTime -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->isolatedLiquidationList($symbol, $start_time, $end_time, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedLiquidationApi->isolatedLiquidationList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult**](../Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedOrderApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedOrderApi.md deleted file mode 100644 index 84461adc..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedOrderApi.md +++ /dev/null @@ -1,622 +0,0 @@ -# Bitget\MarginIsolatedOrderApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginIsolatedBatchCancelOrder()**](MarginIsolatedOrderApi.md#marginIsolatedBatchCancelOrder) | **POST** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder | -| [**marginIsolatedBatchPlaceOrder()**](MarginIsolatedOrderApi.md#marginIsolatedBatchPlaceOrder) | **POST** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder | -| [**marginIsolatedCancelOrder()**](MarginIsolatedOrderApi.md#marginIsolatedCancelOrder) | **POST** /api/margin/v1/isolated/order/cancelOrder | cancelOrder | -| [**marginIsolatedFills()**](MarginIsolatedOrderApi.md#marginIsolatedFills) | **GET** /api/margin/v1/isolated/order/fills | fills | -| [**marginIsolatedHistoryOrders()**](MarginIsolatedOrderApi.md#marginIsolatedHistoryOrders) | **GET** /api/margin/v1/isolated/order/history | history | -| [**marginIsolatedOpenOrders()**](MarginIsolatedOrderApi.md#marginIsolatedOpenOrders) | **GET** /api/margin/v1/isolated/order/openOrders | openOrders | -| [**marginIsolatedPlaceOrder()**](MarginIsolatedOrderApi.md#marginIsolatedPlaceOrder) | **POST** /api/margin/v1/isolated/order/placeOrder | placeOrder | - - -## `marginIsolatedBatchCancelOrder()` - -```php -marginIsolatedBatchCancelOrder($margin_batch_cancel_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult -``` - -batchCancelOrder - -Margin Isolated BatchCancelOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_batch_cancel_order_request = new \Bitget\Model\MarginBatchCancelOrderRequest(); // \Bitget\Model\MarginBatchCancelOrderRequest | marginBatchCancelOrderRequest - -try { - $result = $apiInstance->marginIsolatedBatchCancelOrder($margin_batch_cancel_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedBatchCancelOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_batch_cancel_order_request** | [**\Bitget\Model\MarginBatchCancelOrderRequest**](../Model/MarginBatchCancelOrderRequest.md)| marginBatchCancelOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult**](../Model/ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedBatchPlaceOrder()` - -```php -marginIsolatedBatchPlaceOrder($margin_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult -``` - -batchPlaceOrder - -Margin Isolated PlaceOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_order_request = new \Bitget\Model\MarginBatchOrdersRequest(); // \Bitget\Model\MarginBatchOrdersRequest | marginOrderRequest - -try { - $result = $apiInstance->marginIsolatedBatchPlaceOrder($margin_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedBatchPlaceOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_order_request** | [**\Bitget\Model\MarginBatchOrdersRequest**](../Model/MarginBatchOrdersRequest.md)| marginOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult**](../Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedCancelOrder()` - -```php -marginIsolatedCancelOrder($margin_cancel_order_request): \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult -``` - -cancelOrder - -Margin Isolated CancelOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_cancel_order_request = new \Bitget\Model\MarginCancelOrderRequest(); // \Bitget\Model\MarginCancelOrderRequest | marginCancelOrderRequest - -try { - $result = $apiInstance->marginIsolatedCancelOrder($margin_cancel_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedCancelOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_cancel_order_request** | [**\Bitget\Model\MarginCancelOrderRequest**](../Model/MarginCancelOrderRequest.md)| marginCancelOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult**](../Model/ApiResponseResultOfMarginBatchCancelOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedFills()` - -```php -marginIsolatedFills($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size): \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult -``` - -fills - -Margin Isolated Fills - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$symbol = BTCUSDT; // string | symbol -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$last_fill_id = 'last_fill_id_example'; // string | lastFillId -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->marginIsolatedFills($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedFills: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **symbol** | **string**| symbol | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **last_fill_id** | **string**| lastFillId | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult**](../Model/ApiResponseResultOfMarginTradeDetailInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedHistoryOrders()` - -```php -marginIsolatedHistoryOrders($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id): \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult -``` - -history - -Margin Isolated historyOrders - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$symbol = BTCUSDT; // string | symbol -$source = API; // string | source -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$client_oid = 123456; // string | clientOid -$page_size = 10; // string | pageSize -$min_id = 'min_id_example'; // string | minId - -try { - $result = $apiInstance->marginIsolatedHistoryOrders($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedHistoryOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **symbol** | **string**| symbol | [optional] | -| **source** | **string**| source | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **client_oid** | **string**| clientOid | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **min_id** | **string**| minId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult**](../Model/ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedOpenOrders()` - -```php -marginIsolatedOpenOrders($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size): \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult -``` - -openOrders - -Margin Isolated openOrders - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$end_time = 1678193338000; // string | endTime -$order_id = 32428347234; // string | orderId -$client_oid = 123456; // string | clientOid -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->marginIsolatedOpenOrders($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedOpenOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **order_id** | **string**| orderId | [optional] | -| **client_oid** | **string**| clientOid | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult**](../Model/ApiResponseResultOfMarginOpenOrderInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedPlaceOrder()` - -```php -marginIsolatedPlaceOrder($margin_order_request): \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult -``` - -placeOrder - -Margin Isolated PlaceOrder - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$margin_order_request = new \Bitget\Model\MarginOrderRequest(); // \Bitget\Model\MarginOrderRequest | marginOrderRequest - -try { - $result = $apiInstance->marginIsolatedPlaceOrder($margin_order_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedOrderApi->marginIsolatedPlaceOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **margin_order_request** | [**\Bitget\Model\MarginOrderRequest**](../Model/MarginOrderRequest.md)| marginOrderRequest | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult**](../Model/ApiResponseResultOfMarginPlaceOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedPublicApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedPublicApi.md deleted file mode 100644 index 65a6c66e..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedPublicApi.md +++ /dev/null @@ -1,121 +0,0 @@ -# Bitget\MarginIsolatedPublicApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginIsolatedPublicInterestRateAndLimit()**](MarginIsolatedPublicApi.md#marginIsolatedPublicInterestRateAndLimit) | **GET** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit | -| [**marginIsolatedPublicTierData()**](MarginIsolatedPublicApi.md#marginIsolatedPublicTierData) | **GET** /api/margin/v1/isolated/public/tierData | tierData | - - -## `marginIsolatedPublicInterestRateAndLimit()` - -```php -marginIsolatedPublicInterestRateAndLimit($symbol): \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -``` - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example - -```php -marginIsolatedPublicInterestRateAndLimit($symbol); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedPublicApi->marginIsolatedPublicInterestRateAndLimit: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult**](../Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `marginIsolatedPublicTierData()` - -```php -marginIsolatedPublicTierData($symbol): \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult -``` - -tierData - -Get TierData - -### Example - -```php -marginIsolatedPublicTierData($symbol); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedPublicApi->marginIsolatedPublicTierData: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult**](../Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedRepayApi.md b/bitget-php-sdk-open-api/docs/Api/MarginIsolatedRepayApi.md deleted file mode 100644 index 02397a74..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginIsolatedRepayApi.md +++ /dev/null @@ -1,102 +0,0 @@ -# Bitget\MarginIsolatedRepayApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**isolateRepayList()**](MarginIsolatedRepayApi.md#isolateRepayList) | **GET** /api/margin/v1/isolated/repay/list | list | - - -## `isolateRepayList()` - -```php -isolateRepayList($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id): \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult -``` - -list - -Get liquidation List - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\MarginIsolatedRepayApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$symbol = BTCUSDT; // string | symbol -$start_time = 1678193338000; // string | startTime -$coin = USDT; // string | coin -$repay_id = 'repay_id_example'; // string | repayId -$end_time = 1678193338000; // string | endTime -$page_size = 10; // string | pageSize -$page_id = 'page_id_example'; // string | pageId - -try { - $result = $apiInstance->isolateRepayList($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginIsolatedRepayApi->isolateRepayList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **symbol** | **string**| symbol | | -| **start_time** | **string**| startTime | | -| **coin** | **string**| coin | [optional] | -| **repay_id** | **string**| repayId | [optional] | -| **end_time** | **string**| endTime | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **page_id** | **string**| pageId | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult**](../Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/MarginPublicApi.md b/bitget-php-sdk-open-api/docs/Api/MarginPublicApi.md deleted file mode 100644 index 985e3807..00000000 --- a/bitget-php-sdk-open-api/docs/Api/MarginPublicApi.md +++ /dev/null @@ -1,61 +0,0 @@ -# Bitget\MarginPublicApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**marginPublicCurrencies()**](MarginPublicApi.md#marginPublicCurrencies) | **GET** /api/margin/v1/public/currencies | currencies | - - -## `marginPublicCurrencies()` - -```php -marginPublicCurrencies(): \Bitget\Model\ApiResponseResultOfListOfMarginSystemResult -``` - -currencies - -Get Currencies - -### Example - -```php -marginPublicCurrencies(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MarginPublicApi->marginPublicCurrencies: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult**](../Model/ApiResponseResultOfListOfMarginSystemResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Api/P2pMerchantApi.md b/bitget-php-sdk-open-api/docs/Api/P2pMerchantApi.md deleted file mode 100644 index 2a069eff..00000000 --- a/bitget-php-sdk-open-api/docs/Api/P2pMerchantApi.md +++ /dev/null @@ -1,382 +0,0 @@ -# Bitget\P2pMerchantApi - -All URIs are relative to https://api.bitget.com, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**merchantAdvList()**](P2pMerchantApi.md#merchantAdvList) | **GET** /api/p2p/v1/merchant/advList | advList | -| [**merchantInfo()**](P2pMerchantApi.md#merchantInfo) | **GET** /api/p2p/v1/merchant/merchantInfo | merchantInfo | -| [**merchantList()**](P2pMerchantApi.md#merchantList) | **GET** /api/p2p/v1/merchant/merchantList | merchantList | -| [**merchantOrderList()**](P2pMerchantApi.md#merchantOrderList) | **GET** /api/p2p/v1/merchant/orderList | orderList | - - -## `merchantAdvList()` - -```php -merchantAdvList($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by): \Bitget\Model\ApiResponseResultOfMerchantAdvResult -``` - -advList - -P2P merchant adv info - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\P2pMerchantApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$end_time = 1678193338000; // string | endTime -$status = upper; // string | status -$type = sell; // string | type -$adv_no = 1678193338000; // string | advNo -$coin = USDT; // string | coin -$language_type = en-US; // string | languageType -$fiat = USD; // string | fiat -$last_min_id = 43534; // string | languageType -$page_size = 10; // string | pageSize -$order_by = createTime; // string | orderBy - -try { - $result = $apiInstance->merchantAdvList($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling P2pMerchantApi->merchantAdvList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **status** | **string**| status | [optional] | -| **type** | **string**| type | [optional] | -| **adv_no** | **string**| advNo | [optional] | -| **coin** | **string**| coin | [optional] | -| **language_type** | **string**| languageType | [optional] | -| **fiat** | **string**| fiat | [optional] | -| **last_min_id** | **string**| languageType | [optional] | -| **page_size** | **string**| pageSize | [optional] | -| **order_by** | **string**| orderBy | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMerchantAdvResult**](../Model/ApiResponseResultOfMerchantAdvResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `merchantInfo()` - -```php -merchantInfo(): \Bitget\Model\ApiResponseResultOfMerchantPersonInfo -``` - -merchantInfo - -P2P merchant info self - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\P2pMerchantApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); - -try { - $result = $apiInstance->merchantInfo(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling P2pMerchantApi->merchantInfo: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMerchantPersonInfo**](../Model/ApiResponseResultOfMerchantPersonInfo.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `merchantList()` - -```php -merchantList($online, $merchant_id, $last_min_id, $page_size): \Bitget\Model\ApiResponseResultOfMerchantInfoResult -``` - -merchantList - -P2P merchant list - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\P2pMerchantApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$online = yes; // string | online -$merchant_id = 4534534534; // string | merchantId -$last_min_id = 1678193338000; // string | lastMinId -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->merchantList($online, $merchant_id, $last_min_id, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling P2pMerchantApi->merchantList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **online** | **string**| online | [optional] | -| **merchant_id** | **string**| merchantId | [optional] | -| **last_min_id** | **string**| lastMinId | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMerchantInfoResult**](../Model/ApiResponseResultOfMerchantInfoResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) - -## `merchantOrderList()` - -```php -merchantOrderList($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size): \Bitget\Model\ApiResponseResultOfMerchantOrderResult -``` - -orderList - -P2P merchant order info - -### Example - -```php -setApiKey('ACCESS-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-KEY', 'Bearer'); - -// Configure API key authorization: ACCESS_PASSPHRASE -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-PASSPHRASE', 'Bearer'); - -// Configure API key authorization: ACCESS_SIGN -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-SIGN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-SIGN', 'Bearer'); - -// Configure API key authorization: ACCESS_TIMESTAMP -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-TIMESTAMP', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ACCESS-TIMESTAMP', 'Bearer'); - -// Configure API key authorization: SECRET_KEY -$config = Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Bitget\Configuration::getDefaultConfiguration()->setApiKeyPrefix('SECRET-KEY', 'Bearer'); - - -$apiInstance = new Bitget\Api\P2pMerchantApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new GuzzleHttp\Client(), - $config -); -$start_time = 1678193338000; // string | startTime -$end_time = 1678193338000; // string | endTime -$status = wait_pay; // string | status -$type = sell; // string | type -$adv_no = 1678193338000; // string | advNo -$order_no = 23842478324723423; // string | orderNo -$coin = USDT; // string | coin -$language_type = en-US; // string | languageType -$fiat = USD; // string | fiat -$last_min_id = 43534; // string | languageType -$page_size = 10; // string | pageSize - -try { - $result = $apiInstance->merchantOrderList($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling P2pMerchantApi->merchantOrderList: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **start_time** | **string**| startTime | | -| **end_time** | **string**| endTime | [optional] | -| **status** | **string**| status | [optional] | -| **type** | **string**| type | [optional] | -| **adv_no** | **string**| advNo | [optional] | -| **order_no** | **string**| orderNo | [optional] | -| **coin** | **string**| coin | [optional] | -| **language_type** | **string**| languageType | [optional] | -| **fiat** | **string**| fiat | [optional] | -| **last_min_id** | **string**| languageType | [optional] | -| **page_size** | **string**| pageSize | [optional] | - -### Return type - -[**\Bitget\Model\ApiResponseResultOfMerchantOrderResult**](../Model/ApiResponseResultOfMerchantOrderResult.md) - -### Authorization - -[ACCESS_KEY](../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../README.md#SECRET_KEY) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) -[[Back to Model list]](../../README.md#models) -[[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md deleted file mode 100644 index 5cf44995..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossAssetsPopulationResult[]**](MarginCrossAssetsPopulationResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossLevelResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossLevelResult.md deleted file mode 100644 index e030263c..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossLevelResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginCrossLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossLevelResult[]**](MarginCrossLevelResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md deleted file mode 100644 index 5f385d2d..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossRateAndLimitResult[]**](MarginCrossRateAndLimitResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index 3bd9af3a..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedAssetsPopulationResult[]**](MarginIsolatedAssetsPopulationResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md deleted file mode 100644 index 85e76a9c..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedAssetsRiskResult[]**](MarginIsolatedAssetsRiskResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md deleted file mode 100644 index cb247df0..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginIsolatedLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedLevelResult[]**](MarginIsolatedLevelResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md deleted file mode 100644 index 4fd21d93..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedRateAndLimitResult[]**](MarginIsolatedRateAndLimitResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginSystemResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginSystemResult.md deleted file mode 100644 index 484c4d1a..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfListOfMarginSystemResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfListOfMarginSystemResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginSystemResult[]**](MarginSystemResult.md) | data | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchCancelOrderResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchCancelOrderResult.md deleted file mode 100644 index 4328ce2b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchCancelOrderResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginBatchCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginBatchCancelOrderResult**](MarginBatchCancelOrderResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md deleted file mode 100644 index 48fba407..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginBatchPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginBatchPlaceOrderResult**](MarginBatchPlaceOrderResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsResult.md deleted file mode 100644 index de1f6ff3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossAssetsResult**](MarginCrossAssetsResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md deleted file mode 100644 index afa98eab..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossAssetsRiskResult**](MarginCrossAssetsRiskResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md deleted file mode 100644 index 387d7fb9..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossBorrowLimitResult**](MarginCrossBorrowLimitResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossFinFlowResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossFinFlowResult.md deleted file mode 100644 index e6275066..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossFinFlowResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossFinFlowResult**](MarginCrossFinFlowResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md deleted file mode 100644 index 0a385e23..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossMaxBorrowResult**](MarginCrossMaxBorrowResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossRepayResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossRepayResult.md deleted file mode 100644 index dc38dabb..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginCrossRepayResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginCrossRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginCrossRepayResult**](MarginCrossRepayResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginInterestInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginInterestInfoResult.md deleted file mode 100644 index 1afa5f5a..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginInterestInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginInterestInfoResult**](MarginInterestInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedAssetsResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedAssetsResult.md deleted file mode 100644 index 8f19960c..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedAssetsResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedAssetsResult**](MarginIsolatedAssetsResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 7619d849..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedBorrowLimitResult**](MarginIsolatedBorrowLimitResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md deleted file mode 100644 index e49e9720..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedFinFlowResult**](MarginIsolatedFinFlowResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md deleted file mode 100644 index 71bdb891..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedInterestInfoResult**](MarginIsolatedInterestInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index f229c6a7..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedLiquidationInfoResult**](MarginIsolatedLiquidationInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md deleted file mode 100644 index 533e9c0f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedLoanInfoResult**](MarginIsolatedLoanInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 545bf704..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedMaxBorrowResult**](MarginIsolatedMaxBorrowResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md deleted file mode 100644 index 4e5fced7..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedRepayInfoResult**](MarginIsolatedRepayInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayResult.md deleted file mode 100644 index 7618527f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginIsolatedRepayResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginIsolatedRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginIsolatedRepayResult**](MarginIsolatedRepayResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLiquidationInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLiquidationInfoResult.md deleted file mode 100644 index b02cb3c1..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLiquidationInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginLiquidationInfoResult**](MarginLiquidationInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLoanInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLoanInfoResult.md deleted file mode 100644 index 46736bcb..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginLoanInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginLoanInfoResult**](MarginLoanInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginOpenOrderInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginOpenOrderInfoResult.md deleted file mode 100644 index 853d6a94..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginOpenOrderInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginOpenOrderInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginOpenOrderInfoResult**](MarginOpenOrderInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginPlaceOrderResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginPlaceOrderResult.md deleted file mode 100644 index accf6262..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginPlaceOrderResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginPlaceOrderResult**](MarginPlaceOrderResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginRepayInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginRepayInfoResult.md deleted file mode 100644 index d6771081..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginRepayInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginRepayInfoResult**](MarginRepayInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginTradeDetailInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginTradeDetailInfoResult.md deleted file mode 100644 index 92c635b1..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMarginTradeDetailInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMarginTradeDetailInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MarginTradeDetailInfoResult**](MarginTradeDetailInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantAdvResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantAdvResult.md deleted file mode 100644 index 193afe31..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantAdvResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMerchantAdvResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MerchantAdvResult**](MerchantAdvResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantInfoResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantInfoResult.md deleted file mode 100644 index 839b0482..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMerchantInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MerchantInfoResult**](MerchantInfoResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantOrderResult.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantOrderResult.md deleted file mode 100644 index 2b94834b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantOrderResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMerchantOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MerchantOrderResult**](MerchantOrderResult.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantPersonInfo.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantPersonInfo.md deleted file mode 100644 index f79143e2..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfMerchantPersonInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# # ApiResponseResultOfMerchantPersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**data** | [**\Bitget\Model\MerchantPersonInfo**](MerchantPersonInfo.md) | | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfVoid.md b/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfVoid.md deleted file mode 100644 index a36c6570..00000000 --- a/bitget-php-sdk-open-api/docs/Model/ApiResponseResultOfVoid.md +++ /dev/null @@ -1,11 +0,0 @@ -# # ApiResponseResultOfVoid - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | code | [optional] -**msg** | **string** | msg | [optional] -**request_time** | **int** | requestTime | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/FiatPaymentDetailInfo.md b/bitget-php-sdk-open-api/docs/Model/FiatPaymentDetailInfo.md deleted file mode 100644 index e3a5873a..00000000 --- a/bitget-php-sdk-open-api/docs/Model/FiatPaymentDetailInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# # FiatPaymentDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] -**required** | **bool** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/FiatPaymentInfo.md b/bitget-php-sdk-open-api/docs/Model/FiatPaymentInfo.md deleted file mode 100644 index 081f02da..00000000 --- a/bitget-php-sdk-open-api/docs/Model/FiatPaymentInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# # FiatPaymentInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_id** | **string** | | [optional] -**payment_info** | [**\Bitget\Model\FiatPaymentDetailInfo[]**](FiatPaymentDetailInfo.md) | | [optional] -**payment_method** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderRequest.md deleted file mode 100644 index 66b443c9..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginBatchCancelOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oids** | **string[]** | clientOids | [optional] -**order_ids** | **string[]** | orderIds | [optional] -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderResult.md b/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderResult.md deleted file mode 100644 index fa1f0456..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginBatchCancelOrderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginBatchCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**failure** | [**\Bitget\Model\MarginCancelOrderFailureResult[]**](MarginCancelOrderFailureResult.md) | | [optional] -**result_list** | [**\Bitget\Model\MarginCancelOrderResult[]**](MarginCancelOrderResult.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginBatchOrdersRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginBatchOrdersRequest.md deleted file mode 100644 index 47213952..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginBatchOrdersRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# # MarginBatchOrdersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_api_code** | **string** | | [optional] -**ip** | **string** | | [optional] -**order_list** | [**\Bitget\Model\MarginOrderRequest[]**](MarginOrderRequest.md) | | [optional] -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderFailureResult.md b/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderFailureResult.md deleted file mode 100644 index 4777b8c8..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderFailureResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginBatchPlaceOrderFailureResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**error_msg** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderResult.md b/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderResult.md deleted file mode 100644 index 34264e4d..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginBatchPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**failure** | [**\Bitget\Model\MarginBatchPlaceOrderFailureResult[]**](MarginBatchPlaceOrderFailureResult.md) | | [optional] -**result_list** | [**\Bitget\Model\MarginCancelOrderResult[]**](MarginCancelOrderResult.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderFailureResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderFailureResult.md deleted file mode 100644 index bcb83c73..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderFailureResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginCancelOrderFailureResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**error_msg** | **string** | | [optional] -**order_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderRequest.md deleted file mode 100644 index 75d85f97..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginCancelOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | clientOid | [optional] -**order_id** | **string** | orderId | [optional] -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderResult.md deleted file mode 100644 index 59e603cb..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCancelOrderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginCancelOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**order_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsPopulationResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsPopulationResult.md deleted file mode 100644 index f286fc97..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginCrossAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available** | **string** | | [optional] -**borrow** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**frozen** | **string** | | [optional] -**interest** | **string** | | [optional] -**net** | **string** | | [optional] -**total_amount** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsResult.md deleted file mode 100644 index bdc4a468..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginCrossAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | | [optional] -**max_transfer_out_amount** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsRiskResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsRiskResult.md deleted file mode 100644 index e9a60d1f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,9 +0,0 @@ -# # MarginCrossAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**risk_rate** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossBorrowLimitResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossBorrowLimitResult.md deleted file mode 100644 index a2bd1ce7..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginCrossBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrow_amount** | **string** | | [optional] -**client_oid** | **string** | | [optional] -**coin** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowInfo.md deleted file mode 100644 index e3071551..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowInfo.md +++ /dev/null @@ -1,15 +0,0 @@ -# # MarginCrossFinFlowInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**balance** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**fee** | **string** | | [optional] -**margin_id** | **string** | | [optional] -**margin_type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowResult.md deleted file mode 100644 index 902429df..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossFinFlowResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginCrossFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginCrossFinFlowInfo[]**](MarginCrossFinFlowInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossLevelResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossLevelResult.md deleted file mode 100644 index def3c733..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossLevelResult.md +++ /dev/null @@ -1,13 +0,0 @@ -# # MarginCrossLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | | [optional] -**leverage** | **string** | | [optional] -**maintain_margin_rate** | **string** | | [optional] -**max_borrowable_amount** | **string** | | [optional] -**tier** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossLimitRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossLimitRequest.md deleted file mode 100644 index 354120b9..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossLimitRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginCrossLimitRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrow_amount** | **string** | borrowAmount | -**coin** | **string** | coin | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowRequest.md deleted file mode 100644 index 67b4959e..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# # MarginCrossMaxBorrowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | coin | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowResult.md deleted file mode 100644 index 8dee06c3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginCrossMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | | [optional] -**max_borrowable_amount** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossRateAndLimitResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossRateAndLimitResult.md deleted file mode 100644 index c843a52f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginCrossRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrow_able** | **bool** | | [optional] -**coin** | **string** | | [optional] -**daily_interest_rate** | **string** | | [optional] -**leverage** | **string** | | [optional] -**max_borrowable_amount** | **string** | | [optional] -**transfer_in_able** | **bool** | | [optional] -**vips** | [**\Bitget\Model\MarginCrossVipResult[]**](MarginCrossVipResult.md) | | [optional] -**yearly_interest_rate** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayRequest.md deleted file mode 100644 index 9a44ed84..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginCrossRepayRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | coin | -**repay_amount** | **string** | repayAmount | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayResult.md deleted file mode 100644 index 8ac2c17d..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossRepayResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # MarginCrossRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**coin** | **string** | | [optional] -**remain_debt_amount** | **string** | | [optional] -**repay_amount** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginCrossVipResult.md b/bitget-php-sdk-open-api/docs/Model/MarginCrossVipResult.md deleted file mode 100644 index f3471e50..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginCrossVipResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # MarginCrossVipResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**daily_interest_rate** | **string** | | [optional] -**discount_rate** | **string** | | [optional] -**level** | **string** | | [optional] -**yearly_interest_rate** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginInterestInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginInterestInfo.md deleted file mode 100644 index cfe140b6..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginInterestInfo.md +++ /dev/null @@ -1,15 +0,0 @@ -# # MarginInterestInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**ctime** | **string** | | [optional] -**interest_coin** | **string** | | [optional] -**interest_id** | **string** | | [optional] -**interest_rate** | **string** | | [optional] -**loan_coin** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginInterestInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginInterestInfoResult.md deleted file mode 100644 index d70089c3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginInterestInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginInterestInfo[]**](MarginInterestInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsPopulationResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index b9c208db..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# # MarginIsolatedAssetsPopulationResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available** | **string** | | [optional] -**borrow** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**frozen** | **string** | | [optional] -**interest** | **string** | | [optional] -**net** | **string** | | [optional] -**symbol** | **string** | | [optional] -**total_amount** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsResult.md deleted file mode 100644 index ea2d2d36..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedAssetsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | | [optional] -**max_transfer_out_amount** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskRequest.md deleted file mode 100644 index 39f72ded..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedAssetsRiskRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**page_num** | **string** | pageNum | [optional] -**page_size** | **string** | pageSize | [optional] -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskResult.md deleted file mode 100644 index 27c2ea46..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginIsolatedAssetsRiskResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**risk_rate** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedBorrowLimitResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 75a8d994..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # MarginIsolatedBorrowLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrow_amount** | **string** | | [optional] -**client_oid** | **string** | | [optional] -**coin** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowInfo.md deleted file mode 100644 index 22080281..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginIsolatedFinFlowInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**balance** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**fee** | **string** | | [optional] -**margin_id** | **string** | | [optional] -**margin_type** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowResult.md deleted file mode 100644 index 9df1ce97..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedFinFlowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginIsolatedFinFlowInfo[]**](MarginIsolatedFinFlowInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfo.md deleted file mode 100644 index 3fe913df..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginIsolatedInterestInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**ctime** | **string** | | [optional] -**interest_coin** | **string** | | [optional] -**interest_id** | **string** | | [optional] -**interest_rate** | **string** | | [optional] -**loan_coin** | **string** | | [optional] -**symbol** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfoResult.md deleted file mode 100644 index 1f54d38a..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedInterestInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginIsolatedInterestInfo[]**](MarginIsolatedInterestInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLevelResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLevelResult.md deleted file mode 100644 index a30b8630..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLevelResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# # MarginIsolatedLevelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_coin** | **string** | | [optional] -**base_max_borrowable_amount** | **string** | | [optional] -**init_rate** | **string** | | [optional] -**leverage** | **string** | | [optional] -**maintain_margin_rate** | **string** | | [optional] -**quote_coin** | **string** | | [optional] -**quote_max_borrowable_amount** | **string** | | [optional] -**symbol** | **string** | | [optional] -**tier** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLimitRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLimitRequest.md deleted file mode 100644 index e9e59e86..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLimitRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedLimitRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrow_amount** | **string** | borrowAmount | -**coin** | **string** | coin | -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfo.md deleted file mode 100644 index d9babf79..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# # MarginIsolatedLiquidationInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctime** | **string** | | [optional] -**liq_end_time** | **string** | | [optional] -**liq_fee** | **string** | | [optional] -**liq_id** | **string** | | [optional] -**liq_risk** | **string** | | [optional] -**liq_start_time** | **string** | | [optional] -**symbol** | **string** | | [optional] -**total_assets** | **string** | | [optional] -**total_debt** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index 2b11169b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginIsolatedLiquidationInfo[]**](MarginIsolatedLiquidationInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfo.md deleted file mode 100644 index 826b1bc3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -# # MarginIsolatedLoanInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**loan_id** | **string** | | [optional] -**symbol** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfoResult.md deleted file mode 100644 index 6873981d..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginIsolatedLoanInfo[]**](MarginIsolatedLoanInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowRequest.md deleted file mode 100644 index 93551f37..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginIsolatedMaxBorrowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | coin | -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 3507cc9f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedMaxBorrowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | | [optional] -**max_borrowable_amount** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRateAndLimitResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRateAndLimitResult.md deleted file mode 100644 index a42851d3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,24 +0,0 @@ -# # MarginIsolatedRateAndLimitResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_borrow_able** | **bool** | | [optional] -**base_coin** | **string** | | [optional] -**base_daily_interest_rate** | **string** | | [optional] -**base_max_borrowable_amount** | **string** | | [optional] -**base_transfer_in_able** | **bool** | | [optional] -**base_vips** | [**\Bitget\Model\MarginIsolatedVipResult[]**](MarginIsolatedVipResult.md) | | [optional] -**base_yearly_interest_rate** | **string** | | [optional] -**leverage** | **string** | | [optional] -**quote_borrow_able** | **bool** | | [optional] -**quote_coin** | **string** | | [optional] -**quote_daily_interest_rate** | **string** | | [optional] -**quote_max_borrowable_amount** | **string** | | [optional] -**quote_transfer_in_able** | **bool** | | [optional] -**quote_vips** | [**\Bitget\Model\MarginIsolatedVipResult[]**](MarginIsolatedVipResult.md) | | [optional] -**quote_yearly_interest_rate** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfo.md deleted file mode 100644 index 75028493..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginIsolatedRepayInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**interest** | **string** | | [optional] -**repay_id** | **string** | | [optional] -**symbol** | **string** | | [optional] -**total_amount** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfoResult.md deleted file mode 100644 index 285623b3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginIsolatedRepayInfo[]**](MarginIsolatedRepayInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayRequest.md deleted file mode 100644 index a2a164c9..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginIsolatedRepayRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coin** | **string** | coin | -**repay_amount** | **string** | repayAmount | -**symbol** | **string** | symbol | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayResult.md deleted file mode 100644 index fbbf1ac6..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedRepayResult.md +++ /dev/null @@ -1,13 +0,0 @@ -# # MarginIsolatedRepayResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**coin** | **string** | | [optional] -**remain_debt_amount** | **string** | | [optional] -**repay_amount** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedVipResult.md b/bitget-php-sdk-open-api/docs/Model/MarginIsolatedVipResult.md deleted file mode 100644 index 75642204..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginIsolatedVipResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# # MarginIsolatedVipResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**daily_interest_rate** | **string** | | [optional] -**discount_rate** | **string** | | [optional] -**level** | **string** | | [optional] -**yearly_interest_rate** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfo.md deleted file mode 100644 index 6f49e6d0..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# # MarginLiquidationInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctime** | **string** | | [optional] -**liq_end_time** | **string** | | [optional] -**liq_fee** | **string** | | [optional] -**liq_id** | **string** | | [optional] -**liq_risk** | **string** | | [optional] -**liq_start_time** | **string** | | [optional] -**total_assets** | **string** | | [optional] -**total_debt** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfoResult.md deleted file mode 100644 index 348ba080..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginLiquidationInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginLiquidationInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginLiquidationInfo[]**](MarginLiquidationInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginLoanInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginLoanInfo.md deleted file mode 100644 index 19ec5d18..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginLoanInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -# # MarginLoanInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**loan_id** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginLoanInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginLoanInfoResult.md deleted file mode 100644 index 3ae9df3b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginLoanInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginLoanInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginLoanInfo[]**](MarginLoanInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginOpenOrderInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginOpenOrderInfoResult.md deleted file mode 100644 index e354b3a3..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginOpenOrderInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginOpenOrderInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**order_list** | [**\Bitget\Model\MarginOrderInfo[]**](MarginOrderInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginOrderInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginOrderInfo.md deleted file mode 100644 index 3240bd42..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginOrderInfo.md +++ /dev/null @@ -1,23 +0,0 @@ -# # MarginOrderInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_quantity** | **string** | | [optional] -**client_oid** | **string** | | [optional] -**ctime** | **string** | | [optional] -**fill_price** | **string** | | [optional] -**fill_quantity** | **string** | | [optional] -**fill_total_amount** | **string** | | [optional] -**loan_type** | **string** | | [optional] -**order_id** | **string** | | [optional] -**order_type** | **string** | | [optional] -**price** | **string** | | [optional] -**quote_amount** | **string** | | [optional] -**side** | **string** | | [optional] -**source** | **string** | | [optional] -**status** | **string** | | [optional] -**symbol** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginOrderRequest.md b/bitget-php-sdk-open-api/docs/Model/MarginOrderRequest.md deleted file mode 100644 index d550be2e..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginOrderRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# # MarginOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_quantity** | **string** | baseQuantity | [optional] -**channel_api_code** | **string** | | [optional] -**client_oid** | **string** | clientOid | [optional] -**ip** | **string** | | [optional] -**loan_type** | **string** | loanType | -**order_type** | **string** | orderType | -**price** | **string** | price | [optional] -**quote_amount** | **string** | quoteAmount | [optional] -**side** | **string** | side | -**symbol** | **string** | symbol | -**time_in_force** | **string** | timeInForce | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginPlaceOrderResult.md b/bitget-php-sdk-open-api/docs/Model/MarginPlaceOrderResult.md deleted file mode 100644 index af6fa841..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginPlaceOrderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MarginPlaceOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_oid** | **string** | | [optional] -**order_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginRepayInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginRepayInfo.md deleted file mode 100644 index 031ad72f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginRepayInfo.md +++ /dev/null @@ -1,15 +0,0 @@ -# # MarginRepayInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **string** | | [optional] -**coin** | **string** | | [optional] -**ctime** | **string** | | [optional] -**interest** | **string** | | [optional] -**repay_id** | **string** | | [optional] -**total_amount** | **string** | | [optional] -**type** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginRepayInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginRepayInfoResult.md deleted file mode 100644 index 6302b282..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginRepayInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginRepayInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MarginRepayInfo[]**](MarginRepayInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginSystemResult.md b/bitget-php-sdk-open-api/docs/Model/MarginSystemResult.md deleted file mode 100644 index 5aaba38f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginSystemResult.md +++ /dev/null @@ -1,25 +0,0 @@ -# # MarginSystemResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base_coin** | **string** | | [optional] -**is_borrowable** | **bool** | | [optional] -**liquidation_risk_ratio** | **string** | | [optional] -**maker_fee_rate** | **string** | | [optional] -**max_cross_leverage** | **string** | | [optional] -**max_isolated_leverage** | **string** | | [optional] -**max_trade_amount** | **string** | | [optional] -**min_trade_amount** | **string** | | [optional] -**min_trade_usdt** | **string** | | [optional] -**price_scale** | **string** | | [optional] -**quantity_scale** | **string** | | [optional] -**quote_coin** | **string** | | [optional] -**status** | **string** | | [optional] -**symbol** | **string** | | [optional] -**taker_fee_rate** | **string** | | [optional] -**user_min_borrow** | **string** | | [optional] -**warning_risk_ratio** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfo.md b/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfo.md deleted file mode 100644 index 31e9089b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -# # MarginTradeDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctime** | **string** | | [optional] -**fee_ccy** | **string** | | [optional] -**fees** | **string** | | [optional] -**fill_id** | **string** | | [optional] -**fill_price** | **string** | | [optional] -**fill_quantity** | **string** | | [optional] -**fill_total_amount** | **string** | | [optional] -**order_id** | **string** | | [optional] -**order_type** | **string** | | [optional] -**side** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfoResult.md deleted file mode 100644 index ad26b564..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MarginTradeDetailInfoResult.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MarginTradeDetailInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fills** | [**\Bitget\Model\MarginTradeDetailInfo[]**](MarginTradeDetailInfo.md) | | [optional] -**max_id** | **string** | | [optional] -**min_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantAdvInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantAdvInfo.md deleted file mode 100644 index 71f49403..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantAdvInfo.md +++ /dev/null @@ -1,30 +0,0 @@ -# # MerchantAdvInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adv_id** | **string** | | [optional] -**adv_no** | **string** | | [optional] -**amount** | **string** | | [optional] -**coin** | **string** | | [optional] -**coin_precision** | **string** | | [optional] -**ctime** | **string** | | [optional] -**deal_amount** | **string** | | [optional] -**fiat_code** | **string** | | [optional] -**fiat_precision** | **string** | | [optional] -**fiat_symbol** | **string** | | [optional] -**hide** | **string** | | [optional] -**max_amount** | **string** | | [optional] -**min_amount** | **string** | | [optional] -**pay_duration** | **string** | | [optional] -**payment_method** | [**\Bitget\Model\FiatPaymentInfo[]**](FiatPaymentInfo.md) | | [optional] -**price** | **string** | | [optional] -**remark** | **string** | | [optional] -**status** | **string** | | [optional] -**turnover_num** | **string** | | [optional] -**turnover_rate** | **string** | | [optional] -**type** | **string** | | [optional] -**user_limit** | [**\Bitget\Model\MerchantAdvUserLimitInfo**](MerchantAdvUserLimitInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantAdvResult.md b/bitget-php-sdk-open-api/docs/Model/MerchantAdvResult.md deleted file mode 100644 index d53a10f1..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantAdvResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MerchantAdvResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adv_list** | [**\Bitget\Model\MerchantAdvInfo[]**](MerchantAdvInfo.md) | | [optional] -**min_id** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantAdvUserLimitInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantAdvUserLimitInfo.md deleted file mode 100644 index 4f034bc6..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantAdvUserLimitInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -# # MerchantAdvUserLimitInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allow_merchant_place** | **string** | | [optional] -**country** | **string** | | [optional] -**max_complete_num** | **string** | | [optional] -**min_complete_num** | **string** | | [optional] -**place_order_num** | **string** | | [optional] -**thirty_complete_rate** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantInfo.md deleted file mode 100644 index 3e6ccfd7..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# # MerchantInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**average_payment** | **string** | | [optional] -**average_realese** | **string** | | [optional] -**is_online** | **string** | | [optional] -**merchant_id** | **string** | | [optional] -**nick_name** | **string** | | [optional] -**register_time** | **string** | | [optional] -**thirty_buy** | **string** | | [optional] -**thirty_completion_rate** | **string** | | [optional] -**thirty_sell** | **string** | | [optional] -**thirty_trades** | **string** | | [optional] -**total_buy** | **string** | | [optional] -**total_completion_rate** | **string** | | [optional] -**total_sell** | **string** | | [optional] -**total_trades** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantInfoResult.md b/bitget-php-sdk-open-api/docs/Model/MerchantInfoResult.md deleted file mode 100644 index 956b0ed1..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantInfoResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MerchantInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_id** | **string** | | [optional] -**result_list** | [**\Bitget\Model\MerchantInfo[]**](MerchantInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantOrderInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantOrderInfo.md deleted file mode 100644 index 80eb044f..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantOrderInfo.md +++ /dev/null @@ -1,26 +0,0 @@ -# # MerchantOrderInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adv_no** | **string** | | [optional] -**amount** | **string** | | [optional] -**buyer_real_name** | **string** | | [optional] -**coin** | **string** | | [optional] -**count** | **string** | | [optional] -**ctime** | **string** | | [optional] -**fiat** | **string** | | [optional] -**order_id** | **string** | | [optional] -**order_no** | **string** | | [optional] -**payment_info** | [**\Bitget\Model\MerchantOrderPaymentInfo**](MerchantOrderPaymentInfo.md) | | [optional] -**payment_time** | **string** | | [optional] -**price** | **string** | | [optional] -**release_coin_time** | **string** | | [optional] -**represent_time** | **string** | | [optional] -**seller_real_name** | **string** | | [optional] -**status** | **string** | | [optional] -**type** | **string** | | [optional] -**withdraw_time** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantOrderPaymentInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantOrderPaymentInfo.md deleted file mode 100644 index 9f10c354..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantOrderPaymentInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# # MerchantOrderPaymentInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**paymethod_id** | **string** | | [optional] -**paymethod_info** | [**\Bitget\Model\OrderPaymentDetailInfo[]**](OrderPaymentDetailInfo.md) | | [optional] -**paymethod_name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantOrderResult.md b/bitget-php-sdk-open-api/docs/Model/MerchantOrderResult.md deleted file mode 100644 index 78f0b4c2..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantOrderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -# # MerchantOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_id** | **string** | | [optional] -**order_list** | [**\Bitget\Model\MerchantOrderInfo[]**](MerchantOrderInfo.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/MerchantPersonInfo.md b/bitget-php-sdk-open-api/docs/Model/MerchantPersonInfo.md deleted file mode 100644 index 429ca43b..00000000 --- a/bitget-php-sdk-open-api/docs/Model/MerchantPersonInfo.md +++ /dev/null @@ -1,27 +0,0 @@ -# # MerchantPersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**average_payment** | **string** | | [optional] -**average_realese** | **string** | | [optional] -**email** | **string** | | [optional] -**email_bind_flag** | **bool** | | [optional] -**kyc_flag** | **bool** | | [optional] -**merchant_id** | **string** | | [optional] -**mobile** | **string** | | [optional] -**mobile_bind_flag** | **bool** | | [optional] -**nick_name** | **string** | | [optional] -**real_name** | **string** | | [optional] -**register_time** | **string** | | [optional] -**thirty_buy** | **string** | | [optional] -**thirty_completion_rate** | **string** | | [optional] -**thirty_sell** | **string** | | [optional] -**thirty_trades** | **string** | | [optional] -**total_buy** | **string** | | [optional] -**total_completion_rate** | **string** | | [optional] -**total_sell** | **string** | | [optional] -**total_trades** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/docs/Model/OrderPaymentDetailInfo.md b/bitget-php-sdk-open-api/docs/Model/OrderPaymentDetailInfo.md deleted file mode 100644 index 48731caf..00000000 --- a/bitget-php-sdk-open-api/docs/Model/OrderPaymentDetailInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# # OrderPaymentDetailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] -**required** | **bool** | | [optional] -**type** | **string** | | [optional] -**value** | **string** | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/bitget-php-sdk-open-api/git_push.sh b/bitget-php-sdk-open-api/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/bitget-php-sdk-open-api/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossAccountApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossAccountApi.php deleted file mode 100644 index dc5c8d73..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossAccountApi.php +++ /dev/null @@ -1,2759 +0,0 @@ - [ - 'application/json', - ], - 'marginCrossAccountBorrow' => [ - 'application/json', - ], - 'marginCrossAccountMaxBorrowableAmount' => [ - 'application/json', - ], - 'marginCrossAccountMaxTransferOutAmount' => [ - 'application/json', - ], - 'marginCrossAccountRepay' => [ - 'application/json', - ], - 'marginCrossAccountRiskRate' => [ - 'application/json', - ], - 'void' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginCrossAccountAssets - * - * assets - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountAssets'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountAssets($coin, string $contentType = self::contentTypes['marginCrossAccountAssets'][0]) - { - list($response) = $this->marginCrossAccountAssetsWithHttpInfo($coin, $contentType); - return $response; - } - - /** - * Operation marginCrossAccountAssetsWithHttpInfo - * - * assets - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountAssets'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountAssetsWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossAccountAssets'][0]) - { - $request = $this->marginCrossAccountAssetsRequest($coin, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountAssetsAsync - * - * assets - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountAssetsAsync($coin, string $contentType = self::contentTypes['marginCrossAccountAssets'][0]) - { - return $this->marginCrossAccountAssetsAsyncWithHttpInfo($coin, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountAssetsAsyncWithHttpInfo - * - * assets - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountAssetsAsyncWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossAccountAssets'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossAssetsPopulationResult'; - $request = $this->marginCrossAccountAssetsRequest($coin, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountAssets' - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountAssetsRequest($coin, string $contentType = self::contentTypes['marginCrossAccountAssets'][0]) - { - - // verify the required parameter 'coin' is set - if ($coin === null || (is_array($coin) && count($coin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $coin when calling marginCrossAccountAssets' - ); - } - - - $resourcePath = '/api/margin/v1/cross/account/assets'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossAccountBorrow - * - * borrow - * - * @param \Bitget\Model\MarginCrossLimitRequest $margin_cross_limit_request marginCrossLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountBorrow'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountBorrow($margin_cross_limit_request, string $contentType = self::contentTypes['marginCrossAccountBorrow'][0]) - { - list($response) = $this->marginCrossAccountBorrowWithHttpInfo($margin_cross_limit_request, $contentType); - return $response; - } - - /** - * Operation marginCrossAccountBorrowWithHttpInfo - * - * borrow - * - * @param \Bitget\Model\MarginCrossLimitRequest $margin_cross_limit_request marginCrossLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountBorrow'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountBorrowWithHttpInfo($margin_cross_limit_request, string $contentType = self::contentTypes['marginCrossAccountBorrow'][0]) - { - $request = $this->marginCrossAccountBorrowRequest($margin_cross_limit_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountBorrowAsync - * - * borrow - * - * @param \Bitget\Model\MarginCrossLimitRequest $margin_cross_limit_request marginCrossLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountBorrowAsync($margin_cross_limit_request, string $contentType = self::contentTypes['marginCrossAccountBorrow'][0]) - { - return $this->marginCrossAccountBorrowAsyncWithHttpInfo($margin_cross_limit_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountBorrowAsyncWithHttpInfo - * - * borrow - * - * @param \Bitget\Model\MarginCrossLimitRequest $margin_cross_limit_request marginCrossLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountBorrowAsyncWithHttpInfo($margin_cross_limit_request, string $contentType = self::contentTypes['marginCrossAccountBorrow'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossBorrowLimitResult'; - $request = $this->marginCrossAccountBorrowRequest($margin_cross_limit_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountBorrow' - * - * @param \Bitget\Model\MarginCrossLimitRequest $margin_cross_limit_request marginCrossLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountBorrowRequest($margin_cross_limit_request, string $contentType = self::contentTypes['marginCrossAccountBorrow'][0]) - { - - // verify the required parameter 'margin_cross_limit_request' is set - if ($margin_cross_limit_request === null || (is_array($margin_cross_limit_request) && count($margin_cross_limit_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_cross_limit_request when calling marginCrossAccountBorrow' - ); - } - - - $resourcePath = '/api/margin/v1/cross/account/borrow'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_cross_limit_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_cross_limit_request)); - } else { - $httpBody = $margin_cross_limit_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossAccountMaxBorrowableAmount - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginCrossMaxBorrowRequest $margin_cross_max_borrow_request marginCrossMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountMaxBorrowableAmount($margin_cross_max_borrow_request, string $contentType = self::contentTypes['marginCrossAccountMaxBorrowableAmount'][0]) - { - list($response) = $this->marginCrossAccountMaxBorrowableAmountWithHttpInfo($margin_cross_max_borrow_request, $contentType); - return $response; - } - - /** - * Operation marginCrossAccountMaxBorrowableAmountWithHttpInfo - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginCrossMaxBorrowRequest $margin_cross_max_borrow_request marginCrossMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountMaxBorrowableAmountWithHttpInfo($margin_cross_max_borrow_request, string $contentType = self::contentTypes['marginCrossAccountMaxBorrowableAmount'][0]) - { - $request = $this->marginCrossAccountMaxBorrowableAmountRequest($margin_cross_max_borrow_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountMaxBorrowableAmountAsync - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginCrossMaxBorrowRequest $margin_cross_max_borrow_request marginCrossMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountMaxBorrowableAmountAsync($margin_cross_max_borrow_request, string $contentType = self::contentTypes['marginCrossAccountMaxBorrowableAmount'][0]) - { - return $this->marginCrossAccountMaxBorrowableAmountAsyncWithHttpInfo($margin_cross_max_borrow_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountMaxBorrowableAmountAsyncWithHttpInfo - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginCrossMaxBorrowRequest $margin_cross_max_borrow_request marginCrossMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountMaxBorrowableAmountAsyncWithHttpInfo($margin_cross_max_borrow_request, string $contentType = self::contentTypes['marginCrossAccountMaxBorrowableAmount'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossMaxBorrowResult'; - $request = $this->marginCrossAccountMaxBorrowableAmountRequest($margin_cross_max_borrow_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountMaxBorrowableAmount' - * - * @param \Bitget\Model\MarginCrossMaxBorrowRequest $margin_cross_max_borrow_request marginCrossMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountMaxBorrowableAmountRequest($margin_cross_max_borrow_request, string $contentType = self::contentTypes['marginCrossAccountMaxBorrowableAmount'][0]) - { - - // verify the required parameter 'margin_cross_max_borrow_request' is set - if ($margin_cross_max_borrow_request === null || (is_array($margin_cross_max_borrow_request) && count($margin_cross_max_borrow_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_cross_max_borrow_request when calling marginCrossAccountMaxBorrowableAmount' - ); - } - - - $resourcePath = '/api/margin/v1/cross/account/maxBorrowableAmount'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_cross_max_borrow_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_cross_max_borrow_request)); - } else { - $httpBody = $margin_cross_max_borrow_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossAccountMaxTransferOutAmount - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountMaxTransferOutAmount($coin, string $contentType = self::contentTypes['marginCrossAccountMaxTransferOutAmount'][0]) - { - list($response) = $this->marginCrossAccountMaxTransferOutAmountWithHttpInfo($coin, $contentType); - return $response; - } - - /** - * Operation marginCrossAccountMaxTransferOutAmountWithHttpInfo - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountMaxTransferOutAmountWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossAccountMaxTransferOutAmount'][0]) - { - $request = $this->marginCrossAccountMaxTransferOutAmountRequest($coin, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountMaxTransferOutAmountAsync - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountMaxTransferOutAmountAsync($coin, string $contentType = self::contentTypes['marginCrossAccountMaxTransferOutAmount'][0]) - { - return $this->marginCrossAccountMaxTransferOutAmountAsyncWithHttpInfo($coin, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountMaxTransferOutAmountAsyncWithHttpInfo - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountMaxTransferOutAmountAsyncWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossAccountMaxTransferOutAmount'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsResult'; - $request = $this->marginCrossAccountMaxTransferOutAmountRequest($coin, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountMaxTransferOutAmount' - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountMaxTransferOutAmountRequest($coin, string $contentType = self::contentTypes['marginCrossAccountMaxTransferOutAmount'][0]) - { - - // verify the required parameter 'coin' is set - if ($coin === null || (is_array($coin) && count($coin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $coin when calling marginCrossAccountMaxTransferOutAmount' - ); - } - - - $resourcePath = '/api/margin/v1/cross/account/maxTransferOutAmount'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossAccountRepay - * - * repay - * - * @param \Bitget\Model\MarginCrossRepayRequest $margin_cross_repay_request marginCrossRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRepay'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossRepayResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountRepay($margin_cross_repay_request, string $contentType = self::contentTypes['marginCrossAccountRepay'][0]) - { - list($response) = $this->marginCrossAccountRepayWithHttpInfo($margin_cross_repay_request, $contentType); - return $response; - } - - /** - * Operation marginCrossAccountRepayWithHttpInfo - * - * repay - * - * @param \Bitget\Model\MarginCrossRepayRequest $margin_cross_repay_request marginCrossRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRepay'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossRepayResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountRepayWithHttpInfo($margin_cross_repay_request, string $contentType = self::contentTypes['marginCrossAccountRepay'][0]) - { - $request = $this->marginCrossAccountRepayRequest($margin_cross_repay_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountRepayAsync - * - * repay - * - * @param \Bitget\Model\MarginCrossRepayRequest $margin_cross_repay_request marginCrossRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountRepayAsync($margin_cross_repay_request, string $contentType = self::contentTypes['marginCrossAccountRepay'][0]) - { - return $this->marginCrossAccountRepayAsyncWithHttpInfo($margin_cross_repay_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountRepayAsyncWithHttpInfo - * - * repay - * - * @param \Bitget\Model\MarginCrossRepayRequest $margin_cross_repay_request marginCrossRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountRepayAsyncWithHttpInfo($margin_cross_repay_request, string $contentType = self::contentTypes['marginCrossAccountRepay'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossRepayResult'; - $request = $this->marginCrossAccountRepayRequest($margin_cross_repay_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountRepay' - * - * @param \Bitget\Model\MarginCrossRepayRequest $margin_cross_repay_request marginCrossRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountRepayRequest($margin_cross_repay_request, string $contentType = self::contentTypes['marginCrossAccountRepay'][0]) - { - - // verify the required parameter 'margin_cross_repay_request' is set - if ($margin_cross_repay_request === null || (is_array($margin_cross_repay_request) && count($margin_cross_repay_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_cross_repay_request when calling marginCrossAccountRepay' - ); - } - - - $resourcePath = '/api/margin/v1/cross/account/repay'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_cross_repay_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_cross_repay_request)); - } else { - $httpBody = $margin_cross_repay_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossAccountRiskRate - * - * riskRate - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRiskRate'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossAccountRiskRate(string $contentType = self::contentTypes['marginCrossAccountRiskRate'][0]) - { - list($response) = $this->marginCrossAccountRiskRateWithHttpInfo($contentType); - return $response; - } - - /** - * Operation marginCrossAccountRiskRateWithHttpInfo - * - * riskRate - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRiskRate'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossAccountRiskRateWithHttpInfo(string $contentType = self::contentTypes['marginCrossAccountRiskRate'][0]) - { - $request = $this->marginCrossAccountRiskRateRequest($contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossAccountRiskRateAsync - * - * riskRate - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountRiskRateAsync(string $contentType = self::contentTypes['marginCrossAccountRiskRate'][0]) - { - return $this->marginCrossAccountRiskRateAsyncWithHttpInfo($contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossAccountRiskRateAsyncWithHttpInfo - * - * riskRate - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossAccountRiskRateAsyncWithHttpInfo(string $contentType = self::contentTypes['marginCrossAccountRiskRate'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossAssetsRiskResult'; - $request = $this->marginCrossAccountRiskRateRequest($contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossAccountRiskRate' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossAccountRiskRateRequest(string $contentType = self::contentTypes['marginCrossAccountRiskRate'][0]) - { - - - $resourcePath = '/api/margin/v1/cross/account/riskRate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation void - * - * void - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['void'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function void(string $contentType = self::contentTypes['void'][0]) - { - list($response) = $this->voidWithHttpInfo($contentType); - return $response; - } - - /** - * Operation voidWithHttpInfo - * - * void - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['void'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function voidWithHttpInfo(string $contentType = self::contentTypes['void'][0]) - { - $request = $this->voidRequest($contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfVoid'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation voidAsync - * - * void - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['void'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function voidAsync(string $contentType = self::contentTypes['void'][0]) - { - return $this->voidAsyncWithHttpInfo($contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation voidAsyncWithHttpInfo - * - * void - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['void'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function voidAsyncWithHttpInfo(string $contentType = self::contentTypes['void'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfVoid'; - $request = $this->voidRequest($contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'void' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['void'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function voidRequest(string $contentType = self::contentTypes['void'][0]) - { - - - $resourcePath = '/api/margin/v1/cross/account/void'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossBorrowApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossBorrowApi.php deleted file mode 100644 index 8e2ca505..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossBorrowApi.php +++ /dev/null @@ -1,596 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation crossLoanList - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLoanList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginLoanInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function crossLoanList($start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLoanList'][0]) - { - list($response) = $this->crossLoanListWithHttpInfo($start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation crossLoanListWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLoanList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginLoanInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function crossLoanListWithHttpInfo($start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLoanList'][0]) - { - $request = $this->crossLoanListRequest($start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation crossLoanListAsync - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossLoanListAsync($start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLoanList'][0]) - { - return $this->crossLoanListAsyncWithHttpInfo($start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation crossLoanListAsyncWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossLoanListAsyncWithHttpInfo($start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLoanList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginLoanInfoResult'; - $request = $this->crossLoanListRequest($start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'crossLoanList' - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function crossLoanListRequest($start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLoanList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling crossLoanList' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/cross/loan/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $loan_id, - 'loanId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossFinflowApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossFinflowApi.php deleted file mode 100644 index f5c5a54e..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossFinflowApi.php +++ /dev/null @@ -1,596 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation crossFinList - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $margin_type marginType (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossFinList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function crossFinList($start_time, $coin = null, $end_time = null, $margin_type = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossFinList'][0]) - { - list($response) = $this->crossFinListWithHttpInfo($start_time, $coin, $end_time, $margin_type, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation crossFinListWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $margin_type marginType (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossFinList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function crossFinListWithHttpInfo($start_time, $coin = null, $end_time = null, $margin_type = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossFinList'][0]) - { - $request = $this->crossFinListRequest($start_time, $coin, $end_time, $margin_type, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation crossFinListAsync - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $margin_type marginType (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossFinListAsync($start_time, $coin = null, $end_time = null, $margin_type = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossFinList'][0]) - { - return $this->crossFinListAsyncWithHttpInfo($start_time, $coin, $end_time, $margin_type, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation crossFinListAsyncWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $margin_type marginType (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossFinListAsyncWithHttpInfo($start_time, $coin = null, $end_time = null, $margin_type = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossFinList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginCrossFinFlowResult'; - $request = $this->crossFinListRequest($start_time, $coin, $end_time, $margin_type, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'crossFinList' - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $margin_type marginType (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function crossFinListRequest($start_time, $coin = null, $end_time = null, $margin_type = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossFinList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling crossFinList' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/cross/fin/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $margin_type, - 'marginType', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossInterestApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossInterestApi.php deleted file mode 100644 index 57614c5a..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossInterestApi.php +++ /dev/null @@ -1,566 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation crossInterestList - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossInterestList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginInterestInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function crossInterestList($start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossInterestList'][0]) - { - list($response) = $this->crossInterestListWithHttpInfo($start_time, $coin, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation crossInterestListWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossInterestList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginInterestInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function crossInterestListWithHttpInfo($start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossInterestList'][0]) - { - $request = $this->crossInterestListRequest($start_time, $coin, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation crossInterestListAsync - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossInterestListAsync($start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossInterestList'][0]) - { - return $this->crossInterestListAsyncWithHttpInfo($start_time, $coin, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation crossInterestListAsyncWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossInterestListAsyncWithHttpInfo($start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossInterestList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginInterestInfoResult'; - $request = $this->crossInterestListRequest($start_time, $coin, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'crossInterestList' - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function crossInterestListRequest($start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossInterestList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling crossInterestList' - ); - } - - - - - - $resourcePath = '/api/margin/v1/cross/interest/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossLiquidationApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossLiquidationApi.php deleted file mode 100644 index aeeca26d..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossLiquidationApi.php +++ /dev/null @@ -1,566 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation crossLiquidationList - * - * list - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLiquidationList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function crossLiquidationList($start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLiquidationList'][0]) - { - list($response) = $this->crossLiquidationListWithHttpInfo($start_time, $end_time, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation crossLiquidationListWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLiquidationList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function crossLiquidationListWithHttpInfo($start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLiquidationList'][0]) - { - $request = $this->crossLiquidationListRequest($start_time, $end_time, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation crossLiquidationListAsync - * - * list - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossLiquidationListAsync($start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLiquidationList'][0]) - { - return $this->crossLiquidationListAsyncWithHttpInfo($start_time, $end_time, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation crossLiquidationListAsyncWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossLiquidationListAsyncWithHttpInfo($start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLiquidationList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginLiquidationInfoResult'; - $request = $this->crossLiquidationListRequest($start_time, $end_time, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'crossLiquidationList' - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function crossLiquidationListRequest($start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossLiquidationList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling crossLiquidationList' - ); - } - - - - - - $resourcePath = '/api/margin/v1/cross/liquidation/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossOrderApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossOrderApi.php deleted file mode 100644 index 3acc977f..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossOrderApi.php +++ /dev/null @@ -1,3087 +0,0 @@ - [ - 'application/json', - ], - 'marginCrossBatchPlaceOrder' => [ - 'application/json', - ], - 'marginCrossCancelOrder' => [ - 'application/json', - ], - 'marginCrossFills' => [ - 'application/json', - ], - 'marginCrossHistoryOrders' => [ - 'application/json', - ], - 'marginCrossOpenOrders' => [ - 'application/json', - ], - 'marginCrossPlaceOrder' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginCrossBatchCancelOrder - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossBatchCancelOrder($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginCrossBatchCancelOrder'][0]) - { - list($response) = $this->marginCrossBatchCancelOrderWithHttpInfo($margin_batch_cancel_order_request, $contentType); - return $response; - } - - /** - * Operation marginCrossBatchCancelOrderWithHttpInfo - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossBatchCancelOrderWithHttpInfo($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginCrossBatchCancelOrder'][0]) - { - $request = $this->marginCrossBatchCancelOrderRequest($margin_batch_cancel_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossBatchCancelOrderAsync - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossBatchCancelOrderAsync($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginCrossBatchCancelOrder'][0]) - { - return $this->marginCrossBatchCancelOrderAsyncWithHttpInfo($margin_batch_cancel_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossBatchCancelOrderAsyncWithHttpInfo - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossBatchCancelOrderAsyncWithHttpInfo($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginCrossBatchCancelOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - $request = $this->marginCrossBatchCancelOrderRequest($margin_batch_cancel_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossBatchCancelOrder' - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossBatchCancelOrderRequest($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginCrossBatchCancelOrder'][0]) - { - - // verify the required parameter 'margin_batch_cancel_order_request' is set - if ($margin_batch_cancel_order_request === null || (is_array($margin_batch_cancel_order_request) && count($margin_batch_cancel_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_batch_cancel_order_request when calling marginCrossBatchCancelOrder' - ); - } - - - $resourcePath = '/api/margin/v1/cross/order/batchCancelOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_batch_cancel_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_batch_cancel_order_request)); - } else { - $httpBody = $margin_batch_cancel_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossBatchPlaceOrder - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossBatchPlaceOrder($margin_order_request, string $contentType = self::contentTypes['marginCrossBatchPlaceOrder'][0]) - { - list($response) = $this->marginCrossBatchPlaceOrderWithHttpInfo($margin_order_request, $contentType); - return $response; - } - - /** - * Operation marginCrossBatchPlaceOrderWithHttpInfo - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossBatchPlaceOrderWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginCrossBatchPlaceOrder'][0]) - { - $request = $this->marginCrossBatchPlaceOrderRequest($margin_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossBatchPlaceOrderAsync - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossBatchPlaceOrderAsync($margin_order_request, string $contentType = self::contentTypes['marginCrossBatchPlaceOrder'][0]) - { - return $this->marginCrossBatchPlaceOrderAsyncWithHttpInfo($margin_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossBatchPlaceOrderAsyncWithHttpInfo - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossBatchPlaceOrderAsyncWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginCrossBatchPlaceOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult'; - $request = $this->marginCrossBatchPlaceOrderRequest($margin_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossBatchPlaceOrder' - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossBatchPlaceOrderRequest($margin_order_request, string $contentType = self::contentTypes['marginCrossBatchPlaceOrder'][0]) - { - - // verify the required parameter 'margin_order_request' is set - if ($margin_order_request === null || (is_array($margin_order_request) && count($margin_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_order_request when calling marginCrossBatchPlaceOrder' - ); - } - - - $resourcePath = '/api/margin/v1/cross/order/batchPlaceOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_order_request)); - } else { - $httpBody = $margin_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossCancelOrder - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossCancelOrder($margin_cancel_order_request, string $contentType = self::contentTypes['marginCrossCancelOrder'][0]) - { - list($response) = $this->marginCrossCancelOrderWithHttpInfo($margin_cancel_order_request, $contentType); - return $response; - } - - /** - * Operation marginCrossCancelOrderWithHttpInfo - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossCancelOrderWithHttpInfo($margin_cancel_order_request, string $contentType = self::contentTypes['marginCrossCancelOrder'][0]) - { - $request = $this->marginCrossCancelOrderRequest($margin_cancel_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossCancelOrderAsync - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossCancelOrderAsync($margin_cancel_order_request, string $contentType = self::contentTypes['marginCrossCancelOrder'][0]) - { - return $this->marginCrossCancelOrderAsyncWithHttpInfo($margin_cancel_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossCancelOrderAsyncWithHttpInfo - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossCancelOrderAsyncWithHttpInfo($margin_cancel_order_request, string $contentType = self::contentTypes['marginCrossCancelOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - $request = $this->marginCrossCancelOrderRequest($margin_cancel_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossCancelOrder' - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossCancelOrderRequest($margin_cancel_order_request, string $contentType = self::contentTypes['marginCrossCancelOrder'][0]) - { - - // verify the required parameter 'margin_cancel_order_request' is set - if ($margin_cancel_order_request === null || (is_array($margin_cancel_order_request) && count($margin_cancel_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_cancel_order_request when calling marginCrossCancelOrder' - ); - } - - - $resourcePath = '/api/margin/v1/cross/order/cancelOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_cancel_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_cancel_order_request)); - } else { - $httpBody = $margin_cancel_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossFills - * - * fills - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossFills'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossFills($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossFills'][0]) - { - list($response) = $this->marginCrossFillsWithHttpInfo($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - return $response; - } - - /** - * Operation marginCrossFillsWithHttpInfo - * - * fills - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossFills'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossFillsWithHttpInfo($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossFills'][0]) - { - $request = $this->marginCrossFillsRequest($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossFillsAsync - * - * fills - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossFillsAsync($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossFills'][0]) - { - return $this->marginCrossFillsAsyncWithHttpInfo($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossFillsAsyncWithHttpInfo - * - * fills - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossFillsAsyncWithHttpInfo($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossFills'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult'; - $request = $this->marginCrossFillsRequest($symbol, $start_time, $source, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossFills' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossFillsRequest($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossFills'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginCrossFills' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginCrossFills' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/cross/order/fills'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $source, - 'source', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $last_fill_id, - 'lastFillId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossHistoryOrders - * - * history - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $min_id minId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossHistoryOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossHistoryOrders($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $client_oid = null, $min_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossHistoryOrders'][0]) - { - list($response) = $this->marginCrossHistoryOrdersWithHttpInfo($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size, $contentType); - return $response; - } - - /** - * Operation marginCrossHistoryOrdersWithHttpInfo - * - * history - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $min_id minId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossHistoryOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossHistoryOrdersWithHttpInfo($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $client_oid = null, $min_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossHistoryOrders'][0]) - { - $request = $this->marginCrossHistoryOrdersRequest($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossHistoryOrdersAsync - * - * history - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $min_id minId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossHistoryOrdersAsync($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $client_oid = null, $min_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossHistoryOrders'][0]) - { - return $this->marginCrossHistoryOrdersAsyncWithHttpInfo($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossHistoryOrdersAsyncWithHttpInfo - * - * history - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $min_id minId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossHistoryOrdersAsyncWithHttpInfo($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $client_oid = null, $min_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossHistoryOrders'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - $request = $this->marginCrossHistoryOrdersRequest($symbol, $start_time, $source, $end_time, $order_id, $client_oid, $min_id, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossHistoryOrders' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $min_id minId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossHistoryOrdersRequest($symbol, $start_time, $source = null, $end_time = null, $order_id = null, $client_oid = null, $min_id = null, $page_size = null, string $contentType = self::contentTypes['marginCrossHistoryOrders'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginCrossHistoryOrders' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginCrossHistoryOrders' - ); - } - - - - - - - - - $resourcePath = '/api/margin/v1/cross/order/history'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $source, - 'source', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $client_oid, - 'clientOid', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $min_id, - 'minId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossOpenOrders - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossOpenOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossOpenOrders($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginCrossOpenOrders'][0]) - { - list($response) = $this->marginCrossOpenOrdersWithHttpInfo($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - return $response; - } - - /** - * Operation marginCrossOpenOrdersWithHttpInfo - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossOpenOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossOpenOrdersWithHttpInfo($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginCrossOpenOrders'][0]) - { - $request = $this->marginCrossOpenOrdersRequest($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossOpenOrdersAsync - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossOpenOrdersAsync($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginCrossOpenOrders'][0]) - { - return $this->marginCrossOpenOrdersAsyncWithHttpInfo($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossOpenOrdersAsyncWithHttpInfo - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossOpenOrdersAsyncWithHttpInfo($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginCrossOpenOrders'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - $request = $this->marginCrossOpenOrdersRequest($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossOpenOrders' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossOpenOrdersRequest($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginCrossOpenOrders'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginCrossOpenOrders' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginCrossOpenOrders' - ); - } - - - - - - - $resourcePath = '/api/margin/v1/cross/order/openOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $client_oid, - 'clientOid', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossPlaceOrder - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossPlaceOrder($margin_order_request, string $contentType = self::contentTypes['marginCrossPlaceOrder'][0]) - { - list($response) = $this->marginCrossPlaceOrderWithHttpInfo($margin_order_request, $contentType); - return $response; - } - - /** - * Operation marginCrossPlaceOrderWithHttpInfo - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossPlaceOrderWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginCrossPlaceOrder'][0]) - { - $request = $this->marginCrossPlaceOrderRequest($margin_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossPlaceOrderAsync - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPlaceOrderAsync($margin_order_request, string $contentType = self::contentTypes['marginCrossPlaceOrder'][0]) - { - return $this->marginCrossPlaceOrderAsyncWithHttpInfo($margin_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossPlaceOrderAsyncWithHttpInfo - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPlaceOrderAsyncWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginCrossPlaceOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult'; - $request = $this->marginCrossPlaceOrderRequest($margin_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossPlaceOrder' - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossPlaceOrderRequest($margin_order_request, string $contentType = self::contentTypes['marginCrossPlaceOrder'][0]) - { - - // verify the required parameter 'margin_order_request' is set - if ($margin_order_request === null || (is_array($margin_order_request) && count($margin_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_order_request when calling marginCrossPlaceOrder' - ); - } - - - $resourcePath = '/api/margin/v1/cross/order/placeOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_order_request)); - } else { - $httpBody = $margin_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossPublicApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossPublicApi.php deleted file mode 100644 index dd85a1ad..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossPublicApi.php +++ /dev/null @@ -1,852 +0,0 @@ - [ - 'application/json', - ], - 'marginCrossPublicTierData' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginCrossPublicInterestRateAndLimit - * - * interestRateAndLimit - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossPublicInterestRateAndLimit($coin, string $contentType = self::contentTypes['marginCrossPublicInterestRateAndLimit'][0]) - { - list($response) = $this->marginCrossPublicInterestRateAndLimitWithHttpInfo($coin, $contentType); - return $response; - } - - /** - * Operation marginCrossPublicInterestRateAndLimitWithHttpInfo - * - * interestRateAndLimit - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossPublicInterestRateAndLimitWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossPublicInterestRateAndLimit'][0]) - { - $request = $this->marginCrossPublicInterestRateAndLimitRequest($coin, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossPublicInterestRateAndLimitAsync - * - * interestRateAndLimit - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPublicInterestRateAndLimitAsync($coin, string $contentType = self::contentTypes['marginCrossPublicInterestRateAndLimit'][0]) - { - return $this->marginCrossPublicInterestRateAndLimitAsyncWithHttpInfo($coin, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossPublicInterestRateAndLimitAsyncWithHttpInfo - * - * interestRateAndLimit - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPublicInterestRateAndLimitAsyncWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossPublicInterestRateAndLimit'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossRateAndLimitResult'; - $request = $this->marginCrossPublicInterestRateAndLimitRequest($coin, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossPublicInterestRateAndLimit' - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossPublicInterestRateAndLimitRequest($coin, string $contentType = self::contentTypes['marginCrossPublicInterestRateAndLimit'][0]) - { - - // verify the required parameter 'coin' is set - if ($coin === null || (is_array($coin) && count($coin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $coin when calling marginCrossPublicInterestRateAndLimit' - ); - } - - - $resourcePath = '/api/margin/v1/cross/public/interestRateAndLimit'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginCrossPublicTierData - * - * tierData - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicTierData'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginCrossPublicTierData($coin, string $contentType = self::contentTypes['marginCrossPublicTierData'][0]) - { - list($response) = $this->marginCrossPublicTierDataWithHttpInfo($coin, $contentType); - return $response; - } - - /** - * Operation marginCrossPublicTierDataWithHttpInfo - * - * tierData - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicTierData'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginCrossPublicTierDataWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossPublicTierData'][0]) - { - $request = $this->marginCrossPublicTierDataRequest($coin, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginCrossPublicTierDataAsync - * - * tierData - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPublicTierDataAsync($coin, string $contentType = self::contentTypes['marginCrossPublicTierData'][0]) - { - return $this->marginCrossPublicTierDataAsyncWithHttpInfo($coin, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginCrossPublicTierDataAsyncWithHttpInfo - * - * tierData - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginCrossPublicTierDataAsyncWithHttpInfo($coin, string $contentType = self::contentTypes['marginCrossPublicTierData'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginCrossLevelResult'; - $request = $this->marginCrossPublicTierDataRequest($coin, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginCrossPublicTierData' - * - * @param string $coin coin (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginCrossPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginCrossPublicTierDataRequest($coin, string $contentType = self::contentTypes['marginCrossPublicTierData'][0]) - { - - // verify the required parameter 'coin' is set - if ($coin === null || (is_array($coin) && count($coin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $coin when calling marginCrossPublicTierData' - ); - } - - - $resourcePath = '/api/margin/v1/cross/public/tierData'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginCrossRepayApi.php b/bitget-php-sdk-open-api/lib/Api/MarginCrossRepayApi.php deleted file mode 100644 index 790226a6..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginCrossRepayApi.php +++ /dev/null @@ -1,596 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation crossRepayList - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossRepayList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginRepayInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function crossRepayList($start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossRepayList'][0]) - { - list($response) = $this->crossRepayListWithHttpInfo($start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation crossRepayListWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossRepayList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginRepayInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function crossRepayListWithHttpInfo($start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossRepayList'][0]) - { - $request = $this->crossRepayListRequest($start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation crossRepayListAsync - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossRepayListAsync($start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossRepayList'][0]) - { - return $this->crossRepayListAsyncWithHttpInfo($start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation crossRepayListAsyncWithHttpInfo - * - * list - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function crossRepayListAsyncWithHttpInfo($start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossRepayList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginRepayInfoResult'; - $request = $this->crossRepayListRequest($start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'crossRepayList' - * - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crossRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function crossRepayListRequest($start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['crossRepayList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling crossRepayList' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/cross/repay/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $repay_id, - 'repayId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedAccountApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedAccountApi.php deleted file mode 100644 index 747b0173..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedAccountApi.php +++ /dev/null @@ -1,2439 +0,0 @@ - [ - 'application/json', - ], - 'marginIsolatedAccountBorrow' => [ - 'application/json', - ], - 'marginIsolatedAccountMaxBorrowableAmount' => [ - 'application/json', - ], - 'marginIsolatedAccountMaxTransferOutAmount' => [ - 'application/json', - ], - 'marginIsolatedAccountRepay' => [ - 'application/json', - ], - 'marginIsolatedAccountRiskRate' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginIsolatedAccountAssets - * - * assets - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountAssets'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountAssets($symbol, string $contentType = self::contentTypes['marginIsolatedAccountAssets'][0]) - { - list($response) = $this->marginIsolatedAccountAssetsWithHttpInfo($symbol, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountAssetsWithHttpInfo - * - * assets - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountAssets'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountAssetsWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedAccountAssets'][0]) - { - $request = $this->marginIsolatedAccountAssetsRequest($symbol, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountAssetsAsync - * - * assets - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountAssetsAsync($symbol, string $contentType = self::contentTypes['marginIsolatedAccountAssets'][0]) - { - return $this->marginIsolatedAccountAssetsAsyncWithHttpInfo($symbol, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountAssetsAsyncWithHttpInfo - * - * assets - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountAssetsAsyncWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedAccountAssets'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; - $request = $this->marginIsolatedAccountAssetsRequest($symbol, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountAssets' - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountAssets'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountAssetsRequest($symbol, string $contentType = self::contentTypes['marginIsolatedAccountAssets'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginIsolatedAccountAssets' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/assets'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedAccountBorrow - * - * borrow - * - * @param \Bitget\Model\MarginIsolatedLimitRequest $margin_isolated_limit_request marginIsolatedLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountBorrow'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountBorrow($margin_isolated_limit_request, string $contentType = self::contentTypes['marginIsolatedAccountBorrow'][0]) - { - list($response) = $this->marginIsolatedAccountBorrowWithHttpInfo($margin_isolated_limit_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountBorrowWithHttpInfo - * - * borrow - * - * @param \Bitget\Model\MarginIsolatedLimitRequest $margin_isolated_limit_request marginIsolatedLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountBorrow'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountBorrowWithHttpInfo($margin_isolated_limit_request, string $contentType = self::contentTypes['marginIsolatedAccountBorrow'][0]) - { - $request = $this->marginIsolatedAccountBorrowRequest($margin_isolated_limit_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountBorrowAsync - * - * borrow - * - * @param \Bitget\Model\MarginIsolatedLimitRequest $margin_isolated_limit_request marginIsolatedLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountBorrowAsync($margin_isolated_limit_request, string $contentType = self::contentTypes['marginIsolatedAccountBorrow'][0]) - { - return $this->marginIsolatedAccountBorrowAsyncWithHttpInfo($margin_isolated_limit_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountBorrowAsyncWithHttpInfo - * - * borrow - * - * @param \Bitget\Model\MarginIsolatedLimitRequest $margin_isolated_limit_request marginIsolatedLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountBorrowAsyncWithHttpInfo($margin_isolated_limit_request, string $contentType = self::contentTypes['marginIsolatedAccountBorrow'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedBorrowLimitResult'; - $request = $this->marginIsolatedAccountBorrowRequest($margin_isolated_limit_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountBorrow' - * - * @param \Bitget\Model\MarginIsolatedLimitRequest $margin_isolated_limit_request marginIsolatedLimitRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountBorrow'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountBorrowRequest($margin_isolated_limit_request, string $contentType = self::contentTypes['marginIsolatedAccountBorrow'][0]) - { - - // verify the required parameter 'margin_isolated_limit_request' is set - if ($margin_isolated_limit_request === null || (is_array($margin_isolated_limit_request) && count($margin_isolated_limit_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_isolated_limit_request when calling marginIsolatedAccountBorrow' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/borrow'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_isolated_limit_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_isolated_limit_request)); - } else { - $httpBody = $margin_isolated_limit_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedAccountMaxBorrowableAmount - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowRequest $margin_isolated_max_borrow_request marginIsolatedMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountMaxBorrowableAmount($margin_isolated_max_borrow_request, string $contentType = self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'][0]) - { - list($response) = $this->marginIsolatedAccountMaxBorrowableAmountWithHttpInfo($margin_isolated_max_borrow_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountMaxBorrowableAmountWithHttpInfo - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowRequest $margin_isolated_max_borrow_request marginIsolatedMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountMaxBorrowableAmountWithHttpInfo($margin_isolated_max_borrow_request, string $contentType = self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'][0]) - { - $request = $this->marginIsolatedAccountMaxBorrowableAmountRequest($margin_isolated_max_borrow_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountMaxBorrowableAmountAsync - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowRequest $margin_isolated_max_borrow_request marginIsolatedMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountMaxBorrowableAmountAsync($margin_isolated_max_borrow_request, string $contentType = self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'][0]) - { - return $this->marginIsolatedAccountMaxBorrowableAmountAsyncWithHttpInfo($margin_isolated_max_borrow_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountMaxBorrowableAmountAsyncWithHttpInfo - * - * maxBorrowableAmount - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowRequest $margin_isolated_max_borrow_request marginIsolatedMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountMaxBorrowableAmountAsyncWithHttpInfo($margin_isolated_max_borrow_request, string $contentType = self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedMaxBorrowResult'; - $request = $this->marginIsolatedAccountMaxBorrowableAmountRequest($margin_isolated_max_borrow_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountMaxBorrowableAmount' - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowRequest $margin_isolated_max_borrow_request marginIsolatedMaxBorrowRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountMaxBorrowableAmountRequest($margin_isolated_max_borrow_request, string $contentType = self::contentTypes['marginIsolatedAccountMaxBorrowableAmount'][0]) - { - - // verify the required parameter 'margin_isolated_max_borrow_request' is set - if ($margin_isolated_max_borrow_request === null || (is_array($margin_isolated_max_borrow_request) && count($margin_isolated_max_borrow_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_isolated_max_borrow_request when calling marginIsolatedAccountMaxBorrowableAmount' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/maxBorrowableAmount'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_isolated_max_borrow_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_isolated_max_borrow_request)); - } else { - $httpBody = $margin_isolated_max_borrow_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedAccountMaxTransferOutAmount - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountMaxTransferOutAmount($coin, $symbol, string $contentType = self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'][0]) - { - list($response) = $this->marginIsolatedAccountMaxTransferOutAmountWithHttpInfo($coin, $symbol, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountMaxTransferOutAmountWithHttpInfo - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountMaxTransferOutAmountWithHttpInfo($coin, $symbol, string $contentType = self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'][0]) - { - $request = $this->marginIsolatedAccountMaxTransferOutAmountRequest($coin, $symbol, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountMaxTransferOutAmountAsync - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountMaxTransferOutAmountAsync($coin, $symbol, string $contentType = self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'][0]) - { - return $this->marginIsolatedAccountMaxTransferOutAmountAsyncWithHttpInfo($coin, $symbol, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountMaxTransferOutAmountAsyncWithHttpInfo - * - * maxTransferOutAmount - * - * @param string $coin coin (required) - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountMaxTransferOutAmountAsyncWithHttpInfo($coin, $symbol, string $contentType = self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedAssetsResult'; - $request = $this->marginIsolatedAccountMaxTransferOutAmountRequest($coin, $symbol, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountMaxTransferOutAmount' - * - * @param string $coin coin (required) - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountMaxTransferOutAmountRequest($coin, $symbol, string $contentType = self::contentTypes['marginIsolatedAccountMaxTransferOutAmount'][0]) - { - - // verify the required parameter 'coin' is set - if ($coin === null || (is_array($coin) && count($coin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $coin when calling marginIsolatedAccountMaxTransferOutAmount' - ); - } - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginIsolatedAccountMaxTransferOutAmount' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/maxTransferOutAmount'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedAccountRepay - * - * repay - * - * @param \Bitget\Model\MarginIsolatedRepayRequest $margin_isolated_repay_request marginIsolatedRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRepay'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountRepay($margin_isolated_repay_request, string $contentType = self::contentTypes['marginIsolatedAccountRepay'][0]) - { - list($response) = $this->marginIsolatedAccountRepayWithHttpInfo($margin_isolated_repay_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountRepayWithHttpInfo - * - * repay - * - * @param \Bitget\Model\MarginIsolatedRepayRequest $margin_isolated_repay_request marginIsolatedRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRepay'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountRepayWithHttpInfo($margin_isolated_repay_request, string $contentType = self::contentTypes['marginIsolatedAccountRepay'][0]) - { - $request = $this->marginIsolatedAccountRepayRequest($margin_isolated_repay_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountRepayAsync - * - * repay - * - * @param \Bitget\Model\MarginIsolatedRepayRequest $margin_isolated_repay_request marginIsolatedRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountRepayAsync($margin_isolated_repay_request, string $contentType = self::contentTypes['marginIsolatedAccountRepay'][0]) - { - return $this->marginIsolatedAccountRepayAsyncWithHttpInfo($margin_isolated_repay_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountRepayAsyncWithHttpInfo - * - * repay - * - * @param \Bitget\Model\MarginIsolatedRepayRequest $margin_isolated_repay_request marginIsolatedRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountRepayAsyncWithHttpInfo($margin_isolated_repay_request, string $contentType = self::contentTypes['marginIsolatedAccountRepay'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayResult'; - $request = $this->marginIsolatedAccountRepayRequest($margin_isolated_repay_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountRepay' - * - * @param \Bitget\Model\MarginIsolatedRepayRequest $margin_isolated_repay_request marginIsolatedRepayRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRepay'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountRepayRequest($margin_isolated_repay_request, string $contentType = self::contentTypes['marginIsolatedAccountRepay'][0]) - { - - // verify the required parameter 'margin_isolated_repay_request' is set - if ($margin_isolated_repay_request === null || (is_array($margin_isolated_repay_request) && count($margin_isolated_repay_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_isolated_repay_request when calling marginIsolatedAccountRepay' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/repay'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_isolated_repay_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_isolated_repay_request)); - } else { - $httpBody = $margin_isolated_repay_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedAccountRiskRate - * - * riskRate - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskRequest $margin_isolated_assets_risk_request marginIsolatedAssetsRiskRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRiskRate'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedAccountRiskRate($margin_isolated_assets_risk_request, string $contentType = self::contentTypes['marginIsolatedAccountRiskRate'][0]) - { - list($response) = $this->marginIsolatedAccountRiskRateWithHttpInfo($margin_isolated_assets_risk_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedAccountRiskRateWithHttpInfo - * - * riskRate - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskRequest $margin_isolated_assets_risk_request marginIsolatedAssetsRiskRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRiskRate'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedAccountRiskRateWithHttpInfo($margin_isolated_assets_risk_request, string $contentType = self::contentTypes['marginIsolatedAccountRiskRate'][0]) - { - $request = $this->marginIsolatedAccountRiskRateRequest($margin_isolated_assets_risk_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedAccountRiskRateAsync - * - * riskRate - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskRequest $margin_isolated_assets_risk_request marginIsolatedAssetsRiskRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountRiskRateAsync($margin_isolated_assets_risk_request, string $contentType = self::contentTypes['marginIsolatedAccountRiskRate'][0]) - { - return $this->marginIsolatedAccountRiskRateAsyncWithHttpInfo($margin_isolated_assets_risk_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedAccountRiskRateAsyncWithHttpInfo - * - * riskRate - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskRequest $margin_isolated_assets_risk_request marginIsolatedAssetsRiskRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedAccountRiskRateAsyncWithHttpInfo($margin_isolated_assets_risk_request, string $contentType = self::contentTypes['marginIsolatedAccountRiskRate'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; - $request = $this->marginIsolatedAccountRiskRateRequest($margin_isolated_assets_risk_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedAccountRiskRate' - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskRequest $margin_isolated_assets_risk_request marginIsolatedAssetsRiskRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedAccountRiskRate'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedAccountRiskRateRequest($margin_isolated_assets_risk_request, string $contentType = self::contentTypes['marginIsolatedAccountRiskRate'][0]) - { - - // verify the required parameter 'margin_isolated_assets_risk_request' is set - if ($margin_isolated_assets_risk_request === null || (is_array($margin_isolated_assets_risk_request) && count($margin_isolated_assets_risk_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_isolated_assets_risk_request when calling marginIsolatedAccountRiskRate' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/account/riskRate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_isolated_assets_risk_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_isolated_assets_risk_request)); - } else { - $httpBody = $margin_isolated_assets_risk_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedBorrowApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedBorrowApi.php deleted file mode 100644 index 509db8da..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedBorrowApi.php +++ /dev/null @@ -1,617 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation isolatedLoanList - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLoanList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function isolatedLoanList($symbol, $start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLoanList'][0]) - { - list($response) = $this->isolatedLoanListWithHttpInfo($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation isolatedLoanListWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLoanList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function isolatedLoanListWithHttpInfo($symbol, $start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLoanList'][0]) - { - $request = $this->isolatedLoanListRequest($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation isolatedLoanListAsync - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedLoanListAsync($symbol, $start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLoanList'][0]) - { - return $this->isolatedLoanListAsyncWithHttpInfo($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation isolatedLoanListAsyncWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedLoanListAsyncWithHttpInfo($symbol, $start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLoanList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedLoanInfoResult'; - $request = $this->isolatedLoanListRequest($symbol, $start_time, $coin, $end_time, $loan_id, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'isolatedLoanList' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLoanList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function isolatedLoanListRequest($symbol, $start_time, $coin = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLoanList'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling isolatedLoanList' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling isolatedLoanList' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/isolated/loan/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $loan_id, - 'loanId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedFinflowApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedFinflowApi.php deleted file mode 100644 index 42388fc0..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedFinflowApi.php +++ /dev/null @@ -1,632 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation isolatedFinList - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $margin_type marginType (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedFinList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function isolatedFinList($symbol, $start_time, $coin = null, $margin_type = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedFinList'][0]) - { - list($response) = $this->isolatedFinListWithHttpInfo($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation isolatedFinListWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $margin_type marginType (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedFinList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function isolatedFinListWithHttpInfo($symbol, $start_time, $coin = null, $margin_type = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedFinList'][0]) - { - $request = $this->isolatedFinListRequest($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation isolatedFinListAsync - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $margin_type marginType (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedFinListAsync($symbol, $start_time, $coin = null, $margin_type = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedFinList'][0]) - { - return $this->isolatedFinListAsyncWithHttpInfo($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation isolatedFinListAsyncWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $margin_type marginType (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedFinListAsyncWithHttpInfo($symbol, $start_time, $coin = null, $margin_type = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedFinList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedFinFlowResult'; - $request = $this->isolatedFinListRequest($symbol, $start_time, $coin, $margin_type, $end_time, $loan_id, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'isolatedFinList' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $margin_type marginType (optional) - * @param string $end_time endTime (optional) - * @param string $loan_id loanId (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedFinList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function isolatedFinListRequest($symbol, $start_time, $coin = null, $margin_type = null, $end_time = null, $loan_id = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedFinList'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling isolatedFinList' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling isolatedFinList' - ); - } - - - - - - - - - $resourcePath = '/api/margin/v1/isolated/fin/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $margin_type, - 'marginType', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $loan_id, - 'loanId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedInterestApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedInterestApi.php deleted file mode 100644 index a3a78501..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedInterestApi.php +++ /dev/null @@ -1,587 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation isolatedInterestList - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedInterestList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function isolatedInterestList($symbol, $start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedInterestList'][0]) - { - list($response) = $this->isolatedInterestListWithHttpInfo($symbol, $start_time, $coin, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation isolatedInterestListWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedInterestList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function isolatedInterestListWithHttpInfo($symbol, $start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedInterestList'][0]) - { - $request = $this->isolatedInterestListRequest($symbol, $start_time, $coin, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation isolatedInterestListAsync - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedInterestListAsync($symbol, $start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedInterestList'][0]) - { - return $this->isolatedInterestListAsyncWithHttpInfo($symbol, $start_time, $coin, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation isolatedInterestListAsyncWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedInterestListAsyncWithHttpInfo($symbol, $start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedInterestList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedInterestInfoResult'; - $request = $this->isolatedInterestListRequest($symbol, $start_time, $coin, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'isolatedInterestList' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedInterestList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function isolatedInterestListRequest($symbol, $start_time, $coin = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedInterestList'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling isolatedInterestList' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling isolatedInterestList' - ); - } - - - - - - $resourcePath = '/api/margin/v1/isolated/interest/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedLiquidationApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedLiquidationApi.php deleted file mode 100644 index 5e34bcca..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedLiquidationApi.php +++ /dev/null @@ -1,587 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation isolatedLiquidationList - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLiquidationList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function isolatedLiquidationList($symbol, $start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLiquidationList'][0]) - { - list($response) = $this->isolatedLiquidationListWithHttpInfo($symbol, $start_time, $end_time, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation isolatedLiquidationListWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLiquidationList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function isolatedLiquidationListWithHttpInfo($symbol, $start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLiquidationList'][0]) - { - $request = $this->isolatedLiquidationListRequest($symbol, $start_time, $end_time, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation isolatedLiquidationListAsync - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedLiquidationListAsync($symbol, $start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLiquidationList'][0]) - { - return $this->isolatedLiquidationListAsyncWithHttpInfo($symbol, $start_time, $end_time, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation isolatedLiquidationListAsyncWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolatedLiquidationListAsyncWithHttpInfo($symbol, $start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLiquidationList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedLiquidationInfoResult'; - $request = $this->isolatedLiquidationListRequest($symbol, $start_time, $end_time, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'isolatedLiquidationList' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolatedLiquidationList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function isolatedLiquidationListRequest($symbol, $start_time, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolatedLiquidationList'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling isolatedLiquidationList' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling isolatedLiquidationList' - ); - } - - - - - - $resourcePath = '/api/margin/v1/isolated/liquidation/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedOrderApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedOrderApi.php deleted file mode 100644 index ef0f7ccf..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedOrderApi.php +++ /dev/null @@ -1,3060 +0,0 @@ - [ - 'application/json', - ], - 'marginIsolatedBatchPlaceOrder' => [ - 'application/json', - ], - 'marginIsolatedCancelOrder' => [ - 'application/json', - ], - 'marginIsolatedFills' => [ - 'application/json', - ], - 'marginIsolatedHistoryOrders' => [ - 'application/json', - ], - 'marginIsolatedOpenOrders' => [ - 'application/json', - ], - 'marginIsolatedPlaceOrder' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginIsolatedBatchCancelOrder - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedBatchCancelOrder($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedBatchCancelOrder'][0]) - { - list($response) = $this->marginIsolatedBatchCancelOrderWithHttpInfo($margin_batch_cancel_order_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedBatchCancelOrderWithHttpInfo - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedBatchCancelOrderWithHttpInfo($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedBatchCancelOrder'][0]) - { - $request = $this->marginIsolatedBatchCancelOrderRequest($margin_batch_cancel_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedBatchCancelOrderAsync - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedBatchCancelOrderAsync($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedBatchCancelOrder'][0]) - { - return $this->marginIsolatedBatchCancelOrderAsyncWithHttpInfo($margin_batch_cancel_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedBatchCancelOrderAsyncWithHttpInfo - * - * batchCancelOrder - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedBatchCancelOrderAsyncWithHttpInfo($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedBatchCancelOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - $request = $this->marginIsolatedBatchCancelOrderRequest($margin_batch_cancel_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedBatchCancelOrder' - * - * @param \Bitget\Model\MarginBatchCancelOrderRequest $margin_batch_cancel_order_request marginBatchCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedBatchCancelOrderRequest($margin_batch_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedBatchCancelOrder'][0]) - { - - // verify the required parameter 'margin_batch_cancel_order_request' is set - if ($margin_batch_cancel_order_request === null || (is_array($margin_batch_cancel_order_request) && count($margin_batch_cancel_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_batch_cancel_order_request when calling marginIsolatedBatchCancelOrder' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/order/batchCancelOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_batch_cancel_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_batch_cancel_order_request)); - } else { - $httpBody = $margin_batch_cancel_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedBatchPlaceOrder - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedBatchPlaceOrder($margin_order_request, string $contentType = self::contentTypes['marginIsolatedBatchPlaceOrder'][0]) - { - list($response) = $this->marginIsolatedBatchPlaceOrderWithHttpInfo($margin_order_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedBatchPlaceOrderWithHttpInfo - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedBatchPlaceOrderWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginIsolatedBatchPlaceOrder'][0]) - { - $request = $this->marginIsolatedBatchPlaceOrderRequest($margin_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedBatchPlaceOrderAsync - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedBatchPlaceOrderAsync($margin_order_request, string $contentType = self::contentTypes['marginIsolatedBatchPlaceOrder'][0]) - { - return $this->marginIsolatedBatchPlaceOrderAsyncWithHttpInfo($margin_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedBatchPlaceOrderAsyncWithHttpInfo - * - * batchPlaceOrder - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedBatchPlaceOrderAsyncWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginIsolatedBatchPlaceOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchPlaceOrderResult'; - $request = $this->marginIsolatedBatchPlaceOrderRequest($margin_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedBatchPlaceOrder' - * - * @param \Bitget\Model\MarginBatchOrdersRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedBatchPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedBatchPlaceOrderRequest($margin_order_request, string $contentType = self::contentTypes['marginIsolatedBatchPlaceOrder'][0]) - { - - // verify the required parameter 'margin_order_request' is set - if ($margin_order_request === null || (is_array($margin_order_request) && count($margin_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_order_request when calling marginIsolatedBatchPlaceOrder' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/order/batchPlaceOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_order_request)); - } else { - $httpBody = $margin_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedCancelOrder - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedCancelOrder($margin_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedCancelOrder'][0]) - { - list($response) = $this->marginIsolatedCancelOrderWithHttpInfo($margin_cancel_order_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedCancelOrderWithHttpInfo - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedCancelOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedCancelOrderWithHttpInfo($margin_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedCancelOrder'][0]) - { - $request = $this->marginIsolatedCancelOrderRequest($margin_cancel_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedCancelOrderAsync - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedCancelOrderAsync($margin_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedCancelOrder'][0]) - { - return $this->marginIsolatedCancelOrderAsyncWithHttpInfo($margin_cancel_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedCancelOrderAsyncWithHttpInfo - * - * cancelOrder - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedCancelOrderAsyncWithHttpInfo($margin_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedCancelOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginBatchCancelOrderResult'; - $request = $this->marginIsolatedCancelOrderRequest($margin_cancel_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedCancelOrder' - * - * @param \Bitget\Model\MarginCancelOrderRequest $margin_cancel_order_request marginCancelOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedCancelOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedCancelOrderRequest($margin_cancel_order_request, string $contentType = self::contentTypes['marginIsolatedCancelOrder'][0]) - { - - // verify the required parameter 'margin_cancel_order_request' is set - if ($margin_cancel_order_request === null || (is_array($margin_cancel_order_request) && count($margin_cancel_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_cancel_order_request when calling marginIsolatedCancelOrder' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/order/cancelOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_cancel_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_cancel_order_request)); - } else { - $httpBody = $margin_cancel_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedFills - * - * fills - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedFills'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedFills($start_time, $symbol = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedFills'][0]) - { - list($response) = $this->marginIsolatedFillsWithHttpInfo($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - return $response; - } - - /** - * Operation marginIsolatedFillsWithHttpInfo - * - * fills - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedFills'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedFillsWithHttpInfo($start_time, $symbol = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedFills'][0]) - { - $request = $this->marginIsolatedFillsRequest($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedFillsAsync - * - * fills - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedFillsAsync($start_time, $symbol = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedFills'][0]) - { - return $this->marginIsolatedFillsAsyncWithHttpInfo($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedFillsAsyncWithHttpInfo - * - * fills - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedFillsAsyncWithHttpInfo($start_time, $symbol = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedFills'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginTradeDetailInfoResult'; - $request = $this->marginIsolatedFillsRequest($start_time, $symbol, $end_time, $order_id, $last_fill_id, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedFills' - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $last_fill_id lastFillId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedFills'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedFillsRequest($start_time, $symbol = null, $end_time = null, $order_id = null, $last_fill_id = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedFills'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginIsolatedFills' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/isolated/order/fills'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $last_fill_id, - 'lastFillId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedHistoryOrders - * - * history - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $min_id minId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedHistoryOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedHistoryOrders($start_time, $symbol = null, $source = null, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, $min_id = null, string $contentType = self::contentTypes['marginIsolatedHistoryOrders'][0]) - { - list($response) = $this->marginIsolatedHistoryOrdersWithHttpInfo($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id, $contentType); - return $response; - } - - /** - * Operation marginIsolatedHistoryOrdersWithHttpInfo - * - * history - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $min_id minId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedHistoryOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedHistoryOrdersWithHttpInfo($start_time, $symbol = null, $source = null, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, $min_id = null, string $contentType = self::contentTypes['marginIsolatedHistoryOrders'][0]) - { - $request = $this->marginIsolatedHistoryOrdersRequest($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedHistoryOrdersAsync - * - * history - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $min_id minId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedHistoryOrdersAsync($start_time, $symbol = null, $source = null, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, $min_id = null, string $contentType = self::contentTypes['marginIsolatedHistoryOrders'][0]) - { - return $this->marginIsolatedHistoryOrdersAsyncWithHttpInfo($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedHistoryOrdersAsyncWithHttpInfo - * - * history - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $min_id minId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedHistoryOrdersAsyncWithHttpInfo($start_time, $symbol = null, $source = null, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, $min_id = null, string $contentType = self::contentTypes['marginIsolatedHistoryOrders'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - $request = $this->marginIsolatedHistoryOrdersRequest($start_time, $symbol, $source, $end_time, $order_id, $client_oid, $page_size, $min_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedHistoryOrders' - * - * @param string $start_time startTime (required) - * @param string $symbol symbol (optional) - * @param string $source source (optional) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $min_id minId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedHistoryOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedHistoryOrdersRequest($start_time, $symbol = null, $source = null, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, $min_id = null, string $contentType = self::contentTypes['marginIsolatedHistoryOrders'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginIsolatedHistoryOrders' - ); - } - - - - - - - - - - $resourcePath = '/api/margin/v1/isolated/order/history'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $source, - 'source', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $client_oid, - 'clientOid', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $min_id, - 'minId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedOpenOrders - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedOpenOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedOpenOrders($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedOpenOrders'][0]) - { - list($response) = $this->marginIsolatedOpenOrdersWithHttpInfo($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - return $response; - } - - /** - * Operation marginIsolatedOpenOrdersWithHttpInfo - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedOpenOrders'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedOpenOrdersWithHttpInfo($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedOpenOrders'][0]) - { - $request = $this->marginIsolatedOpenOrdersRequest($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedOpenOrdersAsync - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedOpenOrdersAsync($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedOpenOrders'][0]) - { - return $this->marginIsolatedOpenOrdersAsyncWithHttpInfo($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedOpenOrdersAsyncWithHttpInfo - * - * openOrders - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedOpenOrdersAsyncWithHttpInfo($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedOpenOrders'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginOpenOrderInfoResult'; - $request = $this->marginIsolatedOpenOrdersRequest($symbol, $start_time, $end_time, $order_id, $client_oid, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedOpenOrders' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $order_id orderId (optional) - * @param string $client_oid clientOid (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedOpenOrders'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedOpenOrdersRequest($symbol, $start_time, $end_time = null, $order_id = null, $client_oid = null, $page_size = null, string $contentType = self::contentTypes['marginIsolatedOpenOrders'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginIsolatedOpenOrders' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling marginIsolatedOpenOrders' - ); - } - - - - - - - $resourcePath = '/api/margin/v1/isolated/order/openOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_id, - 'orderId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $client_oid, - 'clientOid', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedPlaceOrder - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedPlaceOrder($margin_order_request, string $contentType = self::contentTypes['marginIsolatedPlaceOrder'][0]) - { - list($response) = $this->marginIsolatedPlaceOrderWithHttpInfo($margin_order_request, $contentType); - return $response; - } - - /** - * Operation marginIsolatedPlaceOrderWithHttpInfo - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPlaceOrder'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedPlaceOrderWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginIsolatedPlaceOrder'][0]) - { - $request = $this->marginIsolatedPlaceOrderRequest($margin_order_request, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedPlaceOrderAsync - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPlaceOrderAsync($margin_order_request, string $contentType = self::contentTypes['marginIsolatedPlaceOrder'][0]) - { - return $this->marginIsolatedPlaceOrderAsyncWithHttpInfo($margin_order_request, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedPlaceOrderAsyncWithHttpInfo - * - * placeOrder - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPlaceOrderAsyncWithHttpInfo($margin_order_request, string $contentType = self::contentTypes['marginIsolatedPlaceOrder'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginPlaceOrderResult'; - $request = $this->marginIsolatedPlaceOrderRequest($margin_order_request, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedPlaceOrder' - * - * @param \Bitget\Model\MarginOrderRequest $margin_order_request marginOrderRequest (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPlaceOrder'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedPlaceOrderRequest($margin_order_request, string $contentType = self::contentTypes['marginIsolatedPlaceOrder'][0]) - { - - // verify the required parameter 'margin_order_request' is set - if ($margin_order_request === null || (is_array($margin_order_request) && count($margin_order_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $margin_order_request when calling marginIsolatedPlaceOrder' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/order/placeOrder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (isset($margin_order_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($margin_order_request)); - } else { - $httpBody = $margin_order_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'POST', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedPublicApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedPublicApi.php deleted file mode 100644 index dc407047..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedPublicApi.php +++ /dev/null @@ -1,852 +0,0 @@ - [ - 'application/json', - ], - 'marginIsolatedPublicTierData' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginIsolatedPublicInterestRateAndLimit - * - * interestRateAndLimit - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedPublicInterestRateAndLimit($symbol, string $contentType = self::contentTypes['marginIsolatedPublicInterestRateAndLimit'][0]) - { - list($response) = $this->marginIsolatedPublicInterestRateAndLimitWithHttpInfo($symbol, $contentType); - return $response; - } - - /** - * Operation marginIsolatedPublicInterestRateAndLimitWithHttpInfo - * - * interestRateAndLimit - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedPublicInterestRateAndLimitWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedPublicInterestRateAndLimit'][0]) - { - $request = $this->marginIsolatedPublicInterestRateAndLimitRequest($symbol, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedPublicInterestRateAndLimitAsync - * - * interestRateAndLimit - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPublicInterestRateAndLimitAsync($symbol, string $contentType = self::contentTypes['marginIsolatedPublicInterestRateAndLimit'][0]) - { - return $this->marginIsolatedPublicInterestRateAndLimitAsyncWithHttpInfo($symbol, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedPublicInterestRateAndLimitAsyncWithHttpInfo - * - * interestRateAndLimit - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPublicInterestRateAndLimitAsyncWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedPublicInterestRateAndLimit'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; - $request = $this->marginIsolatedPublicInterestRateAndLimitRequest($symbol, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedPublicInterestRateAndLimit' - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicInterestRateAndLimit'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedPublicInterestRateAndLimitRequest($symbol, string $contentType = self::contentTypes['marginIsolatedPublicInterestRateAndLimit'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginIsolatedPublicInterestRateAndLimit' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/public/interestRateAndLimit'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation marginIsolatedPublicTierData - * - * tierData - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicTierData'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginIsolatedPublicTierData($symbol, string $contentType = self::contentTypes['marginIsolatedPublicTierData'][0]) - { - list($response) = $this->marginIsolatedPublicTierDataWithHttpInfo($symbol, $contentType); - return $response; - } - - /** - * Operation marginIsolatedPublicTierDataWithHttpInfo - * - * tierData - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicTierData'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginIsolatedPublicTierDataWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedPublicTierData'][0]) - { - $request = $this->marginIsolatedPublicTierDataRequest($symbol, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginIsolatedPublicTierDataAsync - * - * tierData - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPublicTierDataAsync($symbol, string $contentType = self::contentTypes['marginIsolatedPublicTierData'][0]) - { - return $this->marginIsolatedPublicTierDataAsyncWithHttpInfo($symbol, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginIsolatedPublicTierDataAsyncWithHttpInfo - * - * tierData - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginIsolatedPublicTierDataAsyncWithHttpInfo($symbol, string $contentType = self::contentTypes['marginIsolatedPublicTierData'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginIsolatedLevelResult'; - $request = $this->marginIsolatedPublicTierDataRequest($symbol, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginIsolatedPublicTierData' - * - * @param string $symbol symbol (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginIsolatedPublicTierData'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginIsolatedPublicTierDataRequest($symbol, string $contentType = self::contentTypes['marginIsolatedPublicTierData'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling marginIsolatedPublicTierData' - ); - } - - - $resourcePath = '/api/margin/v1/isolated/public/tierData'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedRepayApi.php b/bitget-php-sdk-open-api/lib/Api/MarginIsolatedRepayApi.php deleted file mode 100644 index b6b0ece2..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginIsolatedRepayApi.php +++ /dev/null @@ -1,617 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation isolateRepayList - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolateRepayList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function isolateRepayList($symbol, $start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolateRepayList'][0]) - { - list($response) = $this->isolateRepayListWithHttpInfo($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - return $response; - } - - /** - * Operation isolateRepayListWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolateRepayList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function isolateRepayListWithHttpInfo($symbol, $start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolateRepayList'][0]) - { - $request = $this->isolateRepayListRequest($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation isolateRepayListAsync - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolateRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolateRepayListAsync($symbol, $start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolateRepayList'][0]) - { - return $this->isolateRepayListAsyncWithHttpInfo($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation isolateRepayListAsyncWithHttpInfo - * - * list - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolateRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function isolateRepayListAsyncWithHttpInfo($symbol, $start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolateRepayList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMarginIsolatedRepayInfoResult'; - $request = $this->isolateRepayListRequest($symbol, $start_time, $coin, $repay_id, $end_time, $page_size, $page_id, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'isolateRepayList' - * - * @param string $symbol symbol (required) - * @param string $start_time startTime (required) - * @param string $coin coin (optional) - * @param string $repay_id repayId (optional) - * @param string $end_time endTime (optional) - * @param string $page_size pageSize (optional) - * @param string $page_id pageId (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['isolateRepayList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function isolateRepayListRequest($symbol, $start_time, $coin = null, $repay_id = null, $end_time = null, $page_size = null, $page_id = null, string $contentType = self::contentTypes['isolateRepayList'][0]) - { - - // verify the required parameter 'symbol' is set - if ($symbol === null || (is_array($symbol) && count($symbol) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $symbol when calling isolateRepayList' - ); - } - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling isolateRepayList' - ); - } - - - - - - - - $resourcePath = '/api/margin/v1/isolated/repay/list'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $symbol, - 'symbol', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $repay_id, - 'repayId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_id, - 'pageId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/MarginPublicApi.php b/bitget-php-sdk-open-api/lib/Api/MarginPublicApi.php deleted file mode 100644 index 0f652645..00000000 --- a/bitget-php-sdk-open-api/lib/Api/MarginPublicApi.php +++ /dev/null @@ -1,475 +0,0 @@ - [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation marginPublicCurrencies - * - * currencies - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginPublicCurrencies'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfListOfMarginSystemResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function marginPublicCurrencies(string $contentType = self::contentTypes['marginPublicCurrencies'][0]) - { - list($response) = $this->marginPublicCurrenciesWithHttpInfo($contentType); - return $response; - } - - /** - * Operation marginPublicCurrenciesWithHttpInfo - * - * currencies - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginPublicCurrencies'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfListOfMarginSystemResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function marginPublicCurrenciesWithHttpInfo(string $contentType = self::contentTypes['marginPublicCurrencies'][0]) - { - $request = $this->marginPublicCurrenciesRequest($contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation marginPublicCurrenciesAsync - * - * currencies - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginPublicCurrencies'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginPublicCurrenciesAsync(string $contentType = self::contentTypes['marginPublicCurrencies'][0]) - { - return $this->marginPublicCurrenciesAsyncWithHttpInfo($contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation marginPublicCurrenciesAsyncWithHttpInfo - * - * currencies - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginPublicCurrencies'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function marginPublicCurrenciesAsyncWithHttpInfo(string $contentType = self::contentTypes['marginPublicCurrencies'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfListOfMarginSystemResult'; - $request = $this->marginPublicCurrenciesRequest($contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'marginPublicCurrencies' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['marginPublicCurrencies'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function marginPublicCurrenciesRequest(string $contentType = self::contentTypes['marginPublicCurrencies'][0]) - { - - - $resourcePath = '/api/margin/v1/public/currencies'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/Api/P2pMerchantApi.php b/bitget-php-sdk-open-api/lib/Api/P2pMerchantApi.php deleted file mode 100644 index d8339a37..00000000 --- a/bitget-php-sdk-open-api/lib/Api/P2pMerchantApi.php +++ /dev/null @@ -1,1982 +0,0 @@ - [ - 'application/json', - ], - 'merchantInfo' => [ - 'application/json', - ], - 'merchantList' => [ - 'application/json', - ], - 'merchantOrderList' => [ - 'application/json', - ], - ]; - -/** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null, - $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } - - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } - - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation merchantAdvList - * - * advList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $order_by orderBy (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantAdvList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMerchantAdvResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function merchantAdvList($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, $order_by = null, string $contentType = self::contentTypes['merchantAdvList'][0]) - { - list($response) = $this->merchantAdvListWithHttpInfo($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by, $contentType); - return $response; - } - - /** - * Operation merchantAdvListWithHttpInfo - * - * advList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $order_by orderBy (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantAdvList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMerchantAdvResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function merchantAdvListWithHttpInfo($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, $order_by = null, string $contentType = self::contentTypes['merchantAdvList'][0]) - { - $request = $this->merchantAdvListRequest($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMerchantAdvResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMerchantAdvResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMerchantAdvResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantAdvResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMerchantAdvResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation merchantAdvListAsync - * - * advList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $order_by orderBy (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantAdvList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantAdvListAsync($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, $order_by = null, string $contentType = self::contentTypes['merchantAdvList'][0]) - { - return $this->merchantAdvListAsyncWithHttpInfo($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation merchantAdvListAsyncWithHttpInfo - * - * advList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $order_by orderBy (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantAdvList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantAdvListAsyncWithHttpInfo($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, $order_by = null, string $contentType = self::contentTypes['merchantAdvList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantAdvResult'; - $request = $this->merchantAdvListRequest($start_time, $end_time, $status, $type, $adv_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $order_by, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'merchantAdvList' - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $order_by orderBy (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantAdvList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function merchantAdvListRequest($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, $order_by = null, string $contentType = self::contentTypes['merchantAdvList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling merchantAdvList' - ); - } - - - - - - - - - - - - - $resourcePath = '/api/p2p/v1/merchant/advList'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $status, - 'status', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $type, - 'type', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $adv_no, - 'advNo', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $language_type, - 'languageType', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $fiat, - 'fiat', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $last_min_id, - 'lastMinId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_by, - 'orderBy', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation merchantInfo - * - * merchantInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantInfo'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMerchantPersonInfo|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function merchantInfo(string $contentType = self::contentTypes['merchantInfo'][0]) - { - list($response) = $this->merchantInfoWithHttpInfo($contentType); - return $response; - } - - /** - * Operation merchantInfoWithHttpInfo - * - * merchantInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantInfo'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMerchantPersonInfo|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function merchantInfoWithHttpInfo(string $contentType = self::contentTypes['merchantInfo'][0]) - { - $request = $this->merchantInfoRequest($contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMerchantPersonInfo' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMerchantPersonInfo' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMerchantPersonInfo', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantPersonInfo'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMerchantPersonInfo', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation merchantInfoAsync - * - * merchantInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantInfo'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantInfoAsync(string $contentType = self::contentTypes['merchantInfo'][0]) - { - return $this->merchantInfoAsyncWithHttpInfo($contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation merchantInfoAsyncWithHttpInfo - * - * merchantInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantInfo'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantInfoAsyncWithHttpInfo(string $contentType = self::contentTypes['merchantInfo'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantPersonInfo'; - $request = $this->merchantInfoRequest($contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'merchantInfo' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantInfo'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function merchantInfoRequest(string $contentType = self::contentTypes['merchantInfo'][0]) - { - - - $resourcePath = '/api/p2p/v1/merchant/merchantInfo'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation merchantList - * - * merchantList - * - * @param string $online online (optional) - * @param string $merchant_id merchantId (optional) - * @param string $last_min_id lastMinId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMerchantInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function merchantList($online = null, $merchant_id = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantList'][0]) - { - list($response) = $this->merchantListWithHttpInfo($online, $merchant_id, $last_min_id, $page_size, $contentType); - return $response; - } - - /** - * Operation merchantListWithHttpInfo - * - * merchantList - * - * @param string $online online (optional) - * @param string $merchant_id merchantId (optional) - * @param string $last_min_id lastMinId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMerchantInfoResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function merchantListWithHttpInfo($online = null, $merchant_id = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantList'][0]) - { - $request = $this->merchantListRequest($online, $merchant_id, $last_min_id, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMerchantInfoResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMerchantInfoResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMerchantInfoResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantInfoResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMerchantInfoResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation merchantListAsync - * - * merchantList - * - * @param string $online online (optional) - * @param string $merchant_id merchantId (optional) - * @param string $last_min_id lastMinId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantListAsync($online = null, $merchant_id = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantList'][0]) - { - return $this->merchantListAsyncWithHttpInfo($online, $merchant_id, $last_min_id, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation merchantListAsyncWithHttpInfo - * - * merchantList - * - * @param string $online online (optional) - * @param string $merchant_id merchantId (optional) - * @param string $last_min_id lastMinId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantListAsyncWithHttpInfo($online = null, $merchant_id = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantInfoResult'; - $request = $this->merchantListRequest($online, $merchant_id, $last_min_id, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'merchantList' - * - * @param string $online online (optional) - * @param string $merchant_id merchantId (optional) - * @param string $last_min_id lastMinId (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function merchantListRequest($online = null, $merchant_id = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantList'][0]) - { - - - - - - - $resourcePath = '/api/p2p/v1/merchant/merchantList'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $online, - 'online', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $merchant_id, - 'merchantId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $last_min_id, - 'lastMinId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation merchantOrderList - * - * orderList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $order_no orderNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantOrderList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Bitget\Model\ApiResponseResultOfMerchantOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid - */ - public function merchantOrderList($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $order_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantOrderList'][0]) - { - list($response) = $this->merchantOrderListWithHttpInfo($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $contentType); - return $response; - } - - /** - * Operation merchantOrderListWithHttpInfo - * - * orderList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $order_no orderNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantOrderList'] to see the possible values for this operation - * - * @throws \Bitget\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Bitget\Model\ApiResponseResultOfMerchantOrderResult|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid|\Bitget\Model\ApiResponseResultOfVoid, HTTP status code, HTTP response headers (array of strings) - */ - public function merchantOrderListWithHttpInfo($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $order_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantOrderList'][0]) - { - $request = $this->merchantOrderListRequest($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $contentType); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Bitget\Model\ApiResponseResultOfMerchantOrderResult' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfMerchantOrderResult' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfMerchantOrderResult', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 429: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 500: - if ('\Bitget\Model\ApiResponseResultOfVoid' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\Bitget\Model\ApiResponseResultOfVoid' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\Bitget\Model\ApiResponseResultOfVoid', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantOrderResult'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfMerchantOrderResult', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Bitget\Model\ApiResponseResultOfVoid', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation merchantOrderListAsync - * - * orderList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $order_no orderNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantOrderList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantOrderListAsync($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $order_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantOrderList'][0]) - { - return $this->merchantOrderListAsyncWithHttpInfo($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $contentType) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation merchantOrderListAsyncWithHttpInfo - * - * orderList - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $order_no orderNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantOrderList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function merchantOrderListAsyncWithHttpInfo($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $order_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantOrderList'][0]) - { - $returnType = '\Bitget\Model\ApiResponseResultOfMerchantOrderResult'; - $request = $this->merchantOrderListRequest($start_time, $end_time, $status, $type, $adv_no, $order_no, $coin, $language_type, $fiat, $last_min_id, $page_size, $contentType); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'merchantOrderList' - * - * @param string $start_time startTime (required) - * @param string $end_time endTime (optional) - * @param string $status status (optional) - * @param string $type type (optional) - * @param string $adv_no advNo (optional) - * @param string $order_no orderNo (optional) - * @param string $coin coin (optional) - * @param string $language_type languageType (optional) - * @param string $fiat fiat (optional) - * @param string $last_min_id languageType (optional) - * @param string $page_size pageSize (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['merchantOrderList'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function merchantOrderListRequest($start_time, $end_time = null, $status = null, $type = null, $adv_no = null, $order_no = null, $coin = null, $language_type = null, $fiat = null, $last_min_id = null, $page_size = null, string $contentType = self::contentTypes['merchantOrderList'][0]) - { - - // verify the required parameter 'start_time' is set - if ($start_time === null || (is_array($start_time) && count($start_time) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $start_time when calling merchantOrderList' - ); - } - - - - - - - - - - - - - $resourcePath = '/api/p2p/v1/merchant/orderList'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $start_time, - 'startTime', // param base name - 'string', // openApiType - '', // style - false, // explode - true // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $status, - 'status', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $type, - 'type', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $adv_no, - 'advNo', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $order_no, - 'orderNo', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $coin, - 'coin', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $language_type, - 'languageType', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $fiat, - 'fiat', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $last_min_id, - 'lastMinId', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $page_size, - 'pageSize', // param base name - 'string', // openApiType - '', // style - false, // explode - false // required - ) ?? []); - - - - - $headers = $this->headerSelector->selectHeaders( - ['application/json', ], - $contentType, - $multipart - ); - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\json_encode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-KEY'); - if ($apiKey !== null) { - $headers['ACCESS-KEY'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-PASSPHRASE'); - if ($apiKey !== null) { - $headers['ACCESS-PASSPHRASE'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-SIGN'); - if ($apiKey !== null) { - $headers['ACCESS-SIGN'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('ACCESS-TIMESTAMP'); - if ($apiKey !== null) { - $headers['ACCESS-TIMESTAMP'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('SECRET-KEY'); - if ($apiKey !== null) { - $headers['SECRET-KEY'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $operationHost = $this->config->getHost(); - $query = ObjectSerializer::buildQuery($queryParams); - return \Bitget\Utils::getAutoSignWarpHttpRequest( - 'GET', - $operationHost . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/bitget-php-sdk-open-api/lib/ApiException.php b/bitget-php-sdk-open-api/lib/ApiException.php deleted file mode 100644 index 1ca19c93..00000000 --- a/bitget-php-sdk-open-api/lib/ApiException.php +++ /dev/null @@ -1,119 +0,0 @@ -responseHeaders = $responseHeaders; - $this->responseBody = $responseBody; - } - - /** - * Gets the HTTP response header - * - * @return string[]|null HTTP response header - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * Gets the HTTP body of the server response either as Json or string - * - * @return \stdClass|string|null HTTP body of the server response either as \stdClass or string - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Sets the deserialized response object (during deserialization) - * - * @param mixed $obj Deserialized response object - * - * @return void - */ - public function setResponseObject($obj) - { - $this->responseObject = $obj; - } - - /** - * Gets the deserialized response object (during deserialization) - * - * @return mixed the deserialized response object - */ - public function getResponseObject() - { - return $this->responseObject; - } -} diff --git a/bitget-php-sdk-open-api/lib/Config.php b/bitget-php-sdk-open-api/lib/Config.php deleted file mode 100644 index e94ed578..00000000 --- a/bitget-php-sdk-open-api/lib/Config.php +++ /dev/null @@ -1,16 +0,0 @@ -setHost('https://api.bitget.com'); - $config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-KEY', 'your value'); - $config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('ACCESS-PASSPHRASE', 'your value'); - $config = \Bitget\Configuration::getDefaultConfiguration()->setApiKey('SECRET-KEY', 'your value'); - return $config; - } -} \ No newline at end of file diff --git a/bitget-php-sdk-open-api/lib/Configuration.php b/bitget-php-sdk-open-api/lib/Configuration.php deleted file mode 100644 index c63ae893..00000000 --- a/bitget-php-sdk-open-api/lib/Configuration.php +++ /dev/null @@ -1,531 +0,0 @@ -tempFolderPath = sys_get_temp_dir(); - } - - /** - * Sets API key - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $key API key or token - * - * @return $this - */ - public function setApiKey($apiKeyIdentifier, $key) - { - $this->apiKeys[$apiKeyIdentifier] = $key; - return $this; - } - - /** - * Gets API key - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * - * @return null|string API key or token - */ - public function getApiKey($apiKeyIdentifier) - { - return isset($this->apiKeys[$apiKeyIdentifier]) ? $this->apiKeys[$apiKeyIdentifier] : null; - } - - /** - * Sets the prefix for API key (e.g. Bearer) - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $prefix API key prefix, e.g. Bearer - * - * @return $this - */ - public function setApiKeyPrefix($apiKeyIdentifier, $prefix) - { - $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; - return $this; - } - - /** - * Gets API key prefix - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * - * @return null|string - */ - public function getApiKeyPrefix($apiKeyIdentifier) - { - return isset($this->apiKeyPrefixes[$apiKeyIdentifier]) ? $this->apiKeyPrefixes[$apiKeyIdentifier] : null; - } - - /** - * Sets the access token for OAuth - * - * @param string $accessToken Token for OAuth - * - * @return $this - */ - public function setAccessToken($accessToken) - { - $this->accessToken = $accessToken; - return $this; - } - - /** - * Gets the access token for OAuth - * - * @return string Access token for OAuth - */ - public function getAccessToken() - { - return $this->accessToken; - } - - /** - * Sets boolean format for query string. - * - * @param string $booleanFormatForQueryString Boolean format for query string - * - * @return $this - */ - public function setBooleanFormatForQueryString(string $booleanFormat) - { - $this->booleanFormatForQueryString = $booleanFormat; - - return $this; - } - - /** - * Gets boolean format for query string. - * - * @return string Boolean format for query string - */ - public function getBooleanFormatForQueryString(): string - { - return $this->booleanFormatForQueryString; - } - - /** - * Sets the username for HTTP basic authentication - * - * @param string $username Username for HTTP basic authentication - * - * @return $this - */ - public function setUsername($username) - { - $this->username = $username; - return $this; - } - - /** - * Gets the username for HTTP basic authentication - * - * @return string Username for HTTP basic authentication - */ - public function getUsername() - { - return $this->username; - } - - /** - * Sets the password for HTTP basic authentication - * - * @param string $password Password for HTTP basic authentication - * - * @return $this - */ - public function setPassword($password) - { - $this->password = $password; - return $this; - } - - /** - * Gets the password for HTTP basic authentication - * - * @return string Password for HTTP basic authentication - */ - public function getPassword() - { - return $this->password; - } - - /** - * Sets the host - * - * @param string $host Host - * - * @return $this - */ - public function setHost($host) - { - $this->host = $host; - return $this; - } - - /** - * Gets the host - * - * @return string Host - */ - public function getHost() - { - return $this->host; - } - - /** - * Sets the user agent of the api client - * - * @param string $userAgent the user agent of the api client - * - * @throws \InvalidArgumentException - * @return $this - */ - public function setUserAgent($userAgent) - { - if (!is_string($userAgent)) { - throw new \InvalidArgumentException('User-agent must be a string.'); - } - - $this->userAgent = $userAgent; - return $this; - } - - /** - * Gets the user agent of the api client - * - * @return string user agent - */ - public function getUserAgent() - { - return $this->userAgent; - } - - /** - * Sets debug flag - * - * @param bool $debug Debug flag - * - * @return $this - */ - public function setDebug($debug) - { - $this->debug = $debug; - return $this; - } - - /** - * Gets the debug flag - * - * @return bool - */ - public function getDebug() - { - return $this->debug; - } - - /** - * Sets the debug file - * - * @param string $debugFile Debug file - * - * @return $this - */ - public function setDebugFile($debugFile) - { - $this->debugFile = $debugFile; - return $this; - } - - /** - * Gets the debug file - * - * @return string - */ - public function getDebugFile() - { - return $this->debugFile; - } - - /** - * Sets the temp folder path - * - * @param string $tempFolderPath Temp folder path - * - * @return $this - */ - public function setTempFolderPath($tempFolderPath) - { - $this->tempFolderPath = $tempFolderPath; - return $this; - } - - /** - * Gets the temp folder path - * - * @return string Temp folder path - */ - public function getTempFolderPath() - { - return $this->tempFolderPath; - } - - /** - * Gets the default configuration instance - * - * @return Configuration - */ - public static function getDefaultConfiguration() - { - if (self::$defaultConfiguration === null) { - self::$defaultConfiguration = new Configuration(); - } - - return self::$defaultConfiguration; - } - - /** - * Sets the default configuration instance - * - * @param Configuration $config An instance of the Configuration Object - * - * @return void - */ - public static function setDefaultConfiguration(Configuration $config) - { - self::$defaultConfiguration = $config; - } - - /** - * Gets the essential information for debugging - * - * @return string The report for debugging - */ - public static function toDebugReport() - { - $report = 'PHP SDK (Bitget) Debug Report:' . PHP_EOL; - $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 2.0.0' . PHP_EOL; - $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; - - return $report; - } - - /** - * Get API key (with prefix if set) - * - * @param string $apiKeyIdentifier name of apikey - * - * @return null|string API key with the prefix - */ - public function getApiKeyWithPrefix($apiKeyIdentifier) - { - $prefix = $this->getApiKeyPrefix($apiKeyIdentifier); - $apiKey = $this->getApiKey($apiKeyIdentifier); - - if ($apiKey === null) { - return null; - } - - if ($prefix === null) { - $keyWithPrefix = $apiKey; - } else { - $keyWithPrefix = $prefix . ' ' . $apiKey; - } - - return $keyWithPrefix; - } - - /** - * Returns an array of host settings - * - * @return array an array of host settings - */ - public function getHostSettings() - { - return [ - [ - "url" => "https://api.bitget.com", - "description" => "No description provided", - ] - ]; - } - - /** - * Returns URL based on host settings, index and variables - * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ - public static function getHostString(array $hostsSettings, $hostIndex, array $variables = null) - { - if (null === $variables) { - $variables = []; - } - - // check array index out of bound - if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) { - throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings)); - } - - $host = $hostsSettings[$hostIndex]; - $url = $host["url"]; - - // go through variable and assign a value - foreach ($host["variables"] ?? [] as $name => $variable) { - if (array_key_exists($name, $variables)) { // check to see if it's in the variables provided by the user - if (!isset($variable['enum_values']) || in_array($variables[$name], $variable["enum_values"], true)) { // check to see if the value is in the enum - $url = str_replace("{".$name."}", $variables[$name], $url); - } else { - throw new \InvalidArgumentException("The variable `$name` in the host URL has invalid value ".$variables[$name].". Must be ".join(',', $variable["enum_values"])."."); - } - } else { - // use default value - $url = str_replace("{".$name."}", $variable["default_value"], $url); - } - } - - return $url; - } - - /** - * Returns URL based on the index and variables - * - * @param int $index index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ - public function getHostFromSettings($index, $variables = null) - { - return self::getHostString($this->getHostSettings(), $index, $variables); - } -} diff --git a/bitget-php-sdk-open-api/lib/HeaderSelector.php b/bitget-php-sdk-open-api/lib/HeaderSelector.php deleted file mode 100644 index cc6206a0..00000000 --- a/bitget-php-sdk-open-api/lib/HeaderSelector.php +++ /dev/null @@ -1,245 +0,0 @@ -selectAcceptHeader($accept); - if ($accept !== null) { - $headers['Accept'] = $accept; - } - - if (!$isMultipart) { - if($contentType === '') { - $contentType = 'application/json'; - } - - $headers['Content-Type'] = $contentType; - } - - return $headers; - } - - /** - * Return the header 'Accept' based on an array of Accept provided. - * - * @param string[] $accept Array of header - * - * @return null|string Accept (e.g. application/json) - */ - private function selectAcceptHeader(array $accept): ?string - { - # filter out empty entries - $accept = array_filter($accept); - - if (count($accept) === 0) { - return null; - } - - # If there's only one Accept header, just use it - if (count($accept) === 1) { - return reset($accept); - } - - # If none of the available Accept headers is of type "json", then just use all them - $headersWithJson = preg_grep('~(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$~', $accept); - if (count($headersWithJson) === 0) { - return implode(',', $accept); - } - - # If we got here, then we need add quality values (weight), as described in IETF RFC 9110, Items 12.4.2/12.5.1, - # to give the highest priority to json-like headers - recalculating the existing ones, if needed - return $this->getAcceptHeaderWithAdjustedWeight($accept, $headersWithJson); - } - - /** - * Create an Accept header string from the given "Accept" headers array, recalculating all weights - * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" - * - * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") - */ - private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string - { - $processedHeaders = [ - 'withApplicationJson' => [], - 'withJson' => [], - 'withoutJson' => [], - ]; - - foreach ($accept as $header) { - - $headerData = $this->getHeaderAndWeight($header); - - if (stripos($headerData['header'], 'application/json') === 0) { - $processedHeaders['withApplicationJson'][] = $headerData; - } elseif (in_array($header, $headersWithJson, true)) { - $processedHeaders['withJson'][] = $headerData; - } else { - $processedHeaders['withoutJson'][] = $headerData; - } - } - - $acceptHeaders = []; - $currentWeight = 1000; - - $hasMoreThan28Headers = count($accept) > 28; - - foreach($processedHeaders as $headers) { - if (count($headers) > 0) { - $acceptHeaders[] = $this->adjustWeight($headers, $currentWeight, $hasMoreThan28Headers); - } - } - - $acceptHeaders = array_merge(...$acceptHeaders); - - return implode(',', $acceptHeaders); - } - - /** - * Given an Accept header, returns an associative array splitting the header and its weight - * - * @param string $header "Accept" Header - * - * @return array with the header and its weight - */ - private function getHeaderAndWeight(string $header): array - { - # matches headers with weight, splitting the header and the weight in $outputArray - if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) { - $headerData = [ - 'header' => $outputArray[1], - 'weight' => (int)($outputArray[2] * 1000), - ]; - } else { - $headerData = [ - 'header' => trim($header), - 'weight' => 1000, - ]; - } - - return $headerData; - } - - /** - * @param array[] $headers - * @param float $currentWeight - * @param bool $hasMoreThan28Headers - * @return string[] array of adjusted "Accept" headers - */ - private function adjustWeight(array $headers, float &$currentWeight, bool $hasMoreThan28Headers): array - { - usort($headers, function (array $a, array $b) { - return $b['weight'] - $a['weight']; - }); - - $acceptHeaders = []; - foreach ($headers as $index => $header) { - if($index > 0 && $headers[$index - 1]['weight'] > $header['weight']) - { - $currentWeight = $this->getNextWeight($currentWeight, $hasMoreThan28Headers); - } - - $weight = $currentWeight; - - $acceptHeaders[] = $this->buildAcceptHeader($header['header'], $weight); - } - - $currentWeight = $this->getNextWeight($currentWeight, $hasMoreThan28Headers); - - return $acceptHeaders; - } - - /** - * @param string $header - * @param int $weight - * @return string - */ - private function buildAcceptHeader(string $header, int $weight): string - { - if($weight === 1000) { - return $header; - } - - return trim($header, '; ') . ';q=' . rtrim(sprintf('%0.3f', $weight / 1000), '0'); - } - - /** - * Calculate the next weight, based on the current one. - * - * If there are less than 28 "Accept" headers, the weights will be decreased by 1 on its highest significant digit, using the - * following formula: - * - * next weight = current weight - 10 ^ (floor(log(current weight - 1))) - * - * ( current weight minus ( 10 raised to the power of ( floor of (log to the base 10 of ( current weight minus 1 ) ) ) ) ) - * - * Starting from 1000, this generates the following series: - * - * 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 - * - * The resulting quality codes are closer to the average "normal" usage of them (like "q=0.9", "q=0.8" and so on), but it only works - * if there is a maximum of 28 "Accept" headers. If we have more than that (which is extremely unlikely), then we fall back to a 1-by-1 - * decrement rule, which will result in quality codes like "q=0.999", "q=0.998" etc. - * - * @param int $currentWeight varying from 1 to 1000 (will be divided by 1000 to build the quality value) - * @param bool $hasMoreThan28Headers - * @return int - */ - public function getNextWeight(int $currentWeight, bool $hasMoreThan28Headers): int - { - if ($currentWeight <= 1) { - return 1; - } - - if ($hasMoreThan28Headers) { - return $currentWeight - 1; - } - - return $currentWeight - 10 ** floor( log10($currentWeight - 1) ); - } -} diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.php deleted file mode 100644 index 8c66e0b8..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginCrossAssetsPopulationResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossAssetsPopulationResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossAssetsPopulationResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossAssetsPopulationResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossLevelResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossLevelResult.php deleted file mode 100644 index 60c126b9..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossLevelResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginCrossLevelResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginCrossLevelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossLevelResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossLevelResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossLevelResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.php deleted file mode 100644 index 00cfb218..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginCrossRateAndLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginCrossRateAndLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossRateAndLimitResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossRateAndLimitResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossRateAndLimitResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.php deleted file mode 100644 index 641a2798..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedAssetsPopulationResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedAssetsPopulationResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedAssetsPopulationResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.php deleted file mode 100644 index 8b4fbe15..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedAssetsRiskResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedAssetsRiskResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedAssetsRiskResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.php deleted file mode 100644 index d73d5968..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedLevelResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginIsolatedLevelResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginIsolatedLevelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedLevelResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedLevelResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedLevelResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.php deleted file mode 100644 index ff598a3e..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedRateAndLimitResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedRateAndLimitResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedRateAndLimitResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginSystemResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginSystemResult.php deleted file mode 100644 index 671b3519..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfListOfMarginSystemResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfListOfMarginSystemResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfListOfMarginSystemResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginSystemResult[]', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginSystemResult[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginSystemResult[]|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchCancelOrderResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchCancelOrderResult.php deleted file mode 100644 index 3fe54e88..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchCancelOrderResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginBatchCancelOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginBatchCancelOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginBatchCancelOrderResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginBatchCancelOrderResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginBatchCancelOrderResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.php deleted file mode 100644 index 4f33e7e4..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginBatchPlaceOrderResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginBatchPlaceOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginBatchPlaceOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginBatchPlaceOrderResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginBatchPlaceOrderResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginBatchPlaceOrderResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsResult.php deleted file mode 100644 index 75fdb02c..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossAssetsResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossAssetsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossAssetsResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossAssetsResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossAssetsResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.php deleted file mode 100644 index 04e59285..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossAssetsRiskResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossAssetsRiskResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossAssetsRiskResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossAssetsRiskResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossAssetsRiskResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossAssetsRiskResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.php deleted file mode 100644 index d8db1a45..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossBorrowLimitResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossBorrowLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossBorrowLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossBorrowLimitResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossBorrowLimitResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossBorrowLimitResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossFinFlowResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossFinFlowResult.php deleted file mode 100644 index a71bb183..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossFinFlowResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossFinFlowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossFinFlowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossFinFlowResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossFinFlowResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossFinFlowResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.php deleted file mode 100644 index 98826f63..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossMaxBorrowResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossMaxBorrowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossMaxBorrowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossMaxBorrowResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossMaxBorrowResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossMaxBorrowResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossRepayResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossRepayResult.php deleted file mode 100644 index d0b78bb5..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginCrossRepayResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginCrossRepayResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginCrossRepayResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginCrossRepayResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginCrossRepayResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginCrossRepayResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginInterestInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginInterestInfoResult.php deleted file mode 100644 index 3d98a584..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginInterestInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginInterestInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginInterestInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginInterestInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginInterestInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginInterestInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedAssetsResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedAssetsResult.php deleted file mode 100644 index be53f2f3..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedAssetsResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedAssetsResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedAssetsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedAssetsResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedAssetsResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedAssetsResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.php deleted file mode 100644 index c14d5a85..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedBorrowLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedBorrowLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedBorrowLimitResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedBorrowLimitResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedBorrowLimitResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.php deleted file mode 100644 index 08a18811..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedFinFlowResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedFinFlowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedFinFlowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedFinFlowResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedFinFlowResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedFinFlowResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.php deleted file mode 100644 index 24677fce..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedInterestInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedInterestInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedInterestInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedInterestInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedInterestInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedInterestInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.php deleted file mode 100644 index 7b770c0e..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedLiquidationInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedLiquidationInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedLiquidationInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedLiquidationInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedLiquidationInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.php deleted file mode 100644 index af0a4836..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedLoanInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedLoanInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedLoanInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedLoanInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedLoanInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedLoanInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.php deleted file mode 100644 index 41b9a8a8..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedMaxBorrowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedMaxBorrowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedMaxBorrowResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedMaxBorrowResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedMaxBorrowResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.php deleted file mode 100644 index 434508ae..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedRepayInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedRepayInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedRepayInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedRepayInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedRepayInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayResult.php deleted file mode 100644 index 4794bca9..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginIsolatedRepayResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginIsolatedRepayResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginIsolatedRepayResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginIsolatedRepayResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginIsolatedRepayResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginIsolatedRepayResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLiquidationInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLiquidationInfoResult.php deleted file mode 100644 index c5fbaf17..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLiquidationInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginLiquidationInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginLiquidationInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginLiquidationInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginLiquidationInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginLiquidationInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLoanInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLoanInfoResult.php deleted file mode 100644 index 84483be1..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginLoanInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginLoanInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginLoanInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginLoanInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginLoanInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginLoanInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginOpenOrderInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginOpenOrderInfoResult.php deleted file mode 100644 index e137b587..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginOpenOrderInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginOpenOrderInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginOpenOrderInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginOpenOrderInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginOpenOrderInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginOpenOrderInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginPlaceOrderResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginPlaceOrderResult.php deleted file mode 100644 index 907f284c..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginPlaceOrderResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginPlaceOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginPlaceOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginPlaceOrderResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginPlaceOrderResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginPlaceOrderResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginRepayInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginRepayInfoResult.php deleted file mode 100644 index b7bbdcca..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginRepayInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginRepayInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginRepayInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginRepayInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginRepayInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginRepayInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginTradeDetailInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginTradeDetailInfoResult.php deleted file mode 100644 index c35c0a67..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMarginTradeDetailInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMarginTradeDetailInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMarginTradeDetailInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MarginTradeDetailInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MarginTradeDetailInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MarginTradeDetailInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantAdvResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantAdvResult.php deleted file mode 100644 index 48dff20f..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantAdvResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMerchantAdvResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMerchantAdvResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MerchantAdvResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MerchantAdvResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MerchantAdvResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantInfoResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantInfoResult.php deleted file mode 100644 index 4683a76b..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantInfoResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMerchantInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMerchantInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MerchantInfoResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MerchantInfoResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MerchantInfoResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantOrderResult.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantOrderResult.php deleted file mode 100644 index 3bba19b3..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantOrderResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMerchantOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMerchantOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MerchantOrderResult', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MerchantOrderResult|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MerchantOrderResult|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantPersonInfo.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantPersonInfo.php deleted file mode 100644 index dedb035f..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfMerchantPersonInfo.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class ApiResponseResultOfMerchantPersonInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfMerchantPersonInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'data' => '\Bitget\Model\MerchantPersonInfo', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'data' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'data' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'data' => 'data', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'data' => 'setData', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'data' => 'getData', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('data', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets data - * - * @return \Bitget\Model\MerchantPersonInfo|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \Bitget\Model\MerchantPersonInfo|null $data data - * - * @return self - */ - public function setData($data) - { - - if (is_null($data)) { - throw new \InvalidArgumentException('non-nullable data cannot be null'); - } - - $this->container['data'] = $data; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfVoid.php b/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfVoid.php deleted file mode 100644 index 09fed4bf..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ApiResponseResultOfVoid.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class ApiResponseResultOfVoid implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ApiResponseResultOfVoid'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'msg' => 'string', - 'request_time' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'msg' => null, - 'request_time' => 'int64' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'code' => false, - 'msg' => false, - 'request_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'msg' => 'msg', - 'request_time' => 'requestTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'msg' => 'setMsg', - 'request_time' => 'setRequestTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'msg' => 'getMsg', - 'request_time' => 'getRequestTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('msg', $data ?? [], null); - $this->setIfExists('request_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code code - * - * @return self - */ - public function setCode($code) - { - - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets msg - * - * @return string|null - */ - public function getMsg() - { - return $this->container['msg']; - } - - /** - * Sets msg - * - * @param string|null $msg msg - * - * @return self - */ - public function setMsg($msg) - { - - if (is_null($msg)) { - throw new \InvalidArgumentException('non-nullable msg cannot be null'); - } - - $this->container['msg'] = $msg; - - return $this; - } - - /** - * Gets request_time - * - * @return int|null - */ - public function getRequestTime() - { - return $this->container['request_time']; - } - - /** - * Sets request_time - * - * @param int|null $request_time requestTime - * - * @return self - */ - public function setRequestTime($request_time) - { - - if (is_null($request_time)) { - throw new \InvalidArgumentException('non-nullable request_time cannot be null'); - } - - $this->container['request_time'] = $request_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/FiatPaymentDetailInfo.php b/bitget-php-sdk-open-api/lib/Model/FiatPaymentDetailInfo.php deleted file mode 100644 index 9fda8240..00000000 --- a/bitget-php-sdk-open-api/lib/Model/FiatPaymentDetailInfo.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class FiatPaymentDetailInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FiatPaymentDetailInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'required' => 'bool', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'required' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'name' => false, - 'required' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'required' => 'required', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'required' => 'setRequired', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'required' => 'getRequired', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('required', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return self - */ - public function setName($name) - { - - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets required - * - * @return bool|null - */ - public function getRequired() - { - return $this->container['required']; - } - - /** - * Sets required - * - * @param bool|null $required required - * - * @return self - */ - public function setRequired($required) - { - - if (is_null($required)) { - throw new \InvalidArgumentException('non-nullable required cannot be null'); - } - - $this->container['required'] = $required; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/FiatPaymentInfo.php b/bitget-php-sdk-open-api/lib/Model/FiatPaymentInfo.php deleted file mode 100644 index 9f1a7d20..00000000 --- a/bitget-php-sdk-open-api/lib/Model/FiatPaymentInfo.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class FiatPaymentInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FiatPaymentInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payment_id' => 'string', - 'payment_info' => '\Bitget\Model\FiatPaymentDetailInfo[]', - 'payment_method' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payment_id' => null, - 'payment_info' => null, - 'payment_method' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'payment_id' => false, - 'payment_info' => false, - 'payment_method' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'payment_id' => 'paymentId', - 'payment_info' => 'paymentInfo', - 'payment_method' => 'paymentMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'payment_id' => 'setPaymentId', - 'payment_info' => 'setPaymentInfo', - 'payment_method' => 'setPaymentMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'payment_id' => 'getPaymentId', - 'payment_info' => 'getPaymentInfo', - 'payment_method' => 'getPaymentMethod' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('payment_id', $data ?? [], null); - $this->setIfExists('payment_info', $data ?? [], null); - $this->setIfExists('payment_method', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets payment_id - * - * @return string|null - */ - public function getPaymentId() - { - return $this->container['payment_id']; - } - - /** - * Sets payment_id - * - * @param string|null $payment_id payment_id - * - * @return self - */ - public function setPaymentId($payment_id) - { - - if (is_null($payment_id)) { - throw new \InvalidArgumentException('non-nullable payment_id cannot be null'); - } - - $this->container['payment_id'] = $payment_id; - - return $this; - } - - /** - * Gets payment_info - * - * @return \Bitget\Model\FiatPaymentDetailInfo[]|null - */ - public function getPaymentInfo() - { - return $this->container['payment_info']; - } - - /** - * Sets payment_info - * - * @param \Bitget\Model\FiatPaymentDetailInfo[]|null $payment_info payment_info - * - * @return self - */ - public function setPaymentInfo($payment_info) - { - - if (is_null($payment_info)) { - throw new \InvalidArgumentException('non-nullable payment_info cannot be null'); - } - - $this->container['payment_info'] = $payment_info; - - return $this; - } - - /** - * Gets payment_method - * - * @return string|null - */ - public function getPaymentMethod() - { - return $this->container['payment_method']; - } - - /** - * Sets payment_method - * - * @param string|null $payment_method payment_method - * - * @return self - */ - public function setPaymentMethod($payment_method) - { - - if (is_null($payment_method)) { - throw new \InvalidArgumentException('non-nullable payment_method cannot be null'); - } - - $this->container['payment_method'] = $payment_method; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderRequest.php deleted file mode 100644 index 22ed8114..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderRequest.php +++ /dev/null @@ -1,486 +0,0 @@ - - */ -class MarginBatchCancelOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginBatchCancelOrderRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oids' => 'string[]', - 'order_ids' => 'string[]', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oids' => null, - 'order_ids' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oids' => false, - 'order_ids' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oids' => 'clientOids', - 'order_ids' => 'orderIds', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oids' => 'setClientOids', - 'order_ids' => 'setOrderIds', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oids' => 'getClientOids', - 'order_ids' => 'getOrderIds', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oids', $data ?? [], null); - $this->setIfExists('order_ids', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oids - * - * @return string[]|null - */ - public function getClientOids() - { - return $this->container['client_oids']; - } - - /** - * Sets client_oids - * - * @param string[]|null $client_oids clientOids - * - * @return self - */ - public function setClientOids($client_oids) - { - - if (is_null($client_oids)) { - throw new \InvalidArgumentException('non-nullable client_oids cannot be null'); - } - - $this->container['client_oids'] = $client_oids; - - return $this; - } - - /** - * Gets order_ids - * - * @return string[]|null - */ - public function getOrderIds() - { - return $this->container['order_ids']; - } - - /** - * Sets order_ids - * - * @param string[]|null $order_ids orderIds - * - * @return self - */ - public function setOrderIds($order_ids) - { - - if (is_null($order_ids)) { - throw new \InvalidArgumentException('non-nullable order_ids cannot be null'); - } - - $this->container['order_ids'] = $order_ids; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderResult.php b/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderResult.php deleted file mode 100644 index 65e7f942..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginBatchCancelOrderResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginBatchCancelOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginBatchCancelOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'failure' => '\Bitget\Model\MarginCancelOrderFailureResult[]', - 'result_list' => '\Bitget\Model\MarginCancelOrderResult[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'failure' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'failure' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'failure' => 'failure', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'failure' => 'setFailure', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'failure' => 'getFailure', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('failure', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets failure - * - * @return \Bitget\Model\MarginCancelOrderFailureResult[]|null - */ - public function getFailure() - { - return $this->container['failure']; - } - - /** - * Sets failure - * - * @param \Bitget\Model\MarginCancelOrderFailureResult[]|null $failure failure - * - * @return self - */ - public function setFailure($failure) - { - - if (is_null($failure)) { - throw new \InvalidArgumentException('non-nullable failure cannot be null'); - } - - $this->container['failure'] = $failure; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginCancelOrderResult[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginCancelOrderResult[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginBatchOrdersRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginBatchOrdersRequest.php deleted file mode 100644 index 01b562be..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginBatchOrdersRequest.php +++ /dev/null @@ -1,522 +0,0 @@ - - */ -class MarginBatchOrdersRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginBatchOrdersRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'channel_api_code' => 'string', - 'ip' => 'string', - 'order_list' => '\Bitget\Model\MarginOrderRequest[]', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'channel_api_code' => null, - 'ip' => null, - 'order_list' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'channel_api_code' => false, - 'ip' => false, - 'order_list' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'channel_api_code' => 'channelApiCode', - 'ip' => 'ip', - 'order_list' => 'orderList', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'channel_api_code' => 'setChannelApiCode', - 'ip' => 'setIp', - 'order_list' => 'setOrderList', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'channel_api_code' => 'getChannelApiCode', - 'ip' => 'getIp', - 'order_list' => 'getOrderList', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('channel_api_code', $data ?? [], null); - $this->setIfExists('ip', $data ?? [], null); - $this->setIfExists('order_list', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets channel_api_code - * - * @return string|null - */ - public function getChannelApiCode() - { - return $this->container['channel_api_code']; - } - - /** - * Sets channel_api_code - * - * @param string|null $channel_api_code channel_api_code - * - * @return self - */ - public function setChannelApiCode($channel_api_code) - { - - if (is_null($channel_api_code)) { - throw new \InvalidArgumentException('non-nullable channel_api_code cannot be null'); - } - - $this->container['channel_api_code'] = $channel_api_code; - - return $this; - } - - /** - * Gets ip - * - * @return string|null - */ - public function getIp() - { - return $this->container['ip']; - } - - /** - * Sets ip - * - * @param string|null $ip ip - * - * @return self - */ - public function setIp($ip) - { - - if (is_null($ip)) { - throw new \InvalidArgumentException('non-nullable ip cannot be null'); - } - - $this->container['ip'] = $ip; - - return $this; - } - - /** - * Gets order_list - * - * @return \Bitget\Model\MarginOrderRequest[]|null - */ - public function getOrderList() - { - return $this->container['order_list']; - } - - /** - * Sets order_list - * - * @param \Bitget\Model\MarginOrderRequest[]|null $order_list order_list - * - * @return self - */ - public function setOrderList($order_list) - { - - if (is_null($order_list)) { - throw new \InvalidArgumentException('non-nullable order_list cannot be null'); - } - - $this->container['order_list'] = $order_list; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderFailureResult.php b/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderFailureResult.php deleted file mode 100644 index c8077e1a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderFailureResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginBatchPlaceOrderFailureResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginBatchPlaceOrderFailureResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'error_msg' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'error_msg' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'error_msg' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'error_msg' => 'errorMsg' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'error_msg' => 'setErrorMsg' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'error_msg' => 'getErrorMsg' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('error_msg', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets error_msg - * - * @return string|null - */ - public function getErrorMsg() - { - return $this->container['error_msg']; - } - - /** - * Sets error_msg - * - * @param string|null $error_msg error_msg - * - * @return self - */ - public function setErrorMsg($error_msg) - { - - if (is_null($error_msg)) { - throw new \InvalidArgumentException('non-nullable error_msg cannot be null'); - } - - $this->container['error_msg'] = $error_msg; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderResult.php b/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderResult.php deleted file mode 100644 index b5b69d98..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginBatchPlaceOrderResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginBatchPlaceOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginBatchPlaceOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'failure' => '\Bitget\Model\MarginBatchPlaceOrderFailureResult[]', - 'result_list' => '\Bitget\Model\MarginCancelOrderResult[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'failure' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'failure' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'failure' => 'failure', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'failure' => 'setFailure', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'failure' => 'getFailure', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('failure', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets failure - * - * @return \Bitget\Model\MarginBatchPlaceOrderFailureResult[]|null - */ - public function getFailure() - { - return $this->container['failure']; - } - - /** - * Sets failure - * - * @param \Bitget\Model\MarginBatchPlaceOrderFailureResult[]|null $failure failure - * - * @return self - */ - public function setFailure($failure) - { - - if (is_null($failure)) { - throw new \InvalidArgumentException('non-nullable failure cannot be null'); - } - - $this->container['failure'] = $failure; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginCancelOrderResult[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginCancelOrderResult[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderFailureResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderFailureResult.php deleted file mode 100644 index c4d37f1a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderFailureResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginCancelOrderFailureResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCancelOrderFailureResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'error_msg' => 'string', - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'error_msg' => null, - 'order_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'error_msg' => false, - 'order_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'error_msg' => 'errorMsg', - 'order_id' => 'orderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'error_msg' => 'setErrorMsg', - 'order_id' => 'setOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'error_msg' => 'getErrorMsg', - 'order_id' => 'getOrderId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('error_msg', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets error_msg - * - * @return string|null - */ - public function getErrorMsg() - { - return $this->container['error_msg']; - } - - /** - * Sets error_msg - * - * @param string|null $error_msg error_msg - * - * @return self - */ - public function setErrorMsg($error_msg) - { - - if (is_null($error_msg)) { - throw new \InvalidArgumentException('non-nullable error_msg cannot be null'); - } - - $this->container['error_msg'] = $error_msg; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderRequest.php deleted file mode 100644 index 47d7beab..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderRequest.php +++ /dev/null @@ -1,486 +0,0 @@ - - */ -class MarginCancelOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCancelOrderRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'order_id' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'order_id' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'order_id' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'order_id' => 'orderId', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'order_id' => 'setOrderId', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'order_id' => 'getOrderId', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid clientOid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id orderId - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderResult.php deleted file mode 100644 index db6a6cb1..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCancelOrderResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginCancelOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCancelOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'order_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'order_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'order_id' => 'orderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'order_id' => 'setOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'order_id' => 'getOrderId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsPopulationResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsPopulationResult.php deleted file mode 100644 index a95fe374..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsPopulationResult.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginCrossAssetsPopulationResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossAssetsPopulationResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'available' => 'string', - 'borrow' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'frozen' => 'string', - 'interest' => 'string', - 'net' => 'string', - 'total_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'available' => null, - 'borrow' => null, - 'coin' => null, - 'ctime' => null, - 'frozen' => null, - 'interest' => null, - 'net' => null, - 'total_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'available' => false, - 'borrow' => false, - 'coin' => false, - 'ctime' => false, - 'frozen' => false, - 'interest' => false, - 'net' => false, - 'total_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'available' => 'available', - 'borrow' => 'borrow', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'frozen' => 'frozen', - 'interest' => 'interest', - 'net' => 'net', - 'total_amount' => 'totalAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'available' => 'setAvailable', - 'borrow' => 'setBorrow', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'frozen' => 'setFrozen', - 'interest' => 'setInterest', - 'net' => 'setNet', - 'total_amount' => 'setTotalAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'available' => 'getAvailable', - 'borrow' => 'getBorrow', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'frozen' => 'getFrozen', - 'interest' => 'getInterest', - 'net' => 'getNet', - 'total_amount' => 'getTotalAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('available', $data ?? [], null); - $this->setIfExists('borrow', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('frozen', $data ?? [], null); - $this->setIfExists('interest', $data ?? [], null); - $this->setIfExists('net', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets available - * - * @return string|null - */ - public function getAvailable() - { - return $this->container['available']; - } - - /** - * Sets available - * - * @param string|null $available available - * - * @return self - */ - public function setAvailable($available) - { - - if (is_null($available)) { - throw new \InvalidArgumentException('non-nullable available cannot be null'); - } - - $this->container['available'] = $available; - - return $this; - } - - /** - * Gets borrow - * - * @return string|null - */ - public function getBorrow() - { - return $this->container['borrow']; - } - - /** - * Sets borrow - * - * @param string|null $borrow borrow - * - * @return self - */ - public function setBorrow($borrow) - { - - if (is_null($borrow)) { - throw new \InvalidArgumentException('non-nullable borrow cannot be null'); - } - - $this->container['borrow'] = $borrow; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets frozen - * - * @return string|null - */ - public function getFrozen() - { - return $this->container['frozen']; - } - - /** - * Sets frozen - * - * @param string|null $frozen frozen - * - * @return self - */ - public function setFrozen($frozen) - { - - if (is_null($frozen)) { - throw new \InvalidArgumentException('non-nullable frozen cannot be null'); - } - - $this->container['frozen'] = $frozen; - - return $this; - } - - /** - * Gets interest - * - * @return string|null - */ - public function getInterest() - { - return $this->container['interest']; - } - - /** - * Sets interest - * - * @param string|null $interest interest - * - * @return self - */ - public function setInterest($interest) - { - - if (is_null($interest)) { - throw new \InvalidArgumentException('non-nullable interest cannot be null'); - } - - $this->container['interest'] = $interest; - - return $this; - } - - /** - * Gets net - * - * @return string|null - */ - public function getNet() - { - return $this->container['net']; - } - - /** - * Sets net - * - * @param string|null $net net - * - * @return self - */ - public function setNet($net) - { - - if (is_null($net)) { - throw new \InvalidArgumentException('non-nullable net cannot be null'); - } - - $this->container['net'] = $net; - - return $this; - } - - /** - * Gets total_amount - * - * @return string|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param string|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - - $this->container['total_amount'] = $total_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsResult.php deleted file mode 100644 index 8f6ea48d..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginCrossAssetsResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossAssetsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'max_transfer_out_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'max_transfer_out_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'max_transfer_out_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'max_transfer_out_amount' => 'maxTransferOutAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'max_transfer_out_amount' => 'setMaxTransferOutAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'max_transfer_out_amount' => 'getMaxTransferOutAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('max_transfer_out_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets max_transfer_out_amount - * - * @return string|null - */ - public function getMaxTransferOutAmount() - { - return $this->container['max_transfer_out_amount']; - } - - /** - * Sets max_transfer_out_amount - * - * @param string|null $max_transfer_out_amount max_transfer_out_amount - * - * @return self - */ - public function setMaxTransferOutAmount($max_transfer_out_amount) - { - - if (is_null($max_transfer_out_amount)) { - throw new \InvalidArgumentException('non-nullable max_transfer_out_amount cannot be null'); - } - - $this->container['max_transfer_out_amount'] = $max_transfer_out_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsRiskResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsRiskResult.php deleted file mode 100644 index d629d060..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossAssetsRiskResult.php +++ /dev/null @@ -1,411 +0,0 @@ - - */ -class MarginCrossAssetsRiskResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossAssetsRiskResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'risk_rate' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'risk_rate' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'risk_rate' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'risk_rate' => 'riskRate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'risk_rate' => 'setRiskRate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'risk_rate' => 'getRiskRate' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('risk_rate', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets risk_rate - * - * @return string|null - */ - public function getRiskRate() - { - return $this->container['risk_rate']; - } - - /** - * Sets risk_rate - * - * @param string|null $risk_rate risk_rate - * - * @return self - */ - public function setRiskRate($risk_rate) - { - - if (is_null($risk_rate)) { - throw new \InvalidArgumentException('non-nullable risk_rate cannot be null'); - } - - $this->container['risk_rate'] = $risk_rate; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossBorrowLimitResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossBorrowLimitResult.php deleted file mode 100644 index bc91fcd9..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossBorrowLimitResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginCrossBorrowLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossBorrowLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'borrow_amount' => 'string', - 'client_oid' => 'string', - 'coin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'borrow_amount' => null, - 'client_oid' => null, - 'coin' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'borrow_amount' => false, - 'client_oid' => false, - 'coin' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'borrow_amount' => 'borrowAmount', - 'client_oid' => 'clientOid', - 'coin' => 'coin' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'borrow_amount' => 'setBorrowAmount', - 'client_oid' => 'setClientOid', - 'coin' => 'setCoin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'borrow_amount' => 'getBorrowAmount', - 'client_oid' => 'getClientOid', - 'coin' => 'getCoin' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('borrow_amount', $data ?? [], null); - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets borrow_amount - * - * @return string|null - */ - public function getBorrowAmount() - { - return $this->container['borrow_amount']; - } - - /** - * Sets borrow_amount - * - * @param string|null $borrow_amount borrow_amount - * - * @return self - */ - public function setBorrowAmount($borrow_amount) - { - - if (is_null($borrow_amount)) { - throw new \InvalidArgumentException('non-nullable borrow_amount cannot be null'); - } - - $this->container['borrow_amount'] = $borrow_amount; - - return $this; - } - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowInfo.php deleted file mode 100644 index 15c4a381..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowInfo.php +++ /dev/null @@ -1,627 +0,0 @@ - - */ -class MarginCrossFinFlowInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossFinFlowInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'balance' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'fee' => 'string', - 'margin_id' => 'string', - 'margin_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'balance' => null, - 'coin' => null, - 'ctime' => null, - 'fee' => null, - 'margin_id' => null, - 'margin_type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'balance' => false, - 'coin' => false, - 'ctime' => false, - 'fee' => false, - 'margin_id' => false, - 'margin_type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'balance' => 'balance', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'fee' => 'fee', - 'margin_id' => 'marginId', - 'margin_type' => 'marginType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'balance' => 'setBalance', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'fee' => 'setFee', - 'margin_id' => 'setMarginId', - 'margin_type' => 'setMarginType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'balance' => 'getBalance', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'fee' => 'getFee', - 'margin_id' => 'getMarginId', - 'margin_type' => 'getMarginType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('fee', $data ?? [], null); - $this->setIfExists('margin_id', $data ?? [], null); - $this->setIfExists('margin_type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets balance - * - * @return string|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param string|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets fee - * - * @return string|null - */ - public function getFee() - { - return $this->container['fee']; - } - - /** - * Sets fee - * - * @param string|null $fee fee - * - * @return self - */ - public function setFee($fee) - { - - if (is_null($fee)) { - throw new \InvalidArgumentException('non-nullable fee cannot be null'); - } - - $this->container['fee'] = $fee; - - return $this; - } - - /** - * Gets margin_id - * - * @return string|null - */ - public function getMarginId() - { - return $this->container['margin_id']; - } - - /** - * Sets margin_id - * - * @param string|null $margin_id margin_id - * - * @return self - */ - public function setMarginId($margin_id) - { - - if (is_null($margin_id)) { - throw new \InvalidArgumentException('non-nullable margin_id cannot be null'); - } - - $this->container['margin_id'] = $margin_id; - - return $this; - } - - /** - * Gets margin_type - * - * @return string|null - */ - public function getMarginType() - { - return $this->container['margin_type']; - } - - /** - * Sets margin_type - * - * @param string|null $margin_type margin_type - * - * @return self - */ - public function setMarginType($margin_type) - { - - if (is_null($margin_type)) { - throw new \InvalidArgumentException('non-nullable margin_type cannot be null'); - } - - $this->container['margin_type'] = $margin_type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowResult.php deleted file mode 100644 index 2ac87718..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossFinFlowResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginCrossFinFlowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossFinFlowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginCrossFinFlowInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginCrossFinFlowInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginCrossFinFlowInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossLevelResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossLevelResult.php deleted file mode 100644 index 743b8fcf..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossLevelResult.php +++ /dev/null @@ -1,555 +0,0 @@ - - */ -class MarginCrossLevelResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossLevelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'leverage' => 'string', - 'maintain_margin_rate' => 'string', - 'max_borrowable_amount' => 'string', - 'tier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'leverage' => null, - 'maintain_margin_rate' => null, - 'max_borrowable_amount' => null, - 'tier' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'leverage' => false, - 'maintain_margin_rate' => false, - 'max_borrowable_amount' => false, - 'tier' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'leverage' => 'leverage', - 'maintain_margin_rate' => 'maintainMarginRate', - 'max_borrowable_amount' => 'maxBorrowableAmount', - 'tier' => 'tier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'leverage' => 'setLeverage', - 'maintain_margin_rate' => 'setMaintainMarginRate', - 'max_borrowable_amount' => 'setMaxBorrowableAmount', - 'tier' => 'setTier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'leverage' => 'getLeverage', - 'maintain_margin_rate' => 'getMaintainMarginRate', - 'max_borrowable_amount' => 'getMaxBorrowableAmount', - 'tier' => 'getTier' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('leverage', $data ?? [], null); - $this->setIfExists('maintain_margin_rate', $data ?? [], null); - $this->setIfExists('max_borrowable_amount', $data ?? [], null); - $this->setIfExists('tier', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets leverage - * - * @return string|null - */ - public function getLeverage() - { - return $this->container['leverage']; - } - - /** - * Sets leverage - * - * @param string|null $leverage leverage - * - * @return self - */ - public function setLeverage($leverage) - { - - if (is_null($leverage)) { - throw new \InvalidArgumentException('non-nullable leverage cannot be null'); - } - - $this->container['leverage'] = $leverage; - - return $this; - } - - /** - * Gets maintain_margin_rate - * - * @return string|null - */ - public function getMaintainMarginRate() - { - return $this->container['maintain_margin_rate']; - } - - /** - * Sets maintain_margin_rate - * - * @param string|null $maintain_margin_rate maintain_margin_rate - * - * @return self - */ - public function setMaintainMarginRate($maintain_margin_rate) - { - - if (is_null($maintain_margin_rate)) { - throw new \InvalidArgumentException('non-nullable maintain_margin_rate cannot be null'); - } - - $this->container['maintain_margin_rate'] = $maintain_margin_rate; - - return $this; - } - - /** - * Gets max_borrowable_amount - * - * @return string|null - */ - public function getMaxBorrowableAmount() - { - return $this->container['max_borrowable_amount']; - } - - /** - * Sets max_borrowable_amount - * - * @param string|null $max_borrowable_amount max_borrowable_amount - * - * @return self - */ - public function setMaxBorrowableAmount($max_borrowable_amount) - { - - if (is_null($max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable max_borrowable_amount cannot be null'); - } - - $this->container['max_borrowable_amount'] = $max_borrowable_amount; - - return $this; - } - - /** - * Gets tier - * - * @return string|null - */ - public function getTier() - { - return $this->container['tier']; - } - - /** - * Sets tier - * - * @param string|null $tier tier - * - * @return self - */ - public function setTier($tier) - { - - if (is_null($tier)) { - throw new \InvalidArgumentException('non-nullable tier cannot be null'); - } - - $this->container['tier'] = $tier; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossLimitRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossLimitRequest.php deleted file mode 100644 index 569329e2..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossLimitRequest.php +++ /dev/null @@ -1,453 +0,0 @@ - - */ -class MarginCrossLimitRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossLimitRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'borrow_amount' => 'string', - 'coin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'borrow_amount' => null, - 'coin' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'borrow_amount' => false, - 'coin' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'borrow_amount' => 'borrowAmount', - 'coin' => 'coin' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'borrow_amount' => 'setBorrowAmount', - 'coin' => 'setCoin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'borrow_amount' => 'getBorrowAmount', - 'coin' => 'getCoin' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('borrow_amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['borrow_amount'] === null) { - $invalidProperties[] = "'borrow_amount' can't be null"; - } - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets borrow_amount - * - * @return string - */ - public function getBorrowAmount() - { - return $this->container['borrow_amount']; - } - - /** - * Sets borrow_amount - * - * @param string $borrow_amount borrowAmount - * - * @return self - */ - public function setBorrowAmount($borrow_amount) - { - - if (is_null($borrow_amount)) { - throw new \InvalidArgumentException('non-nullable borrow_amount cannot be null'); - } - - $this->container['borrow_amount'] = $borrow_amount; - - return $this; - } - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowRequest.php deleted file mode 100644 index 50db2c8e..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowRequest.php +++ /dev/null @@ -1,414 +0,0 @@ - - */ -class MarginCrossMaxBorrowRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossMaxBorrowRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowResult.php deleted file mode 100644 index f4b121eb..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossMaxBorrowResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginCrossMaxBorrowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossMaxBorrowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'max_borrowable_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'max_borrowable_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'max_borrowable_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'max_borrowable_amount' => 'maxBorrowableAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'max_borrowable_amount' => 'setMaxBorrowableAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'max_borrowable_amount' => 'getMaxBorrowableAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('max_borrowable_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets max_borrowable_amount - * - * @return string|null - */ - public function getMaxBorrowableAmount() - { - return $this->container['max_borrowable_amount']; - } - - /** - * Sets max_borrowable_amount - * - * @param string|null $max_borrowable_amount max_borrowable_amount - * - * @return self - */ - public function setMaxBorrowableAmount($max_borrowable_amount) - { - - if (is_null($max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable max_borrowable_amount cannot be null'); - } - - $this->container['max_borrowable_amount'] = $max_borrowable_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossRateAndLimitResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossRateAndLimitResult.php deleted file mode 100644 index 8ad91d37..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossRateAndLimitResult.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginCrossRateAndLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossRateAndLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'borrow_able' => 'bool', - 'coin' => 'string', - 'daily_interest_rate' => 'string', - 'leverage' => 'string', - 'max_borrowable_amount' => 'string', - 'transfer_in_able' => 'bool', - 'vips' => '\Bitget\Model\MarginCrossVipResult[]', - 'yearly_interest_rate' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'borrow_able' => null, - 'coin' => null, - 'daily_interest_rate' => null, - 'leverage' => null, - 'max_borrowable_amount' => null, - 'transfer_in_able' => null, - 'vips' => null, - 'yearly_interest_rate' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'borrow_able' => false, - 'coin' => false, - 'daily_interest_rate' => false, - 'leverage' => false, - 'max_borrowable_amount' => false, - 'transfer_in_able' => false, - 'vips' => false, - 'yearly_interest_rate' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'borrow_able' => 'borrowAble', - 'coin' => 'coin', - 'daily_interest_rate' => 'dailyInterestRate', - 'leverage' => 'leverage', - 'max_borrowable_amount' => 'maxBorrowableAmount', - 'transfer_in_able' => 'transferInAble', - 'vips' => 'vips', - 'yearly_interest_rate' => 'yearlyInterestRate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'borrow_able' => 'setBorrowAble', - 'coin' => 'setCoin', - 'daily_interest_rate' => 'setDailyInterestRate', - 'leverage' => 'setLeverage', - 'max_borrowable_amount' => 'setMaxBorrowableAmount', - 'transfer_in_able' => 'setTransferInAble', - 'vips' => 'setVips', - 'yearly_interest_rate' => 'setYearlyInterestRate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'borrow_able' => 'getBorrowAble', - 'coin' => 'getCoin', - 'daily_interest_rate' => 'getDailyInterestRate', - 'leverage' => 'getLeverage', - 'max_borrowable_amount' => 'getMaxBorrowableAmount', - 'transfer_in_able' => 'getTransferInAble', - 'vips' => 'getVips', - 'yearly_interest_rate' => 'getYearlyInterestRate' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('borrow_able', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('daily_interest_rate', $data ?? [], null); - $this->setIfExists('leverage', $data ?? [], null); - $this->setIfExists('max_borrowable_amount', $data ?? [], null); - $this->setIfExists('transfer_in_able', $data ?? [], null); - $this->setIfExists('vips', $data ?? [], null); - $this->setIfExists('yearly_interest_rate', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets borrow_able - * - * @return bool|null - */ - public function getBorrowAble() - { - return $this->container['borrow_able']; - } - - /** - * Sets borrow_able - * - * @param bool|null $borrow_able borrow_able - * - * @return self - */ - public function setBorrowAble($borrow_able) - { - - if (is_null($borrow_able)) { - throw new \InvalidArgumentException('non-nullable borrow_able cannot be null'); - } - - $this->container['borrow_able'] = $borrow_able; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets daily_interest_rate - * - * @return string|null - */ - public function getDailyInterestRate() - { - return $this->container['daily_interest_rate']; - } - - /** - * Sets daily_interest_rate - * - * @param string|null $daily_interest_rate daily_interest_rate - * - * @return self - */ - public function setDailyInterestRate($daily_interest_rate) - { - - if (is_null($daily_interest_rate)) { - throw new \InvalidArgumentException('non-nullable daily_interest_rate cannot be null'); - } - - $this->container['daily_interest_rate'] = $daily_interest_rate; - - return $this; - } - - /** - * Gets leverage - * - * @return string|null - */ - public function getLeverage() - { - return $this->container['leverage']; - } - - /** - * Sets leverage - * - * @param string|null $leverage leverage - * - * @return self - */ - public function setLeverage($leverage) - { - - if (is_null($leverage)) { - throw new \InvalidArgumentException('non-nullable leverage cannot be null'); - } - - $this->container['leverage'] = $leverage; - - return $this; - } - - /** - * Gets max_borrowable_amount - * - * @return string|null - */ - public function getMaxBorrowableAmount() - { - return $this->container['max_borrowable_amount']; - } - - /** - * Sets max_borrowable_amount - * - * @param string|null $max_borrowable_amount max_borrowable_amount - * - * @return self - */ - public function setMaxBorrowableAmount($max_borrowable_amount) - { - - if (is_null($max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable max_borrowable_amount cannot be null'); - } - - $this->container['max_borrowable_amount'] = $max_borrowable_amount; - - return $this; - } - - /** - * Gets transfer_in_able - * - * @return bool|null - */ - public function getTransferInAble() - { - return $this->container['transfer_in_able']; - } - - /** - * Sets transfer_in_able - * - * @param bool|null $transfer_in_able transfer_in_able - * - * @return self - */ - public function setTransferInAble($transfer_in_able) - { - - if (is_null($transfer_in_able)) { - throw new \InvalidArgumentException('non-nullable transfer_in_able cannot be null'); - } - - $this->container['transfer_in_able'] = $transfer_in_able; - - return $this; - } - - /** - * Gets vips - * - * @return \Bitget\Model\MarginCrossVipResult[]|null - */ - public function getVips() - { - return $this->container['vips']; - } - - /** - * Sets vips - * - * @param \Bitget\Model\MarginCrossVipResult[]|null $vips vips - * - * @return self - */ - public function setVips($vips) - { - - if (is_null($vips)) { - throw new \InvalidArgumentException('non-nullable vips cannot be null'); - } - - $this->container['vips'] = $vips; - - return $this; - } - - /** - * Gets yearly_interest_rate - * - * @return string|null - */ - public function getYearlyInterestRate() - { - return $this->container['yearly_interest_rate']; - } - - /** - * Sets yearly_interest_rate - * - * @param string|null $yearly_interest_rate yearly_interest_rate - * - * @return self - */ - public function setYearlyInterestRate($yearly_interest_rate) - { - - if (is_null($yearly_interest_rate)) { - throw new \InvalidArgumentException('non-nullable yearly_interest_rate cannot be null'); - } - - $this->container['yearly_interest_rate'] = $yearly_interest_rate; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayRequest.php deleted file mode 100644 index d867c037..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayRequest.php +++ /dev/null @@ -1,453 +0,0 @@ - - */ -class MarginCrossRepayRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossRepayRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'repay_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'repay_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'repay_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'repay_amount' => 'repayAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'repay_amount' => 'setRepayAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'repay_amount' => 'getRepayAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('repay_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - if ($this->container['repay_amount'] === null) { - $invalidProperties[] = "'repay_amount' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets repay_amount - * - * @return string - */ - public function getRepayAmount() - { - return $this->container['repay_amount']; - } - - /** - * Sets repay_amount - * - * @param string $repay_amount repayAmount - * - * @return self - */ - public function setRepayAmount($repay_amount) - { - - if (is_null($repay_amount)) { - throw new \InvalidArgumentException('non-nullable repay_amount cannot be null'); - } - - $this->container['repay_amount'] = $repay_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayResult.php deleted file mode 100644 index 49e84dc2..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossRepayResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class MarginCrossRepayResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossRepayResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'coin' => 'string', - 'remain_debt_amount' => 'string', - 'repay_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'coin' => null, - 'remain_debt_amount' => null, - 'repay_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'coin' => false, - 'remain_debt_amount' => false, - 'repay_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'coin' => 'coin', - 'remain_debt_amount' => 'remainDebtAmount', - 'repay_amount' => 'repayAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'coin' => 'setCoin', - 'remain_debt_amount' => 'setRemainDebtAmount', - 'repay_amount' => 'setRepayAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'coin' => 'getCoin', - 'remain_debt_amount' => 'getRemainDebtAmount', - 'repay_amount' => 'getRepayAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('remain_debt_amount', $data ?? [], null); - $this->setIfExists('repay_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets remain_debt_amount - * - * @return string|null - */ - public function getRemainDebtAmount() - { - return $this->container['remain_debt_amount']; - } - - /** - * Sets remain_debt_amount - * - * @param string|null $remain_debt_amount remain_debt_amount - * - * @return self - */ - public function setRemainDebtAmount($remain_debt_amount) - { - - if (is_null($remain_debt_amount)) { - throw new \InvalidArgumentException('non-nullable remain_debt_amount cannot be null'); - } - - $this->container['remain_debt_amount'] = $remain_debt_amount; - - return $this; - } - - /** - * Gets repay_amount - * - * @return string|null - */ - public function getRepayAmount() - { - return $this->container['repay_amount']; - } - - /** - * Sets repay_amount - * - * @param string|null $repay_amount repay_amount - * - * @return self - */ - public function setRepayAmount($repay_amount) - { - - if (is_null($repay_amount)) { - throw new \InvalidArgumentException('non-nullable repay_amount cannot be null'); - } - - $this->container['repay_amount'] = $repay_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginCrossVipResult.php b/bitget-php-sdk-open-api/lib/Model/MarginCrossVipResult.php deleted file mode 100644 index 3d7443b9..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginCrossVipResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class MarginCrossVipResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginCrossVipResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'daily_interest_rate' => 'string', - 'discount_rate' => 'string', - 'level' => 'string', - 'yearly_interest_rate' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'daily_interest_rate' => null, - 'discount_rate' => null, - 'level' => null, - 'yearly_interest_rate' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'daily_interest_rate' => false, - 'discount_rate' => false, - 'level' => false, - 'yearly_interest_rate' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'daily_interest_rate' => 'dailyInterestRate', - 'discount_rate' => 'discountRate', - 'level' => 'level', - 'yearly_interest_rate' => 'yearlyInterestRate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'daily_interest_rate' => 'setDailyInterestRate', - 'discount_rate' => 'setDiscountRate', - 'level' => 'setLevel', - 'yearly_interest_rate' => 'setYearlyInterestRate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'daily_interest_rate' => 'getDailyInterestRate', - 'discount_rate' => 'getDiscountRate', - 'level' => 'getLevel', - 'yearly_interest_rate' => 'getYearlyInterestRate' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('daily_interest_rate', $data ?? [], null); - $this->setIfExists('discount_rate', $data ?? [], null); - $this->setIfExists('level', $data ?? [], null); - $this->setIfExists('yearly_interest_rate', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets daily_interest_rate - * - * @return string|null - */ - public function getDailyInterestRate() - { - return $this->container['daily_interest_rate']; - } - - /** - * Sets daily_interest_rate - * - * @param string|null $daily_interest_rate daily_interest_rate - * - * @return self - */ - public function setDailyInterestRate($daily_interest_rate) - { - - if (is_null($daily_interest_rate)) { - throw new \InvalidArgumentException('non-nullable daily_interest_rate cannot be null'); - } - - $this->container['daily_interest_rate'] = $daily_interest_rate; - - return $this; - } - - /** - * Gets discount_rate - * - * @return string|null - */ - public function getDiscountRate() - { - return $this->container['discount_rate']; - } - - /** - * Sets discount_rate - * - * @param string|null $discount_rate discount_rate - * - * @return self - */ - public function setDiscountRate($discount_rate) - { - - if (is_null($discount_rate)) { - throw new \InvalidArgumentException('non-nullable discount_rate cannot be null'); - } - - $this->container['discount_rate'] = $discount_rate; - - return $this; - } - - /** - * Gets level - * - * @return string|null - */ - public function getLevel() - { - return $this->container['level']; - } - - /** - * Sets level - * - * @param string|null $level level - * - * @return self - */ - public function setLevel($level) - { - - if (is_null($level)) { - throw new \InvalidArgumentException('non-nullable level cannot be null'); - } - - $this->container['level'] = $level; - - return $this; - } - - /** - * Gets yearly_interest_rate - * - * @return string|null - */ - public function getYearlyInterestRate() - { - return $this->container['yearly_interest_rate']; - } - - /** - * Sets yearly_interest_rate - * - * @param string|null $yearly_interest_rate yearly_interest_rate - * - * @return self - */ - public function setYearlyInterestRate($yearly_interest_rate) - { - - if (is_null($yearly_interest_rate)) { - throw new \InvalidArgumentException('non-nullable yearly_interest_rate cannot be null'); - } - - $this->container['yearly_interest_rate'] = $yearly_interest_rate; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginInterestInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginInterestInfo.php deleted file mode 100644 index 997ffb8a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginInterestInfo.php +++ /dev/null @@ -1,627 +0,0 @@ - - */ -class MarginInterestInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginInterestInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'ctime' => 'string', - 'interest_coin' => 'string', - 'interest_id' => 'string', - 'interest_rate' => 'string', - 'loan_coin' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'ctime' => null, - 'interest_coin' => null, - 'interest_id' => null, - 'interest_rate' => null, - 'loan_coin' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'ctime' => false, - 'interest_coin' => false, - 'interest_id' => false, - 'interest_rate' => false, - 'loan_coin' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'ctime' => 'ctime', - 'interest_coin' => 'interestCoin', - 'interest_id' => 'interestId', - 'interest_rate' => 'interestRate', - 'loan_coin' => 'loanCoin', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'ctime' => 'setCtime', - 'interest_coin' => 'setInterestCoin', - 'interest_id' => 'setInterestId', - 'interest_rate' => 'setInterestRate', - 'loan_coin' => 'setLoanCoin', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'ctime' => 'getCtime', - 'interest_coin' => 'getInterestCoin', - 'interest_id' => 'getInterestId', - 'interest_rate' => 'getInterestRate', - 'loan_coin' => 'getLoanCoin', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('interest_coin', $data ?? [], null); - $this->setIfExists('interest_id', $data ?? [], null); - $this->setIfExists('interest_rate', $data ?? [], null); - $this->setIfExists('loan_coin', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets interest_coin - * - * @return string|null - */ - public function getInterestCoin() - { - return $this->container['interest_coin']; - } - - /** - * Sets interest_coin - * - * @param string|null $interest_coin interest_coin - * - * @return self - */ - public function setInterestCoin($interest_coin) - { - - if (is_null($interest_coin)) { - throw new \InvalidArgumentException('non-nullable interest_coin cannot be null'); - } - - $this->container['interest_coin'] = $interest_coin; - - return $this; - } - - /** - * Gets interest_id - * - * @return string|null - */ - public function getInterestId() - { - return $this->container['interest_id']; - } - - /** - * Sets interest_id - * - * @param string|null $interest_id interest_id - * - * @return self - */ - public function setInterestId($interest_id) - { - - if (is_null($interest_id)) { - throw new \InvalidArgumentException('non-nullable interest_id cannot be null'); - } - - $this->container['interest_id'] = $interest_id; - - return $this; - } - - /** - * Gets interest_rate - * - * @return string|null - */ - public function getInterestRate() - { - return $this->container['interest_rate']; - } - - /** - * Sets interest_rate - * - * @param string|null $interest_rate interest_rate - * - * @return self - */ - public function setInterestRate($interest_rate) - { - - if (is_null($interest_rate)) { - throw new \InvalidArgumentException('non-nullable interest_rate cannot be null'); - } - - $this->container['interest_rate'] = $interest_rate; - - return $this; - } - - /** - * Gets loan_coin - * - * @return string|null - */ - public function getLoanCoin() - { - return $this->container['loan_coin']; - } - - /** - * Sets loan_coin - * - * @param string|null $loan_coin loan_coin - * - * @return self - */ - public function setLoanCoin($loan_coin) - { - - if (is_null($loan_coin)) { - throw new \InvalidArgumentException('non-nullable loan_coin cannot be null'); - } - - $this->container['loan_coin'] = $loan_coin; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginInterestInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginInterestInfoResult.php deleted file mode 100644 index 09e934c0..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginInterestInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginInterestInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginInterestInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginInterestInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginInterestInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginInterestInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsPopulationResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsPopulationResult.php deleted file mode 100644 index 7ec10a37..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsPopulationResult.php +++ /dev/null @@ -1,699 +0,0 @@ - - */ -class MarginIsolatedAssetsPopulationResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedAssetsPopulationResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'available' => 'string', - 'borrow' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'frozen' => 'string', - 'interest' => 'string', - 'net' => 'string', - 'symbol' => 'string', - 'total_amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'available' => null, - 'borrow' => null, - 'coin' => null, - 'ctime' => null, - 'frozen' => null, - 'interest' => null, - 'net' => null, - 'symbol' => null, - 'total_amount' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'available' => false, - 'borrow' => false, - 'coin' => false, - 'ctime' => false, - 'frozen' => false, - 'interest' => false, - 'net' => false, - 'symbol' => false, - 'total_amount' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'available' => 'available', - 'borrow' => 'borrow', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'frozen' => 'frozen', - 'interest' => 'interest', - 'net' => 'net', - 'symbol' => 'symbol', - 'total_amount' => 'totalAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'available' => 'setAvailable', - 'borrow' => 'setBorrow', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'frozen' => 'setFrozen', - 'interest' => 'setInterest', - 'net' => 'setNet', - 'symbol' => 'setSymbol', - 'total_amount' => 'setTotalAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'available' => 'getAvailable', - 'borrow' => 'getBorrow', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'frozen' => 'getFrozen', - 'interest' => 'getInterest', - 'net' => 'getNet', - 'symbol' => 'getSymbol', - 'total_amount' => 'getTotalAmount' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('available', $data ?? [], null); - $this->setIfExists('borrow', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('frozen', $data ?? [], null); - $this->setIfExists('interest', $data ?? [], null); - $this->setIfExists('net', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets available - * - * @return string|null - */ - public function getAvailable() - { - return $this->container['available']; - } - - /** - * Sets available - * - * @param string|null $available available - * - * @return self - */ - public function setAvailable($available) - { - - if (is_null($available)) { - throw new \InvalidArgumentException('non-nullable available cannot be null'); - } - - $this->container['available'] = $available; - - return $this; - } - - /** - * Gets borrow - * - * @return string|null - */ - public function getBorrow() - { - return $this->container['borrow']; - } - - /** - * Sets borrow - * - * @param string|null $borrow borrow - * - * @return self - */ - public function setBorrow($borrow) - { - - if (is_null($borrow)) { - throw new \InvalidArgumentException('non-nullable borrow cannot be null'); - } - - $this->container['borrow'] = $borrow; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets frozen - * - * @return string|null - */ - public function getFrozen() - { - return $this->container['frozen']; - } - - /** - * Sets frozen - * - * @param string|null $frozen frozen - * - * @return self - */ - public function setFrozen($frozen) - { - - if (is_null($frozen)) { - throw new \InvalidArgumentException('non-nullable frozen cannot be null'); - } - - $this->container['frozen'] = $frozen; - - return $this; - } - - /** - * Gets interest - * - * @return string|null - */ - public function getInterest() - { - return $this->container['interest']; - } - - /** - * Sets interest - * - * @param string|null $interest interest - * - * @return self - */ - public function setInterest($interest) - { - - if (is_null($interest)) { - throw new \InvalidArgumentException('non-nullable interest cannot be null'); - } - - $this->container['interest'] = $interest; - - return $this; - } - - /** - * Gets net - * - * @return string|null - */ - public function getNet() - { - return $this->container['net']; - } - - /** - * Sets net - * - * @param string|null $net net - * - * @return self - */ - public function setNet($net) - { - - if (is_null($net)) { - throw new \InvalidArgumentException('non-nullable net cannot be null'); - } - - $this->container['net'] = $net; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets total_amount - * - * @return string|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param string|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - - $this->container['total_amount'] = $total_amount; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsResult.php deleted file mode 100644 index b7ecac23..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedAssetsResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedAssetsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'max_transfer_out_amount' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'max_transfer_out_amount' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'max_transfer_out_amount' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'max_transfer_out_amount' => 'maxTransferOutAmount', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'max_transfer_out_amount' => 'setMaxTransferOutAmount', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'max_transfer_out_amount' => 'getMaxTransferOutAmount', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('max_transfer_out_amount', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets max_transfer_out_amount - * - * @return string|null - */ - public function getMaxTransferOutAmount() - { - return $this->container['max_transfer_out_amount']; - } - - /** - * Sets max_transfer_out_amount - * - * @param string|null $max_transfer_out_amount max_transfer_out_amount - * - * @return self - */ - public function setMaxTransferOutAmount($max_transfer_out_amount) - { - - if (is_null($max_transfer_out_amount)) { - throw new \InvalidArgumentException('non-nullable max_transfer_out_amount cannot be null'); - } - - $this->container['max_transfer_out_amount'] = $max_transfer_out_amount; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskRequest.php deleted file mode 100644 index 933312c6..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskRequest.php +++ /dev/null @@ -1,486 +0,0 @@ - - */ -class MarginIsolatedAssetsRiskRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedAssetsRiskRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'page_num' => 'string', - 'page_size' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'page_num' => null, - 'page_size' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'page_num' => false, - 'page_size' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'page_num' => 'pageNum', - 'page_size' => 'pageSize', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'page_num' => 'setPageNum', - 'page_size' => 'setPageSize', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'page_num' => 'getPageNum', - 'page_size' => 'getPageSize', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('page_num', $data ?? [], null); - $this->setIfExists('page_size', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets page_num - * - * @return string|null - */ - public function getPageNum() - { - return $this->container['page_num']; - } - - /** - * Sets page_num - * - * @param string|null $page_num pageNum - * - * @return self - */ - public function setPageNum($page_num) - { - - if (is_null($page_num)) { - throw new \InvalidArgumentException('non-nullable page_num cannot be null'); - } - - $this->container['page_num'] = $page_num; - - return $this; - } - - /** - * Gets page_size - * - * @return string|null - */ - public function getPageSize() - { - return $this->container['page_size']; - } - - /** - * Sets page_size - * - * @param string|null $page_size pageSize - * - * @return self - */ - public function setPageSize($page_size) - { - - if (is_null($page_size)) { - throw new \InvalidArgumentException('non-nullable page_size cannot be null'); - } - - $this->container['page_size'] = $page_size; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskResult.php deleted file mode 100644 index 59ed1ffa..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedAssetsRiskResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginIsolatedAssetsRiskResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedAssetsRiskResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'risk_rate' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'risk_rate' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'risk_rate' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'risk_rate' => 'riskRate', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'risk_rate' => 'setRiskRate', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'risk_rate' => 'getRiskRate', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('risk_rate', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets risk_rate - * - * @return string|null - */ - public function getRiskRate() - { - return $this->container['risk_rate']; - } - - /** - * Sets risk_rate - * - * @param string|null $risk_rate risk_rate - * - * @return self - */ - public function setRiskRate($risk_rate) - { - - if (is_null($risk_rate)) { - throw new \InvalidArgumentException('non-nullable risk_rate cannot be null'); - } - - $this->container['risk_rate'] = $risk_rate; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedBorrowLimitResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedBorrowLimitResult.php deleted file mode 100644 index c11805e0..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedBorrowLimitResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class MarginIsolatedBorrowLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedBorrowLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'borrow_amount' => 'string', - 'client_oid' => 'string', - 'coin' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'borrow_amount' => null, - 'client_oid' => null, - 'coin' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'borrow_amount' => false, - 'client_oid' => false, - 'coin' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'borrow_amount' => 'borrowAmount', - 'client_oid' => 'clientOid', - 'coin' => 'coin', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'borrow_amount' => 'setBorrowAmount', - 'client_oid' => 'setClientOid', - 'coin' => 'setCoin', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'borrow_amount' => 'getBorrowAmount', - 'client_oid' => 'getClientOid', - 'coin' => 'getCoin', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('borrow_amount', $data ?? [], null); - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets borrow_amount - * - * @return string|null - */ - public function getBorrowAmount() - { - return $this->container['borrow_amount']; - } - - /** - * Sets borrow_amount - * - * @param string|null $borrow_amount borrow_amount - * - * @return self - */ - public function setBorrowAmount($borrow_amount) - { - - if (is_null($borrow_amount)) { - throw new \InvalidArgumentException('non-nullable borrow_amount cannot be null'); - } - - $this->container['borrow_amount'] = $borrow_amount; - - return $this; - } - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowInfo.php deleted file mode 100644 index f60340b8..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowInfo.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginIsolatedFinFlowInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedFinFlowInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'balance' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'fee' => 'string', - 'margin_id' => 'string', - 'margin_type' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'balance' => null, - 'coin' => null, - 'ctime' => null, - 'fee' => null, - 'margin_id' => null, - 'margin_type' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'balance' => false, - 'coin' => false, - 'ctime' => false, - 'fee' => false, - 'margin_id' => false, - 'margin_type' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'balance' => 'balance', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'fee' => 'fee', - 'margin_id' => 'marginId', - 'margin_type' => 'marginType', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'balance' => 'setBalance', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'fee' => 'setFee', - 'margin_id' => 'setMarginId', - 'margin_type' => 'setMarginType', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'balance' => 'getBalance', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'fee' => 'getFee', - 'margin_id' => 'getMarginId', - 'margin_type' => 'getMarginType', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('balance', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('fee', $data ?? [], null); - $this->setIfExists('margin_id', $data ?? [], null); - $this->setIfExists('margin_type', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets balance - * - * @return string|null - */ - public function getBalance() - { - return $this->container['balance']; - } - - /** - * Sets balance - * - * @param string|null $balance balance - * - * @return self - */ - public function setBalance($balance) - { - - if (is_null($balance)) { - throw new \InvalidArgumentException('non-nullable balance cannot be null'); - } - - $this->container['balance'] = $balance; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets fee - * - * @return string|null - */ - public function getFee() - { - return $this->container['fee']; - } - - /** - * Sets fee - * - * @param string|null $fee fee - * - * @return self - */ - public function setFee($fee) - { - - if (is_null($fee)) { - throw new \InvalidArgumentException('non-nullable fee cannot be null'); - } - - $this->container['fee'] = $fee; - - return $this; - } - - /** - * Gets margin_id - * - * @return string|null - */ - public function getMarginId() - { - return $this->container['margin_id']; - } - - /** - * Sets margin_id - * - * @param string|null $margin_id margin_id - * - * @return self - */ - public function setMarginId($margin_id) - { - - if (is_null($margin_id)) { - throw new \InvalidArgumentException('non-nullable margin_id cannot be null'); - } - - $this->container['margin_id'] = $margin_id; - - return $this; - } - - /** - * Gets margin_type - * - * @return string|null - */ - public function getMarginType() - { - return $this->container['margin_type']; - } - - /** - * Sets margin_type - * - * @param string|null $margin_type margin_type - * - * @return self - */ - public function setMarginType($margin_type) - { - - if (is_null($margin_type)) { - throw new \InvalidArgumentException('non-nullable margin_type cannot be null'); - } - - $this->container['margin_type'] = $margin_type; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowResult.php deleted file mode 100644 index 4cb12767..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedFinFlowResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedFinFlowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedFinFlowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginIsolatedFinFlowInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginIsolatedFinFlowInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginIsolatedFinFlowInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfo.php deleted file mode 100644 index edb767d7..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfo.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginIsolatedInterestInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedInterestInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'ctime' => 'string', - 'interest_coin' => 'string', - 'interest_id' => 'string', - 'interest_rate' => 'string', - 'loan_coin' => 'string', - 'symbol' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'ctime' => null, - 'interest_coin' => null, - 'interest_id' => null, - 'interest_rate' => null, - 'loan_coin' => null, - 'symbol' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'ctime' => false, - 'interest_coin' => false, - 'interest_id' => false, - 'interest_rate' => false, - 'loan_coin' => false, - 'symbol' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'ctime' => 'ctime', - 'interest_coin' => 'interestCoin', - 'interest_id' => 'interestId', - 'interest_rate' => 'interestRate', - 'loan_coin' => 'loanCoin', - 'symbol' => 'symbol', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'ctime' => 'setCtime', - 'interest_coin' => 'setInterestCoin', - 'interest_id' => 'setInterestId', - 'interest_rate' => 'setInterestRate', - 'loan_coin' => 'setLoanCoin', - 'symbol' => 'setSymbol', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'ctime' => 'getCtime', - 'interest_coin' => 'getInterestCoin', - 'interest_id' => 'getInterestId', - 'interest_rate' => 'getInterestRate', - 'loan_coin' => 'getLoanCoin', - 'symbol' => 'getSymbol', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('interest_coin', $data ?? [], null); - $this->setIfExists('interest_id', $data ?? [], null); - $this->setIfExists('interest_rate', $data ?? [], null); - $this->setIfExists('loan_coin', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets interest_coin - * - * @return string|null - */ - public function getInterestCoin() - { - return $this->container['interest_coin']; - } - - /** - * Sets interest_coin - * - * @param string|null $interest_coin interest_coin - * - * @return self - */ - public function setInterestCoin($interest_coin) - { - - if (is_null($interest_coin)) { - throw new \InvalidArgumentException('non-nullable interest_coin cannot be null'); - } - - $this->container['interest_coin'] = $interest_coin; - - return $this; - } - - /** - * Gets interest_id - * - * @return string|null - */ - public function getInterestId() - { - return $this->container['interest_id']; - } - - /** - * Sets interest_id - * - * @param string|null $interest_id interest_id - * - * @return self - */ - public function setInterestId($interest_id) - { - - if (is_null($interest_id)) { - throw new \InvalidArgumentException('non-nullable interest_id cannot be null'); - } - - $this->container['interest_id'] = $interest_id; - - return $this; - } - - /** - * Gets interest_rate - * - * @return string|null - */ - public function getInterestRate() - { - return $this->container['interest_rate']; - } - - /** - * Sets interest_rate - * - * @param string|null $interest_rate interest_rate - * - * @return self - */ - public function setInterestRate($interest_rate) - { - - if (is_null($interest_rate)) { - throw new \InvalidArgumentException('non-nullable interest_rate cannot be null'); - } - - $this->container['interest_rate'] = $interest_rate; - - return $this; - } - - /** - * Gets loan_coin - * - * @return string|null - */ - public function getLoanCoin() - { - return $this->container['loan_coin']; - } - - /** - * Sets loan_coin - * - * @param string|null $loan_coin loan_coin - * - * @return self - */ - public function setLoanCoin($loan_coin) - { - - if (is_null($loan_coin)) { - throw new \InvalidArgumentException('non-nullable loan_coin cannot be null'); - } - - $this->container['loan_coin'] = $loan_coin; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfoResult.php deleted file mode 100644 index 2b471f45..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedInterestInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedInterestInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedInterestInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginIsolatedInterestInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginIsolatedInterestInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginIsolatedInterestInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLevelResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLevelResult.php deleted file mode 100644 index 7fbfb11e..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLevelResult.php +++ /dev/null @@ -1,699 +0,0 @@ - - */ -class MarginIsolatedLevelResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLevelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'base_coin' => 'string', - 'base_max_borrowable_amount' => 'string', - 'init_rate' => 'string', - 'leverage' => 'string', - 'maintain_margin_rate' => 'string', - 'quote_coin' => 'string', - 'quote_max_borrowable_amount' => 'string', - 'symbol' => 'string', - 'tier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'base_coin' => null, - 'base_max_borrowable_amount' => null, - 'init_rate' => null, - 'leverage' => null, - 'maintain_margin_rate' => null, - 'quote_coin' => null, - 'quote_max_borrowable_amount' => null, - 'symbol' => null, - 'tier' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'base_coin' => false, - 'base_max_borrowable_amount' => false, - 'init_rate' => false, - 'leverage' => false, - 'maintain_margin_rate' => false, - 'quote_coin' => false, - 'quote_max_borrowable_amount' => false, - 'symbol' => false, - 'tier' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'base_coin' => 'baseCoin', - 'base_max_borrowable_amount' => 'baseMaxBorrowableAmount', - 'init_rate' => 'initRate', - 'leverage' => 'leverage', - 'maintain_margin_rate' => 'maintainMarginRate', - 'quote_coin' => 'quoteCoin', - 'quote_max_borrowable_amount' => 'quoteMaxBorrowableAmount', - 'symbol' => 'symbol', - 'tier' => 'tier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'base_coin' => 'setBaseCoin', - 'base_max_borrowable_amount' => 'setBaseMaxBorrowableAmount', - 'init_rate' => 'setInitRate', - 'leverage' => 'setLeverage', - 'maintain_margin_rate' => 'setMaintainMarginRate', - 'quote_coin' => 'setQuoteCoin', - 'quote_max_borrowable_amount' => 'setQuoteMaxBorrowableAmount', - 'symbol' => 'setSymbol', - 'tier' => 'setTier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'base_coin' => 'getBaseCoin', - 'base_max_borrowable_amount' => 'getBaseMaxBorrowableAmount', - 'init_rate' => 'getInitRate', - 'leverage' => 'getLeverage', - 'maintain_margin_rate' => 'getMaintainMarginRate', - 'quote_coin' => 'getQuoteCoin', - 'quote_max_borrowable_amount' => 'getQuoteMaxBorrowableAmount', - 'symbol' => 'getSymbol', - 'tier' => 'getTier' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('base_coin', $data ?? [], null); - $this->setIfExists('base_max_borrowable_amount', $data ?? [], null); - $this->setIfExists('init_rate', $data ?? [], null); - $this->setIfExists('leverage', $data ?? [], null); - $this->setIfExists('maintain_margin_rate', $data ?? [], null); - $this->setIfExists('quote_coin', $data ?? [], null); - $this->setIfExists('quote_max_borrowable_amount', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('tier', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets base_coin - * - * @return string|null - */ - public function getBaseCoin() - { - return $this->container['base_coin']; - } - - /** - * Sets base_coin - * - * @param string|null $base_coin base_coin - * - * @return self - */ - public function setBaseCoin($base_coin) - { - - if (is_null($base_coin)) { - throw new \InvalidArgumentException('non-nullable base_coin cannot be null'); - } - - $this->container['base_coin'] = $base_coin; - - return $this; - } - - /** - * Gets base_max_borrowable_amount - * - * @return string|null - */ - public function getBaseMaxBorrowableAmount() - { - return $this->container['base_max_borrowable_amount']; - } - - /** - * Sets base_max_borrowable_amount - * - * @param string|null $base_max_borrowable_amount base_max_borrowable_amount - * - * @return self - */ - public function setBaseMaxBorrowableAmount($base_max_borrowable_amount) - { - - if (is_null($base_max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable base_max_borrowable_amount cannot be null'); - } - - $this->container['base_max_borrowable_amount'] = $base_max_borrowable_amount; - - return $this; - } - - /** - * Gets init_rate - * - * @return string|null - */ - public function getInitRate() - { - return $this->container['init_rate']; - } - - /** - * Sets init_rate - * - * @param string|null $init_rate init_rate - * - * @return self - */ - public function setInitRate($init_rate) - { - - if (is_null($init_rate)) { - throw new \InvalidArgumentException('non-nullable init_rate cannot be null'); - } - - $this->container['init_rate'] = $init_rate; - - return $this; - } - - /** - * Gets leverage - * - * @return string|null - */ - public function getLeverage() - { - return $this->container['leverage']; - } - - /** - * Sets leverage - * - * @param string|null $leverage leverage - * - * @return self - */ - public function setLeverage($leverage) - { - - if (is_null($leverage)) { - throw new \InvalidArgumentException('non-nullable leverage cannot be null'); - } - - $this->container['leverage'] = $leverage; - - return $this; - } - - /** - * Gets maintain_margin_rate - * - * @return string|null - */ - public function getMaintainMarginRate() - { - return $this->container['maintain_margin_rate']; - } - - /** - * Sets maintain_margin_rate - * - * @param string|null $maintain_margin_rate maintain_margin_rate - * - * @return self - */ - public function setMaintainMarginRate($maintain_margin_rate) - { - - if (is_null($maintain_margin_rate)) { - throw new \InvalidArgumentException('non-nullable maintain_margin_rate cannot be null'); - } - - $this->container['maintain_margin_rate'] = $maintain_margin_rate; - - return $this; - } - - /** - * Gets quote_coin - * - * @return string|null - */ - public function getQuoteCoin() - { - return $this->container['quote_coin']; - } - - /** - * Sets quote_coin - * - * @param string|null $quote_coin quote_coin - * - * @return self - */ - public function setQuoteCoin($quote_coin) - { - - if (is_null($quote_coin)) { - throw new \InvalidArgumentException('non-nullable quote_coin cannot be null'); - } - - $this->container['quote_coin'] = $quote_coin; - - return $this; - } - - /** - * Gets quote_max_borrowable_amount - * - * @return string|null - */ - public function getQuoteMaxBorrowableAmount() - { - return $this->container['quote_max_borrowable_amount']; - } - - /** - * Sets quote_max_borrowable_amount - * - * @param string|null $quote_max_borrowable_amount quote_max_borrowable_amount - * - * @return self - */ - public function setQuoteMaxBorrowableAmount($quote_max_borrowable_amount) - { - - if (is_null($quote_max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable quote_max_borrowable_amount cannot be null'); - } - - $this->container['quote_max_borrowable_amount'] = $quote_max_borrowable_amount; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets tier - * - * @return string|null - */ - public function getTier() - { - return $this->container['tier']; - } - - /** - * Sets tier - * - * @param string|null $tier tier - * - * @return self - */ - public function setTier($tier) - { - - if (is_null($tier)) { - throw new \InvalidArgumentException('non-nullable tier cannot be null'); - } - - $this->container['tier'] = $tier; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLimitRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLimitRequest.php deleted file mode 100644 index aa0fd627..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLimitRequest.php +++ /dev/null @@ -1,492 +0,0 @@ - - */ -class MarginIsolatedLimitRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLimitRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'borrow_amount' => 'string', - 'coin' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'borrow_amount' => null, - 'coin' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'borrow_amount' => false, - 'coin' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'borrow_amount' => 'borrowAmount', - 'coin' => 'coin', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'borrow_amount' => 'setBorrowAmount', - 'coin' => 'setCoin', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'borrow_amount' => 'getBorrowAmount', - 'coin' => 'getCoin', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('borrow_amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['borrow_amount'] === null) { - $invalidProperties[] = "'borrow_amount' can't be null"; - } - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets borrow_amount - * - * @return string - */ - public function getBorrowAmount() - { - return $this->container['borrow_amount']; - } - - /** - * Sets borrow_amount - * - * @param string $borrow_amount borrowAmount - * - * @return self - */ - public function setBorrowAmount($borrow_amount) - { - - if (is_null($borrow_amount)) { - throw new \InvalidArgumentException('non-nullable borrow_amount cannot be null'); - } - - $this->container['borrow_amount'] = $borrow_amount; - - return $this; - } - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfo.php deleted file mode 100644 index c6875180..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfo.php +++ /dev/null @@ -1,699 +0,0 @@ - - */ -class MarginIsolatedLiquidationInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLiquidationInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ctime' => 'string', - 'liq_end_time' => 'string', - 'liq_fee' => 'string', - 'liq_id' => 'string', - 'liq_risk' => 'string', - 'liq_start_time' => 'string', - 'symbol' => 'string', - 'total_assets' => 'string', - 'total_debt' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ctime' => null, - 'liq_end_time' => null, - 'liq_fee' => null, - 'liq_id' => null, - 'liq_risk' => null, - 'liq_start_time' => null, - 'symbol' => null, - 'total_assets' => null, - 'total_debt' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'ctime' => false, - 'liq_end_time' => false, - 'liq_fee' => false, - 'liq_id' => false, - 'liq_risk' => false, - 'liq_start_time' => false, - 'symbol' => false, - 'total_assets' => false, - 'total_debt' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ctime' => 'ctime', - 'liq_end_time' => 'liqEndTime', - 'liq_fee' => 'liqFee', - 'liq_id' => 'liqId', - 'liq_risk' => 'liqRisk', - 'liq_start_time' => 'liqStartTime', - 'symbol' => 'symbol', - 'total_assets' => 'totalAssets', - 'total_debt' => 'totalDebt' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ctime' => 'setCtime', - 'liq_end_time' => 'setLiqEndTime', - 'liq_fee' => 'setLiqFee', - 'liq_id' => 'setLiqId', - 'liq_risk' => 'setLiqRisk', - 'liq_start_time' => 'setLiqStartTime', - 'symbol' => 'setSymbol', - 'total_assets' => 'setTotalAssets', - 'total_debt' => 'setTotalDebt' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ctime' => 'getCtime', - 'liq_end_time' => 'getLiqEndTime', - 'liq_fee' => 'getLiqFee', - 'liq_id' => 'getLiqId', - 'liq_risk' => 'getLiqRisk', - 'liq_start_time' => 'getLiqStartTime', - 'symbol' => 'getSymbol', - 'total_assets' => 'getTotalAssets', - 'total_debt' => 'getTotalDebt' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('liq_end_time', $data ?? [], null); - $this->setIfExists('liq_fee', $data ?? [], null); - $this->setIfExists('liq_id', $data ?? [], null); - $this->setIfExists('liq_risk', $data ?? [], null); - $this->setIfExists('liq_start_time', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('total_assets', $data ?? [], null); - $this->setIfExists('total_debt', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets liq_end_time - * - * @return string|null - */ - public function getLiqEndTime() - { - return $this->container['liq_end_time']; - } - - /** - * Sets liq_end_time - * - * @param string|null $liq_end_time liq_end_time - * - * @return self - */ - public function setLiqEndTime($liq_end_time) - { - - if (is_null($liq_end_time)) { - throw new \InvalidArgumentException('non-nullable liq_end_time cannot be null'); - } - - $this->container['liq_end_time'] = $liq_end_time; - - return $this; - } - - /** - * Gets liq_fee - * - * @return string|null - */ - public function getLiqFee() - { - return $this->container['liq_fee']; - } - - /** - * Sets liq_fee - * - * @param string|null $liq_fee liq_fee - * - * @return self - */ - public function setLiqFee($liq_fee) - { - - if (is_null($liq_fee)) { - throw new \InvalidArgumentException('non-nullable liq_fee cannot be null'); - } - - $this->container['liq_fee'] = $liq_fee; - - return $this; - } - - /** - * Gets liq_id - * - * @return string|null - */ - public function getLiqId() - { - return $this->container['liq_id']; - } - - /** - * Sets liq_id - * - * @param string|null $liq_id liq_id - * - * @return self - */ - public function setLiqId($liq_id) - { - - if (is_null($liq_id)) { - throw new \InvalidArgumentException('non-nullable liq_id cannot be null'); - } - - $this->container['liq_id'] = $liq_id; - - return $this; - } - - /** - * Gets liq_risk - * - * @return string|null - */ - public function getLiqRisk() - { - return $this->container['liq_risk']; - } - - /** - * Sets liq_risk - * - * @param string|null $liq_risk liq_risk - * - * @return self - */ - public function setLiqRisk($liq_risk) - { - - if (is_null($liq_risk)) { - throw new \InvalidArgumentException('non-nullable liq_risk cannot be null'); - } - - $this->container['liq_risk'] = $liq_risk; - - return $this; - } - - /** - * Gets liq_start_time - * - * @return string|null - */ - public function getLiqStartTime() - { - return $this->container['liq_start_time']; - } - - /** - * Sets liq_start_time - * - * @param string|null $liq_start_time liq_start_time - * - * @return self - */ - public function setLiqStartTime($liq_start_time) - { - - if (is_null($liq_start_time)) { - throw new \InvalidArgumentException('non-nullable liq_start_time cannot be null'); - } - - $this->container['liq_start_time'] = $liq_start_time; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets total_assets - * - * @return string|null - */ - public function getTotalAssets() - { - return $this->container['total_assets']; - } - - /** - * Sets total_assets - * - * @param string|null $total_assets total_assets - * - * @return self - */ - public function setTotalAssets($total_assets) - { - - if (is_null($total_assets)) { - throw new \InvalidArgumentException('non-nullable total_assets cannot be null'); - } - - $this->container['total_assets'] = $total_assets; - - return $this; - } - - /** - * Gets total_debt - * - * @return string|null - */ - public function getTotalDebt() - { - return $this->container['total_debt']; - } - - /** - * Sets total_debt - * - * @param string|null $total_debt total_debt - * - * @return self - */ - public function setTotalDebt($total_debt) - { - - if (is_null($total_debt)) { - throw new \InvalidArgumentException('non-nullable total_debt cannot be null'); - } - - $this->container['total_debt'] = $total_debt; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfoResult.php deleted file mode 100644 index 26131bf1..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLiquidationInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedLiquidationInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLiquidationInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginIsolatedLiquidationInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginIsolatedLiquidationInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginIsolatedLiquidationInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfo.php deleted file mode 100644 index 76501d55..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfo.php +++ /dev/null @@ -1,591 +0,0 @@ - - */ -class MarginIsolatedLoanInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLoanInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'loan_id' => 'string', - 'symbol' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'coin' => null, - 'ctime' => null, - 'loan_id' => null, - 'symbol' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'coin' => false, - 'ctime' => false, - 'loan_id' => false, - 'symbol' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'loan_id' => 'loanId', - 'symbol' => 'symbol', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'loan_id' => 'setLoanId', - 'symbol' => 'setSymbol', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'loan_id' => 'getLoanId', - 'symbol' => 'getSymbol', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('loan_id', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets loan_id - * - * @return string|null - */ - public function getLoanId() - { - return $this->container['loan_id']; - } - - /** - * Sets loan_id - * - * @param string|null $loan_id loan_id - * - * @return self - */ - public function setLoanId($loan_id) - { - - if (is_null($loan_id)) { - throw new \InvalidArgumentException('non-nullable loan_id cannot be null'); - } - - $this->container['loan_id'] = $loan_id; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfoResult.php deleted file mode 100644 index 5bc0e84b..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedLoanInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedLoanInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedLoanInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginIsolatedLoanInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginIsolatedLoanInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginIsolatedLoanInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowRequest.php deleted file mode 100644 index e2f979b2..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowRequest.php +++ /dev/null @@ -1,453 +0,0 @@ - - */ -class MarginIsolatedMaxBorrowRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedMaxBorrowRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowResult.php deleted file mode 100644 index b4fa3904..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedMaxBorrowResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedMaxBorrowResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedMaxBorrowResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'max_borrowable_amount' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'max_borrowable_amount' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'max_borrowable_amount' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'max_borrowable_amount' => 'maxBorrowableAmount', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'max_borrowable_amount' => 'setMaxBorrowableAmount', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'max_borrowable_amount' => 'getMaxBorrowableAmount', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('max_borrowable_amount', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets max_borrowable_amount - * - * @return string|null - */ - public function getMaxBorrowableAmount() - { - return $this->container['max_borrowable_amount']; - } - - /** - * Sets max_borrowable_amount - * - * @param string|null $max_borrowable_amount max_borrowable_amount - * - * @return self - */ - public function setMaxBorrowableAmount($max_borrowable_amount) - { - - if (is_null($max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable max_borrowable_amount cannot be null'); - } - - $this->container['max_borrowable_amount'] = $max_borrowable_amount; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRateAndLimitResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRateAndLimitResult.php deleted file mode 100644 index 4b63346c..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRateAndLimitResult.php +++ /dev/null @@ -1,951 +0,0 @@ - - */ -class MarginIsolatedRateAndLimitResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedRateAndLimitResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'base_borrow_able' => 'bool', - 'base_coin' => 'string', - 'base_daily_interest_rate' => 'string', - 'base_max_borrowable_amount' => 'string', - 'base_transfer_in_able' => 'bool', - 'base_vips' => '\Bitget\Model\MarginIsolatedVipResult[]', - 'base_yearly_interest_rate' => 'string', - 'leverage' => 'string', - 'quote_borrow_able' => 'bool', - 'quote_coin' => 'string', - 'quote_daily_interest_rate' => 'string', - 'quote_max_borrowable_amount' => 'string', - 'quote_transfer_in_able' => 'bool', - 'quote_vips' => '\Bitget\Model\MarginIsolatedVipResult[]', - 'quote_yearly_interest_rate' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'base_borrow_able' => null, - 'base_coin' => null, - 'base_daily_interest_rate' => null, - 'base_max_borrowable_amount' => null, - 'base_transfer_in_able' => null, - 'base_vips' => null, - 'base_yearly_interest_rate' => null, - 'leverage' => null, - 'quote_borrow_able' => null, - 'quote_coin' => null, - 'quote_daily_interest_rate' => null, - 'quote_max_borrowable_amount' => null, - 'quote_transfer_in_able' => null, - 'quote_vips' => null, - 'quote_yearly_interest_rate' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'base_borrow_able' => false, - 'base_coin' => false, - 'base_daily_interest_rate' => false, - 'base_max_borrowable_amount' => false, - 'base_transfer_in_able' => false, - 'base_vips' => false, - 'base_yearly_interest_rate' => false, - 'leverage' => false, - 'quote_borrow_able' => false, - 'quote_coin' => false, - 'quote_daily_interest_rate' => false, - 'quote_max_borrowable_amount' => false, - 'quote_transfer_in_able' => false, - 'quote_vips' => false, - 'quote_yearly_interest_rate' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'base_borrow_able' => 'baseBorrowAble', - 'base_coin' => 'baseCoin', - 'base_daily_interest_rate' => 'baseDailyInterestRate', - 'base_max_borrowable_amount' => 'baseMaxBorrowableAmount', - 'base_transfer_in_able' => 'baseTransferInAble', - 'base_vips' => 'baseVips', - 'base_yearly_interest_rate' => 'baseYearlyInterestRate', - 'leverage' => 'leverage', - 'quote_borrow_able' => 'quoteBorrowAble', - 'quote_coin' => 'quoteCoin', - 'quote_daily_interest_rate' => 'quoteDailyInterestRate', - 'quote_max_borrowable_amount' => 'quoteMaxBorrowableAmount', - 'quote_transfer_in_able' => 'quoteTransferInAble', - 'quote_vips' => 'quoteVips', - 'quote_yearly_interest_rate' => 'quoteYearlyInterestRate', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'base_borrow_able' => 'setBaseBorrowAble', - 'base_coin' => 'setBaseCoin', - 'base_daily_interest_rate' => 'setBaseDailyInterestRate', - 'base_max_borrowable_amount' => 'setBaseMaxBorrowableAmount', - 'base_transfer_in_able' => 'setBaseTransferInAble', - 'base_vips' => 'setBaseVips', - 'base_yearly_interest_rate' => 'setBaseYearlyInterestRate', - 'leverage' => 'setLeverage', - 'quote_borrow_able' => 'setQuoteBorrowAble', - 'quote_coin' => 'setQuoteCoin', - 'quote_daily_interest_rate' => 'setQuoteDailyInterestRate', - 'quote_max_borrowable_amount' => 'setQuoteMaxBorrowableAmount', - 'quote_transfer_in_able' => 'setQuoteTransferInAble', - 'quote_vips' => 'setQuoteVips', - 'quote_yearly_interest_rate' => 'setQuoteYearlyInterestRate', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'base_borrow_able' => 'getBaseBorrowAble', - 'base_coin' => 'getBaseCoin', - 'base_daily_interest_rate' => 'getBaseDailyInterestRate', - 'base_max_borrowable_amount' => 'getBaseMaxBorrowableAmount', - 'base_transfer_in_able' => 'getBaseTransferInAble', - 'base_vips' => 'getBaseVips', - 'base_yearly_interest_rate' => 'getBaseYearlyInterestRate', - 'leverage' => 'getLeverage', - 'quote_borrow_able' => 'getQuoteBorrowAble', - 'quote_coin' => 'getQuoteCoin', - 'quote_daily_interest_rate' => 'getQuoteDailyInterestRate', - 'quote_max_borrowable_amount' => 'getQuoteMaxBorrowableAmount', - 'quote_transfer_in_able' => 'getQuoteTransferInAble', - 'quote_vips' => 'getQuoteVips', - 'quote_yearly_interest_rate' => 'getQuoteYearlyInterestRate', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('base_borrow_able', $data ?? [], null); - $this->setIfExists('base_coin', $data ?? [], null); - $this->setIfExists('base_daily_interest_rate', $data ?? [], null); - $this->setIfExists('base_max_borrowable_amount', $data ?? [], null); - $this->setIfExists('base_transfer_in_able', $data ?? [], null); - $this->setIfExists('base_vips', $data ?? [], null); - $this->setIfExists('base_yearly_interest_rate', $data ?? [], null); - $this->setIfExists('leverage', $data ?? [], null); - $this->setIfExists('quote_borrow_able', $data ?? [], null); - $this->setIfExists('quote_coin', $data ?? [], null); - $this->setIfExists('quote_daily_interest_rate', $data ?? [], null); - $this->setIfExists('quote_max_borrowable_amount', $data ?? [], null); - $this->setIfExists('quote_transfer_in_able', $data ?? [], null); - $this->setIfExists('quote_vips', $data ?? [], null); - $this->setIfExists('quote_yearly_interest_rate', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets base_borrow_able - * - * @return bool|null - */ - public function getBaseBorrowAble() - { - return $this->container['base_borrow_able']; - } - - /** - * Sets base_borrow_able - * - * @param bool|null $base_borrow_able base_borrow_able - * - * @return self - */ - public function setBaseBorrowAble($base_borrow_able) - { - - if (is_null($base_borrow_able)) { - throw new \InvalidArgumentException('non-nullable base_borrow_able cannot be null'); - } - - $this->container['base_borrow_able'] = $base_borrow_able; - - return $this; - } - - /** - * Gets base_coin - * - * @return string|null - */ - public function getBaseCoin() - { - return $this->container['base_coin']; - } - - /** - * Sets base_coin - * - * @param string|null $base_coin base_coin - * - * @return self - */ - public function setBaseCoin($base_coin) - { - - if (is_null($base_coin)) { - throw new \InvalidArgumentException('non-nullable base_coin cannot be null'); - } - - $this->container['base_coin'] = $base_coin; - - return $this; - } - - /** - * Gets base_daily_interest_rate - * - * @return string|null - */ - public function getBaseDailyInterestRate() - { - return $this->container['base_daily_interest_rate']; - } - - /** - * Sets base_daily_interest_rate - * - * @param string|null $base_daily_interest_rate base_daily_interest_rate - * - * @return self - */ - public function setBaseDailyInterestRate($base_daily_interest_rate) - { - - if (is_null($base_daily_interest_rate)) { - throw new \InvalidArgumentException('non-nullable base_daily_interest_rate cannot be null'); - } - - $this->container['base_daily_interest_rate'] = $base_daily_interest_rate; - - return $this; - } - - /** - * Gets base_max_borrowable_amount - * - * @return string|null - */ - public function getBaseMaxBorrowableAmount() - { - return $this->container['base_max_borrowable_amount']; - } - - /** - * Sets base_max_borrowable_amount - * - * @param string|null $base_max_borrowable_amount base_max_borrowable_amount - * - * @return self - */ - public function setBaseMaxBorrowableAmount($base_max_borrowable_amount) - { - - if (is_null($base_max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable base_max_borrowable_amount cannot be null'); - } - - $this->container['base_max_borrowable_amount'] = $base_max_borrowable_amount; - - return $this; - } - - /** - * Gets base_transfer_in_able - * - * @return bool|null - */ - public function getBaseTransferInAble() - { - return $this->container['base_transfer_in_able']; - } - - /** - * Sets base_transfer_in_able - * - * @param bool|null $base_transfer_in_able base_transfer_in_able - * - * @return self - */ - public function setBaseTransferInAble($base_transfer_in_able) - { - - if (is_null($base_transfer_in_able)) { - throw new \InvalidArgumentException('non-nullable base_transfer_in_able cannot be null'); - } - - $this->container['base_transfer_in_able'] = $base_transfer_in_able; - - return $this; - } - - /** - * Gets base_vips - * - * @return \Bitget\Model\MarginIsolatedVipResult[]|null - */ - public function getBaseVips() - { - return $this->container['base_vips']; - } - - /** - * Sets base_vips - * - * @param \Bitget\Model\MarginIsolatedVipResult[]|null $base_vips base_vips - * - * @return self - */ - public function setBaseVips($base_vips) - { - - if (is_null($base_vips)) { - throw new \InvalidArgumentException('non-nullable base_vips cannot be null'); - } - - $this->container['base_vips'] = $base_vips; - - return $this; - } - - /** - * Gets base_yearly_interest_rate - * - * @return string|null - */ - public function getBaseYearlyInterestRate() - { - return $this->container['base_yearly_interest_rate']; - } - - /** - * Sets base_yearly_interest_rate - * - * @param string|null $base_yearly_interest_rate base_yearly_interest_rate - * - * @return self - */ - public function setBaseYearlyInterestRate($base_yearly_interest_rate) - { - - if (is_null($base_yearly_interest_rate)) { - throw new \InvalidArgumentException('non-nullable base_yearly_interest_rate cannot be null'); - } - - $this->container['base_yearly_interest_rate'] = $base_yearly_interest_rate; - - return $this; - } - - /** - * Gets leverage - * - * @return string|null - */ - public function getLeverage() - { - return $this->container['leverage']; - } - - /** - * Sets leverage - * - * @param string|null $leverage leverage - * - * @return self - */ - public function setLeverage($leverage) - { - - if (is_null($leverage)) { - throw new \InvalidArgumentException('non-nullable leverage cannot be null'); - } - - $this->container['leverage'] = $leverage; - - return $this; - } - - /** - * Gets quote_borrow_able - * - * @return bool|null - */ - public function getQuoteBorrowAble() - { - return $this->container['quote_borrow_able']; - } - - /** - * Sets quote_borrow_able - * - * @param bool|null $quote_borrow_able quote_borrow_able - * - * @return self - */ - public function setQuoteBorrowAble($quote_borrow_able) - { - - if (is_null($quote_borrow_able)) { - throw new \InvalidArgumentException('non-nullable quote_borrow_able cannot be null'); - } - - $this->container['quote_borrow_able'] = $quote_borrow_able; - - return $this; - } - - /** - * Gets quote_coin - * - * @return string|null - */ - public function getQuoteCoin() - { - return $this->container['quote_coin']; - } - - /** - * Sets quote_coin - * - * @param string|null $quote_coin quote_coin - * - * @return self - */ - public function setQuoteCoin($quote_coin) - { - - if (is_null($quote_coin)) { - throw new \InvalidArgumentException('non-nullable quote_coin cannot be null'); - } - - $this->container['quote_coin'] = $quote_coin; - - return $this; - } - - /** - * Gets quote_daily_interest_rate - * - * @return string|null - */ - public function getQuoteDailyInterestRate() - { - return $this->container['quote_daily_interest_rate']; - } - - /** - * Sets quote_daily_interest_rate - * - * @param string|null $quote_daily_interest_rate quote_daily_interest_rate - * - * @return self - */ - public function setQuoteDailyInterestRate($quote_daily_interest_rate) - { - - if (is_null($quote_daily_interest_rate)) { - throw new \InvalidArgumentException('non-nullable quote_daily_interest_rate cannot be null'); - } - - $this->container['quote_daily_interest_rate'] = $quote_daily_interest_rate; - - return $this; - } - - /** - * Gets quote_max_borrowable_amount - * - * @return string|null - */ - public function getQuoteMaxBorrowableAmount() - { - return $this->container['quote_max_borrowable_amount']; - } - - /** - * Sets quote_max_borrowable_amount - * - * @param string|null $quote_max_borrowable_amount quote_max_borrowable_amount - * - * @return self - */ - public function setQuoteMaxBorrowableAmount($quote_max_borrowable_amount) - { - - if (is_null($quote_max_borrowable_amount)) { - throw new \InvalidArgumentException('non-nullable quote_max_borrowable_amount cannot be null'); - } - - $this->container['quote_max_borrowable_amount'] = $quote_max_borrowable_amount; - - return $this; - } - - /** - * Gets quote_transfer_in_able - * - * @return bool|null - */ - public function getQuoteTransferInAble() - { - return $this->container['quote_transfer_in_able']; - } - - /** - * Sets quote_transfer_in_able - * - * @param bool|null $quote_transfer_in_able quote_transfer_in_able - * - * @return self - */ - public function setQuoteTransferInAble($quote_transfer_in_able) - { - - if (is_null($quote_transfer_in_able)) { - throw new \InvalidArgumentException('non-nullable quote_transfer_in_able cannot be null'); - } - - $this->container['quote_transfer_in_able'] = $quote_transfer_in_able; - - return $this; - } - - /** - * Gets quote_vips - * - * @return \Bitget\Model\MarginIsolatedVipResult[]|null - */ - public function getQuoteVips() - { - return $this->container['quote_vips']; - } - - /** - * Sets quote_vips - * - * @param \Bitget\Model\MarginIsolatedVipResult[]|null $quote_vips quote_vips - * - * @return self - */ - public function setQuoteVips($quote_vips) - { - - if (is_null($quote_vips)) { - throw new \InvalidArgumentException('non-nullable quote_vips cannot be null'); - } - - $this->container['quote_vips'] = $quote_vips; - - return $this; - } - - /** - * Gets quote_yearly_interest_rate - * - * @return string|null - */ - public function getQuoteYearlyInterestRate() - { - return $this->container['quote_yearly_interest_rate']; - } - - /** - * Sets quote_yearly_interest_rate - * - * @param string|null $quote_yearly_interest_rate quote_yearly_interest_rate - * - * @return self - */ - public function setQuoteYearlyInterestRate($quote_yearly_interest_rate) - { - - if (is_null($quote_yearly_interest_rate)) { - throw new \InvalidArgumentException('non-nullable quote_yearly_interest_rate cannot be null'); - } - - $this->container['quote_yearly_interest_rate'] = $quote_yearly_interest_rate; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfo.php deleted file mode 100644 index e093b1b8..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfo.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginIsolatedRepayInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedRepayInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'interest' => 'string', - 'repay_id' => 'string', - 'symbol' => 'string', - 'total_amount' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'coin' => null, - 'ctime' => null, - 'interest' => null, - 'repay_id' => null, - 'symbol' => null, - 'total_amount' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'coin' => false, - 'ctime' => false, - 'interest' => false, - 'repay_id' => false, - 'symbol' => false, - 'total_amount' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'interest' => 'interest', - 'repay_id' => 'repayId', - 'symbol' => 'symbol', - 'total_amount' => 'totalAmount', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'interest' => 'setInterest', - 'repay_id' => 'setRepayId', - 'symbol' => 'setSymbol', - 'total_amount' => 'setTotalAmount', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'interest' => 'getInterest', - 'repay_id' => 'getRepayId', - 'symbol' => 'getSymbol', - 'total_amount' => 'getTotalAmount', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('interest', $data ?? [], null); - $this->setIfExists('repay_id', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets interest - * - * @return string|null - */ - public function getInterest() - { - return $this->container['interest']; - } - - /** - * Sets interest - * - * @param string|null $interest interest - * - * @return self - */ - public function setInterest($interest) - { - - if (is_null($interest)) { - throw new \InvalidArgumentException('non-nullable interest cannot be null'); - } - - $this->container['interest'] = $interest; - - return $this; - } - - /** - * Gets repay_id - * - * @return string|null - */ - public function getRepayId() - { - return $this->container['repay_id']; - } - - /** - * Sets repay_id - * - * @param string|null $repay_id repay_id - * - * @return self - */ - public function setRepayId($repay_id) - { - - if (is_null($repay_id)) { - throw new \InvalidArgumentException('non-nullable repay_id cannot be null'); - } - - $this->container['repay_id'] = $repay_id; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets total_amount - * - * @return string|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param string|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfoResult.php deleted file mode 100644 index 7e4e47d2..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginIsolatedRepayInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedRepayInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginIsolatedRepayInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginIsolatedRepayInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginIsolatedRepayInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayRequest.php deleted file mode 100644 index 7bd6ac2a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayRequest.php +++ /dev/null @@ -1,492 +0,0 @@ - - */ -class MarginIsolatedRepayRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedRepayRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'coin' => 'string', - 'repay_amount' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'coin' => null, - 'repay_amount' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'coin' => false, - 'repay_amount' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'coin' => 'coin', - 'repay_amount' => 'repayAmount', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'coin' => 'setCoin', - 'repay_amount' => 'setRepayAmount', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'coin' => 'getCoin', - 'repay_amount' => 'getRepayAmount', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('repay_amount', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['coin'] === null) { - $invalidProperties[] = "'coin' can't be null"; - } - if ($this->container['repay_amount'] === null) { - $invalidProperties[] = "'repay_amount' can't be null"; - } - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets coin - * - * @return string - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets repay_amount - * - * @return string - */ - public function getRepayAmount() - { - return $this->container['repay_amount']; - } - - /** - * Sets repay_amount - * - * @param string $repay_amount repayAmount - * - * @return self - */ - public function setRepayAmount($repay_amount) - { - - if (is_null($repay_amount)) { - throw new \InvalidArgumentException('non-nullable repay_amount cannot be null'); - } - - $this->container['repay_amount'] = $repay_amount; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayResult.php deleted file mode 100644 index 5798ff6a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedRepayResult.php +++ /dev/null @@ -1,555 +0,0 @@ - - */ -class MarginIsolatedRepayResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedRepayResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'coin' => 'string', - 'remain_debt_amount' => 'string', - 'repay_amount' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'coin' => null, - 'remain_debt_amount' => null, - 'repay_amount' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'coin' => false, - 'remain_debt_amount' => false, - 'repay_amount' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'coin' => 'coin', - 'remain_debt_amount' => 'remainDebtAmount', - 'repay_amount' => 'repayAmount', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'coin' => 'setCoin', - 'remain_debt_amount' => 'setRemainDebtAmount', - 'repay_amount' => 'setRepayAmount', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'coin' => 'getCoin', - 'remain_debt_amount' => 'getRemainDebtAmount', - 'repay_amount' => 'getRepayAmount', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('remain_debt_amount', $data ?? [], null); - $this->setIfExists('repay_amount', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets remain_debt_amount - * - * @return string|null - */ - public function getRemainDebtAmount() - { - return $this->container['remain_debt_amount']; - } - - /** - * Sets remain_debt_amount - * - * @param string|null $remain_debt_amount remain_debt_amount - * - * @return self - */ - public function setRemainDebtAmount($remain_debt_amount) - { - - if (is_null($remain_debt_amount)) { - throw new \InvalidArgumentException('non-nullable remain_debt_amount cannot be null'); - } - - $this->container['remain_debt_amount'] = $remain_debt_amount; - - return $this; - } - - /** - * Gets repay_amount - * - * @return string|null - */ - public function getRepayAmount() - { - return $this->container['repay_amount']; - } - - /** - * Sets repay_amount - * - * @param string|null $repay_amount repay_amount - * - * @return self - */ - public function setRepayAmount($repay_amount) - { - - if (is_null($repay_amount)) { - throw new \InvalidArgumentException('non-nullable repay_amount cannot be null'); - } - - $this->container['repay_amount'] = $repay_amount; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedVipResult.php b/bitget-php-sdk-open-api/lib/Model/MarginIsolatedVipResult.php deleted file mode 100644 index 355edccd..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginIsolatedVipResult.php +++ /dev/null @@ -1,519 +0,0 @@ - - */ -class MarginIsolatedVipResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginIsolatedVipResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'daily_interest_rate' => 'string', - 'discount_rate' => 'string', - 'level' => 'string', - 'yearly_interest_rate' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'daily_interest_rate' => null, - 'discount_rate' => null, - 'level' => null, - 'yearly_interest_rate' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'daily_interest_rate' => false, - 'discount_rate' => false, - 'level' => false, - 'yearly_interest_rate' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'daily_interest_rate' => 'dailyInterestRate', - 'discount_rate' => 'discountRate', - 'level' => 'level', - 'yearly_interest_rate' => 'yearlyInterestRate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'daily_interest_rate' => 'setDailyInterestRate', - 'discount_rate' => 'setDiscountRate', - 'level' => 'setLevel', - 'yearly_interest_rate' => 'setYearlyInterestRate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'daily_interest_rate' => 'getDailyInterestRate', - 'discount_rate' => 'getDiscountRate', - 'level' => 'getLevel', - 'yearly_interest_rate' => 'getYearlyInterestRate' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('daily_interest_rate', $data ?? [], null); - $this->setIfExists('discount_rate', $data ?? [], null); - $this->setIfExists('level', $data ?? [], null); - $this->setIfExists('yearly_interest_rate', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets daily_interest_rate - * - * @return string|null - */ - public function getDailyInterestRate() - { - return $this->container['daily_interest_rate']; - } - - /** - * Sets daily_interest_rate - * - * @param string|null $daily_interest_rate daily_interest_rate - * - * @return self - */ - public function setDailyInterestRate($daily_interest_rate) - { - - if (is_null($daily_interest_rate)) { - throw new \InvalidArgumentException('non-nullable daily_interest_rate cannot be null'); - } - - $this->container['daily_interest_rate'] = $daily_interest_rate; - - return $this; - } - - /** - * Gets discount_rate - * - * @return string|null - */ - public function getDiscountRate() - { - return $this->container['discount_rate']; - } - - /** - * Sets discount_rate - * - * @param string|null $discount_rate discount_rate - * - * @return self - */ - public function setDiscountRate($discount_rate) - { - - if (is_null($discount_rate)) { - throw new \InvalidArgumentException('non-nullable discount_rate cannot be null'); - } - - $this->container['discount_rate'] = $discount_rate; - - return $this; - } - - /** - * Gets level - * - * @return string|null - */ - public function getLevel() - { - return $this->container['level']; - } - - /** - * Sets level - * - * @param string|null $level level - * - * @return self - */ - public function setLevel($level) - { - - if (is_null($level)) { - throw new \InvalidArgumentException('non-nullable level cannot be null'); - } - - $this->container['level'] = $level; - - return $this; - } - - /** - * Gets yearly_interest_rate - * - * @return string|null - */ - public function getYearlyInterestRate() - { - return $this->container['yearly_interest_rate']; - } - - /** - * Sets yearly_interest_rate - * - * @param string|null $yearly_interest_rate yearly_interest_rate - * - * @return self - */ - public function setYearlyInterestRate($yearly_interest_rate) - { - - if (is_null($yearly_interest_rate)) { - throw new \InvalidArgumentException('non-nullable yearly_interest_rate cannot be null'); - } - - $this->container['yearly_interest_rate'] = $yearly_interest_rate; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfo.php deleted file mode 100644 index 0d943032..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfo.php +++ /dev/null @@ -1,663 +0,0 @@ - - */ -class MarginLiquidationInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginLiquidationInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ctime' => 'string', - 'liq_end_time' => 'string', - 'liq_fee' => 'string', - 'liq_id' => 'string', - 'liq_risk' => 'string', - 'liq_start_time' => 'string', - 'total_assets' => 'string', - 'total_debt' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ctime' => null, - 'liq_end_time' => null, - 'liq_fee' => null, - 'liq_id' => null, - 'liq_risk' => null, - 'liq_start_time' => null, - 'total_assets' => null, - 'total_debt' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'ctime' => false, - 'liq_end_time' => false, - 'liq_fee' => false, - 'liq_id' => false, - 'liq_risk' => false, - 'liq_start_time' => false, - 'total_assets' => false, - 'total_debt' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ctime' => 'ctime', - 'liq_end_time' => 'liqEndTime', - 'liq_fee' => 'liqFee', - 'liq_id' => 'liqId', - 'liq_risk' => 'liqRisk', - 'liq_start_time' => 'liqStartTime', - 'total_assets' => 'totalAssets', - 'total_debt' => 'totalDebt' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ctime' => 'setCtime', - 'liq_end_time' => 'setLiqEndTime', - 'liq_fee' => 'setLiqFee', - 'liq_id' => 'setLiqId', - 'liq_risk' => 'setLiqRisk', - 'liq_start_time' => 'setLiqStartTime', - 'total_assets' => 'setTotalAssets', - 'total_debt' => 'setTotalDebt' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ctime' => 'getCtime', - 'liq_end_time' => 'getLiqEndTime', - 'liq_fee' => 'getLiqFee', - 'liq_id' => 'getLiqId', - 'liq_risk' => 'getLiqRisk', - 'liq_start_time' => 'getLiqStartTime', - 'total_assets' => 'getTotalAssets', - 'total_debt' => 'getTotalDebt' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('liq_end_time', $data ?? [], null); - $this->setIfExists('liq_fee', $data ?? [], null); - $this->setIfExists('liq_id', $data ?? [], null); - $this->setIfExists('liq_risk', $data ?? [], null); - $this->setIfExists('liq_start_time', $data ?? [], null); - $this->setIfExists('total_assets', $data ?? [], null); - $this->setIfExists('total_debt', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets liq_end_time - * - * @return string|null - */ - public function getLiqEndTime() - { - return $this->container['liq_end_time']; - } - - /** - * Sets liq_end_time - * - * @param string|null $liq_end_time liq_end_time - * - * @return self - */ - public function setLiqEndTime($liq_end_time) - { - - if (is_null($liq_end_time)) { - throw new \InvalidArgumentException('non-nullable liq_end_time cannot be null'); - } - - $this->container['liq_end_time'] = $liq_end_time; - - return $this; - } - - /** - * Gets liq_fee - * - * @return string|null - */ - public function getLiqFee() - { - return $this->container['liq_fee']; - } - - /** - * Sets liq_fee - * - * @param string|null $liq_fee liq_fee - * - * @return self - */ - public function setLiqFee($liq_fee) - { - - if (is_null($liq_fee)) { - throw new \InvalidArgumentException('non-nullable liq_fee cannot be null'); - } - - $this->container['liq_fee'] = $liq_fee; - - return $this; - } - - /** - * Gets liq_id - * - * @return string|null - */ - public function getLiqId() - { - return $this->container['liq_id']; - } - - /** - * Sets liq_id - * - * @param string|null $liq_id liq_id - * - * @return self - */ - public function setLiqId($liq_id) - { - - if (is_null($liq_id)) { - throw new \InvalidArgumentException('non-nullable liq_id cannot be null'); - } - - $this->container['liq_id'] = $liq_id; - - return $this; - } - - /** - * Gets liq_risk - * - * @return string|null - */ - public function getLiqRisk() - { - return $this->container['liq_risk']; - } - - /** - * Sets liq_risk - * - * @param string|null $liq_risk liq_risk - * - * @return self - */ - public function setLiqRisk($liq_risk) - { - - if (is_null($liq_risk)) { - throw new \InvalidArgumentException('non-nullable liq_risk cannot be null'); - } - - $this->container['liq_risk'] = $liq_risk; - - return $this; - } - - /** - * Gets liq_start_time - * - * @return string|null - */ - public function getLiqStartTime() - { - return $this->container['liq_start_time']; - } - - /** - * Sets liq_start_time - * - * @param string|null $liq_start_time liq_start_time - * - * @return self - */ - public function setLiqStartTime($liq_start_time) - { - - if (is_null($liq_start_time)) { - throw new \InvalidArgumentException('non-nullable liq_start_time cannot be null'); - } - - $this->container['liq_start_time'] = $liq_start_time; - - return $this; - } - - /** - * Gets total_assets - * - * @return string|null - */ - public function getTotalAssets() - { - return $this->container['total_assets']; - } - - /** - * Sets total_assets - * - * @param string|null $total_assets total_assets - * - * @return self - */ - public function setTotalAssets($total_assets) - { - - if (is_null($total_assets)) { - throw new \InvalidArgumentException('non-nullable total_assets cannot be null'); - } - - $this->container['total_assets'] = $total_assets; - - return $this; - } - - /** - * Gets total_debt - * - * @return string|null - */ - public function getTotalDebt() - { - return $this->container['total_debt']; - } - - /** - * Sets total_debt - * - * @param string|null $total_debt total_debt - * - * @return self - */ - public function setTotalDebt($total_debt) - { - - if (is_null($total_debt)) { - throw new \InvalidArgumentException('non-nullable total_debt cannot be null'); - } - - $this->container['total_debt'] = $total_debt; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfoResult.php deleted file mode 100644 index f61a1adc..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginLiquidationInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginLiquidationInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginLiquidationInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginLiquidationInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginLiquidationInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginLiquidationInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginLoanInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginLoanInfo.php deleted file mode 100644 index adc9d27d..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginLoanInfo.php +++ /dev/null @@ -1,555 +0,0 @@ - - */ -class MarginLoanInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginLoanInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'loan_id' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'coin' => null, - 'ctime' => null, - 'loan_id' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'coin' => false, - 'ctime' => false, - 'loan_id' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'loan_id' => 'loanId', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'loan_id' => 'setLoanId', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'loan_id' => 'getLoanId', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('loan_id', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets loan_id - * - * @return string|null - */ - public function getLoanId() - { - return $this->container['loan_id']; - } - - /** - * Sets loan_id - * - * @param string|null $loan_id loan_id - * - * @return self - */ - public function setLoanId($loan_id) - { - - if (is_null($loan_id)) { - throw new \InvalidArgumentException('non-nullable loan_id cannot be null'); - } - - $this->container['loan_id'] = $loan_id; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginLoanInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginLoanInfoResult.php deleted file mode 100644 index 6ee5664a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginLoanInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginLoanInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginLoanInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginLoanInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginLoanInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginLoanInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginOpenOrderInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginOpenOrderInfoResult.php deleted file mode 100644 index c8676ce5..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginOpenOrderInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginOpenOrderInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginOpenOrderInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'order_list' => '\Bitget\Model\MarginOrderInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'order_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'order_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'order_list' => 'orderList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'order_list' => 'setOrderList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'order_list' => 'getOrderList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('order_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets order_list - * - * @return \Bitget\Model\MarginOrderInfo[]|null - */ - public function getOrderList() - { - return $this->container['order_list']; - } - - /** - * Sets order_list - * - * @param \Bitget\Model\MarginOrderInfo[]|null $order_list order_list - * - * @return self - */ - public function setOrderList($order_list) - { - - if (is_null($order_list)) { - throw new \InvalidArgumentException('non-nullable order_list cannot be null'); - } - - $this->container['order_list'] = $order_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginOrderInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginOrderInfo.php deleted file mode 100644 index 0ce0ada2..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginOrderInfo.php +++ /dev/null @@ -1,915 +0,0 @@ - - */ -class MarginOrderInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginOrderInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'base_quantity' => 'string', - 'client_oid' => 'string', - 'ctime' => 'string', - 'fill_price' => 'string', - 'fill_quantity' => 'string', - 'fill_total_amount' => 'string', - 'loan_type' => 'string', - 'order_id' => 'string', - 'order_type' => 'string', - 'price' => 'string', - 'quote_amount' => 'string', - 'side' => 'string', - 'source' => 'string', - 'status' => 'string', - 'symbol' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'base_quantity' => null, - 'client_oid' => null, - 'ctime' => null, - 'fill_price' => null, - 'fill_quantity' => null, - 'fill_total_amount' => null, - 'loan_type' => null, - 'order_id' => null, - 'order_type' => null, - 'price' => null, - 'quote_amount' => null, - 'side' => null, - 'source' => null, - 'status' => null, - 'symbol' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'base_quantity' => false, - 'client_oid' => false, - 'ctime' => false, - 'fill_price' => false, - 'fill_quantity' => false, - 'fill_total_amount' => false, - 'loan_type' => false, - 'order_id' => false, - 'order_type' => false, - 'price' => false, - 'quote_amount' => false, - 'side' => false, - 'source' => false, - 'status' => false, - 'symbol' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'base_quantity' => 'baseQuantity', - 'client_oid' => 'clientOid', - 'ctime' => 'ctime', - 'fill_price' => 'fillPrice', - 'fill_quantity' => 'fillQuantity', - 'fill_total_amount' => 'fillTotalAmount', - 'loan_type' => 'loanType', - 'order_id' => 'orderId', - 'order_type' => 'orderType', - 'price' => 'price', - 'quote_amount' => 'quoteAmount', - 'side' => 'side', - 'source' => 'source', - 'status' => 'status', - 'symbol' => 'symbol' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'base_quantity' => 'setBaseQuantity', - 'client_oid' => 'setClientOid', - 'ctime' => 'setCtime', - 'fill_price' => 'setFillPrice', - 'fill_quantity' => 'setFillQuantity', - 'fill_total_amount' => 'setFillTotalAmount', - 'loan_type' => 'setLoanType', - 'order_id' => 'setOrderId', - 'order_type' => 'setOrderType', - 'price' => 'setPrice', - 'quote_amount' => 'setQuoteAmount', - 'side' => 'setSide', - 'source' => 'setSource', - 'status' => 'setStatus', - 'symbol' => 'setSymbol' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'base_quantity' => 'getBaseQuantity', - 'client_oid' => 'getClientOid', - 'ctime' => 'getCtime', - 'fill_price' => 'getFillPrice', - 'fill_quantity' => 'getFillQuantity', - 'fill_total_amount' => 'getFillTotalAmount', - 'loan_type' => 'getLoanType', - 'order_id' => 'getOrderId', - 'order_type' => 'getOrderType', - 'price' => 'getPrice', - 'quote_amount' => 'getQuoteAmount', - 'side' => 'getSide', - 'source' => 'getSource', - 'status' => 'getStatus', - 'symbol' => 'getSymbol' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('base_quantity', $data ?? [], null); - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('fill_price', $data ?? [], null); - $this->setIfExists('fill_quantity', $data ?? [], null); - $this->setIfExists('fill_total_amount', $data ?? [], null); - $this->setIfExists('loan_type', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - $this->setIfExists('order_type', $data ?? [], null); - $this->setIfExists('price', $data ?? [], null); - $this->setIfExists('quote_amount', $data ?? [], null); - $this->setIfExists('side', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets base_quantity - * - * @return string|null - */ - public function getBaseQuantity() - { - return $this->container['base_quantity']; - } - - /** - * Sets base_quantity - * - * @param string|null $base_quantity base_quantity - * - * @return self - */ - public function setBaseQuantity($base_quantity) - { - - if (is_null($base_quantity)) { - throw new \InvalidArgumentException('non-nullable base_quantity cannot be null'); - } - - $this->container['base_quantity'] = $base_quantity; - - return $this; - } - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets fill_price - * - * @return string|null - */ - public function getFillPrice() - { - return $this->container['fill_price']; - } - - /** - * Sets fill_price - * - * @param string|null $fill_price fill_price - * - * @return self - */ - public function setFillPrice($fill_price) - { - - if (is_null($fill_price)) { - throw new \InvalidArgumentException('non-nullable fill_price cannot be null'); - } - - $this->container['fill_price'] = $fill_price; - - return $this; - } - - /** - * Gets fill_quantity - * - * @return string|null - */ - public function getFillQuantity() - { - return $this->container['fill_quantity']; - } - - /** - * Sets fill_quantity - * - * @param string|null $fill_quantity fill_quantity - * - * @return self - */ - public function setFillQuantity($fill_quantity) - { - - if (is_null($fill_quantity)) { - throw new \InvalidArgumentException('non-nullable fill_quantity cannot be null'); - } - - $this->container['fill_quantity'] = $fill_quantity; - - return $this; - } - - /** - * Gets fill_total_amount - * - * @return string|null - */ - public function getFillTotalAmount() - { - return $this->container['fill_total_amount']; - } - - /** - * Sets fill_total_amount - * - * @param string|null $fill_total_amount fill_total_amount - * - * @return self - */ - public function setFillTotalAmount($fill_total_amount) - { - - if (is_null($fill_total_amount)) { - throw new \InvalidArgumentException('non-nullable fill_total_amount cannot be null'); - } - - $this->container['fill_total_amount'] = $fill_total_amount; - - return $this; - } - - /** - * Gets loan_type - * - * @return string|null - */ - public function getLoanType() - { - return $this->container['loan_type']; - } - - /** - * Sets loan_type - * - * @param string|null $loan_type loan_type - * - * @return self - */ - public function setLoanType($loan_type) - { - - if (is_null($loan_type)) { - throw new \InvalidArgumentException('non-nullable loan_type cannot be null'); - } - - $this->container['loan_type'] = $loan_type; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - - /** - * Gets order_type - * - * @return string|null - */ - public function getOrderType() - { - return $this->container['order_type']; - } - - /** - * Sets order_type - * - * @param string|null $order_type order_type - * - * @return self - */ - public function setOrderType($order_type) - { - - if (is_null($order_type)) { - throw new \InvalidArgumentException('non-nullable order_type cannot be null'); - } - - $this->container['order_type'] = $order_type; - - return $this; - } - - /** - * Gets price - * - * @return string|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param string|null $price price - * - * @return self - */ - public function setPrice($price) - { - - if (is_null($price)) { - throw new \InvalidArgumentException('non-nullable price cannot be null'); - } - - $this->container['price'] = $price; - - return $this; - } - - /** - * Gets quote_amount - * - * @return string|null - */ - public function getQuoteAmount() - { - return $this->container['quote_amount']; - } - - /** - * Sets quote_amount - * - * @param string|null $quote_amount quote_amount - * - * @return self - */ - public function setQuoteAmount($quote_amount) - { - - if (is_null($quote_amount)) { - throw new \InvalidArgumentException('non-nullable quote_amount cannot be null'); - } - - $this->container['quote_amount'] = $quote_amount; - - return $this; - } - - /** - * Gets side - * - * @return string|null - */ - public function getSide() - { - return $this->container['side']; - } - - /** - * Sets side - * - * @param string|null $side side - * - * @return self - */ - public function setSide($side) - { - - if (is_null($side)) { - throw new \InvalidArgumentException('non-nullable side cannot be null'); - } - - $this->container['side'] = $side; - - return $this; - } - - /** - * Gets source - * - * @return string|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param string|null $source source - * - * @return self - */ - public function setSource($source) - { - - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status status - * - * @return self - */ - public function setStatus($status) - { - - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginOrderRequest.php b/bitget-php-sdk-open-api/lib/Model/MarginOrderRequest.php deleted file mode 100644 index 641ef2bf..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginOrderRequest.php +++ /dev/null @@ -1,783 +0,0 @@ - - */ -class MarginOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginOrderRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'base_quantity' => 'string', - 'channel_api_code' => 'string', - 'client_oid' => 'string', - 'ip' => 'string', - 'loan_type' => 'string', - 'order_type' => 'string', - 'price' => 'string', - 'quote_amount' => 'string', - 'side' => 'string', - 'symbol' => 'string', - 'time_in_force' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'base_quantity' => null, - 'channel_api_code' => null, - 'client_oid' => null, - 'ip' => null, - 'loan_type' => null, - 'order_type' => null, - 'price' => null, - 'quote_amount' => null, - 'side' => null, - 'symbol' => null, - 'time_in_force' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'base_quantity' => false, - 'channel_api_code' => false, - 'client_oid' => false, - 'ip' => false, - 'loan_type' => false, - 'order_type' => false, - 'price' => false, - 'quote_amount' => false, - 'side' => false, - 'symbol' => false, - 'time_in_force' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'base_quantity' => 'baseQuantity', - 'channel_api_code' => 'channelApiCode', - 'client_oid' => 'clientOid', - 'ip' => 'ip', - 'loan_type' => 'loanType', - 'order_type' => 'orderType', - 'price' => 'price', - 'quote_amount' => 'quoteAmount', - 'side' => 'side', - 'symbol' => 'symbol', - 'time_in_force' => 'timeInForce' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'base_quantity' => 'setBaseQuantity', - 'channel_api_code' => 'setChannelApiCode', - 'client_oid' => 'setClientOid', - 'ip' => 'setIp', - 'loan_type' => 'setLoanType', - 'order_type' => 'setOrderType', - 'price' => 'setPrice', - 'quote_amount' => 'setQuoteAmount', - 'side' => 'setSide', - 'symbol' => 'setSymbol', - 'time_in_force' => 'setTimeInForce' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'base_quantity' => 'getBaseQuantity', - 'channel_api_code' => 'getChannelApiCode', - 'client_oid' => 'getClientOid', - 'ip' => 'getIp', - 'loan_type' => 'getLoanType', - 'order_type' => 'getOrderType', - 'price' => 'getPrice', - 'quote_amount' => 'getQuoteAmount', - 'side' => 'getSide', - 'symbol' => 'getSymbol', - 'time_in_force' => 'getTimeInForce' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('base_quantity', $data ?? [], null); - $this->setIfExists('channel_api_code', $data ?? [], null); - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('ip', $data ?? [], null); - $this->setIfExists('loan_type', $data ?? [], null); - $this->setIfExists('order_type', $data ?? [], null); - $this->setIfExists('price', $data ?? [], null); - $this->setIfExists('quote_amount', $data ?? [], null); - $this->setIfExists('side', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('time_in_force', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['loan_type'] === null) { - $invalidProperties[] = "'loan_type' can't be null"; - } - if ($this->container['order_type'] === null) { - $invalidProperties[] = "'order_type' can't be null"; - } - if ($this->container['side'] === null) { - $invalidProperties[] = "'side' can't be null"; - } - if ($this->container['symbol'] === null) { - $invalidProperties[] = "'symbol' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets base_quantity - * - * @return string|null - */ - public function getBaseQuantity() - { - return $this->container['base_quantity']; - } - - /** - * Sets base_quantity - * - * @param string|null $base_quantity baseQuantity - * - * @return self - */ - public function setBaseQuantity($base_quantity) - { - - if (is_null($base_quantity)) { - throw new \InvalidArgumentException('non-nullable base_quantity cannot be null'); - } - - $this->container['base_quantity'] = $base_quantity; - - return $this; - } - - /** - * Gets channel_api_code - * - * @return string|null - */ - public function getChannelApiCode() - { - return $this->container['channel_api_code']; - } - - /** - * Sets channel_api_code - * - * @param string|null $channel_api_code channel_api_code - * - * @return self - */ - public function setChannelApiCode($channel_api_code) - { - - if (is_null($channel_api_code)) { - throw new \InvalidArgumentException('non-nullable channel_api_code cannot be null'); - } - - $this->container['channel_api_code'] = $channel_api_code; - - return $this; - } - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid clientOid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets ip - * - * @return string|null - */ - public function getIp() - { - return $this->container['ip']; - } - - /** - * Sets ip - * - * @param string|null $ip ip - * - * @return self - */ - public function setIp($ip) - { - - if (is_null($ip)) { - throw new \InvalidArgumentException('non-nullable ip cannot be null'); - } - - $this->container['ip'] = $ip; - - return $this; - } - - /** - * Gets loan_type - * - * @return string - */ - public function getLoanType() - { - return $this->container['loan_type']; - } - - /** - * Sets loan_type - * - * @param string $loan_type loanType - * - * @return self - */ - public function setLoanType($loan_type) - { - - if (is_null($loan_type)) { - throw new \InvalidArgumentException('non-nullable loan_type cannot be null'); - } - - $this->container['loan_type'] = $loan_type; - - return $this; - } - - /** - * Gets order_type - * - * @return string - */ - public function getOrderType() - { - return $this->container['order_type']; - } - - /** - * Sets order_type - * - * @param string $order_type orderType - * - * @return self - */ - public function setOrderType($order_type) - { - - if (is_null($order_type)) { - throw new \InvalidArgumentException('non-nullable order_type cannot be null'); - } - - $this->container['order_type'] = $order_type; - - return $this; - } - - /** - * Gets price - * - * @return string|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param string|null $price price - * - * @return self - */ - public function setPrice($price) - { - - if (is_null($price)) { - throw new \InvalidArgumentException('non-nullable price cannot be null'); - } - - $this->container['price'] = $price; - - return $this; - } - - /** - * Gets quote_amount - * - * @return string|null - */ - public function getQuoteAmount() - { - return $this->container['quote_amount']; - } - - /** - * Sets quote_amount - * - * @param string|null $quote_amount quoteAmount - * - * @return self - */ - public function setQuoteAmount($quote_amount) - { - - if (is_null($quote_amount)) { - throw new \InvalidArgumentException('non-nullable quote_amount cannot be null'); - } - - $this->container['quote_amount'] = $quote_amount; - - return $this; - } - - /** - * Gets side - * - * @return string - */ - public function getSide() - { - return $this->container['side']; - } - - /** - * Sets side - * - * @param string $side side - * - * @return self - */ - public function setSide($side) - { - - if (is_null($side)) { - throw new \InvalidArgumentException('non-nullable side cannot be null'); - } - - $this->container['side'] = $side; - - return $this; - } - - /** - * Gets symbol - * - * @return string - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets time_in_force - * - * @return string|null - */ - public function getTimeInForce() - { - return $this->container['time_in_force']; - } - - /** - * Sets time_in_force - * - * @param string|null $time_in_force timeInForce - * - * @return self - */ - public function setTimeInForce($time_in_force) - { - - if (is_null($time_in_force)) { - throw new \InvalidArgumentException('non-nullable time_in_force cannot be null'); - } - - $this->container['time_in_force'] = $time_in_force; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginPlaceOrderResult.php b/bitget-php-sdk-open-api/lib/Model/MarginPlaceOrderResult.php deleted file mode 100644 index 7049ef08..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginPlaceOrderResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MarginPlaceOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginPlaceOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_oid' => 'string', - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_oid' => null, - 'order_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'client_oid' => false, - 'order_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_oid' => 'clientOid', - 'order_id' => 'orderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_oid' => 'setClientOid', - 'order_id' => 'setOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_oid' => 'getClientOid', - 'order_id' => 'getOrderId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('client_oid', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets client_oid - * - * @return string|null - */ - public function getClientOid() - { - return $this->container['client_oid']; - } - - /** - * Sets client_oid - * - * @param string|null $client_oid client_oid - * - * @return self - */ - public function setClientOid($client_oid) - { - - if (is_null($client_oid)) { - throw new \InvalidArgumentException('non-nullable client_oid cannot be null'); - } - - $this->container['client_oid'] = $client_oid; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginRepayInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginRepayInfo.php deleted file mode 100644 index 093fa6be..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginRepayInfo.php +++ /dev/null @@ -1,627 +0,0 @@ - - */ -class MarginRepayInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginRepayInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'string', - 'coin' => 'string', - 'ctime' => 'string', - 'interest' => 'string', - 'repay_id' => 'string', - 'total_amount' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'coin' => null, - 'ctime' => null, - 'interest' => null, - 'repay_id' => null, - 'total_amount' => null, - 'type' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'amount' => false, - 'coin' => false, - 'ctime' => false, - 'interest' => false, - 'repay_id' => false, - 'total_amount' => false, - 'type' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'coin' => 'coin', - 'ctime' => 'ctime', - 'interest' => 'interest', - 'repay_id' => 'repayId', - 'total_amount' => 'totalAmount', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'coin' => 'setCoin', - 'ctime' => 'setCtime', - 'interest' => 'setInterest', - 'repay_id' => 'setRepayId', - 'total_amount' => 'setTotalAmount', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'coin' => 'getCoin', - 'ctime' => 'getCtime', - 'interest' => 'getInterest', - 'repay_id' => 'getRepayId', - 'total_amount' => 'getTotalAmount', - 'type' => 'getType' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('interest', $data ?? [], null); - $this->setIfExists('repay_id', $data ?? [], null); - $this->setIfExists('total_amount', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets interest - * - * @return string|null - */ - public function getInterest() - { - return $this->container['interest']; - } - - /** - * Sets interest - * - * @param string|null $interest interest - * - * @return self - */ - public function setInterest($interest) - { - - if (is_null($interest)) { - throw new \InvalidArgumentException('non-nullable interest cannot be null'); - } - - $this->container['interest'] = $interest; - - return $this; - } - - /** - * Gets repay_id - * - * @return string|null - */ - public function getRepayId() - { - return $this->container['repay_id']; - } - - /** - * Sets repay_id - * - * @param string|null $repay_id repay_id - * - * @return self - */ - public function setRepayId($repay_id) - { - - if (is_null($repay_id)) { - throw new \InvalidArgumentException('non-nullable repay_id cannot be null'); - } - - $this->container['repay_id'] = $repay_id; - - return $this; - } - - /** - * Gets total_amount - * - * @return string|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param string|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - - if (is_null($total_amount)) { - throw new \InvalidArgumentException('non-nullable total_amount cannot be null'); - } - - $this->container['total_amount'] = $total_amount; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginRepayInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginRepayInfoResult.php deleted file mode 100644 index a4ae4872..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginRepayInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginRepayInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginRepayInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'max_id' => 'string', - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MarginRepayInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'max_id' => null, - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'max_id' => false, - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'max_id' => 'maxId', - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MarginRepayInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MarginRepayInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginSystemResult.php b/bitget-php-sdk-open-api/lib/Model/MarginSystemResult.php deleted file mode 100644 index 641ebe64..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginSystemResult.php +++ /dev/null @@ -1,987 +0,0 @@ - - */ -class MarginSystemResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginSystemResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'base_coin' => 'string', - 'is_borrowable' => 'bool', - 'liquidation_risk_ratio' => 'string', - 'maker_fee_rate' => 'string', - 'max_cross_leverage' => 'string', - 'max_isolated_leverage' => 'string', - 'max_trade_amount' => 'string', - 'min_trade_amount' => 'string', - 'min_trade_usdt' => 'string', - 'price_scale' => 'string', - 'quantity_scale' => 'string', - 'quote_coin' => 'string', - 'status' => 'string', - 'symbol' => 'string', - 'taker_fee_rate' => 'string', - 'user_min_borrow' => 'string', - 'warning_risk_ratio' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'base_coin' => null, - 'is_borrowable' => null, - 'liquidation_risk_ratio' => null, - 'maker_fee_rate' => null, - 'max_cross_leverage' => null, - 'max_isolated_leverage' => null, - 'max_trade_amount' => null, - 'min_trade_amount' => null, - 'min_trade_usdt' => null, - 'price_scale' => null, - 'quantity_scale' => null, - 'quote_coin' => null, - 'status' => null, - 'symbol' => null, - 'taker_fee_rate' => null, - 'user_min_borrow' => null, - 'warning_risk_ratio' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'base_coin' => false, - 'is_borrowable' => false, - 'liquidation_risk_ratio' => false, - 'maker_fee_rate' => false, - 'max_cross_leverage' => false, - 'max_isolated_leverage' => false, - 'max_trade_amount' => false, - 'min_trade_amount' => false, - 'min_trade_usdt' => false, - 'price_scale' => false, - 'quantity_scale' => false, - 'quote_coin' => false, - 'status' => false, - 'symbol' => false, - 'taker_fee_rate' => false, - 'user_min_borrow' => false, - 'warning_risk_ratio' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'base_coin' => 'baseCoin', - 'is_borrowable' => 'isBorrowable', - 'liquidation_risk_ratio' => 'liquidationRiskRatio', - 'maker_fee_rate' => 'makerFeeRate', - 'max_cross_leverage' => 'maxCrossLeverage', - 'max_isolated_leverage' => 'maxIsolatedLeverage', - 'max_trade_amount' => 'maxTradeAmount', - 'min_trade_amount' => 'minTradeAmount', - 'min_trade_usdt' => 'minTradeUSDT', - 'price_scale' => 'priceScale', - 'quantity_scale' => 'quantityScale', - 'quote_coin' => 'quoteCoin', - 'status' => 'status', - 'symbol' => 'symbol', - 'taker_fee_rate' => 'takerFeeRate', - 'user_min_borrow' => 'userMinBorrow', - 'warning_risk_ratio' => 'warningRiskRatio' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'base_coin' => 'setBaseCoin', - 'is_borrowable' => 'setIsBorrowable', - 'liquidation_risk_ratio' => 'setLiquidationRiskRatio', - 'maker_fee_rate' => 'setMakerFeeRate', - 'max_cross_leverage' => 'setMaxCrossLeverage', - 'max_isolated_leverage' => 'setMaxIsolatedLeverage', - 'max_trade_amount' => 'setMaxTradeAmount', - 'min_trade_amount' => 'setMinTradeAmount', - 'min_trade_usdt' => 'setMinTradeUsdt', - 'price_scale' => 'setPriceScale', - 'quantity_scale' => 'setQuantityScale', - 'quote_coin' => 'setQuoteCoin', - 'status' => 'setStatus', - 'symbol' => 'setSymbol', - 'taker_fee_rate' => 'setTakerFeeRate', - 'user_min_borrow' => 'setUserMinBorrow', - 'warning_risk_ratio' => 'setWarningRiskRatio' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'base_coin' => 'getBaseCoin', - 'is_borrowable' => 'getIsBorrowable', - 'liquidation_risk_ratio' => 'getLiquidationRiskRatio', - 'maker_fee_rate' => 'getMakerFeeRate', - 'max_cross_leverage' => 'getMaxCrossLeverage', - 'max_isolated_leverage' => 'getMaxIsolatedLeverage', - 'max_trade_amount' => 'getMaxTradeAmount', - 'min_trade_amount' => 'getMinTradeAmount', - 'min_trade_usdt' => 'getMinTradeUsdt', - 'price_scale' => 'getPriceScale', - 'quantity_scale' => 'getQuantityScale', - 'quote_coin' => 'getQuoteCoin', - 'status' => 'getStatus', - 'symbol' => 'getSymbol', - 'taker_fee_rate' => 'getTakerFeeRate', - 'user_min_borrow' => 'getUserMinBorrow', - 'warning_risk_ratio' => 'getWarningRiskRatio' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('base_coin', $data ?? [], null); - $this->setIfExists('is_borrowable', $data ?? [], null); - $this->setIfExists('liquidation_risk_ratio', $data ?? [], null); - $this->setIfExists('maker_fee_rate', $data ?? [], null); - $this->setIfExists('max_cross_leverage', $data ?? [], null); - $this->setIfExists('max_isolated_leverage', $data ?? [], null); - $this->setIfExists('max_trade_amount', $data ?? [], null); - $this->setIfExists('min_trade_amount', $data ?? [], null); - $this->setIfExists('min_trade_usdt', $data ?? [], null); - $this->setIfExists('price_scale', $data ?? [], null); - $this->setIfExists('quantity_scale', $data ?? [], null); - $this->setIfExists('quote_coin', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('symbol', $data ?? [], null); - $this->setIfExists('taker_fee_rate', $data ?? [], null); - $this->setIfExists('user_min_borrow', $data ?? [], null); - $this->setIfExists('warning_risk_ratio', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets base_coin - * - * @return string|null - */ - public function getBaseCoin() - { - return $this->container['base_coin']; - } - - /** - * Sets base_coin - * - * @param string|null $base_coin base_coin - * - * @return self - */ - public function setBaseCoin($base_coin) - { - - if (is_null($base_coin)) { - throw new \InvalidArgumentException('non-nullable base_coin cannot be null'); - } - - $this->container['base_coin'] = $base_coin; - - return $this; - } - - /** - * Gets is_borrowable - * - * @return bool|null - */ - public function getIsBorrowable() - { - return $this->container['is_borrowable']; - } - - /** - * Sets is_borrowable - * - * @param bool|null $is_borrowable is_borrowable - * - * @return self - */ - public function setIsBorrowable($is_borrowable) - { - - if (is_null($is_borrowable)) { - throw new \InvalidArgumentException('non-nullable is_borrowable cannot be null'); - } - - $this->container['is_borrowable'] = $is_borrowable; - - return $this; - } - - /** - * Gets liquidation_risk_ratio - * - * @return string|null - */ - public function getLiquidationRiskRatio() - { - return $this->container['liquidation_risk_ratio']; - } - - /** - * Sets liquidation_risk_ratio - * - * @param string|null $liquidation_risk_ratio liquidation_risk_ratio - * - * @return self - */ - public function setLiquidationRiskRatio($liquidation_risk_ratio) - { - - if (is_null($liquidation_risk_ratio)) { - throw new \InvalidArgumentException('non-nullable liquidation_risk_ratio cannot be null'); - } - - $this->container['liquidation_risk_ratio'] = $liquidation_risk_ratio; - - return $this; - } - - /** - * Gets maker_fee_rate - * - * @return string|null - */ - public function getMakerFeeRate() - { - return $this->container['maker_fee_rate']; - } - - /** - * Sets maker_fee_rate - * - * @param string|null $maker_fee_rate maker_fee_rate - * - * @return self - */ - public function setMakerFeeRate($maker_fee_rate) - { - - if (is_null($maker_fee_rate)) { - throw new \InvalidArgumentException('non-nullable maker_fee_rate cannot be null'); - } - - $this->container['maker_fee_rate'] = $maker_fee_rate; - - return $this; - } - - /** - * Gets max_cross_leverage - * - * @return string|null - */ - public function getMaxCrossLeverage() - { - return $this->container['max_cross_leverage']; - } - - /** - * Sets max_cross_leverage - * - * @param string|null $max_cross_leverage max_cross_leverage - * - * @return self - */ - public function setMaxCrossLeverage($max_cross_leverage) - { - - if (is_null($max_cross_leverage)) { - throw new \InvalidArgumentException('non-nullable max_cross_leverage cannot be null'); - } - - $this->container['max_cross_leverage'] = $max_cross_leverage; - - return $this; - } - - /** - * Gets max_isolated_leverage - * - * @return string|null - */ - public function getMaxIsolatedLeverage() - { - return $this->container['max_isolated_leverage']; - } - - /** - * Sets max_isolated_leverage - * - * @param string|null $max_isolated_leverage max_isolated_leverage - * - * @return self - */ - public function setMaxIsolatedLeverage($max_isolated_leverage) - { - - if (is_null($max_isolated_leverage)) { - throw new \InvalidArgumentException('non-nullable max_isolated_leverage cannot be null'); - } - - $this->container['max_isolated_leverage'] = $max_isolated_leverage; - - return $this; - } - - /** - * Gets max_trade_amount - * - * @return string|null - */ - public function getMaxTradeAmount() - { - return $this->container['max_trade_amount']; - } - - /** - * Sets max_trade_amount - * - * @param string|null $max_trade_amount max_trade_amount - * - * @return self - */ - public function setMaxTradeAmount($max_trade_amount) - { - - if (is_null($max_trade_amount)) { - throw new \InvalidArgumentException('non-nullable max_trade_amount cannot be null'); - } - - $this->container['max_trade_amount'] = $max_trade_amount; - - return $this; - } - - /** - * Gets min_trade_amount - * - * @return string|null - */ - public function getMinTradeAmount() - { - return $this->container['min_trade_amount']; - } - - /** - * Sets min_trade_amount - * - * @param string|null $min_trade_amount min_trade_amount - * - * @return self - */ - public function setMinTradeAmount($min_trade_amount) - { - - if (is_null($min_trade_amount)) { - throw new \InvalidArgumentException('non-nullable min_trade_amount cannot be null'); - } - - $this->container['min_trade_amount'] = $min_trade_amount; - - return $this; - } - - /** - * Gets min_trade_usdt - * - * @return string|null - */ - public function getMinTradeUsdt() - { - return $this->container['min_trade_usdt']; - } - - /** - * Sets min_trade_usdt - * - * @param string|null $min_trade_usdt min_trade_usdt - * - * @return self - */ - public function setMinTradeUsdt($min_trade_usdt) - { - - if (is_null($min_trade_usdt)) { - throw new \InvalidArgumentException('non-nullable min_trade_usdt cannot be null'); - } - - $this->container['min_trade_usdt'] = $min_trade_usdt; - - return $this; - } - - /** - * Gets price_scale - * - * @return string|null - */ - public function getPriceScale() - { - return $this->container['price_scale']; - } - - /** - * Sets price_scale - * - * @param string|null $price_scale price_scale - * - * @return self - */ - public function setPriceScale($price_scale) - { - - if (is_null($price_scale)) { - throw new \InvalidArgumentException('non-nullable price_scale cannot be null'); - } - - $this->container['price_scale'] = $price_scale; - - return $this; - } - - /** - * Gets quantity_scale - * - * @return string|null - */ - public function getQuantityScale() - { - return $this->container['quantity_scale']; - } - - /** - * Sets quantity_scale - * - * @param string|null $quantity_scale quantity_scale - * - * @return self - */ - public function setQuantityScale($quantity_scale) - { - - if (is_null($quantity_scale)) { - throw new \InvalidArgumentException('non-nullable quantity_scale cannot be null'); - } - - $this->container['quantity_scale'] = $quantity_scale; - - return $this; - } - - /** - * Gets quote_coin - * - * @return string|null - */ - public function getQuoteCoin() - { - return $this->container['quote_coin']; - } - - /** - * Sets quote_coin - * - * @param string|null $quote_coin quote_coin - * - * @return self - */ - public function setQuoteCoin($quote_coin) - { - - if (is_null($quote_coin)) { - throw new \InvalidArgumentException('non-nullable quote_coin cannot be null'); - } - - $this->container['quote_coin'] = $quote_coin; - - return $this; - } - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status status - * - * @return self - */ - public function setStatus($status) - { - - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets symbol - * - * @return string|null - */ - public function getSymbol() - { - return $this->container['symbol']; - } - - /** - * Sets symbol - * - * @param string|null $symbol symbol - * - * @return self - */ - public function setSymbol($symbol) - { - - if (is_null($symbol)) { - throw new \InvalidArgumentException('non-nullable symbol cannot be null'); - } - - $this->container['symbol'] = $symbol; - - return $this; - } - - /** - * Gets taker_fee_rate - * - * @return string|null - */ - public function getTakerFeeRate() - { - return $this->container['taker_fee_rate']; - } - - /** - * Sets taker_fee_rate - * - * @param string|null $taker_fee_rate taker_fee_rate - * - * @return self - */ - public function setTakerFeeRate($taker_fee_rate) - { - - if (is_null($taker_fee_rate)) { - throw new \InvalidArgumentException('non-nullable taker_fee_rate cannot be null'); - } - - $this->container['taker_fee_rate'] = $taker_fee_rate; - - return $this; - } - - /** - * Gets user_min_borrow - * - * @return string|null - */ - public function getUserMinBorrow() - { - return $this->container['user_min_borrow']; - } - - /** - * Sets user_min_borrow - * - * @param string|null $user_min_borrow user_min_borrow - * - * @return self - */ - public function setUserMinBorrow($user_min_borrow) - { - - if (is_null($user_min_borrow)) { - throw new \InvalidArgumentException('non-nullable user_min_borrow cannot be null'); - } - - $this->container['user_min_borrow'] = $user_min_borrow; - - return $this; - } - - /** - * Gets warning_risk_ratio - * - * @return string|null - */ - public function getWarningRiskRatio() - { - return $this->container['warning_risk_ratio']; - } - - /** - * Sets warning_risk_ratio - * - * @param string|null $warning_risk_ratio warning_risk_ratio - * - * @return self - */ - public function setWarningRiskRatio($warning_risk_ratio) - { - - if (is_null($warning_risk_ratio)) { - throw new \InvalidArgumentException('non-nullable warning_risk_ratio cannot be null'); - } - - $this->container['warning_risk_ratio'] = $warning_risk_ratio; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfo.php b/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfo.php deleted file mode 100644 index 45a5ea81..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfo.php +++ /dev/null @@ -1,735 +0,0 @@ - - */ -class MarginTradeDetailInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginTradeDetailInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ctime' => 'string', - 'fee_ccy' => 'string', - 'fees' => 'string', - 'fill_id' => 'string', - 'fill_price' => 'string', - 'fill_quantity' => 'string', - 'fill_total_amount' => 'string', - 'order_id' => 'string', - 'order_type' => 'string', - 'side' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ctime' => null, - 'fee_ccy' => null, - 'fees' => null, - 'fill_id' => null, - 'fill_price' => null, - 'fill_quantity' => null, - 'fill_total_amount' => null, - 'order_id' => null, - 'order_type' => null, - 'side' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'ctime' => false, - 'fee_ccy' => false, - 'fees' => false, - 'fill_id' => false, - 'fill_price' => false, - 'fill_quantity' => false, - 'fill_total_amount' => false, - 'order_id' => false, - 'order_type' => false, - 'side' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ctime' => 'ctime', - 'fee_ccy' => 'feeCcy', - 'fees' => 'fees', - 'fill_id' => 'fillId', - 'fill_price' => 'fillPrice', - 'fill_quantity' => 'fillQuantity', - 'fill_total_amount' => 'fillTotalAmount', - 'order_id' => 'orderId', - 'order_type' => 'orderType', - 'side' => 'side' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ctime' => 'setCtime', - 'fee_ccy' => 'setFeeCcy', - 'fees' => 'setFees', - 'fill_id' => 'setFillId', - 'fill_price' => 'setFillPrice', - 'fill_quantity' => 'setFillQuantity', - 'fill_total_amount' => 'setFillTotalAmount', - 'order_id' => 'setOrderId', - 'order_type' => 'setOrderType', - 'side' => 'setSide' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ctime' => 'getCtime', - 'fee_ccy' => 'getFeeCcy', - 'fees' => 'getFees', - 'fill_id' => 'getFillId', - 'fill_price' => 'getFillPrice', - 'fill_quantity' => 'getFillQuantity', - 'fill_total_amount' => 'getFillTotalAmount', - 'order_id' => 'getOrderId', - 'order_type' => 'getOrderType', - 'side' => 'getSide' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('fee_ccy', $data ?? [], null); - $this->setIfExists('fees', $data ?? [], null); - $this->setIfExists('fill_id', $data ?? [], null); - $this->setIfExists('fill_price', $data ?? [], null); - $this->setIfExists('fill_quantity', $data ?? [], null); - $this->setIfExists('fill_total_amount', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - $this->setIfExists('order_type', $data ?? [], null); - $this->setIfExists('side', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets fee_ccy - * - * @return string|null - */ - public function getFeeCcy() - { - return $this->container['fee_ccy']; - } - - /** - * Sets fee_ccy - * - * @param string|null $fee_ccy fee_ccy - * - * @return self - */ - public function setFeeCcy($fee_ccy) - { - - if (is_null($fee_ccy)) { - throw new \InvalidArgumentException('non-nullable fee_ccy cannot be null'); - } - - $this->container['fee_ccy'] = $fee_ccy; - - return $this; - } - - /** - * Gets fees - * - * @return string|null - */ - public function getFees() - { - return $this->container['fees']; - } - - /** - * Sets fees - * - * @param string|null $fees fees - * - * @return self - */ - public function setFees($fees) - { - - if (is_null($fees)) { - throw new \InvalidArgumentException('non-nullable fees cannot be null'); - } - - $this->container['fees'] = $fees; - - return $this; - } - - /** - * Gets fill_id - * - * @return string|null - */ - public function getFillId() - { - return $this->container['fill_id']; - } - - /** - * Sets fill_id - * - * @param string|null $fill_id fill_id - * - * @return self - */ - public function setFillId($fill_id) - { - - if (is_null($fill_id)) { - throw new \InvalidArgumentException('non-nullable fill_id cannot be null'); - } - - $this->container['fill_id'] = $fill_id; - - return $this; - } - - /** - * Gets fill_price - * - * @return string|null - */ - public function getFillPrice() - { - return $this->container['fill_price']; - } - - /** - * Sets fill_price - * - * @param string|null $fill_price fill_price - * - * @return self - */ - public function setFillPrice($fill_price) - { - - if (is_null($fill_price)) { - throw new \InvalidArgumentException('non-nullable fill_price cannot be null'); - } - - $this->container['fill_price'] = $fill_price; - - return $this; - } - - /** - * Gets fill_quantity - * - * @return string|null - */ - public function getFillQuantity() - { - return $this->container['fill_quantity']; - } - - /** - * Sets fill_quantity - * - * @param string|null $fill_quantity fill_quantity - * - * @return self - */ - public function setFillQuantity($fill_quantity) - { - - if (is_null($fill_quantity)) { - throw new \InvalidArgumentException('non-nullable fill_quantity cannot be null'); - } - - $this->container['fill_quantity'] = $fill_quantity; - - return $this; - } - - /** - * Gets fill_total_amount - * - * @return string|null - */ - public function getFillTotalAmount() - { - return $this->container['fill_total_amount']; - } - - /** - * Sets fill_total_amount - * - * @param string|null $fill_total_amount fill_total_amount - * - * @return self - */ - public function setFillTotalAmount($fill_total_amount) - { - - if (is_null($fill_total_amount)) { - throw new \InvalidArgumentException('non-nullable fill_total_amount cannot be null'); - } - - $this->container['fill_total_amount'] = $fill_total_amount; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - - /** - * Gets order_type - * - * @return string|null - */ - public function getOrderType() - { - return $this->container['order_type']; - } - - /** - * Sets order_type - * - * @param string|null $order_type order_type - * - * @return self - */ - public function setOrderType($order_type) - { - - if (is_null($order_type)) { - throw new \InvalidArgumentException('non-nullable order_type cannot be null'); - } - - $this->container['order_type'] = $order_type; - - return $this; - } - - /** - * Gets side - * - * @return string|null - */ - public function getSide() - { - return $this->container['side']; - } - - /** - * Sets side - * - * @param string|null $side side - * - * @return self - */ - public function setSide($side) - { - - if (is_null($side)) { - throw new \InvalidArgumentException('non-nullable side cannot be null'); - } - - $this->container['side'] = $side; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfoResult.php deleted file mode 100644 index 35cfb75b..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MarginTradeDetailInfoResult.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MarginTradeDetailInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarginTradeDetailInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fills' => '\Bitget\Model\MarginTradeDetailInfo[]', - 'max_id' => 'string', - 'min_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fills' => null, - 'max_id' => null, - 'min_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'fills' => false, - 'max_id' => false, - 'min_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fills' => 'fills', - 'max_id' => 'maxId', - 'min_id' => 'minId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fills' => 'setFills', - 'max_id' => 'setMaxId', - 'min_id' => 'setMinId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fills' => 'getFills', - 'max_id' => 'getMaxId', - 'min_id' => 'getMinId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('fills', $data ?? [], null); - $this->setIfExists('max_id', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets fills - * - * @return \Bitget\Model\MarginTradeDetailInfo[]|null - */ - public function getFills() - { - return $this->container['fills']; - } - - /** - * Sets fills - * - * @param \Bitget\Model\MarginTradeDetailInfo[]|null $fills fills - * - * @return self - */ - public function setFills($fills) - { - - if (is_null($fills)) { - throw new \InvalidArgumentException('non-nullable fills cannot be null'); - } - - $this->container['fills'] = $fills; - - return $this; - } - - /** - * Gets max_id - * - * @return string|null - */ - public function getMaxId() - { - return $this->container['max_id']; - } - - /** - * Sets max_id - * - * @param string|null $max_id max_id - * - * @return self - */ - public function setMaxId($max_id) - { - - if (is_null($max_id)) { - throw new \InvalidArgumentException('non-nullable max_id cannot be null'); - } - - $this->container['max_id'] = $max_id; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantAdvInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantAdvInfo.php deleted file mode 100644 index 77cf0be9..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantAdvInfo.php +++ /dev/null @@ -1,1167 +0,0 @@ - - */ -class MerchantAdvInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantAdvInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'adv_id' => 'string', - 'adv_no' => 'string', - 'amount' => 'string', - 'coin' => 'string', - 'coin_precision' => 'string', - 'ctime' => 'string', - 'deal_amount' => 'string', - 'fiat_code' => 'string', - 'fiat_precision' => 'string', - 'fiat_symbol' => 'string', - 'hide' => 'string', - 'max_amount' => 'string', - 'min_amount' => 'string', - 'pay_duration' => 'string', - 'payment_method' => '\Bitget\Model\FiatPaymentInfo[]', - 'price' => 'string', - 'remark' => 'string', - 'status' => 'string', - 'turnover_num' => 'string', - 'turnover_rate' => 'string', - 'type' => 'string', - 'user_limit' => '\Bitget\Model\MerchantAdvUserLimitInfo' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'adv_id' => null, - 'adv_no' => null, - 'amount' => null, - 'coin' => null, - 'coin_precision' => null, - 'ctime' => null, - 'deal_amount' => null, - 'fiat_code' => null, - 'fiat_precision' => null, - 'fiat_symbol' => null, - 'hide' => null, - 'max_amount' => null, - 'min_amount' => null, - 'pay_duration' => null, - 'payment_method' => null, - 'price' => null, - 'remark' => null, - 'status' => null, - 'turnover_num' => null, - 'turnover_rate' => null, - 'type' => null, - 'user_limit' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'adv_id' => false, - 'adv_no' => false, - 'amount' => false, - 'coin' => false, - 'coin_precision' => false, - 'ctime' => false, - 'deal_amount' => false, - 'fiat_code' => false, - 'fiat_precision' => false, - 'fiat_symbol' => false, - 'hide' => false, - 'max_amount' => false, - 'min_amount' => false, - 'pay_duration' => false, - 'payment_method' => false, - 'price' => false, - 'remark' => false, - 'status' => false, - 'turnover_num' => false, - 'turnover_rate' => false, - 'type' => false, - 'user_limit' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'adv_id' => 'advId', - 'adv_no' => 'advNo', - 'amount' => 'amount', - 'coin' => 'coin', - 'coin_precision' => 'coinPrecision', - 'ctime' => 'ctime', - 'deal_amount' => 'dealAmount', - 'fiat_code' => 'fiatCode', - 'fiat_precision' => 'fiatPrecision', - 'fiat_symbol' => 'fiatSymbol', - 'hide' => 'hide', - 'max_amount' => 'maxAmount', - 'min_amount' => 'minAmount', - 'pay_duration' => 'payDuration', - 'payment_method' => 'paymentMethod', - 'price' => 'price', - 'remark' => 'remark', - 'status' => 'status', - 'turnover_num' => 'turnoverNum', - 'turnover_rate' => 'turnoverRate', - 'type' => 'type', - 'user_limit' => 'userLimit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'adv_id' => 'setAdvId', - 'adv_no' => 'setAdvNo', - 'amount' => 'setAmount', - 'coin' => 'setCoin', - 'coin_precision' => 'setCoinPrecision', - 'ctime' => 'setCtime', - 'deal_amount' => 'setDealAmount', - 'fiat_code' => 'setFiatCode', - 'fiat_precision' => 'setFiatPrecision', - 'fiat_symbol' => 'setFiatSymbol', - 'hide' => 'setHide', - 'max_amount' => 'setMaxAmount', - 'min_amount' => 'setMinAmount', - 'pay_duration' => 'setPayDuration', - 'payment_method' => 'setPaymentMethod', - 'price' => 'setPrice', - 'remark' => 'setRemark', - 'status' => 'setStatus', - 'turnover_num' => 'setTurnoverNum', - 'turnover_rate' => 'setTurnoverRate', - 'type' => 'setType', - 'user_limit' => 'setUserLimit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'adv_id' => 'getAdvId', - 'adv_no' => 'getAdvNo', - 'amount' => 'getAmount', - 'coin' => 'getCoin', - 'coin_precision' => 'getCoinPrecision', - 'ctime' => 'getCtime', - 'deal_amount' => 'getDealAmount', - 'fiat_code' => 'getFiatCode', - 'fiat_precision' => 'getFiatPrecision', - 'fiat_symbol' => 'getFiatSymbol', - 'hide' => 'getHide', - 'max_amount' => 'getMaxAmount', - 'min_amount' => 'getMinAmount', - 'pay_duration' => 'getPayDuration', - 'payment_method' => 'getPaymentMethod', - 'price' => 'getPrice', - 'remark' => 'getRemark', - 'status' => 'getStatus', - 'turnover_num' => 'getTurnoverNum', - 'turnover_rate' => 'getTurnoverRate', - 'type' => 'getType', - 'user_limit' => 'getUserLimit' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('adv_id', $data ?? [], null); - $this->setIfExists('adv_no', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('coin_precision', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('deal_amount', $data ?? [], null); - $this->setIfExists('fiat_code', $data ?? [], null); - $this->setIfExists('fiat_precision', $data ?? [], null); - $this->setIfExists('fiat_symbol', $data ?? [], null); - $this->setIfExists('hide', $data ?? [], null); - $this->setIfExists('max_amount', $data ?? [], null); - $this->setIfExists('min_amount', $data ?? [], null); - $this->setIfExists('pay_duration', $data ?? [], null); - $this->setIfExists('payment_method', $data ?? [], null); - $this->setIfExists('price', $data ?? [], null); - $this->setIfExists('remark', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('turnover_num', $data ?? [], null); - $this->setIfExists('turnover_rate', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('user_limit', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets adv_id - * - * @return string|null - */ - public function getAdvId() - { - return $this->container['adv_id']; - } - - /** - * Sets adv_id - * - * @param string|null $adv_id adv_id - * - * @return self - */ - public function setAdvId($adv_id) - { - - if (is_null($adv_id)) { - throw new \InvalidArgumentException('non-nullable adv_id cannot be null'); - } - - $this->container['adv_id'] = $adv_id; - - return $this; - } - - /** - * Gets adv_no - * - * @return string|null - */ - public function getAdvNo() - { - return $this->container['adv_no']; - } - - /** - * Sets adv_no - * - * @param string|null $adv_no adv_no - * - * @return self - */ - public function setAdvNo($adv_no) - { - - if (is_null($adv_no)) { - throw new \InvalidArgumentException('non-nullable adv_no cannot be null'); - } - - $this->container['adv_no'] = $adv_no; - - return $this; - } - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets coin_precision - * - * @return string|null - */ - public function getCoinPrecision() - { - return $this->container['coin_precision']; - } - - /** - * Sets coin_precision - * - * @param string|null $coin_precision coin_precision - * - * @return self - */ - public function setCoinPrecision($coin_precision) - { - - if (is_null($coin_precision)) { - throw new \InvalidArgumentException('non-nullable coin_precision cannot be null'); - } - - $this->container['coin_precision'] = $coin_precision; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets deal_amount - * - * @return string|null - */ - public function getDealAmount() - { - return $this->container['deal_amount']; - } - - /** - * Sets deal_amount - * - * @param string|null $deal_amount deal_amount - * - * @return self - */ - public function setDealAmount($deal_amount) - { - - if (is_null($deal_amount)) { - throw new \InvalidArgumentException('non-nullable deal_amount cannot be null'); - } - - $this->container['deal_amount'] = $deal_amount; - - return $this; - } - - /** - * Gets fiat_code - * - * @return string|null - */ - public function getFiatCode() - { - return $this->container['fiat_code']; - } - - /** - * Sets fiat_code - * - * @param string|null $fiat_code fiat_code - * - * @return self - */ - public function setFiatCode($fiat_code) - { - - if (is_null($fiat_code)) { - throw new \InvalidArgumentException('non-nullable fiat_code cannot be null'); - } - - $this->container['fiat_code'] = $fiat_code; - - return $this; - } - - /** - * Gets fiat_precision - * - * @return string|null - */ - public function getFiatPrecision() - { - return $this->container['fiat_precision']; - } - - /** - * Sets fiat_precision - * - * @param string|null $fiat_precision fiat_precision - * - * @return self - */ - public function setFiatPrecision($fiat_precision) - { - - if (is_null($fiat_precision)) { - throw new \InvalidArgumentException('non-nullable fiat_precision cannot be null'); - } - - $this->container['fiat_precision'] = $fiat_precision; - - return $this; - } - - /** - * Gets fiat_symbol - * - * @return string|null - */ - public function getFiatSymbol() - { - return $this->container['fiat_symbol']; - } - - /** - * Sets fiat_symbol - * - * @param string|null $fiat_symbol fiat_symbol - * - * @return self - */ - public function setFiatSymbol($fiat_symbol) - { - - if (is_null($fiat_symbol)) { - throw new \InvalidArgumentException('non-nullable fiat_symbol cannot be null'); - } - - $this->container['fiat_symbol'] = $fiat_symbol; - - return $this; - } - - /** - * Gets hide - * - * @return string|null - */ - public function getHide() - { - return $this->container['hide']; - } - - /** - * Sets hide - * - * @param string|null $hide hide - * - * @return self - */ - public function setHide($hide) - { - - if (is_null($hide)) { - throw new \InvalidArgumentException('non-nullable hide cannot be null'); - } - - $this->container['hide'] = $hide; - - return $this; - } - - /** - * Gets max_amount - * - * @return string|null - */ - public function getMaxAmount() - { - return $this->container['max_amount']; - } - - /** - * Sets max_amount - * - * @param string|null $max_amount max_amount - * - * @return self - */ - public function setMaxAmount($max_amount) - { - - if (is_null($max_amount)) { - throw new \InvalidArgumentException('non-nullable max_amount cannot be null'); - } - - $this->container['max_amount'] = $max_amount; - - return $this; - } - - /** - * Gets min_amount - * - * @return string|null - */ - public function getMinAmount() - { - return $this->container['min_amount']; - } - - /** - * Sets min_amount - * - * @param string|null $min_amount min_amount - * - * @return self - */ - public function setMinAmount($min_amount) - { - - if (is_null($min_amount)) { - throw new \InvalidArgumentException('non-nullable min_amount cannot be null'); - } - - $this->container['min_amount'] = $min_amount; - - return $this; - } - - /** - * Gets pay_duration - * - * @return string|null - */ - public function getPayDuration() - { - return $this->container['pay_duration']; - } - - /** - * Sets pay_duration - * - * @param string|null $pay_duration pay_duration - * - * @return self - */ - public function setPayDuration($pay_duration) - { - - if (is_null($pay_duration)) { - throw new \InvalidArgumentException('non-nullable pay_duration cannot be null'); - } - - $this->container['pay_duration'] = $pay_duration; - - return $this; - } - - /** - * Gets payment_method - * - * @return \Bitget\Model\FiatPaymentInfo[]|null - */ - public function getPaymentMethod() - { - return $this->container['payment_method']; - } - - /** - * Sets payment_method - * - * @param \Bitget\Model\FiatPaymentInfo[]|null $payment_method payment_method - * - * @return self - */ - public function setPaymentMethod($payment_method) - { - - if (is_null($payment_method)) { - throw new \InvalidArgumentException('non-nullable payment_method cannot be null'); - } - - $this->container['payment_method'] = $payment_method; - - return $this; - } - - /** - * Gets price - * - * @return string|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param string|null $price price - * - * @return self - */ - public function setPrice($price) - { - - if (is_null($price)) { - throw new \InvalidArgumentException('non-nullable price cannot be null'); - } - - $this->container['price'] = $price; - - return $this; - } - - /** - * Gets remark - * - * @return string|null - */ - public function getRemark() - { - return $this->container['remark']; - } - - /** - * Sets remark - * - * @param string|null $remark remark - * - * @return self - */ - public function setRemark($remark) - { - - if (is_null($remark)) { - throw new \InvalidArgumentException('non-nullable remark cannot be null'); - } - - $this->container['remark'] = $remark; - - return $this; - } - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status status - * - * @return self - */ - public function setStatus($status) - { - - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets turnover_num - * - * @return string|null - */ - public function getTurnoverNum() - { - return $this->container['turnover_num']; - } - - /** - * Sets turnover_num - * - * @param string|null $turnover_num turnover_num - * - * @return self - */ - public function setTurnoverNum($turnover_num) - { - - if (is_null($turnover_num)) { - throw new \InvalidArgumentException('non-nullable turnover_num cannot be null'); - } - - $this->container['turnover_num'] = $turnover_num; - - return $this; - } - - /** - * Gets turnover_rate - * - * @return string|null - */ - public function getTurnoverRate() - { - return $this->container['turnover_rate']; - } - - /** - * Sets turnover_rate - * - * @param string|null $turnover_rate turnover_rate - * - * @return self - */ - public function setTurnoverRate($turnover_rate) - { - - if (is_null($turnover_rate)) { - throw new \InvalidArgumentException('non-nullable turnover_rate cannot be null'); - } - - $this->container['turnover_rate'] = $turnover_rate; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets user_limit - * - * @return \Bitget\Model\MerchantAdvUserLimitInfo|null - */ - public function getUserLimit() - { - return $this->container['user_limit']; - } - - /** - * Sets user_limit - * - * @param \Bitget\Model\MerchantAdvUserLimitInfo|null $user_limit user_limit - * - * @return self - */ - public function setUserLimit($user_limit) - { - - if (is_null($user_limit)) { - throw new \InvalidArgumentException('non-nullable user_limit cannot be null'); - } - - $this->container['user_limit'] = $user_limit; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantAdvResult.php b/bitget-php-sdk-open-api/lib/Model/MerchantAdvResult.php deleted file mode 100644 index 742ce537..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantAdvResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MerchantAdvResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantAdvResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'adv_list' => '\Bitget\Model\MerchantAdvInfo[]', - 'min_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'adv_list' => null, - 'min_id' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'adv_list' => false, - 'min_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'adv_list' => 'advList', - 'min_id' => 'minId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'adv_list' => 'setAdvList', - 'min_id' => 'setMinId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'adv_list' => 'getAdvList', - 'min_id' => 'getMinId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('adv_list', $data ?? [], null); - $this->setIfExists('min_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets adv_list - * - * @return \Bitget\Model\MerchantAdvInfo[]|null - */ - public function getAdvList() - { - return $this->container['adv_list']; - } - - /** - * Sets adv_list - * - * @param \Bitget\Model\MerchantAdvInfo[]|null $adv_list adv_list - * - * @return self - */ - public function setAdvList($adv_list) - { - - if (is_null($adv_list)) { - throw new \InvalidArgumentException('non-nullable adv_list cannot be null'); - } - - $this->container['adv_list'] = $adv_list; - - return $this; - } - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantAdvUserLimitInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantAdvUserLimitInfo.php deleted file mode 100644 index 55ecaa07..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantAdvUserLimitInfo.php +++ /dev/null @@ -1,591 +0,0 @@ - - */ -class MerchantAdvUserLimitInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantAdvUserLimitInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'allow_merchant_place' => 'string', - 'country' => 'string', - 'max_complete_num' => 'string', - 'min_complete_num' => 'string', - 'place_order_num' => 'string', - 'thirty_complete_rate' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'allow_merchant_place' => null, - 'country' => null, - 'max_complete_num' => null, - 'min_complete_num' => null, - 'place_order_num' => null, - 'thirty_complete_rate' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'allow_merchant_place' => false, - 'country' => false, - 'max_complete_num' => false, - 'min_complete_num' => false, - 'place_order_num' => false, - 'thirty_complete_rate' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'allow_merchant_place' => 'allowMerchantPlace', - 'country' => 'country', - 'max_complete_num' => 'maxCompleteNum', - 'min_complete_num' => 'minCompleteNum', - 'place_order_num' => 'placeOrderNum', - 'thirty_complete_rate' => 'thirtyCompleteRate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'allow_merchant_place' => 'setAllowMerchantPlace', - 'country' => 'setCountry', - 'max_complete_num' => 'setMaxCompleteNum', - 'min_complete_num' => 'setMinCompleteNum', - 'place_order_num' => 'setPlaceOrderNum', - 'thirty_complete_rate' => 'setThirtyCompleteRate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'allow_merchant_place' => 'getAllowMerchantPlace', - 'country' => 'getCountry', - 'max_complete_num' => 'getMaxCompleteNum', - 'min_complete_num' => 'getMinCompleteNum', - 'place_order_num' => 'getPlaceOrderNum', - 'thirty_complete_rate' => 'getThirtyCompleteRate' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('allow_merchant_place', $data ?? [], null); - $this->setIfExists('country', $data ?? [], null); - $this->setIfExists('max_complete_num', $data ?? [], null); - $this->setIfExists('min_complete_num', $data ?? [], null); - $this->setIfExists('place_order_num', $data ?? [], null); - $this->setIfExists('thirty_complete_rate', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets allow_merchant_place - * - * @return string|null - */ - public function getAllowMerchantPlace() - { - return $this->container['allow_merchant_place']; - } - - /** - * Sets allow_merchant_place - * - * @param string|null $allow_merchant_place allow_merchant_place - * - * @return self - */ - public function setAllowMerchantPlace($allow_merchant_place) - { - - if (is_null($allow_merchant_place)) { - throw new \InvalidArgumentException('non-nullable allow_merchant_place cannot be null'); - } - - $this->container['allow_merchant_place'] = $allow_merchant_place; - - return $this; - } - - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country country - * - * @return self - */ - public function setCountry($country) - { - - if (is_null($country)) { - throw new \InvalidArgumentException('non-nullable country cannot be null'); - } - - $this->container['country'] = $country; - - return $this; - } - - /** - * Gets max_complete_num - * - * @return string|null - */ - public function getMaxCompleteNum() - { - return $this->container['max_complete_num']; - } - - /** - * Sets max_complete_num - * - * @param string|null $max_complete_num max_complete_num - * - * @return self - */ - public function setMaxCompleteNum($max_complete_num) - { - - if (is_null($max_complete_num)) { - throw new \InvalidArgumentException('non-nullable max_complete_num cannot be null'); - } - - $this->container['max_complete_num'] = $max_complete_num; - - return $this; - } - - /** - * Gets min_complete_num - * - * @return string|null - */ - public function getMinCompleteNum() - { - return $this->container['min_complete_num']; - } - - /** - * Sets min_complete_num - * - * @param string|null $min_complete_num min_complete_num - * - * @return self - */ - public function setMinCompleteNum($min_complete_num) - { - - if (is_null($min_complete_num)) { - throw new \InvalidArgumentException('non-nullable min_complete_num cannot be null'); - } - - $this->container['min_complete_num'] = $min_complete_num; - - return $this; - } - - /** - * Gets place_order_num - * - * @return string|null - */ - public function getPlaceOrderNum() - { - return $this->container['place_order_num']; - } - - /** - * Sets place_order_num - * - * @param string|null $place_order_num place_order_num - * - * @return self - */ - public function setPlaceOrderNum($place_order_num) - { - - if (is_null($place_order_num)) { - throw new \InvalidArgumentException('non-nullable place_order_num cannot be null'); - } - - $this->container['place_order_num'] = $place_order_num; - - return $this; - } - - /** - * Gets thirty_complete_rate - * - * @return string|null - */ - public function getThirtyCompleteRate() - { - return $this->container['thirty_complete_rate']; - } - - /** - * Sets thirty_complete_rate - * - * @param string|null $thirty_complete_rate thirty_complete_rate - * - * @return self - */ - public function setThirtyCompleteRate($thirty_complete_rate) - { - - if (is_null($thirty_complete_rate)) { - throw new \InvalidArgumentException('non-nullable thirty_complete_rate cannot be null'); - } - - $this->container['thirty_complete_rate'] = $thirty_complete_rate; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantInfo.php deleted file mode 100644 index f05d7565..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantInfo.php +++ /dev/null @@ -1,879 +0,0 @@ - - */ -class MerchantInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'average_payment' => 'string', - 'average_realese' => 'string', - 'is_online' => 'string', - 'merchant_id' => 'string', - 'nick_name' => 'string', - 'register_time' => 'string', - 'thirty_buy' => 'string', - 'thirty_completion_rate' => 'string', - 'thirty_sell' => 'string', - 'thirty_trades' => 'string', - 'total_buy' => 'string', - 'total_completion_rate' => 'string', - 'total_sell' => 'string', - 'total_trades' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'average_payment' => null, - 'average_realese' => null, - 'is_online' => null, - 'merchant_id' => null, - 'nick_name' => null, - 'register_time' => null, - 'thirty_buy' => null, - 'thirty_completion_rate' => null, - 'thirty_sell' => null, - 'thirty_trades' => null, - 'total_buy' => null, - 'total_completion_rate' => null, - 'total_sell' => null, - 'total_trades' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'average_payment' => false, - 'average_realese' => false, - 'is_online' => false, - 'merchant_id' => false, - 'nick_name' => false, - 'register_time' => false, - 'thirty_buy' => false, - 'thirty_completion_rate' => false, - 'thirty_sell' => false, - 'thirty_trades' => false, - 'total_buy' => false, - 'total_completion_rate' => false, - 'total_sell' => false, - 'total_trades' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'average_payment' => 'averagePayment', - 'average_realese' => 'averageRealese', - 'is_online' => 'isOnline', - 'merchant_id' => 'merchantId', - 'nick_name' => 'nickName', - 'register_time' => 'registerTime', - 'thirty_buy' => 'thirtyBuy', - 'thirty_completion_rate' => 'thirtyCompletionRate', - 'thirty_sell' => 'thirtySell', - 'thirty_trades' => 'thirtyTrades', - 'total_buy' => 'totalBuy', - 'total_completion_rate' => 'totalCompletionRate', - 'total_sell' => 'totalSell', - 'total_trades' => 'totalTrades' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'average_payment' => 'setAveragePayment', - 'average_realese' => 'setAverageRealese', - 'is_online' => 'setIsOnline', - 'merchant_id' => 'setMerchantId', - 'nick_name' => 'setNickName', - 'register_time' => 'setRegisterTime', - 'thirty_buy' => 'setThirtyBuy', - 'thirty_completion_rate' => 'setThirtyCompletionRate', - 'thirty_sell' => 'setThirtySell', - 'thirty_trades' => 'setThirtyTrades', - 'total_buy' => 'setTotalBuy', - 'total_completion_rate' => 'setTotalCompletionRate', - 'total_sell' => 'setTotalSell', - 'total_trades' => 'setTotalTrades' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'average_payment' => 'getAveragePayment', - 'average_realese' => 'getAverageRealese', - 'is_online' => 'getIsOnline', - 'merchant_id' => 'getMerchantId', - 'nick_name' => 'getNickName', - 'register_time' => 'getRegisterTime', - 'thirty_buy' => 'getThirtyBuy', - 'thirty_completion_rate' => 'getThirtyCompletionRate', - 'thirty_sell' => 'getThirtySell', - 'thirty_trades' => 'getThirtyTrades', - 'total_buy' => 'getTotalBuy', - 'total_completion_rate' => 'getTotalCompletionRate', - 'total_sell' => 'getTotalSell', - 'total_trades' => 'getTotalTrades' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('average_payment', $data ?? [], null); - $this->setIfExists('average_realese', $data ?? [], null); - $this->setIfExists('is_online', $data ?? [], null); - $this->setIfExists('merchant_id', $data ?? [], null); - $this->setIfExists('nick_name', $data ?? [], null); - $this->setIfExists('register_time', $data ?? [], null); - $this->setIfExists('thirty_buy', $data ?? [], null); - $this->setIfExists('thirty_completion_rate', $data ?? [], null); - $this->setIfExists('thirty_sell', $data ?? [], null); - $this->setIfExists('thirty_trades', $data ?? [], null); - $this->setIfExists('total_buy', $data ?? [], null); - $this->setIfExists('total_completion_rate', $data ?? [], null); - $this->setIfExists('total_sell', $data ?? [], null); - $this->setIfExists('total_trades', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets average_payment - * - * @return string|null - */ - public function getAveragePayment() - { - return $this->container['average_payment']; - } - - /** - * Sets average_payment - * - * @param string|null $average_payment average_payment - * - * @return self - */ - public function setAveragePayment($average_payment) - { - - if (is_null($average_payment)) { - throw new \InvalidArgumentException('non-nullable average_payment cannot be null'); - } - - $this->container['average_payment'] = $average_payment; - - return $this; - } - - /** - * Gets average_realese - * - * @return string|null - */ - public function getAverageRealese() - { - return $this->container['average_realese']; - } - - /** - * Sets average_realese - * - * @param string|null $average_realese average_realese - * - * @return self - */ - public function setAverageRealese($average_realese) - { - - if (is_null($average_realese)) { - throw new \InvalidArgumentException('non-nullable average_realese cannot be null'); - } - - $this->container['average_realese'] = $average_realese; - - return $this; - } - - /** - * Gets is_online - * - * @return string|null - */ - public function getIsOnline() - { - return $this->container['is_online']; - } - - /** - * Sets is_online - * - * @param string|null $is_online is_online - * - * @return self - */ - public function setIsOnline($is_online) - { - - if (is_null($is_online)) { - throw new \InvalidArgumentException('non-nullable is_online cannot be null'); - } - - $this->container['is_online'] = $is_online; - - return $this; - } - - /** - * Gets merchant_id - * - * @return string|null - */ - public function getMerchantId() - { - return $this->container['merchant_id']; - } - - /** - * Sets merchant_id - * - * @param string|null $merchant_id merchant_id - * - * @return self - */ - public function setMerchantId($merchant_id) - { - - if (is_null($merchant_id)) { - throw new \InvalidArgumentException('non-nullable merchant_id cannot be null'); - } - - $this->container['merchant_id'] = $merchant_id; - - return $this; - } - - /** - * Gets nick_name - * - * @return string|null - */ - public function getNickName() - { - return $this->container['nick_name']; - } - - /** - * Sets nick_name - * - * @param string|null $nick_name nick_name - * - * @return self - */ - public function setNickName($nick_name) - { - - if (is_null($nick_name)) { - throw new \InvalidArgumentException('non-nullable nick_name cannot be null'); - } - - $this->container['nick_name'] = $nick_name; - - return $this; - } - - /** - * Gets register_time - * - * @return string|null - */ - public function getRegisterTime() - { - return $this->container['register_time']; - } - - /** - * Sets register_time - * - * @param string|null $register_time register_time - * - * @return self - */ - public function setRegisterTime($register_time) - { - - if (is_null($register_time)) { - throw new \InvalidArgumentException('non-nullable register_time cannot be null'); - } - - $this->container['register_time'] = $register_time; - - return $this; - } - - /** - * Gets thirty_buy - * - * @return string|null - */ - public function getThirtyBuy() - { - return $this->container['thirty_buy']; - } - - /** - * Sets thirty_buy - * - * @param string|null $thirty_buy thirty_buy - * - * @return self - */ - public function setThirtyBuy($thirty_buy) - { - - if (is_null($thirty_buy)) { - throw new \InvalidArgumentException('non-nullable thirty_buy cannot be null'); - } - - $this->container['thirty_buy'] = $thirty_buy; - - return $this; - } - - /** - * Gets thirty_completion_rate - * - * @return string|null - */ - public function getThirtyCompletionRate() - { - return $this->container['thirty_completion_rate']; - } - - /** - * Sets thirty_completion_rate - * - * @param string|null $thirty_completion_rate thirty_completion_rate - * - * @return self - */ - public function setThirtyCompletionRate($thirty_completion_rate) - { - - if (is_null($thirty_completion_rate)) { - throw new \InvalidArgumentException('non-nullable thirty_completion_rate cannot be null'); - } - - $this->container['thirty_completion_rate'] = $thirty_completion_rate; - - return $this; - } - - /** - * Gets thirty_sell - * - * @return string|null - */ - public function getThirtySell() - { - return $this->container['thirty_sell']; - } - - /** - * Sets thirty_sell - * - * @param string|null $thirty_sell thirty_sell - * - * @return self - */ - public function setThirtySell($thirty_sell) - { - - if (is_null($thirty_sell)) { - throw new \InvalidArgumentException('non-nullable thirty_sell cannot be null'); - } - - $this->container['thirty_sell'] = $thirty_sell; - - return $this; - } - - /** - * Gets thirty_trades - * - * @return string|null - */ - public function getThirtyTrades() - { - return $this->container['thirty_trades']; - } - - /** - * Sets thirty_trades - * - * @param string|null $thirty_trades thirty_trades - * - * @return self - */ - public function setThirtyTrades($thirty_trades) - { - - if (is_null($thirty_trades)) { - throw new \InvalidArgumentException('non-nullable thirty_trades cannot be null'); - } - - $this->container['thirty_trades'] = $thirty_trades; - - return $this; - } - - /** - * Gets total_buy - * - * @return string|null - */ - public function getTotalBuy() - { - return $this->container['total_buy']; - } - - /** - * Sets total_buy - * - * @param string|null $total_buy total_buy - * - * @return self - */ - public function setTotalBuy($total_buy) - { - - if (is_null($total_buy)) { - throw new \InvalidArgumentException('non-nullable total_buy cannot be null'); - } - - $this->container['total_buy'] = $total_buy; - - return $this; - } - - /** - * Gets total_completion_rate - * - * @return string|null - */ - public function getTotalCompletionRate() - { - return $this->container['total_completion_rate']; - } - - /** - * Sets total_completion_rate - * - * @param string|null $total_completion_rate total_completion_rate - * - * @return self - */ - public function setTotalCompletionRate($total_completion_rate) - { - - if (is_null($total_completion_rate)) { - throw new \InvalidArgumentException('non-nullable total_completion_rate cannot be null'); - } - - $this->container['total_completion_rate'] = $total_completion_rate; - - return $this; - } - - /** - * Gets total_sell - * - * @return string|null - */ - public function getTotalSell() - { - return $this->container['total_sell']; - } - - /** - * Sets total_sell - * - * @param string|null $total_sell total_sell - * - * @return self - */ - public function setTotalSell($total_sell) - { - - if (is_null($total_sell)) { - throw new \InvalidArgumentException('non-nullable total_sell cannot be null'); - } - - $this->container['total_sell'] = $total_sell; - - return $this; - } - - /** - * Gets total_trades - * - * @return string|null - */ - public function getTotalTrades() - { - return $this->container['total_trades']; - } - - /** - * Sets total_trades - * - * @param string|null $total_trades total_trades - * - * @return self - */ - public function setTotalTrades($total_trades) - { - - if (is_null($total_trades)) { - throw new \InvalidArgumentException('non-nullable total_trades cannot be null'); - } - - $this->container['total_trades'] = $total_trades; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantInfoResult.php b/bitget-php-sdk-open-api/lib/Model/MerchantInfoResult.php deleted file mode 100644 index aaead009..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantInfoResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MerchantInfoResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'min_id' => 'string', - 'result_list' => '\Bitget\Model\MerchantInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'min_id' => null, - 'result_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'min_id' => false, - 'result_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'min_id' => 'minId', - 'result_list' => 'resultList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'min_id' => 'setMinId', - 'result_list' => 'setResultList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'min_id' => 'getMinId', - 'result_list' => 'getResultList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('result_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets result_list - * - * @return \Bitget\Model\MerchantInfo[]|null - */ - public function getResultList() - { - return $this->container['result_list']; - } - - /** - * Sets result_list - * - * @param \Bitget\Model\MerchantInfo[]|null $result_list result_list - * - * @return self - */ - public function setResultList($result_list) - { - - if (is_null($result_list)) { - throw new \InvalidArgumentException('non-nullable result_list cannot be null'); - } - - $this->container['result_list'] = $result_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantOrderInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantOrderInfo.php deleted file mode 100644 index 9f898dad..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantOrderInfo.php +++ /dev/null @@ -1,1023 +0,0 @@ - - */ -class MerchantOrderInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantOrderInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'adv_no' => 'string', - 'amount' => 'string', - 'buyer_real_name' => 'string', - 'coin' => 'string', - 'count' => 'string', - 'ctime' => 'string', - 'fiat' => 'string', - 'order_id' => 'string', - 'order_no' => 'string', - 'payment_info' => '\Bitget\Model\MerchantOrderPaymentInfo', - 'payment_time' => 'string', - 'price' => 'string', - 'release_coin_time' => 'string', - 'represent_time' => 'string', - 'seller_real_name' => 'string', - 'status' => 'string', - 'type' => 'string', - 'withdraw_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'adv_no' => null, - 'amount' => null, - 'buyer_real_name' => null, - 'coin' => null, - 'count' => null, - 'ctime' => null, - 'fiat' => null, - 'order_id' => null, - 'order_no' => null, - 'payment_info' => null, - 'payment_time' => null, - 'price' => null, - 'release_coin_time' => null, - 'represent_time' => null, - 'seller_real_name' => null, - 'status' => null, - 'type' => null, - 'withdraw_time' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'adv_no' => false, - 'amount' => false, - 'buyer_real_name' => false, - 'coin' => false, - 'count' => false, - 'ctime' => false, - 'fiat' => false, - 'order_id' => false, - 'order_no' => false, - 'payment_info' => false, - 'payment_time' => false, - 'price' => false, - 'release_coin_time' => false, - 'represent_time' => false, - 'seller_real_name' => false, - 'status' => false, - 'type' => false, - 'withdraw_time' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'adv_no' => 'advNo', - 'amount' => 'amount', - 'buyer_real_name' => 'buyerRealName', - 'coin' => 'coin', - 'count' => 'count', - 'ctime' => 'ctime', - 'fiat' => 'fiat', - 'order_id' => 'orderId', - 'order_no' => 'orderNo', - 'payment_info' => 'paymentInfo', - 'payment_time' => 'paymentTime', - 'price' => 'price', - 'release_coin_time' => 'releaseCoinTime', - 'represent_time' => 'representTime', - 'seller_real_name' => 'sellerRealName', - 'status' => 'status', - 'type' => 'type', - 'withdraw_time' => 'withdrawTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'adv_no' => 'setAdvNo', - 'amount' => 'setAmount', - 'buyer_real_name' => 'setBuyerRealName', - 'coin' => 'setCoin', - 'count' => 'setCount', - 'ctime' => 'setCtime', - 'fiat' => 'setFiat', - 'order_id' => 'setOrderId', - 'order_no' => 'setOrderNo', - 'payment_info' => 'setPaymentInfo', - 'payment_time' => 'setPaymentTime', - 'price' => 'setPrice', - 'release_coin_time' => 'setReleaseCoinTime', - 'represent_time' => 'setRepresentTime', - 'seller_real_name' => 'setSellerRealName', - 'status' => 'setStatus', - 'type' => 'setType', - 'withdraw_time' => 'setWithdrawTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'adv_no' => 'getAdvNo', - 'amount' => 'getAmount', - 'buyer_real_name' => 'getBuyerRealName', - 'coin' => 'getCoin', - 'count' => 'getCount', - 'ctime' => 'getCtime', - 'fiat' => 'getFiat', - 'order_id' => 'getOrderId', - 'order_no' => 'getOrderNo', - 'payment_info' => 'getPaymentInfo', - 'payment_time' => 'getPaymentTime', - 'price' => 'getPrice', - 'release_coin_time' => 'getReleaseCoinTime', - 'represent_time' => 'getRepresentTime', - 'seller_real_name' => 'getSellerRealName', - 'status' => 'getStatus', - 'type' => 'getType', - 'withdraw_time' => 'getWithdrawTime' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('adv_no', $data ?? [], null); - $this->setIfExists('amount', $data ?? [], null); - $this->setIfExists('buyer_real_name', $data ?? [], null); - $this->setIfExists('coin', $data ?? [], null); - $this->setIfExists('count', $data ?? [], null); - $this->setIfExists('ctime', $data ?? [], null); - $this->setIfExists('fiat', $data ?? [], null); - $this->setIfExists('order_id', $data ?? [], null); - $this->setIfExists('order_no', $data ?? [], null); - $this->setIfExists('payment_info', $data ?? [], null); - $this->setIfExists('payment_time', $data ?? [], null); - $this->setIfExists('price', $data ?? [], null); - $this->setIfExists('release_coin_time', $data ?? [], null); - $this->setIfExists('represent_time', $data ?? [], null); - $this->setIfExists('seller_real_name', $data ?? [], null); - $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('withdraw_time', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets adv_no - * - * @return string|null - */ - public function getAdvNo() - { - return $this->container['adv_no']; - } - - /** - * Sets adv_no - * - * @param string|null $adv_no adv_no - * - * @return self - */ - public function setAdvNo($adv_no) - { - - if (is_null($adv_no)) { - throw new \InvalidArgumentException('non-nullable adv_no cannot be null'); - } - - $this->container['adv_no'] = $adv_no; - - return $this; - } - - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - - if (is_null($amount)) { - throw new \InvalidArgumentException('non-nullable amount cannot be null'); - } - - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets buyer_real_name - * - * @return string|null - */ - public function getBuyerRealName() - { - return $this->container['buyer_real_name']; - } - - /** - * Sets buyer_real_name - * - * @param string|null $buyer_real_name buyer_real_name - * - * @return self - */ - public function setBuyerRealName($buyer_real_name) - { - - if (is_null($buyer_real_name)) { - throw new \InvalidArgumentException('non-nullable buyer_real_name cannot be null'); - } - - $this->container['buyer_real_name'] = $buyer_real_name; - - return $this; - } - - /** - * Gets coin - * - * @return string|null - */ - public function getCoin() - { - return $this->container['coin']; - } - - /** - * Sets coin - * - * @param string|null $coin coin - * - * @return self - */ - public function setCoin($coin) - { - - if (is_null($coin)) { - throw new \InvalidArgumentException('non-nullable coin cannot be null'); - } - - $this->container['coin'] = $coin; - - return $this; - } - - /** - * Gets count - * - * @return string|null - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * - * @param string|null $count count - * - * @return self - */ - public function setCount($count) - { - - if (is_null($count)) { - throw new \InvalidArgumentException('non-nullable count cannot be null'); - } - - $this->container['count'] = $count; - - return $this; - } - - /** - * Gets ctime - * - * @return string|null - */ - public function getCtime() - { - return $this->container['ctime']; - } - - /** - * Sets ctime - * - * @param string|null $ctime ctime - * - * @return self - */ - public function setCtime($ctime) - { - - if (is_null($ctime)) { - throw new \InvalidArgumentException('non-nullable ctime cannot be null'); - } - - $this->container['ctime'] = $ctime; - - return $this; - } - - /** - * Gets fiat - * - * @return string|null - */ - public function getFiat() - { - return $this->container['fiat']; - } - - /** - * Sets fiat - * - * @param string|null $fiat fiat - * - * @return self - */ - public function setFiat($fiat) - { - - if (is_null($fiat)) { - throw new \InvalidArgumentException('non-nullable fiat cannot be null'); - } - - $this->container['fiat'] = $fiat; - - return $this; - } - - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id order_id - * - * @return self - */ - public function setOrderId($order_id) - { - - if (is_null($order_id)) { - throw new \InvalidArgumentException('non-nullable order_id cannot be null'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - - /** - * Gets order_no - * - * @return string|null - */ - public function getOrderNo() - { - return $this->container['order_no']; - } - - /** - * Sets order_no - * - * @param string|null $order_no order_no - * - * @return self - */ - public function setOrderNo($order_no) - { - - if (is_null($order_no)) { - throw new \InvalidArgumentException('non-nullable order_no cannot be null'); - } - - $this->container['order_no'] = $order_no; - - return $this; - } - - /** - * Gets payment_info - * - * @return \Bitget\Model\MerchantOrderPaymentInfo|null - */ - public function getPaymentInfo() - { - return $this->container['payment_info']; - } - - /** - * Sets payment_info - * - * @param \Bitget\Model\MerchantOrderPaymentInfo|null $payment_info payment_info - * - * @return self - */ - public function setPaymentInfo($payment_info) - { - - if (is_null($payment_info)) { - throw new \InvalidArgumentException('non-nullable payment_info cannot be null'); - } - - $this->container['payment_info'] = $payment_info; - - return $this; - } - - /** - * Gets payment_time - * - * @return string|null - */ - public function getPaymentTime() - { - return $this->container['payment_time']; - } - - /** - * Sets payment_time - * - * @param string|null $payment_time payment_time - * - * @return self - */ - public function setPaymentTime($payment_time) - { - - if (is_null($payment_time)) { - throw new \InvalidArgumentException('non-nullable payment_time cannot be null'); - } - - $this->container['payment_time'] = $payment_time; - - return $this; - } - - /** - * Gets price - * - * @return string|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param string|null $price price - * - * @return self - */ - public function setPrice($price) - { - - if (is_null($price)) { - throw new \InvalidArgumentException('non-nullable price cannot be null'); - } - - $this->container['price'] = $price; - - return $this; - } - - /** - * Gets release_coin_time - * - * @return string|null - */ - public function getReleaseCoinTime() - { - return $this->container['release_coin_time']; - } - - /** - * Sets release_coin_time - * - * @param string|null $release_coin_time release_coin_time - * - * @return self - */ - public function setReleaseCoinTime($release_coin_time) - { - - if (is_null($release_coin_time)) { - throw new \InvalidArgumentException('non-nullable release_coin_time cannot be null'); - } - - $this->container['release_coin_time'] = $release_coin_time; - - return $this; - } - - /** - * Gets represent_time - * - * @return string|null - */ - public function getRepresentTime() - { - return $this->container['represent_time']; - } - - /** - * Sets represent_time - * - * @param string|null $represent_time represent_time - * - * @return self - */ - public function setRepresentTime($represent_time) - { - - if (is_null($represent_time)) { - throw new \InvalidArgumentException('non-nullable represent_time cannot be null'); - } - - $this->container['represent_time'] = $represent_time; - - return $this; - } - - /** - * Gets seller_real_name - * - * @return string|null - */ - public function getSellerRealName() - { - return $this->container['seller_real_name']; - } - - /** - * Sets seller_real_name - * - * @param string|null $seller_real_name seller_real_name - * - * @return self - */ - public function setSellerRealName($seller_real_name) - { - - if (is_null($seller_real_name)) { - throw new \InvalidArgumentException('non-nullable seller_real_name cannot be null'); - } - - $this->container['seller_real_name'] = $seller_real_name; - - return $this; - } - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status status - * - * @return self - */ - public function setStatus($status) - { - - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); - } - - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets withdraw_time - * - * @return string|null - */ - public function getWithdrawTime() - { - return $this->container['withdraw_time']; - } - - /** - * Sets withdraw_time - * - * @param string|null $withdraw_time withdraw_time - * - * @return self - */ - public function setWithdrawTime($withdraw_time) - { - - if (is_null($withdraw_time)) { - throw new \InvalidArgumentException('non-nullable withdraw_time cannot be null'); - } - - $this->container['withdraw_time'] = $withdraw_time; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantOrderPaymentInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantOrderPaymentInfo.php deleted file mode 100644 index 3857eb9d..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantOrderPaymentInfo.php +++ /dev/null @@ -1,483 +0,0 @@ - - */ -class MerchantOrderPaymentInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantOrderPaymentInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'paymethod_id' => 'string', - 'paymethod_info' => '\Bitget\Model\OrderPaymentDetailInfo[]', - 'paymethod_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'paymethod_id' => null, - 'paymethod_info' => null, - 'paymethod_name' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'paymethod_id' => false, - 'paymethod_info' => false, - 'paymethod_name' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'paymethod_id' => 'paymethodId', - 'paymethod_info' => 'paymethodInfo', - 'paymethod_name' => 'paymethodName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'paymethod_id' => 'setPaymethodId', - 'paymethod_info' => 'setPaymethodInfo', - 'paymethod_name' => 'setPaymethodName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'paymethod_id' => 'getPaymethodId', - 'paymethod_info' => 'getPaymethodInfo', - 'paymethod_name' => 'getPaymethodName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('paymethod_id', $data ?? [], null); - $this->setIfExists('paymethod_info', $data ?? [], null); - $this->setIfExists('paymethod_name', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets paymethod_id - * - * @return string|null - */ - public function getPaymethodId() - { - return $this->container['paymethod_id']; - } - - /** - * Sets paymethod_id - * - * @param string|null $paymethod_id paymethod_id - * - * @return self - */ - public function setPaymethodId($paymethod_id) - { - - if (is_null($paymethod_id)) { - throw new \InvalidArgumentException('non-nullable paymethod_id cannot be null'); - } - - $this->container['paymethod_id'] = $paymethod_id; - - return $this; - } - - /** - * Gets paymethod_info - * - * @return \Bitget\Model\OrderPaymentDetailInfo[]|null - */ - public function getPaymethodInfo() - { - return $this->container['paymethod_info']; - } - - /** - * Sets paymethod_info - * - * @param \Bitget\Model\OrderPaymentDetailInfo[]|null $paymethod_info paymethod_info - * - * @return self - */ - public function setPaymethodInfo($paymethod_info) - { - - if (is_null($paymethod_info)) { - throw new \InvalidArgumentException('non-nullable paymethod_info cannot be null'); - } - - $this->container['paymethod_info'] = $paymethod_info; - - return $this; - } - - /** - * Gets paymethod_name - * - * @return string|null - */ - public function getPaymethodName() - { - return $this->container['paymethod_name']; - } - - /** - * Sets paymethod_name - * - * @param string|null $paymethod_name paymethod_name - * - * @return self - */ - public function setPaymethodName($paymethod_name) - { - - if (is_null($paymethod_name)) { - throw new \InvalidArgumentException('non-nullable paymethod_name cannot be null'); - } - - $this->container['paymethod_name'] = $paymethod_name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantOrderResult.php b/bitget-php-sdk-open-api/lib/Model/MerchantOrderResult.php deleted file mode 100644 index 7ba4032d..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantOrderResult.php +++ /dev/null @@ -1,447 +0,0 @@ - - */ -class MerchantOrderResult implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'min_id' => 'string', - 'order_list' => '\Bitget\Model\MerchantOrderInfo[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'min_id' => null, - 'order_list' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'min_id' => false, - 'order_list' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'min_id' => 'minId', - 'order_list' => 'orderList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'min_id' => 'setMinId', - 'order_list' => 'setOrderList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'min_id' => 'getMinId', - 'order_list' => 'getOrderList' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('min_id', $data ?? [], null); - $this->setIfExists('order_list', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets min_id - * - * @return string|null - */ - public function getMinId() - { - return $this->container['min_id']; - } - - /** - * Sets min_id - * - * @param string|null $min_id min_id - * - * @return self - */ - public function setMinId($min_id) - { - - if (is_null($min_id)) { - throw new \InvalidArgumentException('non-nullable min_id cannot be null'); - } - - $this->container['min_id'] = $min_id; - - return $this; - } - - /** - * Gets order_list - * - * @return \Bitget\Model\MerchantOrderInfo[]|null - */ - public function getOrderList() - { - return $this->container['order_list']; - } - - /** - * Sets order_list - * - * @param \Bitget\Model\MerchantOrderInfo[]|null $order_list order_list - * - * @return self - */ - public function setOrderList($order_list) - { - - if (is_null($order_list)) { - throw new \InvalidArgumentException('non-nullable order_list cannot be null'); - } - - $this->container['order_list'] = $order_list; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/MerchantPersonInfo.php b/bitget-php-sdk-open-api/lib/Model/MerchantPersonInfo.php deleted file mode 100644 index c858191a..00000000 --- a/bitget-php-sdk-open-api/lib/Model/MerchantPersonInfo.php +++ /dev/null @@ -1,1059 +0,0 @@ - - */ -class MerchantPersonInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MerchantPersonInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'average_payment' => 'string', - 'average_realese' => 'string', - 'email' => 'string', - 'email_bind_flag' => 'bool', - 'kyc_flag' => 'bool', - 'merchant_id' => 'string', - 'mobile' => 'string', - 'mobile_bind_flag' => 'bool', - 'nick_name' => 'string', - 'real_name' => 'string', - 'register_time' => 'string', - 'thirty_buy' => 'string', - 'thirty_completion_rate' => 'string', - 'thirty_sell' => 'string', - 'thirty_trades' => 'string', - 'total_buy' => 'string', - 'total_completion_rate' => 'string', - 'total_sell' => 'string', - 'total_trades' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'average_payment' => null, - 'average_realese' => null, - 'email' => null, - 'email_bind_flag' => null, - 'kyc_flag' => null, - 'merchant_id' => null, - 'mobile' => null, - 'mobile_bind_flag' => null, - 'nick_name' => null, - 'real_name' => null, - 'register_time' => null, - 'thirty_buy' => null, - 'thirty_completion_rate' => null, - 'thirty_sell' => null, - 'thirty_trades' => null, - 'total_buy' => null, - 'total_completion_rate' => null, - 'total_sell' => null, - 'total_trades' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'average_payment' => false, - 'average_realese' => false, - 'email' => false, - 'email_bind_flag' => false, - 'kyc_flag' => false, - 'merchant_id' => false, - 'mobile' => false, - 'mobile_bind_flag' => false, - 'nick_name' => false, - 'real_name' => false, - 'register_time' => false, - 'thirty_buy' => false, - 'thirty_completion_rate' => false, - 'thirty_sell' => false, - 'thirty_trades' => false, - 'total_buy' => false, - 'total_completion_rate' => false, - 'total_sell' => false, - 'total_trades' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'average_payment' => 'averagePayment', - 'average_realese' => 'averageRealese', - 'email' => 'email', - 'email_bind_flag' => 'emailBindFlag', - 'kyc_flag' => 'kycFlag', - 'merchant_id' => 'merchantId', - 'mobile' => 'mobile', - 'mobile_bind_flag' => 'mobileBindFlag', - 'nick_name' => 'nickName', - 'real_name' => 'realName', - 'register_time' => 'registerTime', - 'thirty_buy' => 'thirtyBuy', - 'thirty_completion_rate' => 'thirtyCompletionRate', - 'thirty_sell' => 'thirtySell', - 'thirty_trades' => 'thirtyTrades', - 'total_buy' => 'totalBuy', - 'total_completion_rate' => 'totalCompletionRate', - 'total_sell' => 'totalSell', - 'total_trades' => 'totalTrades' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'average_payment' => 'setAveragePayment', - 'average_realese' => 'setAverageRealese', - 'email' => 'setEmail', - 'email_bind_flag' => 'setEmailBindFlag', - 'kyc_flag' => 'setKycFlag', - 'merchant_id' => 'setMerchantId', - 'mobile' => 'setMobile', - 'mobile_bind_flag' => 'setMobileBindFlag', - 'nick_name' => 'setNickName', - 'real_name' => 'setRealName', - 'register_time' => 'setRegisterTime', - 'thirty_buy' => 'setThirtyBuy', - 'thirty_completion_rate' => 'setThirtyCompletionRate', - 'thirty_sell' => 'setThirtySell', - 'thirty_trades' => 'setThirtyTrades', - 'total_buy' => 'setTotalBuy', - 'total_completion_rate' => 'setTotalCompletionRate', - 'total_sell' => 'setTotalSell', - 'total_trades' => 'setTotalTrades' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'average_payment' => 'getAveragePayment', - 'average_realese' => 'getAverageRealese', - 'email' => 'getEmail', - 'email_bind_flag' => 'getEmailBindFlag', - 'kyc_flag' => 'getKycFlag', - 'merchant_id' => 'getMerchantId', - 'mobile' => 'getMobile', - 'mobile_bind_flag' => 'getMobileBindFlag', - 'nick_name' => 'getNickName', - 'real_name' => 'getRealName', - 'register_time' => 'getRegisterTime', - 'thirty_buy' => 'getThirtyBuy', - 'thirty_completion_rate' => 'getThirtyCompletionRate', - 'thirty_sell' => 'getThirtySell', - 'thirty_trades' => 'getThirtyTrades', - 'total_buy' => 'getTotalBuy', - 'total_completion_rate' => 'getTotalCompletionRate', - 'total_sell' => 'getTotalSell', - 'total_trades' => 'getTotalTrades' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('average_payment', $data ?? [], null); - $this->setIfExists('average_realese', $data ?? [], null); - $this->setIfExists('email', $data ?? [], null); - $this->setIfExists('email_bind_flag', $data ?? [], null); - $this->setIfExists('kyc_flag', $data ?? [], null); - $this->setIfExists('merchant_id', $data ?? [], null); - $this->setIfExists('mobile', $data ?? [], null); - $this->setIfExists('mobile_bind_flag', $data ?? [], null); - $this->setIfExists('nick_name', $data ?? [], null); - $this->setIfExists('real_name', $data ?? [], null); - $this->setIfExists('register_time', $data ?? [], null); - $this->setIfExists('thirty_buy', $data ?? [], null); - $this->setIfExists('thirty_completion_rate', $data ?? [], null); - $this->setIfExists('thirty_sell', $data ?? [], null); - $this->setIfExists('thirty_trades', $data ?? [], null); - $this->setIfExists('total_buy', $data ?? [], null); - $this->setIfExists('total_completion_rate', $data ?? [], null); - $this->setIfExists('total_sell', $data ?? [], null); - $this->setIfExists('total_trades', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets average_payment - * - * @return string|null - */ - public function getAveragePayment() - { - return $this->container['average_payment']; - } - - /** - * Sets average_payment - * - * @param string|null $average_payment average_payment - * - * @return self - */ - public function setAveragePayment($average_payment) - { - - if (is_null($average_payment)) { - throw new \InvalidArgumentException('non-nullable average_payment cannot be null'); - } - - $this->container['average_payment'] = $average_payment; - - return $this; - } - - /** - * Gets average_realese - * - * @return string|null - */ - public function getAverageRealese() - { - return $this->container['average_realese']; - } - - /** - * Sets average_realese - * - * @param string|null $average_realese average_realese - * - * @return self - */ - public function setAverageRealese($average_realese) - { - - if (is_null($average_realese)) { - throw new \InvalidArgumentException('non-nullable average_realese cannot be null'); - } - - $this->container['average_realese'] = $average_realese; - - return $this; - } - - /** - * Gets email - * - * @return string|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string|null $email email - * - * @return self - */ - public function setEmail($email) - { - - if (is_null($email)) { - throw new \InvalidArgumentException('non-nullable email cannot be null'); - } - - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets email_bind_flag - * - * @return bool|null - */ - public function getEmailBindFlag() - { - return $this->container['email_bind_flag']; - } - - /** - * Sets email_bind_flag - * - * @param bool|null $email_bind_flag email_bind_flag - * - * @return self - */ - public function setEmailBindFlag($email_bind_flag) - { - - if (is_null($email_bind_flag)) { - throw new \InvalidArgumentException('non-nullable email_bind_flag cannot be null'); - } - - $this->container['email_bind_flag'] = $email_bind_flag; - - return $this; - } - - /** - * Gets kyc_flag - * - * @return bool|null - */ - public function getKycFlag() - { - return $this->container['kyc_flag']; - } - - /** - * Sets kyc_flag - * - * @param bool|null $kyc_flag kyc_flag - * - * @return self - */ - public function setKycFlag($kyc_flag) - { - - if (is_null($kyc_flag)) { - throw new \InvalidArgumentException('non-nullable kyc_flag cannot be null'); - } - - $this->container['kyc_flag'] = $kyc_flag; - - return $this; - } - - /** - * Gets merchant_id - * - * @return string|null - */ - public function getMerchantId() - { - return $this->container['merchant_id']; - } - - /** - * Sets merchant_id - * - * @param string|null $merchant_id merchant_id - * - * @return self - */ - public function setMerchantId($merchant_id) - { - - if (is_null($merchant_id)) { - throw new \InvalidArgumentException('non-nullable merchant_id cannot be null'); - } - - $this->container['merchant_id'] = $merchant_id; - - return $this; - } - - /** - * Gets mobile - * - * @return string|null - */ - public function getMobile() - { - return $this->container['mobile']; - } - - /** - * Sets mobile - * - * @param string|null $mobile mobile - * - * @return self - */ - public function setMobile($mobile) - { - - if (is_null($mobile)) { - throw new \InvalidArgumentException('non-nullable mobile cannot be null'); - } - - $this->container['mobile'] = $mobile; - - return $this; - } - - /** - * Gets mobile_bind_flag - * - * @return bool|null - */ - public function getMobileBindFlag() - { - return $this->container['mobile_bind_flag']; - } - - /** - * Sets mobile_bind_flag - * - * @param bool|null $mobile_bind_flag mobile_bind_flag - * - * @return self - */ - public function setMobileBindFlag($mobile_bind_flag) - { - - if (is_null($mobile_bind_flag)) { - throw new \InvalidArgumentException('non-nullable mobile_bind_flag cannot be null'); - } - - $this->container['mobile_bind_flag'] = $mobile_bind_flag; - - return $this; - } - - /** - * Gets nick_name - * - * @return string|null - */ - public function getNickName() - { - return $this->container['nick_name']; - } - - /** - * Sets nick_name - * - * @param string|null $nick_name nick_name - * - * @return self - */ - public function setNickName($nick_name) - { - - if (is_null($nick_name)) { - throw new \InvalidArgumentException('non-nullable nick_name cannot be null'); - } - - $this->container['nick_name'] = $nick_name; - - return $this; - } - - /** - * Gets real_name - * - * @return string|null - */ - public function getRealName() - { - return $this->container['real_name']; - } - - /** - * Sets real_name - * - * @param string|null $real_name real_name - * - * @return self - */ - public function setRealName($real_name) - { - - if (is_null($real_name)) { - throw new \InvalidArgumentException('non-nullable real_name cannot be null'); - } - - $this->container['real_name'] = $real_name; - - return $this; - } - - /** - * Gets register_time - * - * @return string|null - */ - public function getRegisterTime() - { - return $this->container['register_time']; - } - - /** - * Sets register_time - * - * @param string|null $register_time register_time - * - * @return self - */ - public function setRegisterTime($register_time) - { - - if (is_null($register_time)) { - throw new \InvalidArgumentException('non-nullable register_time cannot be null'); - } - - $this->container['register_time'] = $register_time; - - return $this; - } - - /** - * Gets thirty_buy - * - * @return string|null - */ - public function getThirtyBuy() - { - return $this->container['thirty_buy']; - } - - /** - * Sets thirty_buy - * - * @param string|null $thirty_buy thirty_buy - * - * @return self - */ - public function setThirtyBuy($thirty_buy) - { - - if (is_null($thirty_buy)) { - throw new \InvalidArgumentException('non-nullable thirty_buy cannot be null'); - } - - $this->container['thirty_buy'] = $thirty_buy; - - return $this; - } - - /** - * Gets thirty_completion_rate - * - * @return string|null - */ - public function getThirtyCompletionRate() - { - return $this->container['thirty_completion_rate']; - } - - /** - * Sets thirty_completion_rate - * - * @param string|null $thirty_completion_rate thirty_completion_rate - * - * @return self - */ - public function setThirtyCompletionRate($thirty_completion_rate) - { - - if (is_null($thirty_completion_rate)) { - throw new \InvalidArgumentException('non-nullable thirty_completion_rate cannot be null'); - } - - $this->container['thirty_completion_rate'] = $thirty_completion_rate; - - return $this; - } - - /** - * Gets thirty_sell - * - * @return string|null - */ - public function getThirtySell() - { - return $this->container['thirty_sell']; - } - - /** - * Sets thirty_sell - * - * @param string|null $thirty_sell thirty_sell - * - * @return self - */ - public function setThirtySell($thirty_sell) - { - - if (is_null($thirty_sell)) { - throw new \InvalidArgumentException('non-nullable thirty_sell cannot be null'); - } - - $this->container['thirty_sell'] = $thirty_sell; - - return $this; - } - - /** - * Gets thirty_trades - * - * @return string|null - */ - public function getThirtyTrades() - { - return $this->container['thirty_trades']; - } - - /** - * Sets thirty_trades - * - * @param string|null $thirty_trades thirty_trades - * - * @return self - */ - public function setThirtyTrades($thirty_trades) - { - - if (is_null($thirty_trades)) { - throw new \InvalidArgumentException('non-nullable thirty_trades cannot be null'); - } - - $this->container['thirty_trades'] = $thirty_trades; - - return $this; - } - - /** - * Gets total_buy - * - * @return string|null - */ - public function getTotalBuy() - { - return $this->container['total_buy']; - } - - /** - * Sets total_buy - * - * @param string|null $total_buy total_buy - * - * @return self - */ - public function setTotalBuy($total_buy) - { - - if (is_null($total_buy)) { - throw new \InvalidArgumentException('non-nullable total_buy cannot be null'); - } - - $this->container['total_buy'] = $total_buy; - - return $this; - } - - /** - * Gets total_completion_rate - * - * @return string|null - */ - public function getTotalCompletionRate() - { - return $this->container['total_completion_rate']; - } - - /** - * Sets total_completion_rate - * - * @param string|null $total_completion_rate total_completion_rate - * - * @return self - */ - public function setTotalCompletionRate($total_completion_rate) - { - - if (is_null($total_completion_rate)) { - throw new \InvalidArgumentException('non-nullable total_completion_rate cannot be null'); - } - - $this->container['total_completion_rate'] = $total_completion_rate; - - return $this; - } - - /** - * Gets total_sell - * - * @return string|null - */ - public function getTotalSell() - { - return $this->container['total_sell']; - } - - /** - * Sets total_sell - * - * @param string|null $total_sell total_sell - * - * @return self - */ - public function setTotalSell($total_sell) - { - - if (is_null($total_sell)) { - throw new \InvalidArgumentException('non-nullable total_sell cannot be null'); - } - - $this->container['total_sell'] = $total_sell; - - return $this; - } - - /** - * Gets total_trades - * - * @return string|null - */ - public function getTotalTrades() - { - return $this->container['total_trades']; - } - - /** - * Sets total_trades - * - * @param string|null $total_trades total_trades - * - * @return self - */ - public function setTotalTrades($total_trades) - { - - if (is_null($total_trades)) { - throw new \InvalidArgumentException('non-nullable total_trades cannot be null'); - } - - $this->container['total_trades'] = $total_trades; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/Model/ModelInterface.php b/bitget-php-sdk-open-api/lib/Model/ModelInterface.php deleted file mode 100644 index af3d92dc..00000000 --- a/bitget-php-sdk-open-api/lib/Model/ModelInterface.php +++ /dev/null @@ -1,111 +0,0 @@ - - */ -class OrderPaymentDetailInfo implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderPaymentDetailInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'required' => 'bool', - 'type' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'required' => null, - 'type' => null, - 'value' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'name' => false, - 'required' => false, - 'type' => false, - 'value' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'required' => 'required', - 'type' => 'type', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'required' => 'setRequired', - 'type' => 'setType', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'required' => 'getRequired', - 'type' => 'getType', - 'value' => 'getValue' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('required', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('value', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return self - */ - public function setName($name) - { - - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets required - * - * @return bool|null - */ - public function getRequired() - { - return $this->container['required']; - } - - /** - * Sets required - * - * @param bool|null $required required - * - * @return self - */ - public function setRequired($required) - { - - if (is_null($required)) { - throw new \InvalidArgumentException('non-nullable required cannot be null'); - } - - $this->container['required'] = $required; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type type - * - * @return self - */ - public function setType($type) - { - - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets value - * - * @return string|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string|null $value value - * - * @return self - */ - public function setValue($value) - { - - if (is_null($value)) { - throw new \InvalidArgumentException('non-nullable value cannot be null'); - } - - $this->container['value'] = $value; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/bitget-php-sdk-open-api/lib/ObjectSerializer.php b/bitget-php-sdk-open-api/lib/ObjectSerializer.php deleted file mode 100644 index 74fbe949..00000000 --- a/bitget-php-sdk-open-api/lib/ObjectSerializer.php +++ /dev/null @@ -1,522 +0,0 @@ -format('Y-m-d') : $data->format(self::$dateTimeFormat); - } - - if (is_array($data)) { - foreach ($data as $property => $value) { - $data[$property] = self::sanitizeForSerialization($value); - } - return $data; - } - - if (is_object($data)) { - $values = []; - if ($data instanceof ModelInterface) { - $formats = $data::openAPIFormats(); - foreach ($data::openAPITypes() as $property => $openAPIType) { - $getter = $data::getters()[$property]; - $value = $data->$getter(); - if ($value !== null && !in_array($openAPIType, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { - $callable = [$openAPIType, 'getAllowableEnumValues']; - if (is_callable($callable)) { - /** array $callable */ - $allowedEnumTypes = $callable(); - if (!in_array($value, $allowedEnumTypes, true)) { - $imploded = implode("', '", $allowedEnumTypes); - throw new \InvalidArgumentException("Invalid value for enum '$openAPIType', must be one of: '$imploded'"); - } - } - } - if (($data::isNullable($property) && $data->isNullableSetToNull($property)) || $value !== null) { - $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIType, $formats[$property]); - } - } - } else { - foreach($data as $property => $value) { - $values[$property] = self::sanitizeForSerialization($value); - } - } - return (object)$values; - } else { - return (string)$data; - } - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param string $filename filename to be sanitized - * - * @return string the sanitized filename - */ - public static function sanitizeFilename($filename) - { - if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { - return $match[1]; - } else { - return $filename; - } - } - - /** - * Shorter timestamp microseconds to 6 digits length. - * - * @param string $timestamp Original timestamp - * - * @return string the shorten timestamp - */ - public static function sanitizeTimestamp($timestamp) - { - if (!is_string($timestamp)) return $timestamp; - - return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the path, by url-encoding. - * - * @param string $value a string which will be part of the path - * - * @return string the serialized object - */ - public static function toPathValue($value) - { - return rawurlencode(self::toString($value)); - } - - /** - * Take query parameter properties and turn it into an array suitable for - * native http_build_query or GuzzleHttp\Psr7\Query::build. - * - * @param mixed $value Parameter value - * @param string $paramName Parameter name - * @param string $openApiType OpenAPIType eg. array or object - * @param string $style Parameter serialization style - * @param bool $explode Parameter explode option - * @param bool $required Whether query param is required or not - * - * @return array - */ - public static function toQueryValue( - $value, - string $paramName, - string $openApiType = 'string', - string $style = 'form', - bool $explode = true, - bool $required = true - ): array { - if ( - empty($value) - && ($value !== false || $openApiType !== 'boolean') // if $value === false and $openApiType ==='boolean' it isn't empty - ) { - if ($required) { - return ["{$paramName}" => '']; - } else { - return []; - } - } - - # Handle DateTime objects in query - if($openApiType === "\\DateTime" && $value instanceof \DateTime) { - return ["{$paramName}" => $value->format(self::$dateTimeFormat)]; - } - - $query = []; - $value = (in_array($openApiType, ['object', 'array'], true)) ? (array)$value : $value; - - // since \GuzzleHttp\Psr7\Query::build fails with nested arrays - // need to flatten array first - $flattenArray = function ($arr, $name, &$result = []) use (&$flattenArray, $style, $explode) { - if (!is_array($arr)) return $arr; - - foreach ($arr as $k => $v) { - $prop = ($style === 'deepObject') ? $prop = "{$name}[{$k}]" : $k; - - if (is_array($v)) { - $flattenArray($v, $prop, $result); - } else { - if ($style !== 'deepObject' && !$explode) { - // push key itself - $result[] = $prop; - } - $result[$prop] = $v; - } - } - return $result; - }; - - $value = $flattenArray($value, $paramName); - - if ($openApiType === 'object' && ($style === 'deepObject' || $explode)) { - return $value; - } - - if ('boolean' === $openApiType && is_bool($value)) { - $value = self::convertBoolToQueryStringFormat($value); - } - - // handle style in serializeCollection - $query[$paramName] = ($explode) ? $value : self::serializeCollection((array)$value, $style); - - return $query; - } - - /** - * Convert boolean value to format for query string. - * - * @param bool $value Boolean value - * - * @return int|string Boolean value in format - */ - public static function convertBoolToQueryStringFormat(bool $value) - { - if (Configuration::BOOLEAN_FORMAT_STRING == Configuration::getDefaultConfiguration()->getBooleanFormatForQueryString()) { - return $value ? 'true' : 'false'; - } - - return (int) $value; - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the header. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string $value a string which will be part of the header - * - * @return string the header string - */ - public static function toHeaderValue($value) - { - $callable = [$value, 'toHeaderValue']; - if (is_callable($callable)) { - return $callable(); - } - - return self::toString($value); - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the http body (form parameter). If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string|\SplFileObject $value the value of the form parameter - * - * @return string the form string - */ - public static function toFormValue($value) - { - if ($value instanceof \SplFileObject) { - return $value->getRealPath(); - } else { - return self::toString($value); - } - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the parameter. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * If it's a boolean, convert it to "true" or "false". - * - * @param string|bool|\DateTime $value the value of the parameter - * - * @return string the header string - */ - public static function toString($value) - { - if ($value instanceof \DateTime) { // datetime in ISO8601 format - return $value->format(self::$dateTimeFormat); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; - } else { - return (string) $value; - } - } - - /** - * Serialize an array to a string. - * - * @param array $collection collection to serialize to a string - * @param string $style the format use for serialization (csv, - * ssv, tsv, pipes, multi) - * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array - * - * @return string - */ - public static function serializeCollection(array $collection, $style, $allowCollectionFormatMulti = false) - { - if ($allowCollectionFormatMulti && ('multi' === $style)) { - // http_build_query() almost does the job for us. We just - // need to fix the result of multidimensional arrays. - return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); - } - switch ($style) { - case 'pipeDelimited': - case 'pipes': - return implode('|', $collection); - - case 'tsv': - return implode("\t", $collection); - - case 'spaceDelimited': - case 'ssv': - return implode(' ', $collection); - - case 'simple': - case 'csv': - // Deliberate fall through. CSV is default format. - default: - return implode(',', $collection); - } - } - - /** - * Deserialize a JSON string into an object - * - * @param mixed $data object or primitive to be deserialized - * @param string $class class name is passed as a string - * @param string[] $httpHeaders HTTP headers - * @param string $discriminator discriminator if polymorphism is used - * - * @return object|array|null a single or an array of $class instances - */ - public static function deserialize($data, $class, $httpHeaders = null) - { - if (null === $data) { - return null; - } - - if (strcasecmp(substr($class, -2), '[]') === 0) { - $data = is_string($data) ? json_decode($data) : $data; - - if (!is_array($data)) { - throw new \InvalidArgumentException("Invalid array '$class'"); - } - - $subClass = substr($class, 0, -2); - $values = []; - foreach ($data as $key => $value) { - $values[] = self::deserialize($value, $subClass, null); - } - return $values; - } - - if (preg_match('/^(array<|map\[)/', $class)) { // for associative array e.g. array - $data = is_string($data) ? json_decode($data) : $data; - settype($data, 'array'); - $inner = substr($class, 4, -1); - $deserialized = []; - if (strrpos($inner, ",") !== false) { - $subClass_array = explode(',', $inner, 2); - $subClass = $subClass_array[1]; - foreach ($data as $key => $value) { - $deserialized[$key] = self::deserialize($value, $subClass, null); - } - } - return $deserialized; - } - - if ($class === 'object') { - settype($data, 'array'); - return $data; - } elseif ($class === 'mixed') { - settype($data, gettype($data)); - return $data; - } - - if ($class === '\DateTime') { - // Some API's return an invalid, empty string as a - // date-time property. DateTime::__construct() will return - // the current time for empty input which is probably not - // what is meant. The invalid empty string is probably to - // be interpreted as a missing field/value. Let's handle - // this graceful. - if (!empty($data)) { - try { - return new \DateTime($data); - } catch (\Exception $exception) { - // Some API's return a date-time with too high nanosecond - // precision for php's DateTime to handle. - // With provided regexp 6 digits of microseconds saved - return new \DateTime(self::sanitizeTimestamp($data)); - } - } else { - return null; - } - } - - if ($class === '\SplFileObject') { - $data = Utils::streamFor($data); - - /** @var \Psr\Http\Message\StreamInterface $data */ - - // determine file name - if ( - is_array($httpHeaders) - && array_key_exists('Content-Disposition', $httpHeaders) - && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match) - ) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); - } else { - $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); - } - - $file = fopen($filename, 'w'); - while ($chunk = $data->read(200)) { - fwrite($file, $chunk); - } - fclose($file); - - return new \SplFileObject($filename, 'r'); - } - - /** @psalm-suppress ParadoxicalCondition */ - if (in_array($class, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { - settype($data, $class); - return $data; - } - - - if (method_exists($class, 'getAllowableEnumValues')) { - if (!in_array($data, $class::getAllowableEnumValues(), true)) { - $imploded = implode("', '", $class::getAllowableEnumValues()); - throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); - } - return $data; - } else { - $data = is_string($data) ? json_decode($data) : $data; - - if (is_array($data)) { - $data = (object)$data; - } - - // If a discriminator is defined and points to a valid subclass, use it. - $discriminator = $class::DISCRIMINATOR; - if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\Bitget\Model\\' . $data->{$discriminator}; - if (is_subclass_of($subclass, $class)) { - $class = $subclass; - } - } - - /** @var ModelInterface $instance */ - $instance = new $class(); - foreach ($instance::openAPITypes() as $property => $type) { - $propertySetter = $instance::setters()[$property]; - - if (!isset($propertySetter)) { - continue; - } - - if (!isset($data->{$instance::attributeMap()[$property]})) { - if ($instance::isNullable($property)) { - $instance->$propertySetter(null); - } - - continue; - } - - if (isset($data->{$instance::attributeMap()[$property]})) { - $propertyValue = $data->{$instance::attributeMap()[$property]}; - $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); - } - } - return $instance; - } - } - - /** - * Native `http_build_query` wrapper. - * @see https://www.php.net/manual/en/function.http-build-query - * - * @param array|object $data May be an array or object containing properties. - * @param string $numeric_prefix If numeric indices are used in the base array and this parameter is provided, it will be prepended to the numeric index for elements in the base array only. - * @param string|null $arg_separator arg_separator.output is used to separate arguments but may be overridden by specifying this parameter. - * @param int $encoding_type Encoding type. By default, PHP_QUERY_RFC1738. - * - * @return string - */ - public static function buildQuery( - $data, - string $numeric_prefix = '', - ?string $arg_separator = null, - int $encoding_type = \PHP_QUERY_RFC3986 - ): string { - return \GuzzleHttp\Psr7\Query::build($data, $encoding_type); - } -} diff --git a/bitget-php-sdk-open-api/lib/Utils.php b/bitget-php-sdk-open-api/lib/Utils.php deleted file mode 100644 index a7c81b50..00000000 --- a/bitget-php-sdk-open-api/lib/Utils.php +++ /dev/null @@ -1,66 +0,0 @@ - $headers Request headers - * @param string|resource|StreamInterface|null $body Request body - * @param string $version Protocol version - * - * @return \GuzzleHttp\Psr7\Request - */ - public static function getAutoSignWarpHttpRequest(string $method, - $uri, - array $headers = [], - $body = '') - { - if (!($uri instanceof UriInterface)) { - $uri = new Uri($uri); - } - $timestamp = Utils::getTimestamp(); - $urlString = $uri->getPath().($uri->getQuery() ? "?{$uri->getQuery()}" : ''); - - if (isset($headers['SECRET-KEY'])) { - $sign = Utils::getSign($timestamp, $method, $urlString, $body, $headers['SECRET-KEY']); - } else { - $sign = 'not need sign'; - } - - $headers['ACCESS-SIGN'] = $sign; - $headers['ACCESS-TIMESTAMP'] = (string)$timestamp; - $headers['SECRET-KEY'] = ''; - - return new Request( - $method, - $uri, - $headers, - $body - ); - } - - public static function getSign($timestamp, $method, $requestPath, $body, $apiSecret): string - { - if ($body != null) { - - $message = (string)$timestamp . strtoupper($method) . $requestPath . (string)$body; - } else { - $message = (string)$timestamp . strtoupper($method) . $requestPath; - } - - return base64_encode(hash_hmac('sha256', $message, $apiSecret, true)); - } - - public static function getTimestamp(): int - { - return time() * 1000; - } -} \ No newline at end of file diff --git a/bitget-php-sdk-open-api/phpunit.xml.dist b/bitget-php-sdk-open-api/phpunit.xml.dist deleted file mode 100644 index 485899aa..00000000 --- a/bitget-php-sdk-open-api/phpunit.xml.dist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - ./lib/Api - ./lib/Model - - - - - ./test/Api - ./test/Model - - - - - - diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossAccountApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossAccountApiTest.php deleted file mode 100644 index 4eea6951..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossAccountApiTest.php +++ /dev/null @@ -1,241 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginCrossAccountAssets - * - * assets. - * - */ - public function testMarginCrossAccountAssets() - { - try { - $result = $this->apiInstance->marginCrossAccountAssets("USDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getCoin(), "USDT"); - $this->assertNotNull($item->getAvailable()); - $this->assertNotNull($item->getBorrow()); - $this->assertNotNull($item->getFrozen()); - $this->assertNotNull($item->getInterest()); - $this->assertNotNull($item->getModelName()); - $this->assertNotNull($item->getNet()); - $this->assertNotNull($item->getTotalAmount()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossAccountBorrow - * - * borrow. - * - */ - public function testMarginCrossAccountBorrow() - { - try { - $req = new \Bitget\Model\MarginCrossLimitRequest(); // - $req->setCoin("USDT"); - $req->setBorrowAmount("1"); - $result = $this->apiInstance->marginCrossAccountBorrow($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertNotNull($result->getData()->getBorrowAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossAccountMaxBorrowableAmount - * - * maxBorrowableAmount. - * - */ - public function testMarginCrossAccountMaxBorrowableAmount() - { - try { - $req = new \Bitget\Model\MarginCrossMaxBorrowRequest(); // - $req->setCoin("USDT"); - $result = $this->apiInstance->marginCrossAccountMaxBorrowableAmount($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertNotNull($result->getData()->getMaxBorrowableAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossAccountMaxTransferOutAmount - * - * maxTransferOutAmount. - * - */ - public function testMarginCrossAccountMaxTransferOutAmount() - { - try { - $result = $this->apiInstance->marginCrossAccountMaxTransferOutAmount("USDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertNotNull($result->getData()->getMaxTransferOutAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossAccountRepay - * - * repay. - * - */ - public function testMarginCrossAccountRepay() - { - try { - $req = new \Bitget\Model\MarginCrossRepayRequest(); // - $req->setCoin("USDT"); - $req->setRepayAmount("1"); - $result = $this->apiInstance->marginCrossAccountRepay($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertNotNull($result->getData()->getRepayAmount()); - $this->assertNotNull($result->getData()->getRemainDebtAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossAccountRiskRate - * - * riskRate. - * - */ - public function testMarginCrossAccountRiskRate() - { - try { - $result = $this->apiInstance->marginCrossAccountRiskRate(); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getRiskRate()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossBorrowApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossBorrowApiTest.php deleted file mode 100644 index d3ab5a32..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossBorrowApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossBorrowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for loanList - * - * list. - * - */ - public function testLoanList() - { - try { - $result = $this->apiInstance->crossLoanList("1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getAmount()); - $this->assertNotNull($item->getLoanId()); - $this->assertNotNull($item->getType()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossFinflowApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossFinflowApiTest.php deleted file mode 100644 index 3cff2d0a..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossFinflowApiTest.php +++ /dev/null @@ -1,115 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossFinflowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for finList - * - * list. - * - */ - public function testFinList() - { - try { - $result = $this->apiInstance->crossFinList("1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getBalance()); - $this->assertNotNull($item->getMarginId()); - $this->assertNotNull($item->getMarginType()); - $this->assertNotNull($item->getFee()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossInterestApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossInterestApiTest.php deleted file mode 100644 index afdae9f2..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossInterestApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossInterestApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for interestList - * - * list. - * - */ - public function testInterestList() - { - try { - $result = $this->apiInstance->crossInterestList("1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getType()); - $this->assertNotNull($item->getAmount()); - $this->assertNotNull($item->getInterestCoin()); - $this->assertNotNull($item->getInterestId()); - $this->assertNotNull($item->getInterestRate()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossLiquidationApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossLiquidationApiTest.php deleted file mode 100644 index 58b33526..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossLiquidationApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossLiquidationApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for liquidationList - * - * list. - * - */ - public function testLiquidationList() - { - try { - $result = $this->apiInstance->crossLiquidationList("1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getLiqFee()); - $this->assertNotNull($item->getLiqId()); - $this->assertNotNull($item->getLiqRisk()); - $this->assertNotNull($item->getTotalAssets()); - $this->assertNotNull($item->getTotalDebt()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossOrderApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossOrderApiTest.php deleted file mode 100644 index cb1f1c33..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossOrderApiTest.php +++ /dev/null @@ -1,345 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginCrossBatchCancelOrder - * - * batchCancelOrder. - * - */ - public function testMarginCrossBatchCancelOrder() - { - try { - $req = new \Bitget\Model\MarginOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setSide("buy"); - $req->setOrderType("limit"); - $req->setTimeInForce("gtc"); - $req->setPrice("1600"); - $req->setBaseQuantity("0.625"); - $req->setQuoteAmount("1000"); - $req->setLoanType("normal"); - $result = $this->apiInstance->marginCrossPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - - $req = new \Bitget\Model\MarginBatchCancelOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setOrderIds([$result->getData()->getOrderId()]); - $result = $this->apiInstance->marginCrossBatchCancelOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossBatchFills - * - * fills. - * - */ - public function testMarginCrossBatchFills() - { - try { - $result = $this->apiInstance->marginCrossFills("BTCUSDT","1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getFills()); - foreach ($result->getData()->getFills() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFeeCcy()); - $this->assertNotNull($item->getFees()); - $this->assertNotNull($item->getFillId()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossBatchHistoryOrders - * - * history. - * - */ - public function testMarginCrossBatchHistoryOrders() - { - try { - $result = $this->apiInstance->marginCrossHistoryOrders("BTCUSDT","1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderList()); - foreach ($result->getData()->getOrderList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getSymbol(), "BTCUSDT"); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getSource()); - $this->assertNotNull($item->getStatus()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getQuoteAmount()); - $this->assertNotNull($item->getBaseQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getLoanType()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getPrice()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossBatchOpenOrders - * - * openOrders. - * - */ - public function testMarginCrossBatchOpenOrders() - { - try { - $result = $this->apiInstance->marginCrossOpenOrders("BTCUSDT", "1679133422000" ); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderList()); - foreach ($result->getData()->getOrderList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getSymbol(), "BTCUSDT"); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getSource()); - $this->assertNotNull($item->getStatus()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getQuoteAmount()); - $this->assertNotNull($item->getBaseQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getLoanType()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getPrice()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossBatchPlaceOrder - * - * batchPlaceOrder. - * - */ - public function testMarginCrossBatchPlaceOrder() - { - try { - $item = new \Bitget\Model\MarginOrderRequest(); // - $item->setSymbol("BTCUSDT"); - $item->setSide("buy"); - $item->setOrderType("market"); - $item->setTimeInForce("gtc"); - $item->setQuoteAmount("10"); - $item->setLoanType("normal"); - $req = new \Bitget\Model\MarginBatchOrdersRequest(); - $req->setSymbol("BTCUSDT"); - $req->setOrderList([$item]); - $result = $this->apiInstance->marginCrossBatchPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossCancelOrder - * - * cancelOrder. - * - */ - public function testMarginCrossCancelOrder() - { - try { - $req = new \Bitget\Model\MarginOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setSide("buy"); - $req->setOrderType("limit"); - $req->setTimeInForce("gtc"); - $req->setPrice("1600"); - $req->setBaseQuantity("0.625"); - $req->setQuoteAmount("1000"); - $req->setLoanType("normal"); - $result = $this->apiInstance->marginCrossPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - - $req = new \Bitget\Model\MarginCancelOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setOrderId($result->getData()->getOrderId()); - $result = $this->apiInstance->marginCrossCancelOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossPlaceOrder - * - * placeOrder. - * - */ - public function testMarginCrossPlaceOrder() - { - try { - $placeOrderReq = new \Bitget\Model\MarginOrderRequest(); // - $placeOrderReq->setSymbol("BTCUSDT"); - $placeOrderReq->setSide("buy"); - $placeOrderReq->setOrderType("market"); - $placeOrderReq->setTimeInForce("gtc"); - $placeOrderReq->setQuoteAmount("10"); - $placeOrderReq->setLoanType("normal"); - $result = $this->apiInstance->marginCrossPlaceOrder($placeOrderReq); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} \ No newline at end of file diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossPublicApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossPublicApiTest.php deleted file mode 100644 index 5ed7eb67..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossPublicApiTest.php +++ /dev/null @@ -1,142 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossPublicApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginCrossPublicInterestRateAndLimit - * - * interestRateAndLimit. - * - */ - public function testMarginCrossPublicInterestRateAndLimit() - { - try { - $result = $this->apiInstance->marginCrossPublicInterestRateAndLimit("USDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getMaxBorrowableAmount()); - $this->assertNotNull($item->getBorrowAble()); - $this->assertNotNull($item->getLeverage()); - $this->assertNotNull($item->getTransferInAble()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginCrossPublicTierData - * - * tierData. - * - */ - public function testMarginCrossPublicTierData() - { - try { - $result = $this->apiInstance->marginCrossPublicTierData("USDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getLeverage()); - $this->assertNotNull($item->getMaxBorrowableAmount()); - $this->assertNotNull($item->getMaintainMarginRate()); - $this->assertNotNull($item->getTier()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginCrossRepayApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginCrossRepayApiTest.php deleted file mode 100644 index c788b953..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginCrossRepayApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossRepayApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for repayList - * - * list. - * - */ - public function testRepayList() - { - try { - $result = $this->apiInstance->crossRepayList("1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getInterest()); - $this->assertNotNull($item->getRepayId()); - $this->assertNotNull($item->getTotalAmount()); - $this->assertNotNull($item->getType()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedAccountApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedAccountApiTest.php deleted file mode 100644 index 14035741..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedAccountApiTest.php +++ /dev/null @@ -1,246 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedAccountApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginIsolatedAccountAssets - * - * assets. - * - */ - public function testMarginIsolatedAccountAssets() - { - try { - $result = $this->apiInstance->marginIsolatedAccountAssets("BTCUSDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getSymbol(), "BTCUSDT"); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getTotalAmount()); - $this->assertNotNull($item->getInterest()); - $this->assertNotNull($item->getFrozen()); - $this->assertNotNull($item->getBorrow()); - $this->assertNotNull($item->getNet()); - $this->assertNotNull($item->getAvailable()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedAccountBorrow - * - * borrow. - * - */ - public function testMarginIsolatedAccountBorrow() - { - try { - $req = new \Bitget\Model\MarginIsolatedLimitRequest(); // - $req->setCoin("USDT"); - $req->setSymbol("BTCUSDT"); - $req->setBorrowAmount("1"); - $result = $this->apiInstance->marginIsolatedAccountBorrow($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertEquals($result->getData()->getSymbol(), "BTCUSDT"); - $this->assertNotNull($result->getData()->getBorrowAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedAccountMaxBorrowableAmount - * - * maxBorrowableAmount. - * - */ - public function testMarginIsolatedAccountMaxBorrowableAmount() - { - try { - $req = new \Bitget\Model\MarginIsolatedMaxBorrowRequest(); // - $req->setCoin("USDT"); - $req->setSymbol("BTCUSDT"); - $result = $this->apiInstance->marginIsolatedAccountMaxBorrowableAmount($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertEquals($result->getData()->getSymbol(), "BTCUSDT"); - $this->assertNotNull($result->getData()->getMaxBorrowableAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedAccountMaxTransferOutAmount - * - * maxTransferOutAmount. - * - */ - public function testMarginIsolatedAccountMaxTransferOutAmount() - { - try { - $result = $this->apiInstance->marginIsolatedAccountMaxTransferOutAmount("USDT", "BTCUSDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertNotNull($result->getData()->getMaxTransferOutAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedAccountRepay - * - * repay. - * - */ - public function testMarginIsolatedAccountRepay() - { - try { - $req = new \Bitget\Model\MarginIsolatedRepayRequest(); // - $req->setCoin("USDT"); - $req->setSymbol("BTCUSDT"); - $req->setRepayAmount("1"); - $result = $this->apiInstance->marginIsolatedAccountRepay($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertEquals($result->getData()->getCoin(), "USDT"); - $this->assertEquals($result->getData()->getSymbol(), "BTCUSDT"); - $this->assertNotNull($result->getData()->getRepayAmount()); - $this->assertNotNull($result->getData()->getRemainDebtAmount()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedAccountRiskRate - * - * riskRate. - * - */ - public function testMarginIsolatedAccountRiskRate() - { - try { - $req = new \Bitget\Model\MarginIsolatedAssetsRiskRequest(); // - $req->setSymbol("BTCUSDT"); - - $result = $this->apiInstance->marginIsolatedAccountRiskRate($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedBorrowApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedBorrowApiTest.php deleted file mode 100644 index e662a1d3..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedBorrowApiTest.php +++ /dev/null @@ -1,113 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedBorrowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for loanList1 - * - * list. - * - */ - public function testLoanList() - { - try { - $result = $this->apiInstance->isolatedLoanList("BTCUSDT", "1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getAmount()); - $this->assertNotNull($item->getLoanId()); - $this->assertNotNull($item->getType()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedFinflowApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedFinflowApiTest.php deleted file mode 100644 index c6a0832c..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedFinflowApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedFinflowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for finList1 - * - * list. - * - */ - public function testFinList1() - { - try { - $result = $this->apiInstance->isolatedFinList("BTCUSDT", "1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getBalance()); - $this->assertNotNull($item->getMarginId()); - $this->assertNotNull($item->getMarginType()); - $this->assertNotNull($item->getFee()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedInterestApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedInterestApiTest.php deleted file mode 100644 index 02062f4f..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedInterestApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedLiquidationApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for interestList1 - * - * list. - * - */ - public function testInterestList1() - { - try { - $result = $this->apiInstance->isolatedLiquidationList("BTCUSDT", "1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getType()); - $this->assertNotNull($item->getAmount()); - $this->assertNotNull($item->getInterestCoin()); - $this->assertNotNull($item->getInterestId()); - $this->assertNotNull($item->getInterestRate()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedLiquidationApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedLiquidationApiTest.php deleted file mode 100644 index ad816970..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedLiquidationApiTest.php +++ /dev/null @@ -1,95 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginCrossBorrowApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for liquidationList1 - * - * list. - * - */ - public function testLiquidationList1() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedOrderApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedOrderApiTest.php deleted file mode 100644 index b044f947..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedOrderApiTest.php +++ /dev/null @@ -1,345 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedOrderApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginIsolatedBatchCancelOrder - * - * batchCancelOrder. - * - */ - public function testMarginIsolatedBatchCancelOrder() - { - try { - $req = new \Bitget\Model\MarginOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setSide("buy"); - $req->setOrderType("limit"); - $req->setTimeInForce("gtc"); - $req->setPrice("1600"); - $req->setBaseQuantity("0.625"); - $req->setQuoteAmount("1000"); - $req->setLoanType("normal"); - $result = $this->apiInstance->marginIsolatedPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - - $req = new \Bitget\Model\MarginBatchCancelOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setOrderIds([$result->getData()->getOrderId()]); - $result = $this->apiInstance->marginIsolatedBatchCancelOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedBatchPlaceOrder - * - * batchPlaceOrder. - * - */ - public function testMarginIsolatedBatchPlaceOrder() - { - try { - $item = new \Bitget\Model\MarginOrderRequest(); // - $item->setSymbol("BTCUSDT"); - $item->setSide("buy"); - $item->setOrderType("market"); - $item->setTimeInForce("gtc"); - $item->setQuoteAmount("10"); - $item->setLoanType("normal"); - $req = new \Bitget\Model\MarginBatchOrdersRequest(); - $req->setSymbol("BTCUSDT"); - $req->setOrderList([$item]); - $result = $this->apiInstance->marginIsolatedBatchPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedCancelOrder - * - * cancelOrder. - * - */ - public function testMarginIsolatedCancelOrder() - { - try { - $req = new \Bitget\Model\MarginOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setSide("buy"); - $req->setOrderType("limit"); - $req->setTimeInForce("gtc"); - $req->setPrice("1600"); - $req->setBaseQuantity("0.625"); - $req->setQuoteAmount("1000"); - $req->setLoanType("normal"); - $result = $this->apiInstance->marginIsolatedPlaceOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - - $req = new \Bitget\Model\MarginCancelOrderRequest(); // - $req->setSymbol("BTCUSDT"); - $req->setOrderId($result->getData()->getOrderId()); - $result = $this->apiInstance->marginIsolatedCancelOrder($req); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()[0]->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedFills - * - * fills. - * - */ - public function testMarginIsolatedFills() - { - try { - $result = $this->apiInstance->marginIsolatedFills("1679133422000", "BTCUSDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getFills()); - foreach ($result->getData()->getFills() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFeeCcy()); - $this->assertNotNull($item->getFees()); - $this->assertNotNull($item->getFillId()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedHistoryOrders - * - * history. - * - */ - public function testMarginIsolatedHistoryOrders() - { - try { - $result = $this->apiInstance->marginIsolatedHistoryOrders("1679133422000","BTCUSDT",); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderList()); - foreach ($result->getData()->getOrderList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getSymbol(), "BTCUSDT"); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getSource()); - $this->assertNotNull($item->getStatus()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getQuoteAmount()); - $this->assertNotNull($item->getBaseQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getLoanType()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getPrice()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedOpenOrders - * - * openOrders. - * - */ - public function testMarginIsolatedOpenOrders() - { - try { - $result = $this->apiInstance->marginIsolatedOpenOrders("BTCUSDT", "1679133422000" ); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderList()); - foreach ($result->getData()->getOrderList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertEquals($item->getSymbol(), "BTCUSDT"); - $this->assertNotNull($item->getSide()); - $this->assertNotNull($item->getSource()); - $this->assertNotNull($item->getStatus()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getQuoteAmount()); - $this->assertNotNull($item->getBaseQuantity()); - $this->assertNotNull($item->getFillPrice()); - $this->assertNotNull($item->getFillQuantity()); - $this->assertNotNull($item->getFillTotalAmount()); - $this->assertNotNull($item->getLoanType()); - $this->assertNotNull($item->getOrderType()); - $this->assertNotNull($item->getPrice()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedPlaceOrder - * - * placeOrder. - * - */ - public function testMarginIsolatedPlaceOrder() - { - try { - $placeOrderReq = new \Bitget\Model\MarginOrderRequest(); // - $placeOrderReq->setSymbol("BTCUSDT"); - $placeOrderReq->setSide("buy"); - $placeOrderReq->setOrderType("market"); - $placeOrderReq->setTimeInForce("gtc"); - $placeOrderReq->setQuoteAmount("10"); - $placeOrderReq->setLoanType("normal"); - $result = $this->apiInstance->marginIsolatedPlaceOrder($placeOrderReq); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderId()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedPublicApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedPublicApiTest.php deleted file mode 100644 index 9e3e0009..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedPublicApiTest.php +++ /dev/null @@ -1,142 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedPublicApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginIsolatedPublicInterestRateAndLimit - * - * interestRateAndLimit. - * - */ - public function testMarginIsolatedPublicInterestRateAndLimit() - { - try { - $result = $this->apiInstance->marginIsolatedPublicInterestRateAndLimit("BTCUSDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getSymbol()); - $this->assertNotNull($item->getBaseBorrowAble()); - $this->assertNotNull($item->getBaseDailyInterestRate()); - $this->assertNotNull($item->getBaseTransferInAble()); - $this->assertNotNull($item->getBaseVips()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for marginIsolatedPublicTierData - * - * tierData. - * - */ - public function testMarginIsolatedPublicTierData() - { - try { - $result = $this->apiInstance->marginIsolatedPublicTierData("BTCUSDT"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getLeverage()); - $this->assertNotNull($item->getBaseMaxBorrowableAmount()); - $this->assertNotNull($item->getQuoteMaxBorrowableAmount()); - $this->assertNotNull($item->getTier()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginIsolatedRepayApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginIsolatedRepayApiTest.php deleted file mode 100644 index f8dfbd40..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginIsolatedRepayApiTest.php +++ /dev/null @@ -1,114 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginIsolatedRepayApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for repayList1 - * - * list. - * - */ - public function testRepayList() - { - try { - $result = $this->apiInstance->isolateRepayList("BTCUSDT","1679133422000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getInterest()); - $this->assertNotNull($item->getRepayId()); - $this->assertNotNull($item->getTotalAmount()); - $this->assertNotNull($item->getType()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/MarginPublicApiTest.php b/bitget-php-sdk-open-api/test/Api/MarginPublicApiTest.php deleted file mode 100644 index ad6751c7..00000000 --- a/bitget-php-sdk-open-api/test/Api/MarginPublicApiTest.php +++ /dev/null @@ -1,113 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\MarginPublicApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for marginPublicCurrencies - * - * currencies. - * - */ - public function testMarginPublicCurrencies() - { - try { - $result = $this->apiInstance->marginPublicCurrencies(); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - foreach ($result->getData() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getSymbol()); - $this->assertNotNull($item->getBaseCoin()); - $this->assertNotNull($item->getLiquidationRiskRatio()); - $this->assertNotNull($item->getMaxIsolatedLeverage()); - $this->assertNotNull($item->getPriceScale()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Api/P2pMerchantApiTest.php b/bitget-php-sdk-open-api/test/Api/P2pMerchantApiTest.php deleted file mode 100644 index c2de4148..00000000 --- a/bitget-php-sdk-open-api/test/Api/P2pMerchantApiTest.php +++ /dev/null @@ -1,203 +0,0 @@ -config = \Bitget\Config::getDefaultConfig(); - $this->apiInstance = new \Bitget\Api\P2pMerchantApi( - // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. - // This is optional, `GuzzleHttp\Client` will be used as default. - new \GuzzleHttp\Client(), - $this->config - ); - } - - /** - * Clean up after running each test case - */ - public function tearDown(): void - { - } - - /** - * Clean up after running all test cases - */ - public static function tearDownAfterClass(): void - { - } - - /** - * Test case for merchantAdvList - * - * advList. - * - */ - public function testMerchantAdvList() - { - try { - $result = $this->apiInstance->merchantAdvList("1676260773000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getAdvList()); - foreach ($result->getData()->getAdvList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getType()); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getAdvId()); - $this->assertNotNull($item->getCoinPrecision()); - $this->assertNotNull($item->getTurnoverRate()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for merchantInfo - * - * merchantInfo. - * - */ - public function testMerchantInfo() - { - try { - $result = $this->apiInstance->merchantInfo(); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getAveragePayment()); - $this->assertNotNull($result->getData()->getEmail()); - $this->assertNotNull($result->getData()->getKycFlag()); - $this->assertNotNull($result->getData()->getMerchantId()); - $this->assertNotNull($result->getData()->getMobile()); - $this->assertNotNull($result->getData()->getRealName()); - $this->assertNotNull($result->getData()->getThirtyTrades()); - $this->assertNotNull($result->getData()->getTotalSell()); - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for merchantList - * - * merchantList. - * - */ - public function testMerchantList() - { - try { - $result = $this->apiInstance->merchantList(); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getResultList()); - foreach ($result->getData()->getResultList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getMerchantId()); - $this->assertNotNull($item->getRegisterTime()); - $this->assertNotNull($item->getIsOnline()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } - - /** - * Test case for merchantOrderList - * - * orderList. - * - */ - public function testMerchantOrderList() - { - try { - $result = $this->apiInstance->merchantOrderList("1680598302000"); - print_r($result); - - $this->assertNotNull($result); - $this->assertEquals($result->getCode(), "00000"); - $this->assertEquals($result->getMsg(), "success"); - $this->assertNotNull($result->getData()); - $this->assertNotNull($result->getData()->getOrderList()); - foreach ($result->getData()->getOrderList() as $item) { - print_r($item); - $this->assertNotNull($item); - $this->assertNotNull($item->getCoin()); - $this->assertNotNull($item->getType()); - $this->assertNotNull($item->getAmount()); - $this->assertNotNull($item->getOrderId()); - $this->assertNotNull($item->getAdvNo()); - } - } catch (Exception $e) { - echo 'Exception when calling : ', $e->getMessage(), PHP_EOL; - } - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.php deleted file mode 100644 index 2067756f..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossAssetsPopulationResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossLevelResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossLevelResultTest.php deleted file mode 100644 index a94ffa5f..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossLevelResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.php deleted file mode 100644 index 8687db94..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginCrossRateAndLimitResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.php deleted file mode 100644 index 883011b0..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.php deleted file mode 100644 index 2bbae082..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.php deleted file mode 100644 index a80c8373..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedLevelResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.php deleted file mode 100644 index 4b867ad9..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginSystemResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginSystemResultTest.php deleted file mode 100644 index e1dfcb1e..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfListOfMarginSystemResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchCancelOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchCancelOrderResultTest.php deleted file mode 100644 index 6646a57c..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchCancelOrderResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.php deleted file mode 100644 index d1a08b8e..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginBatchPlaceOrderResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsResultTest.php deleted file mode 100644 index 38ffcc39..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.php deleted file mode 100644 index 27943c6a..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossAssetsRiskResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.php deleted file mode 100644 index 9f94dbb1..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossBorrowLimitResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossFinFlowResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossFinFlowResultTest.php deleted file mode 100644 index 5b8a74ff..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossFinFlowResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.php deleted file mode 100644 index 733aadfa..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossMaxBorrowResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossRepayResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossRepayResultTest.php deleted file mode 100644 index acef0d64..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginCrossRepayResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginInterestInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginInterestInfoResultTest.php deleted file mode 100644 index 543a0194..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginInterestInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedAssetsResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedAssetsResultTest.php deleted file mode 100644 index a71a8788..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedAssetsResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.php deleted file mode 100644 index 40470053..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedBorrowLimitResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.php deleted file mode 100644 index a89d9995..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedFinFlowResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.php deleted file mode 100644 index 15a87f14..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedInterestInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.php deleted file mode 100644 index f254d28e..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLiquidationInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.php deleted file mode 100644 index c1c23c67..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedLoanInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.php deleted file mode 100644 index 3ac69a49..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedMaxBorrowResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.php deleted file mode 100644 index a4c8d974..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayResultTest.php deleted file mode 100644 index 816b5cbb..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginIsolatedRepayResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLiquidationInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLiquidationInfoResultTest.php deleted file mode 100644 index 4e4090e6..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLiquidationInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLoanInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLoanInfoResultTest.php deleted file mode 100644 index 4842acae..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginLoanInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginOpenOrderInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginOpenOrderInfoResultTest.php deleted file mode 100644 index 3175f173..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginOpenOrderInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginPlaceOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginPlaceOrderResultTest.php deleted file mode 100644 index e3392604..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginPlaceOrderResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginRepayInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginRepayInfoResultTest.php deleted file mode 100644 index 933c46a0..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginRepayInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginTradeDetailInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginTradeDetailInfoResultTest.php deleted file mode 100644 index 68bd8274..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMarginTradeDetailInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantAdvResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantAdvResultTest.php deleted file mode 100644 index 01044f43..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantAdvResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantInfoResultTest.php deleted file mode 100644 index 63992302..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantInfoResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantOrderResultTest.php deleted file mode 100644 index 3f34944a..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantOrderResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantPersonInfoTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantPersonInfoTest.php deleted file mode 100644 index a40ac1dc..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfMerchantPersonInfoTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "data" - */ - public function testPropertyData() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfVoidTest.php b/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfVoidTest.php deleted file mode 100644 index 06517d2d..00000000 --- a/bitget-php-sdk-open-api/test/Model/ApiResponseResultOfVoidTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "code" - */ - public function testPropertyCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "msg" - */ - public function testPropertyMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "request_time" - */ - public function testPropertyRequestTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/FiatPaymentDetailInfoTest.php b/bitget-php-sdk-open-api/test/Model/FiatPaymentDetailInfoTest.php deleted file mode 100644 index 34a1e719..00000000 --- a/bitget-php-sdk-open-api/test/Model/FiatPaymentDetailInfoTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "name" - */ - public function testPropertyName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "required" - */ - public function testPropertyRequired() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/FiatPaymentInfoTest.php b/bitget-php-sdk-open-api/test/Model/FiatPaymentInfoTest.php deleted file mode 100644 index be571691..00000000 --- a/bitget-php-sdk-open-api/test/Model/FiatPaymentInfoTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_id" - */ - public function testPropertyPaymentId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_info" - */ - public function testPropertyPaymentInfo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_method" - */ - public function testPropertyPaymentMethod() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderRequestTest.php deleted file mode 100644 index 408a9e95..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderRequestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oids" - */ - public function testPropertyClientOids() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_ids" - */ - public function testPropertyOrderIds() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderResultTest.php deleted file mode 100644 index 98d5669e..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginBatchCancelOrderResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "failure" - */ - public function testPropertyFailure() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginBatchOrdersRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginBatchOrdersRequestTest.php deleted file mode 100644 index 2193b9a2..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginBatchOrdersRequestTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "channel_api_code" - */ - public function testPropertyChannelApiCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ip" - */ - public function testPropertyIp() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_list" - */ - public function testPropertyOrderList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderFailureResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderFailureResultTest.php deleted file mode 100644 index 898f086d..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderFailureResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "error_msg" - */ - public function testPropertyErrorMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderResultTest.php deleted file mode 100644 index 0d2d186f..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginBatchPlaceOrderResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "failure" - */ - public function testPropertyFailure() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderFailureResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCancelOrderFailureResultTest.php deleted file mode 100644 index aa336c76..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderFailureResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "error_msg" - */ - public function testPropertyErrorMsg() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginCancelOrderRequestTest.php deleted file mode 100644 index dc50d42a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderRequestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCancelOrderResultTest.php deleted file mode 100644 index cea4ecc0..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCancelOrderResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsPopulationResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsPopulationResultTest.php deleted file mode 100644 index 7079265b..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsPopulationResultTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "available" - */ - public function testPropertyAvailable() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow" - */ - public function testPropertyBorrow() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "frozen" - */ - public function testPropertyFrozen() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest" - */ - public function testPropertyInterest() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "net" - */ - public function testPropertyNet() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_amount" - */ - public function testPropertyTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsResultTest.php deleted file mode 100644 index 01d5b4e8..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_transfer_out_amount" - */ - public function testPropertyMaxTransferOutAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsRiskResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsRiskResultTest.php deleted file mode 100644 index b47b2696..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossAssetsRiskResultTest.php +++ /dev/null @@ -1,90 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "risk_rate" - */ - public function testPropertyRiskRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossBorrowLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossBorrowLimitResultTest.php deleted file mode 100644 index 8a7b3368..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossBorrowLimitResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow_amount" - */ - public function testPropertyBorrowAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowInfoTest.php deleted file mode 100644 index 4f151c13..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowInfoTest.php +++ /dev/null @@ -1,144 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "balance" - */ - public function testPropertyBalance() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fee" - */ - public function testPropertyFee() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "margin_id" - */ - public function testPropertyMarginId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "margin_type" - */ - public function testPropertyMarginType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowResultTest.php deleted file mode 100644 index 30560563..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossFinFlowResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossLevelResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossLevelResultTest.php deleted file mode 100644 index 85c9d930..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossLevelResultTest.php +++ /dev/null @@ -1,126 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "leverage" - */ - public function testPropertyLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "maintain_margin_rate" - */ - public function testPropertyMaintainMarginRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_borrowable_amount" - */ - public function testPropertyMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "tier" - */ - public function testPropertyTier() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossLimitRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossLimitRequestTest.php deleted file mode 100644 index 180d2866..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossLimitRequestTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow_amount" - */ - public function testPropertyBorrowAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowRequestTest.php deleted file mode 100644 index 9a4ac316..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowRequestTest.php +++ /dev/null @@ -1,90 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowResultTest.php deleted file mode 100644 index f99c3f2b..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossMaxBorrowResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_borrowable_amount" - */ - public function testPropertyMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossRateAndLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossRateAndLimitResultTest.php deleted file mode 100644 index 175fcd5a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossRateAndLimitResultTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow_able" - */ - public function testPropertyBorrowAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "daily_interest_rate" - */ - public function testPropertyDailyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "leverage" - */ - public function testPropertyLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_borrowable_amount" - */ - public function testPropertyMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "transfer_in_able" - */ - public function testPropertyTransferInAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "vips" - */ - public function testPropertyVips() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "yearly_interest_rate" - */ - public function testPropertyYearlyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossRepayRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossRepayRequestTest.php deleted file mode 100644 index b2b2af7a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossRepayRequestTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_amount" - */ - public function testPropertyRepayAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossRepayResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossRepayResultTest.php deleted file mode 100644 index 37596a77..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossRepayResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "remain_debt_amount" - */ - public function testPropertyRemainDebtAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_amount" - */ - public function testPropertyRepayAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginCrossVipResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginCrossVipResultTest.php deleted file mode 100644 index c73b5104..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginCrossVipResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "daily_interest_rate" - */ - public function testPropertyDailyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "discount_rate" - */ - public function testPropertyDiscountRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "level" - */ - public function testPropertyLevel() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "yearly_interest_rate" - */ - public function testPropertyYearlyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginInterestInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginInterestInfoResultTest.php deleted file mode 100644 index 4ebc1b5f..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginInterestInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginInterestInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginInterestInfoTest.php deleted file mode 100644 index 4a5a4f4a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginInterestInfoTest.php +++ /dev/null @@ -1,144 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_coin" - */ - public function testPropertyInterestCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_id" - */ - public function testPropertyInterestId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_rate" - */ - public function testPropertyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_coin" - */ - public function testPropertyLoanCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsPopulationResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsPopulationResultTest.php deleted file mode 100644 index 9e0df91d..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsPopulationResultTest.php +++ /dev/null @@ -1,162 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "available" - */ - public function testPropertyAvailable() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow" - */ - public function testPropertyBorrow() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "frozen" - */ - public function testPropertyFrozen() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest" - */ - public function testPropertyInterest() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "net" - */ - public function testPropertyNet() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_amount" - */ - public function testPropertyTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsResultTest.php deleted file mode 100644 index 77ac91d7..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_transfer_out_amount" - */ - public function testPropertyMaxTransferOutAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskRequestTest.php deleted file mode 100644 index 63265362..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskRequestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "page_num" - */ - public function testPropertyPageNum() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "page_size" - */ - public function testPropertyPageSize() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskResultTest.php deleted file mode 100644 index 8474c321..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedAssetsRiskResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "risk_rate" - */ - public function testPropertyRiskRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedBorrowLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedBorrowLimitResultTest.php deleted file mode 100644 index 513bc547..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedBorrowLimitResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow_amount" - */ - public function testPropertyBorrowAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowInfoTest.php deleted file mode 100644 index 07a6f459..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowInfoTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "balance" - */ - public function testPropertyBalance() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fee" - */ - public function testPropertyFee() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "margin_id" - */ - public function testPropertyMarginId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "margin_type" - */ - public function testPropertyMarginType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowResultTest.php deleted file mode 100644 index 545dcca8..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedFinFlowResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoResultTest.php deleted file mode 100644 index 38799488..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoTest.php deleted file mode 100644 index 6711f892..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedInterestInfoTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_coin" - */ - public function testPropertyInterestCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_id" - */ - public function testPropertyInterestId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest_rate" - */ - public function testPropertyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_coin" - */ - public function testPropertyLoanCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLevelResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLevelResultTest.php deleted file mode 100644 index a9a1854e..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLevelResultTest.php +++ /dev/null @@ -1,162 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_coin" - */ - public function testPropertyBaseCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_max_borrowable_amount" - */ - public function testPropertyBaseMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "init_rate" - */ - public function testPropertyInitRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "leverage" - */ - public function testPropertyLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "maintain_margin_rate" - */ - public function testPropertyMaintainMarginRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_coin" - */ - public function testPropertyQuoteCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_max_borrowable_amount" - */ - public function testPropertyQuoteMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "tier" - */ - public function testPropertyTier() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLimitRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLimitRequestTest.php deleted file mode 100644 index 1944e859..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLimitRequestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "borrow_amount" - */ - public function testPropertyBorrowAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoResultTest.php deleted file mode 100644 index 9db84d99..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoTest.php deleted file mode 100644 index 085b382d..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLiquidationInfoTest.php +++ /dev/null @@ -1,162 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_end_time" - */ - public function testPropertyLiqEndTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_fee" - */ - public function testPropertyLiqFee() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_id" - */ - public function testPropertyLiqId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_risk" - */ - public function testPropertyLiqRisk() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_start_time" - */ - public function testPropertyLiqStartTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_assets" - */ - public function testPropertyTotalAssets() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_debt" - */ - public function testPropertyTotalDebt() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoResultTest.php deleted file mode 100644 index 8c447330..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoTest.php deleted file mode 100644 index de01a8d5..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedLoanInfoTest.php +++ /dev/null @@ -1,135 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_id" - */ - public function testPropertyLoanId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowRequestTest.php deleted file mode 100644 index 0a322aae..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowRequestTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowResultTest.php deleted file mode 100644 index d3fcf9ed..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedMaxBorrowResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_borrowable_amount" - */ - public function testPropertyMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRateAndLimitResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedRateAndLimitResultTest.php deleted file mode 100644 index 2e5dcb72..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRateAndLimitResultTest.php +++ /dev/null @@ -1,225 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_borrow_able" - */ - public function testPropertyBaseBorrowAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_coin" - */ - public function testPropertyBaseCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_daily_interest_rate" - */ - public function testPropertyBaseDailyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_max_borrowable_amount" - */ - public function testPropertyBaseMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_transfer_in_able" - */ - public function testPropertyBaseTransferInAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_vips" - */ - public function testPropertyBaseVips() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_yearly_interest_rate" - */ - public function testPropertyBaseYearlyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "leverage" - */ - public function testPropertyLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_borrow_able" - */ - public function testPropertyQuoteBorrowAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_coin" - */ - public function testPropertyQuoteCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_daily_interest_rate" - */ - public function testPropertyQuoteDailyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_max_borrowable_amount" - */ - public function testPropertyQuoteMaxBorrowableAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_transfer_in_able" - */ - public function testPropertyQuoteTransferInAble() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_vips" - */ - public function testPropertyQuoteVips() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_yearly_interest_rate" - */ - public function testPropertyQuoteYearlyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoResultTest.php deleted file mode 100644 index b2372632..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoTest.php deleted file mode 100644 index 80fdf6d5..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayInfoTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest" - */ - public function testPropertyInterest() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_id" - */ - public function testPropertyRepayId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_amount" - */ - public function testPropertyTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayRequestTest.php deleted file mode 100644 index a967cf53..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayRequestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_amount" - */ - public function testPropertyRepayAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayResultTest.php deleted file mode 100644 index 3cdb18c7..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedRepayResultTest.php +++ /dev/null @@ -1,126 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "remain_debt_amount" - */ - public function testPropertyRemainDebtAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_amount" - */ - public function testPropertyRepayAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginIsolatedVipResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginIsolatedVipResultTest.php deleted file mode 100644 index 95f8c725..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginIsolatedVipResultTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "daily_interest_rate" - */ - public function testPropertyDailyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "discount_rate" - */ - public function testPropertyDiscountRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "level" - */ - public function testPropertyLevel() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "yearly_interest_rate" - */ - public function testPropertyYearlyInterestRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoResultTest.php deleted file mode 100644 index d9b05de4..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoTest.php deleted file mode 100644 index bc47b22a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginLiquidationInfoTest.php +++ /dev/null @@ -1,153 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_end_time" - */ - public function testPropertyLiqEndTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_fee" - */ - public function testPropertyLiqFee() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_id" - */ - public function testPropertyLiqId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_risk" - */ - public function testPropertyLiqRisk() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liq_start_time" - */ - public function testPropertyLiqStartTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_assets" - */ - public function testPropertyTotalAssets() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_debt" - */ - public function testPropertyTotalDebt() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginLoanInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginLoanInfoResultTest.php deleted file mode 100644 index ba584d8a..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginLoanInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginLoanInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginLoanInfoTest.php deleted file mode 100644 index 8fe89278..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginLoanInfoTest.php +++ /dev/null @@ -1,126 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_id" - */ - public function testPropertyLoanId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginOpenOrderInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginOpenOrderInfoResultTest.php deleted file mode 100644 index fd9ce7cc..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginOpenOrderInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_list" - */ - public function testPropertyOrderList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginOrderInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginOrderInfoTest.php deleted file mode 100644 index 65c7f979..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginOrderInfoTest.php +++ /dev/null @@ -1,216 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_quantity" - */ - public function testPropertyBaseQuantity() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_price" - */ - public function testPropertyFillPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_quantity" - */ - public function testPropertyFillQuantity() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_total_amount" - */ - public function testPropertyFillTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_type" - */ - public function testPropertyLoanType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_type" - */ - public function testPropertyOrderType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "price" - */ - public function testPropertyPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_amount" - */ - public function testPropertyQuoteAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "side" - */ - public function testPropertySide() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "source" - */ - public function testPropertySource() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginOrderRequestTest.php b/bitget-php-sdk-open-api/test/Model/MarginOrderRequestTest.php deleted file mode 100644 index e522ed75..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginOrderRequestTest.php +++ /dev/null @@ -1,180 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_quantity" - */ - public function testPropertyBaseQuantity() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "channel_api_code" - */ - public function testPropertyChannelApiCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ip" - */ - public function testPropertyIp() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "loan_type" - */ - public function testPropertyLoanType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_type" - */ - public function testPropertyOrderType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "price" - */ - public function testPropertyPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_amount" - */ - public function testPropertyQuoteAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "side" - */ - public function testPropertySide() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "time_in_force" - */ - public function testPropertyTimeInForce() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginPlaceOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginPlaceOrderResultTest.php deleted file mode 100644 index 53ef51c0..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginPlaceOrderResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "client_oid" - */ - public function testPropertyClientOid() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginRepayInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginRepayInfoResultTest.php deleted file mode 100644 index 0c9136fa..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginRepayInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginRepayInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginRepayInfoTest.php deleted file mode 100644 index 8503994c..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginRepayInfoTest.php +++ /dev/null @@ -1,144 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "interest" - */ - public function testPropertyInterest() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "repay_id" - */ - public function testPropertyRepayId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_amount" - */ - public function testPropertyTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginSystemResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginSystemResultTest.php deleted file mode 100644 index d27d8730..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginSystemResultTest.php +++ /dev/null @@ -1,234 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "base_coin" - */ - public function testPropertyBaseCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "is_borrowable" - */ - public function testPropertyIsBorrowable() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "liquidation_risk_ratio" - */ - public function testPropertyLiquidationRiskRatio() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "maker_fee_rate" - */ - public function testPropertyMakerFeeRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_cross_leverage" - */ - public function testPropertyMaxCrossLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_isolated_leverage" - */ - public function testPropertyMaxIsolatedLeverage() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_trade_amount" - */ - public function testPropertyMaxTradeAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_trade_amount" - */ - public function testPropertyMinTradeAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_trade_usdt" - */ - public function testPropertyMinTradeUsdt() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "price_scale" - */ - public function testPropertyPriceScale() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quantity_scale" - */ - public function testPropertyQuantityScale() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "quote_coin" - */ - public function testPropertyQuoteCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "symbol" - */ - public function testPropertySymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "taker_fee_rate" - */ - public function testPropertyTakerFeeRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "user_min_borrow" - */ - public function testPropertyUserMinBorrow() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "warning_risk_ratio" - */ - public function testPropertyWarningRiskRatio() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoResultTest.php deleted file mode 100644 index fc01a165..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoResultTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fills" - */ - public function testPropertyFills() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_id" - */ - public function testPropertyMaxId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoTest.php b/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoTest.php deleted file mode 100644 index 62fcf124..00000000 --- a/bitget-php-sdk-open-api/test/Model/MarginTradeDetailInfoTest.php +++ /dev/null @@ -1,171 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fee_ccy" - */ - public function testPropertyFeeCcy() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fees" - */ - public function testPropertyFees() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_id" - */ - public function testPropertyFillId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_price" - */ - public function testPropertyFillPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_quantity" - */ - public function testPropertyFillQuantity() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fill_total_amount" - */ - public function testPropertyFillTotalAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_type" - */ - public function testPropertyOrderType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "side" - */ - public function testPropertySide() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantAdvInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantAdvInfoTest.php deleted file mode 100644 index 6ca76c44..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantAdvInfoTest.php +++ /dev/null @@ -1,279 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "adv_id" - */ - public function testPropertyAdvId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "adv_no" - */ - public function testPropertyAdvNo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin_precision" - */ - public function testPropertyCoinPrecision() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "deal_amount" - */ - public function testPropertyDealAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fiat_code" - */ - public function testPropertyFiatCode() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fiat_precision" - */ - public function testPropertyFiatPrecision() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fiat_symbol" - */ - public function testPropertyFiatSymbol() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "hide" - */ - public function testPropertyHide() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_amount" - */ - public function testPropertyMaxAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_amount" - */ - public function testPropertyMinAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "pay_duration" - */ - public function testPropertyPayDuration() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_method" - */ - public function testPropertyPaymentMethod() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "price" - */ - public function testPropertyPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "remark" - */ - public function testPropertyRemark() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "turnover_num" - */ - public function testPropertyTurnoverNum() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "turnover_rate" - */ - public function testPropertyTurnoverRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "user_limit" - */ - public function testPropertyUserLimit() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantAdvResultTest.php b/bitget-php-sdk-open-api/test/Model/MerchantAdvResultTest.php deleted file mode 100644 index 006e9e24..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantAdvResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "adv_list" - */ - public function testPropertyAdvList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantAdvUserLimitInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantAdvUserLimitInfoTest.php deleted file mode 100644 index d6f5d29d..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantAdvUserLimitInfoTest.php +++ /dev/null @@ -1,135 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "allow_merchant_place" - */ - public function testPropertyAllowMerchantPlace() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "country" - */ - public function testPropertyCountry() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "max_complete_num" - */ - public function testPropertyMaxCompleteNum() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_complete_num" - */ - public function testPropertyMinCompleteNum() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "place_order_num" - */ - public function testPropertyPlaceOrderNum() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_complete_rate" - */ - public function testPropertyThirtyCompleteRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantInfoResultTest.php b/bitget-php-sdk-open-api/test/Model/MerchantInfoResultTest.php deleted file mode 100644 index f6b97fdc..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantInfoResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "result_list" - */ - public function testPropertyResultList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantInfoTest.php deleted file mode 100644 index ee27a7be..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantInfoTest.php +++ /dev/null @@ -1,207 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "average_payment" - */ - public function testPropertyAveragePayment() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "average_realese" - */ - public function testPropertyAverageRealese() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "is_online" - */ - public function testPropertyIsOnline() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "merchant_id" - */ - public function testPropertyMerchantId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "nick_name" - */ - public function testPropertyNickName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "register_time" - */ - public function testPropertyRegisterTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_buy" - */ - public function testPropertyThirtyBuy() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_completion_rate" - */ - public function testPropertyThirtyCompletionRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_sell" - */ - public function testPropertyThirtySell() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_trades" - */ - public function testPropertyThirtyTrades() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_buy" - */ - public function testPropertyTotalBuy() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_completion_rate" - */ - public function testPropertyTotalCompletionRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_sell" - */ - public function testPropertyTotalSell() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_trades" - */ - public function testPropertyTotalTrades() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantOrderInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantOrderInfoTest.php deleted file mode 100644 index 8bd0808c..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantOrderInfoTest.php +++ /dev/null @@ -1,243 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "adv_no" - */ - public function testPropertyAdvNo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "amount" - */ - public function testPropertyAmount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "buyer_real_name" - */ - public function testPropertyBuyerRealName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "coin" - */ - public function testPropertyCoin() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "count" - */ - public function testPropertyCount() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "ctime" - */ - public function testPropertyCtime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "fiat" - */ - public function testPropertyFiat() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_id" - */ - public function testPropertyOrderId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_no" - */ - public function testPropertyOrderNo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_info" - */ - public function testPropertyPaymentInfo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "payment_time" - */ - public function testPropertyPaymentTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "price" - */ - public function testPropertyPrice() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "release_coin_time" - */ - public function testPropertyReleaseCoinTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "represent_time" - */ - public function testPropertyRepresentTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "seller_real_name" - */ - public function testPropertySellerRealName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "withdraw_time" - */ - public function testPropertyWithdrawTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantOrderPaymentInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantOrderPaymentInfoTest.php deleted file mode 100644 index d5e94cf2..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantOrderPaymentInfoTest.php +++ /dev/null @@ -1,108 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "paymethod_id" - */ - public function testPropertyPaymethodId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "paymethod_info" - */ - public function testPropertyPaymethodInfo() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "paymethod_name" - */ - public function testPropertyPaymethodName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantOrderResultTest.php b/bitget-php-sdk-open-api/test/Model/MerchantOrderResultTest.php deleted file mode 100644 index a3bb3fb2..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantOrderResultTest.php +++ /dev/null @@ -1,99 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "min_id" - */ - public function testPropertyMinId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "order_list" - */ - public function testPropertyOrderList() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/MerchantPersonInfoTest.php b/bitget-php-sdk-open-api/test/Model/MerchantPersonInfoTest.php deleted file mode 100644 index 21ededd2..00000000 --- a/bitget-php-sdk-open-api/test/Model/MerchantPersonInfoTest.php +++ /dev/null @@ -1,252 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "average_payment" - */ - public function testPropertyAveragePayment() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "average_realese" - */ - public function testPropertyAverageRealese() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "email" - */ - public function testPropertyEmail() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "email_bind_flag" - */ - public function testPropertyEmailBindFlag() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "kyc_flag" - */ - public function testPropertyKycFlag() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "merchant_id" - */ - public function testPropertyMerchantId() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "mobile" - */ - public function testPropertyMobile() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "mobile_bind_flag" - */ - public function testPropertyMobileBindFlag() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "nick_name" - */ - public function testPropertyNickName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "real_name" - */ - public function testPropertyRealName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "register_time" - */ - public function testPropertyRegisterTime() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_buy" - */ - public function testPropertyThirtyBuy() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_completion_rate" - */ - public function testPropertyThirtyCompletionRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_sell" - */ - public function testPropertyThirtySell() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "thirty_trades" - */ - public function testPropertyThirtyTrades() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_buy" - */ - public function testPropertyTotalBuy() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_completion_rate" - */ - public function testPropertyTotalCompletionRate() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_sell" - */ - public function testPropertyTotalSell() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "total_trades" - */ - public function testPropertyTotalTrades() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-php-sdk-open-api/test/Model/OrderPaymentDetailInfoTest.php b/bitget-php-sdk-open-api/test/Model/OrderPaymentDetailInfoTest.php deleted file mode 100644 index e236206a..00000000 --- a/bitget-php-sdk-open-api/test/Model/OrderPaymentDetailInfoTest.php +++ /dev/null @@ -1,117 +0,0 @@ -markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "name" - */ - public function testPropertyName() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "required" - */ - public function testPropertyRequired() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "type" - */ - public function testPropertyType() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } - - /** - * Test attribute "value" - */ - public function testPropertyValue() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } -} diff --git a/bitget-python-sdk-open-api/README.md b/bitget-python-sdk-open-api/README.md deleted file mode 100644 index 338d512c..00000000 --- a/bitget-python-sdk-open-api/README.md +++ /dev/null @@ -1,499 +0,0 @@ -# bitget_python_sdk_open_api -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 2.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.PythonClientCodegen - -## Requirements. - -Python >=3.7 - -## Migration from other generators like python and python-legacy - -### Changes -1. This generator uses spec case for all (object) property names and parameter names. - - So if the spec has a property name like camelCase, it will use camelCase rather than camel_case - - So you will need to update how you input and read properties to use spec case -2. Endpoint parameters are stored in dictionaries to prevent collisions (explanation below) - - So you will need to update how you pass data in to endpoints -3. Endpoint responses now include the original response, the deserialized response body, and (todo)the deserialized headers - - So you will need to update your code to use response.body to access deserialized data -4. All validated data is instantiated in an instance that subclasses all validated Schema classes and Decimal/str/list/tuple/frozendict/NoneClass/BoolClass/bytes/io.FileIO - - This means that you can use isinstance to check if a payload validated against a schema class - - This means that no data will be of type None/True/False - - ingested None will subclass NoneClass - - ingested True will subclass BoolClass - - ingested False will subclass BoolClass - - So if you need to check is True/False/None, instead use instance.is_true_oapg()/.is_false_oapg()/.is_none_oapg() -5. All validated class instances are immutable except for ones based on io.File - - This is because if properties were changed after validation, that validation would no longer apply - - So no changing values or property values after a class has been instantiated -6. String + Number types with formats - - String type data is stored as a string and if you need to access types based on its format like date, - date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_oapg, .as_datetime_oapg, .as_decimal_oapg, .as_uuid_oapg - - type number + format: See .as_float_oapg, .as_int_oapg - - this was done because openapi/json-schema defines constraints. string data may be type string with no format - keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_oapg/as_datetime_oapg/as_decimal_oapg/as_uuid_oapg - - So if you need to access a number format based type, use as_int_oapg/as_float_oapg -7. Property access on AnyType(type unset) or object(dict) schemas - - Only required keys with valid python names are properties like .someProp and have type hints - - All optional keys may not exist, so properties are not defined for them - - One can access optional values with dict_instance['optionalProp'] and KeyError will be raised if it does not exist - - Use get_item_oapg if you need a way to always get a value whether or not the key exists - - If the key does not exist, schemas.unset is returned from calling dict_instance.get_item_oapg('optionalProp') - - All required and optional keys have type hints for this method, and @typing.overload is used - - A type hint is also generated for additionalProperties accessed using this method - - So you will need to update you code to use some_instance['optionalProp'] to access optional property - and additionalProperty values -8. The location of the api classes has changed - - Api classes are located in your_package.apis.tags.some_api - - This change was made to eliminate redundant code generation - - Legacy generators generated the same endpoint twice if it had > 1 tag on it - - This generator defines an endpoint in one class, then inherits that class to generate - apis by tags and by paths - - This change reduces code and allows quicker run time if you use the path apis - - path apis are at your_package.apis.paths.some_path - - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api - - So you will need to update your import paths to the api classes - -### Why are Oapg and _oapg used in class and method names? -Classes can have arbitrarily named properties set on them -Endpoints can have arbitrary operationId method names set -For those reasons, I use the prefix Oapg and _oapg to greatly reduce the likelihood of collisions -on protected + public classes/methods. -oapg stands for OpenApi Python Generator. - -### Object property spec case -This was done because when payloads are ingested, they can be validated against N number of schemas. -If the input signature used a different property name then that has mutated the payload. -So SchemaA and SchemaB must both see the camelCase spec named variable. -Also it is possible to send in two properties, named camelCase and camel_case in the same payload. -That use case should be support so spec case is used. - -### Parameter spec case -Parameters can be included in different locations including: -- query -- path -- header -- cookie - -Any of those parameters could use the same parameter names, so if every parameter -was included as an endpoint parameter in a function signature, they would collide. -For that reason, each of those inputs have been separated out into separate typed dictionaries: -- query_params -- path_params -- header_params -- cookie_params - -So when updating your code, you will need to pass endpoint parameters in using those -dictionaries. - -### Endpoint responses -Endpoint responses have been enriched to now include more information. -Any response reom an endpoint will now include the following properties: -response: urllib3.HTTPResponse -body: typing.Union[Unset, Schema] -headers: typing.Union[Unset, TODO] -Note: response header deserialization has not yet been added - - -## Installation & Usage -### pip install - -If the python package is hosted on a repository, you can install directly using: - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import bitget -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import bitget -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python - -import time -import bitget -from pprint import pprint -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - coin = "USDT" # str | coin - - try: - # assets - api_response = api_instance.margin_cross_account_assets(coin) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_assets: %s\n" % e) -``` - -```python -import unittest -import bitget -from bitget.paths.api_broker_v1_account_info import get # noqa: E501 -from bitget import configuration, schemas, api_client -from .. import ApiTestMixin - -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) -configuration.api_key['ACCESS_KEY'] = 'your value' -configuration.api_key['ACCESS_PASSPHRASE'] = 'your value' -configuration.api_key['SECRET_KEY'] = 'your value' - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - # api_instance = broker_account_api.BrokerAccountApi(api_client) - from bitget.apis.tags import mix_order_api - api_instance = mix_order_api.MixOrderApi(api_client) - from bitget.model.mix_place_order_request import MixPlaceOrderRequest - try: - req = MixPlaceOrderRequest( - symbol="BTCUSDT_UMCBL", - marginCoin="USDT", - side="open_long", - size= 0.01, - orderType="market", - timeInForceValue="normal", - ) - api_response = api_instance.place_order(req) - print(api_response) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - try: - query_params = { - 'symbol':"BTCUSDT_UMCBL", - 'startTime': "1671402175000", - 'endTime': "1673517445000" - } - api_response = api_instance.mix_order_fills( - query_params=query_params, - ) - print(api_response) - except bitget.ApiException as e: - print("Exception when calling mix_order_fills: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.bitget.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*MarginCrossAccountApi* | [**margin_cross_account_assets**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_assets) | **get** /api/margin/v1/cross/account/assets | assets -*MarginCrossAccountApi* | [**margin_cross_account_borrow**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_borrow) | **post** /api/margin/v1/cross/account/borrow | borrow -*MarginCrossAccountApi* | [**margin_cross_account_max_borrowable_amount**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_max_borrowable_amount) | **post** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -*MarginCrossAccountApi* | [**margin_cross_account_max_transfer_out_amount**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_max_transfer_out_amount) | **get** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -*MarginCrossAccountApi* | [**margin_cross_account_repay**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_repay) | **post** /api/margin/v1/cross/account/repay | repay -*MarginCrossAccountApi* | [**margin_cross_account_risk_rate**](docs/apis/tags/MarginCrossAccountApi.md#margin_cross_account_risk_rate) | **get** /api/margin/v1/cross/account/riskRate | riskRate -*MarginCrossAccountApi* | [**void**](docs/apis/tags/MarginCrossAccountApi.md#void) | **get** /api/margin/v1/cross/account/void | void -*MarginCrossBorrowApi* | [**cross_loan_list**](docs/apis/tags/MarginCrossBorrowApi.md#cross_loan_list) | **get** /api/margin/v1/cross/loan/list | list -*MarginCrossFinflowApi* | [**cross_fin_list**](docs/apis/tags/MarginCrossFinflowApi.md#cross_fin_list) | **get** /api/margin/v1/cross/fin/list | list -*MarginCrossInterestApi* | [**cross_interest_list**](docs/apis/tags/MarginCrossInterestApi.md#cross_interest_list) | **get** /api/margin/v1/cross/interest/list | list -*MarginCrossLiquidationApi* | [**cross_liquidation_list**](docs/apis/tags/MarginCrossLiquidationApi.md#cross_liquidation_list) | **get** /api/margin/v1/cross/liquidation/list | list -*MarginCrossOrderApi* | [**margin_cross_batch_cancel_order**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_batch_cancel_order) | **post** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -*MarginCrossOrderApi* | [**margin_cross_batch_place_order**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_batch_place_order) | **post** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -*MarginCrossOrderApi* | [**margin_cross_cancel_order**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_cancel_order) | **post** /api/margin/v1/cross/order/cancelOrder | cancelOrder -*MarginCrossOrderApi* | [**margin_cross_fills**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_fills) | **get** /api/margin/v1/cross/order/fills | fills -*MarginCrossOrderApi* | [**margin_cross_history_orders**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_history_orders) | **get** /api/margin/v1/cross/order/history | history -*MarginCrossOrderApi* | [**margin_cross_open_orders**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_open_orders) | **get** /api/margin/v1/cross/order/openOrders | openOrders -*MarginCrossOrderApi* | [**margin_cross_place_order**](docs/apis/tags/MarginCrossOrderApi.md#margin_cross_place_order) | **post** /api/margin/v1/cross/order/placeOrder | placeOrder -*MarginCrossPublicApi* | [**margin_cross_public_interest_rate_and_limit**](docs/apis/tags/MarginCrossPublicApi.md#margin_cross_public_interest_rate_and_limit) | **get** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -*MarginCrossPublicApi* | [**margin_cross_public_tier_data**](docs/apis/tags/MarginCrossPublicApi.md#margin_cross_public_tier_data) | **get** /api/margin/v1/cross/public/tierData | tierData -*MarginCrossRepayApi* | [**cross_repay_list**](docs/apis/tags/MarginCrossRepayApi.md#cross_repay_list) | **get** /api/margin/v1/cross/repay/list | list -*MarginIsolatedAccountApi* | [**margin_isolated_account_assets**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_assets) | **get** /api/margin/v1/isolated/account/assets | assets -*MarginIsolatedAccountApi* | [**margin_isolated_account_borrow**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_borrow) | **post** /api/margin/v1/isolated/account/borrow | borrow -*MarginIsolatedAccountApi* | [**margin_isolated_account_max_borrowable_amount**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_max_borrowable_amount) | **post** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -*MarginIsolatedAccountApi* | [**margin_isolated_account_max_transfer_out_amount**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_max_transfer_out_amount) | **get** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -*MarginIsolatedAccountApi* | [**margin_isolated_account_repay**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_repay) | **post** /api/margin/v1/isolated/account/repay | repay -*MarginIsolatedAccountApi* | [**margin_isolated_account_risk_rate**](docs/apis/tags/MarginIsolatedAccountApi.md#margin_isolated_account_risk_rate) | **post** /api/margin/v1/isolated/account/riskRate | riskRate -*MarginIsolatedBorrowApi* | [**isolated_loan_list**](docs/apis/tags/MarginIsolatedBorrowApi.md#isolated_loan_list) | **get** /api/margin/v1/isolated/loan/list | list -*MarginIsolatedFinflowApi* | [**isolated_fin_list**](docs/apis/tags/MarginIsolatedFinflowApi.md#isolated_fin_list) | **get** /api/margin/v1/isolated/fin/list | list -*MarginIsolatedInterestApi* | [**isolated_interest_list**](docs/apis/tags/MarginIsolatedInterestApi.md#isolated_interest_list) | **get** /api/margin/v1/isolated/interest/list | list -*MarginIsolatedLiquidationApi* | [**isolated_liquidation_list**](docs/apis/tags/MarginIsolatedLiquidationApi.md#isolated_liquidation_list) | **get** /api/margin/v1/isolated/liquidation/list | list -*MarginIsolatedOrderApi* | [**margin_isolated_batch_cancel_order**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_batch_cancel_order) | **post** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -*MarginIsolatedOrderApi* | [**margin_isolated_batch_place_order**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_batch_place_order) | **post** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -*MarginIsolatedOrderApi* | [**margin_isolated_cancel_order**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_cancel_order) | **post** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -*MarginIsolatedOrderApi* | [**margin_isolated_fills**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_fills) | **get** /api/margin/v1/isolated/order/fills | fills -*MarginIsolatedOrderApi* | [**margin_isolated_history_orders**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_history_orders) | **get** /api/margin/v1/isolated/order/history | history -*MarginIsolatedOrderApi* | [**margin_isolated_open_orders**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_open_orders) | **get** /api/margin/v1/isolated/order/openOrders | openOrders -*MarginIsolatedOrderApi* | [**margin_isolated_place_order**](docs/apis/tags/MarginIsolatedOrderApi.md#margin_isolated_place_order) | **post** /api/margin/v1/isolated/order/placeOrder | placeOrder -*MarginIsolatedPublicApi* | [**margin_isolated_public_interest_rate_and_limit**](docs/apis/tags/MarginIsolatedPublicApi.md#margin_isolated_public_interest_rate_and_limit) | **get** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -*MarginIsolatedPublicApi* | [**margin_isolated_public_tier_data**](docs/apis/tags/MarginIsolatedPublicApi.md#margin_isolated_public_tier_data) | **get** /api/margin/v1/isolated/public/tierData | tierData -*MarginIsolatedRepayApi* | [**isolate_repay_list**](docs/apis/tags/MarginIsolatedRepayApi.md#isolate_repay_list) | **get** /api/margin/v1/isolated/repay/list | list -*MarginPublicApi* | [**margin_public_currencies**](docs/apis/tags/MarginPublicApi.md#margin_public_currencies) | **get** /api/margin/v1/public/currencies | currencies -*P2pMerchantApi* | [**merchant_adv_list**](docs/apis/tags/P2pMerchantApi.md#merchant_adv_list) | **get** /api/p2p/v1/merchant/advList | advList -*P2pMerchantApi* | [**merchant_info**](docs/apis/tags/P2pMerchantApi.md#merchant_info) | **get** /api/p2p/v1/merchant/merchantInfo | merchantInfo -*P2pMerchantApi* | [**merchant_list**](docs/apis/tags/P2pMerchantApi.md#merchant_list) | **get** /api/p2p/v1/merchant/merchantList | merchantList -*P2pMerchantApi* | [**merchant_order_list**](docs/apis/tags/P2pMerchantApi.md#merchant_order_list) | **get** /api/p2p/v1/merchant/orderList | orderList - -## Documentation For Models - - - [ApiResponseResultOfListOfMarginCrossAssetsPopulationResult](docs/models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginCrossLevelResult](docs/models/ApiResponseResultOfListOfMarginCrossLevelResult.md) - - [ApiResponseResultOfListOfMarginCrossRateAndLimitResult](docs/models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult](docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) - - [ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult](docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) - - [ApiResponseResultOfListOfMarginIsolatedLevelResult](docs/models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) - - [ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult](docs/models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) - - [ApiResponseResultOfListOfMarginSystemResult](docs/models/ApiResponseResultOfListOfMarginSystemResult.md) - - [ApiResponseResultOfMarginBatchCancelOrderResult](docs/models/ApiResponseResultOfMarginBatchCancelOrderResult.md) - - [ApiResponseResultOfMarginBatchPlaceOrderResult](docs/models/ApiResponseResultOfMarginBatchPlaceOrderResult.md) - - [ApiResponseResultOfMarginCrossAssetsResult](docs/models/ApiResponseResultOfMarginCrossAssetsResult.md) - - [ApiResponseResultOfMarginCrossAssetsRiskResult](docs/models/ApiResponseResultOfMarginCrossAssetsRiskResult.md) - - [ApiResponseResultOfMarginCrossBorrowLimitResult](docs/models/ApiResponseResultOfMarginCrossBorrowLimitResult.md) - - [ApiResponseResultOfMarginCrossFinFlowResult](docs/models/ApiResponseResultOfMarginCrossFinFlowResult.md) - - [ApiResponseResultOfMarginCrossMaxBorrowResult](docs/models/ApiResponseResultOfMarginCrossMaxBorrowResult.md) - - [ApiResponseResultOfMarginCrossRepayResult](docs/models/ApiResponseResultOfMarginCrossRepayResult.md) - - [ApiResponseResultOfMarginInterestInfoResult](docs/models/ApiResponseResultOfMarginInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedAssetsResult](docs/models/ApiResponseResultOfMarginIsolatedAssetsResult.md) - - [ApiResponseResultOfMarginIsolatedBorrowLimitResult](docs/models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) - - [ApiResponseResultOfMarginIsolatedFinFlowResult](docs/models/ApiResponseResultOfMarginIsolatedFinFlowResult.md) - - [ApiResponseResultOfMarginIsolatedInterestInfoResult](docs/models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLiquidationInfoResult](docs/models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) - - [ApiResponseResultOfMarginIsolatedLoanInfoResult](docs/models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) - - [ApiResponseResultOfMarginIsolatedMaxBorrowResult](docs/models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) - - [ApiResponseResultOfMarginIsolatedRepayInfoResult](docs/models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) - - [ApiResponseResultOfMarginIsolatedRepayResult](docs/models/ApiResponseResultOfMarginIsolatedRepayResult.md) - - [ApiResponseResultOfMarginLiquidationInfoResult](docs/models/ApiResponseResultOfMarginLiquidationInfoResult.md) - - [ApiResponseResultOfMarginLoanInfoResult](docs/models/ApiResponseResultOfMarginLoanInfoResult.md) - - [ApiResponseResultOfMarginOpenOrderInfoResult](docs/models/ApiResponseResultOfMarginOpenOrderInfoResult.md) - - [ApiResponseResultOfMarginPlaceOrderResult](docs/models/ApiResponseResultOfMarginPlaceOrderResult.md) - - [ApiResponseResultOfMarginRepayInfoResult](docs/models/ApiResponseResultOfMarginRepayInfoResult.md) - - [ApiResponseResultOfMarginTradeDetailInfoResult](docs/models/ApiResponseResultOfMarginTradeDetailInfoResult.md) - - [ApiResponseResultOfMerchantAdvResult](docs/models/ApiResponseResultOfMerchantAdvResult.md) - - [ApiResponseResultOfMerchantInfoResult](docs/models/ApiResponseResultOfMerchantInfoResult.md) - - [ApiResponseResultOfMerchantOrderResult](docs/models/ApiResponseResultOfMerchantOrderResult.md) - - [ApiResponseResultOfMerchantPersonInfo](docs/models/ApiResponseResultOfMerchantPersonInfo.md) - - [ApiResponseResultOfVoid](docs/models/ApiResponseResultOfVoid.md) - - [FiatPaymentDetailInfo](docs/models/FiatPaymentDetailInfo.md) - - [FiatPaymentInfo](docs/models/FiatPaymentInfo.md) - - [MarginBatchCancelOrderRequest](docs/models/MarginBatchCancelOrderRequest.md) - - [MarginBatchCancelOrderResult](docs/models/MarginBatchCancelOrderResult.md) - - [MarginBatchOrdersRequest](docs/models/MarginBatchOrdersRequest.md) - - [MarginBatchPlaceOrderFailureResult](docs/models/MarginBatchPlaceOrderFailureResult.md) - - [MarginBatchPlaceOrderResult](docs/models/MarginBatchPlaceOrderResult.md) - - [MarginCancelOrderFailureResult](docs/models/MarginCancelOrderFailureResult.md) - - [MarginCancelOrderRequest](docs/models/MarginCancelOrderRequest.md) - - [MarginCancelOrderResult](docs/models/MarginCancelOrderResult.md) - - [MarginCrossAssetsPopulationResult](docs/models/MarginCrossAssetsPopulationResult.md) - - [MarginCrossAssetsResult](docs/models/MarginCrossAssetsResult.md) - - [MarginCrossAssetsRiskResult](docs/models/MarginCrossAssetsRiskResult.md) - - [MarginCrossBorrowLimitResult](docs/models/MarginCrossBorrowLimitResult.md) - - [MarginCrossFinFlowInfo](docs/models/MarginCrossFinFlowInfo.md) - - [MarginCrossFinFlowResult](docs/models/MarginCrossFinFlowResult.md) - - [MarginCrossLevelResult](docs/models/MarginCrossLevelResult.md) - - [MarginCrossLimitRequest](docs/models/MarginCrossLimitRequest.md) - - [MarginCrossMaxBorrowRequest](docs/models/MarginCrossMaxBorrowRequest.md) - - [MarginCrossMaxBorrowResult](docs/models/MarginCrossMaxBorrowResult.md) - - [MarginCrossRateAndLimitResult](docs/models/MarginCrossRateAndLimitResult.md) - - [MarginCrossRepayRequest](docs/models/MarginCrossRepayRequest.md) - - [MarginCrossRepayResult](docs/models/MarginCrossRepayResult.md) - - [MarginCrossVipResult](docs/models/MarginCrossVipResult.md) - - [MarginInterestInfo](docs/models/MarginInterestInfo.md) - - [MarginInterestInfoResult](docs/models/MarginInterestInfoResult.md) - - [MarginIsolatedAssetsPopulationResult](docs/models/MarginIsolatedAssetsPopulationResult.md) - - [MarginIsolatedAssetsResult](docs/models/MarginIsolatedAssetsResult.md) - - [MarginIsolatedAssetsRiskRequest](docs/models/MarginIsolatedAssetsRiskRequest.md) - - [MarginIsolatedAssetsRiskResult](docs/models/MarginIsolatedAssetsRiskResult.md) - - [MarginIsolatedBorrowLimitResult](docs/models/MarginIsolatedBorrowLimitResult.md) - - [MarginIsolatedFinFlowInfo](docs/models/MarginIsolatedFinFlowInfo.md) - - [MarginIsolatedFinFlowResult](docs/models/MarginIsolatedFinFlowResult.md) - - [MarginIsolatedInterestInfo](docs/models/MarginIsolatedInterestInfo.md) - - [MarginIsolatedInterestInfoResult](docs/models/MarginIsolatedInterestInfoResult.md) - - [MarginIsolatedLevelResult](docs/models/MarginIsolatedLevelResult.md) - - [MarginIsolatedLimitRequest](docs/models/MarginIsolatedLimitRequest.md) - - [MarginIsolatedLiquidationInfo](docs/models/MarginIsolatedLiquidationInfo.md) - - [MarginIsolatedLiquidationInfoResult](docs/models/MarginIsolatedLiquidationInfoResult.md) - - [MarginIsolatedLoanInfo](docs/models/MarginIsolatedLoanInfo.md) - - [MarginIsolatedLoanInfoResult](docs/models/MarginIsolatedLoanInfoResult.md) - - [MarginIsolatedMaxBorrowRequest](docs/models/MarginIsolatedMaxBorrowRequest.md) - - [MarginIsolatedMaxBorrowResult](docs/models/MarginIsolatedMaxBorrowResult.md) - - [MarginIsolatedRateAndLimitResult](docs/models/MarginIsolatedRateAndLimitResult.md) - - [MarginIsolatedRepayInfo](docs/models/MarginIsolatedRepayInfo.md) - - [MarginIsolatedRepayInfoResult](docs/models/MarginIsolatedRepayInfoResult.md) - - [MarginIsolatedRepayRequest](docs/models/MarginIsolatedRepayRequest.md) - - [MarginIsolatedRepayResult](docs/models/MarginIsolatedRepayResult.md) - - [MarginIsolatedVipResult](docs/models/MarginIsolatedVipResult.md) - - [MarginLiquidationInfo](docs/models/MarginLiquidationInfo.md) - - [MarginLiquidationInfoResult](docs/models/MarginLiquidationInfoResult.md) - - [MarginLoanInfo](docs/models/MarginLoanInfo.md) - - [MarginLoanInfoResult](docs/models/MarginLoanInfoResult.md) - - [MarginOpenOrderInfoResult](docs/models/MarginOpenOrderInfoResult.md) - - [MarginOrderInfo](docs/models/MarginOrderInfo.md) - - [MarginOrderRequest](docs/models/MarginOrderRequest.md) - - [MarginPlaceOrderResult](docs/models/MarginPlaceOrderResult.md) - - [MarginRepayInfo](docs/models/MarginRepayInfo.md) - - [MarginRepayInfoResult](docs/models/MarginRepayInfoResult.md) - - [MarginSystemResult](docs/models/MarginSystemResult.md) - - [MarginTradeDetailInfo](docs/models/MarginTradeDetailInfo.md) - - [MarginTradeDetailInfoResult](docs/models/MarginTradeDetailInfoResult.md) - - [MerchantAdvInfo](docs/models/MerchantAdvInfo.md) - - [MerchantAdvResult](docs/models/MerchantAdvResult.md) - - [MerchantAdvUserLimitInfo](docs/models/MerchantAdvUserLimitInfo.md) - - [MerchantInfo](docs/models/MerchantInfo.md) - - [MerchantInfoResult](docs/models/MerchantInfoResult.md) - - [MerchantOrderInfo](docs/models/MerchantOrderInfo.md) - - [MerchantOrderPaymentInfo](docs/models/MerchantOrderPaymentInfo.md) - - [MerchantOrderResult](docs/models/MerchantOrderResult.md) - - [MerchantPersonInfo](docs/models/MerchantPersonInfo.md) - - [OrderPaymentDetailInfo](docs/models/OrderPaymentDetailInfo.md) - -## Documentation For Authorization - - -## ACCESS_KEY - -- **Type**: API key -- **API key parameter name**: ACCESS-KEY -- **Location**: HTTP header - - -## ACCESS_PASSPHRASE - -- **Type**: API key -- **API key parameter name**: ACCESS-PASSPHRASE -- **Location**: HTTP header - - -## ACCESS_SIGN - -- **Type**: API key -- **API key parameter name**: ACCESS-SIGN -- **Location**: HTTP header - - -## ACCESS_TIMESTAMP - -- **Type**: API key -- **API key parameter name**: ACCESS-TIMESTAMP -- **Location**: HTTP header - - Authentication schemes defined for the API: -## SECRET_KEY - -- **Type**: API key -- **API key parameter name**: SECRET-KEY -- **Location**: HTTP header - - -## Author - - - - - - - - - - - - - - - - - - - - -## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in bitget.apis and bitget.models may fail with a -RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: - -Solution 1: -Use specific imports for apis and models like: -- `from bitget.apis.default_api import DefaultApi` -- `from bitget.model.pet import Pet` - -Solution 1: -Before importing the package, adjust the maximum recursion limit as shown below: -``` -import sys -sys.setrecursionlimit(1500) -import bitget -from bitget.apis import * -from bitget.models import * -``` diff --git a/bitget-python-sdk-open-api/bitget/__init__.py b/bitget-python-sdk-open-api/bitget/__init__.py deleted file mode 100644 index 5e7d4511..00000000 --- a/bitget-python-sdk-open-api/bitget/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -__version__ = "1.0.0" - -# import ApiClient -from bitget.api_client import ApiClient - -# import Configuration -from bitget.configuration import Configuration - -# import exceptions -from bitget.exceptions import OpenApiException -from bitget.exceptions import ApiAttributeError -from bitget.exceptions import ApiTypeError -from bitget.exceptions import ApiValueError -from bitget.exceptions import ApiKeyError -from bitget.exceptions import ApiException diff --git a/bitget-python-sdk-open-api/bitget/api_client.py b/bitget-python-sdk-open-api/bitget/api_client.py deleted file mode 100644 index 75b8c901..00000000 --- a/bitget-python-sdk-open-api/bitget/api_client.py +++ /dev/null @@ -1,1507 +0,0 @@ -# coding: utf-8 -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -from decimal import Decimal -import enum -import email -import json -import os -import io -import atexit -from multiprocessing.pool import ThreadPool -import re -import tempfile -import typing -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict -from urllib.parse import urlparse, quote -from urllib3.fields import RequestField as RequestFieldBase - -import frozendict - -from bitget import rest -from bitget.configuration import Configuration -from bitget.exceptions import ApiTypeError, ApiValueError -from bitget.schemas import ( - NoneClass, - BoolClass, - Schema, - FileIO, - BinarySchema, - date, - datetime, - none_type, - Unset, - unset, -) - - -class RequestField(RequestFieldBase): - def __eq__(self, other): - if not isinstance(other, RequestField): - return False - return self.__dict__ == other.__dict__ - - -class JSONEncoder(json.JSONEncoder): - compact_separators = (',', ':') - - def default(self, obj): - if isinstance(obj, str): - return str(obj) - elif isinstance(obj, float): - return float(obj) - elif isinstance(obj, int): - return int(obj) - elif isinstance(obj, Decimal): - if obj.as_tuple().exponent >= 0: - return int(obj) - return float(obj) - elif isinstance(obj, NoneClass): - return None - elif isinstance(obj, BoolClass): - return bool(obj) - elif isinstance(obj, (dict, frozendict.frozendict)): - return {key: self.default(val) for key, val in obj.items()} - elif isinstance(obj, (list, tuple)): - return [self.default(item) for item in obj] - raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) - - -class ParameterInType(enum.Enum): - QUERY = 'query' - HEADER = 'header' - PATH = 'path' - COOKIE = 'cookie' - - -class ParameterStyle(enum.Enum): - MATRIX = 'matrix' - LABEL = 'label' - FORM = 'form' - SIMPLE = 'simple' - SPACE_DELIMITED = 'spaceDelimited' - PIPE_DELIMITED = 'pipeDelimited' - DEEP_OBJECT = 'deepObject' - - -class PrefixSeparatorIterator: - # A class to store prefixes and separators for rfc6570 expansions - - def __init__(self, prefix: str, separator: str): - self.prefix = prefix - self.separator = separator - self.first = True - if separator in {'.', '|', '%20'}: - item_separator = separator - else: - item_separator = ',' - self.item_separator = item_separator - - def __iter__(self): - return self - - def __next__(self): - if self.first: - self.first = False - return self.prefix - return self.separator - - -class ParameterSerializerBase: - @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - return False - - @staticmethod - def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): - """ - Get representation if str/float/int/None/items in list/ values in dict - None is returned if an item is undefined, use cases are value= - - None - - [] - - {} - - [None, None None] - - {'a': None, 'b': None} - """ - if type(in_data) in {str, float, int}: - if percent_encode: - return quote(str(in_data)) - return str(in_data) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, list) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, dict) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) - - @staticmethod - def _to_dict(name: str, value: str): - return {name: value} - - @classmethod - def __ref6570_str_float_int_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): - return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = '=' if named_parameter_expansion else '' - return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value - - @classmethod - def __ref6570_list_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] - item_values = [v for v in item_values if v is not None] - if not item_values: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = '=' if named_parameter_expansion else '' - if not explode: - return ( - next(prefix_separator_iterator) + - var_name_piece + - value_pair_equals + - prefix_separator_iterator.item_separator.join(item_values) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [var_name_piece + value_pair_equals + val for val in item_values] - ) - - @classmethod - def __ref6570_dict_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} - in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} - if not in_data_transformed: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = '=' if named_parameter_expansion else '' - if not explode: - return ( - next(prefix_separator_iterator) + - var_name_piece + value_pair_equals + - prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join( - item_pair - ) for item_pair in in_data_transformed.items() - ) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + '=' + val for key, val in in_data_transformed.items()] - ) - - @classmethod - def _ref6570_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator - ) -> str: - """ - Separator is for separate variables like dict with explode true, not for array item separation - """ - named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} - var_name_piece = variable_name if named_parameter_expansion else '' - if type(in_data) in {str, float, int}: - return cls.__ref6570_str_float_int_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - elif isinstance(in_data, list): - return cls.__ref6570_list_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - elif isinstance(in_data, dict): - return cls.__ref6570_dict_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - # bool, bytes, etc - raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) - - -class StyleFormSerializer(ParameterSerializerBase): - @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - if style is ParameterStyle.FORM: - return True - return super()._get_default_explode(style) - - def _serialize_form( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None - ) -> str: - if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator('', '&') - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator - ) - - -class StyleSimpleSerializer(ParameterSerializerBase): - - def _serialize_simple( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool - ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator('', ',') - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator - ) - - -class JSONDetector: - """ - Works for: - application/json - application/json; charset=UTF-8 - application/json-patch+json - application/geo+json - """ - __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") - - @classmethod - def _content_type_is_json(cls, content_type: str) -> bool: - if cls.__json_content_type_pattern.match(content_type): - return True - return False - - -@dataclass -class ParameterBase(JSONDetector): - name: str - in_type: ParameterInType - required: bool - style: typing.Optional[ParameterStyle] - explode: typing.Optional[bool] - allow_reserved: typing.Optional[bool] - schema: typing.Optional[typing.Type[Schema]] - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] - - __style_to_in_type = { - ParameterStyle.MATRIX: {ParameterInType.PATH}, - ParameterStyle.LABEL: {ParameterInType.PATH}, - ParameterStyle.FORM: {ParameterInType.QUERY, ParameterInType.COOKIE}, - ParameterStyle.SIMPLE: {ParameterInType.PATH, ParameterInType.HEADER}, - ParameterStyle.SPACE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.PIPE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.DEEP_OBJECT: {ParameterInType.QUERY}, - } - __in_type_to_default_style = { - ParameterInType.QUERY: ParameterStyle.FORM, - ParameterInType.PATH: ParameterStyle.SIMPLE, - ParameterInType.HEADER: ParameterStyle.SIMPLE, - ParameterInType.COOKIE: ParameterStyle.FORM, - } - __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} - _json_encoder = JSONEncoder() - - @classmethod - def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType): - if style is None: - return - in_type_set = cls.__style_to_in_type[style] - if in_type not in in_type_set: - raise ValueError( - 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( - style, in_type_set - ) - ) - - def __init__( - self, - name: str, - in_type: ParameterInType, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - if schema is None and content is None: - raise ValueError('Value missing; Pass in either schema or content') - if schema and content: - raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') - if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) - self.__verify_style_to_in_type(style, in_type) - if content is None and style is None: - style = self.__in_type_to_default_style[in_type] - if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError('Invalid content length, content length must equal 1') - self.in_type = in_type - self.name = name - self.required = required - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - self.schema = schema - self.content = content - - def _serialize_json( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - eliminate_whitespace: bool = False - ) -> str: - if eliminate_whitespace: - return json.dumps(in_data, separators=self._json_encoder.compact_separators) - return json.dumps(in_data) - - -class PathParameter(ParameterBase, StyleSimpleSerializer): - - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - super().__init__( - name, - in_type=ParameterInType.PATH, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) - - def __serialize_label( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator('.', '.') - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) - - def __serialize_matrix( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(';', ';') - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) - - def __serialize_simple( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - ) -> typing.Dict[str, str]: - value = self._serialize_simple( - in_data=in_data, - name=self.name, - explode=self.explode, - percent_encode=True - ) - return self._to_dict(self.name, value) - - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> path - path: - returns path_params: dict - label -> path - returns path_params - matrix -> path - returns path_params - """ - if self.style: - if self.style is ParameterStyle.SIMPLE: - return self.__serialize_simple(cast_in_data) - elif self.style is ParameterStyle.LABEL: - return self.__serialize_label(cast_in_data) - elif self.style is ParameterStyle.MATRIX: - return self.__serialize_matrix(cast_in_data) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class QueryParameter(ParameterBase, StyleFormSerializer): - - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - used_style = ParameterStyle.FORM if style is None else style - used_explode = self._get_default_explode(used_style) if explode is None else explode - - super().__init__( - name, - in_type=ParameterInType.QUERY, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) - - def __serialize_space_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) - - def __serialize_pipe_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) - - def __serialize_form( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._serialize_form( - in_data, - name=self.name, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) - - def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: - if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator('?', '&') - elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator('', '%20') - elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator('', '|') - - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> query - query: - - GET/HEAD/DELETE: could use fields - - PUT/POST: must use urlencode to send parameters - returns fields: tuple - spaceDelimited -> query - returns fields - pipeDelimited -> query - returns fields - deepObject -> query, https://github.com/OAI/OpenAPI-Specification/issues/1706 - returns fields - """ - if self.style: - # TODO update query ones to omit setting values when [] {} or None is input - if self.style is ParameterStyle.FORM: - return self.__serialize_form(cast_in_data, prefix_separator_iterator) - elif self.style is ParameterStyle.SPACE_DELIMITED: - return self.__serialize_space_delimited(cast_in_data, prefix_separator_iterator) - elif self.style is ParameterStyle.PIPE_DELIMITED: - return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator) - # self.content will be length one - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict( - self.name, - next(prefix_separator_iterator) + self.name + '=' + quote(value) - ) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class CookieParameter(ParameterBase, StyleFormSerializer): - - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - used_style = ParameterStyle.FORM if style is None and content is None and schema else style - used_explode = self._get_default_explode(used_style) if explode is None else explode - - super().__init__( - name, - in_type=ParameterInType.COOKIE, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) - - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> cookie - returns fields: tuple - """ - if self.style: - """ - TODO add escaping of comma, space, equals - or turn encoding on - """ - value = self._serialize_form( - cast_in_data, - explode=self.explode, - name=self.name, - percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator('', '&') - ) - return self._to_dict(self.name, value) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class HeaderParameter(ParameterBase, StyleSimpleSerializer): - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - super().__init__( - name, - in_type=ParameterInType.HEADER, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) - - @staticmethod - def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict: - data = tuple(t for t in in_data if t) - headers = HTTPHeaderDict() - if not data: - return headers - headers.extend(data) - return headers - - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> HTTPHeaderDict: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> header - headers: PoolManager needs a mapping, tuple is close - returns headers: dict - """ - if self.style: - value = self._serialize_simple(cast_in_data, self.name, self.explode, False) - return self.__to_headers(((self.name, value),)) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self.__to_headers(((self.name, value),)) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class Encoding: - def __init__( - self, - content_type: str, - headers: typing.Optional[typing.Dict[str, HeaderParameter]] = None, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: bool = False, - ): - self.content_type = content_type - self.headers = headers - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - - -@dataclass -class MediaType: - """ - Used to store request and response body schema information - encoding: - A map between a property name and its encoding information. - The key, being the property name, MUST exist in the schema as a property. - The encoding object SHALL only apply to requestBody objects when the media type is - multipart or application/x-www-form-urlencoded. - """ - schema: typing.Optional[typing.Type[Schema]] = None - encoding: typing.Optional[typing.Dict[str, Encoding]] = None - - -@dataclass -class ApiResponse: - response: urllib3.HTTPResponse - body: typing.Union[Unset, Schema] - headers: typing.Union[Unset, typing.List[HeaderParameter]] - - def __init__( - self, - response: urllib3.HTTPResponse, - body: typing.Union[Unset, typing.Type[Schema]], - headers: typing.Union[Unset, typing.List[HeaderParameter]] - ): - """ - pycharm needs this to prevent 'Unexpected argument' warnings - """ - self.response = response - self.body = body - self.headers = headers - - -@dataclass -class ApiResponseWithoutDeserialization(ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[Unset, typing.Type[Schema]] = unset - headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset - - -class OpenApiResponse(JSONDetector): - __filename_content_disposition_pattern = re.compile('filename="(.+?)"') - - def __init__( - self, - response_cls: typing.Type[ApiResponse] = ApiResponse, - content: typing.Optional[typing.Dict[str, MediaType]] = None, - headers: typing.Optional[typing.List[HeaderParameter]] = None, - ): - self.headers = headers - if content is not None and len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') - self.content = content - self.response_cls = response_cls - - @staticmethod - def __deserialize_json(response: urllib3.HTTPResponse) -> typing.Any: - # python must be >= 3.9 so we can pass in bytes into json.loads - return json.loads(response.data) - - @staticmethod - def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing.Optional[str]: - if response_url is None: - return None - url_path = urlparse(response_url).path - if url_path: - path_basename = os.path.basename(url_path) - if path_basename: - _filename, ext = os.path.splitext(path_basename) - if ext: - return path_basename - return None - - @classmethod - def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]: - if content_disposition is None: - return None - match = cls.__filename_content_disposition_pattern.search(content_disposition) - if not match: - return None - return match.group(1) - - def __deserialize_application_octet_stream( - self, response: urllib3.HTTPResponse - ) -> typing.Union[bytes, io.BufferedReader]: - """ - urllib3 use cases: - 1. when preload_content=True (stream=False) then supports_chunked_reads is False and bytes are returned - 2. when preload_content=False (stream=True) then supports_chunked_reads is True and - a file will be written and returned - """ - if response.supports_chunked_reads(): - file_name = ( - self.__file_name_from_content_disposition(response.headers.get('content-disposition')) - or self.__file_name_from_response_url(response.geturl()) - ) - - if file_name is None: - _fd, path = tempfile.mkstemp() - else: - path = os.path.join(tempfile.gettempdir(), file_name) - - with open(path, 'wb') as new_file: - chunk_size = 1024 - while True: - data = response.read(chunk_size) - if not data: - break - new_file.write(data) - # release_conn is needed for streaming connections only - response.release_conn() - new_file = open(path, 'rb') - return new_file - else: - return response.data - - @staticmethod - def __deserialize_multipart_form_data( - response: urllib3.HTTPResponse - ) -> typing.Dict[str, typing.Any]: - msg = email.message_from_bytes(response.data) - return { - part.get_param("name", header="Content-Disposition"): part.get_payload( - decode=True - ).decode(part.get_content_charset()) - if part.get_content_charset() - else part.get_payload() - for part in msg.get_payload() - } - - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader('content-type') - deserialized_body = unset - streamed = response.supports_chunked_reads() - - deserialized_headers = unset - if self.headers is not None: - # TODO add header deserialiation here - pass - - if self.content is not None: - if content_type not in self.content: - raise ApiValueError( - f"Invalid content_type returned. Content_type='{content_type}' was returned " - f"when only {str(set(self.content))} are defined for status_code={str(response.status)}" - ) - body_schema = self.content[content_type].schema - if body_schema is None: - # some specs do not define response content media type schemas - return self.response_cls( - response=response, - headers=deserialized_headers, - body=unset - ) - - if self._content_type_is_json(content_type): - body_data = self.__deserialize_json(response) - elif content_type == 'application/octet-stream': - body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith('multipart/form-data'): - body_data = self.__deserialize_multipart_form_data(response) - content_type = 'multipart/form-data' - else: - raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) - deserialized_body = body_schema.from_openapi_data_oapg( - body_data, _configuration=configuration) - elif streamed: - response.release_conn() - - return self.response_cls( - response=response, - headers=deserialized_headers, - body=deserialized_body - ) - - -class ApiClient: - """Generic API client for OpenAPI client library builds. - - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. - - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - :param pool_threads: The number of threads to use for async requests - to the API. More threads means more concurrent API requests. - """ - - _pool = None - - def __init__( - self, - configuration: typing.Optional[Configuration] = None, - header_name: typing.Optional[str] = None, - header_value: typing.Optional[str] = None, - cookie: typing.Optional[str] = None, - pool_threads: int = 1 - ): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - self.pool_threads = pool_threads - - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = HTTPHeaderDict() - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self.close() - - def close(self): - if self._pool: - self._pool.close() - self._pool.join() - self._pool = None - if hasattr(atexit, 'unregister'): - atexit.unregister(self.close) - - @property - def pool(self): - """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. - """ - if self._pool is None: - atexit.register(self.close) - self._pool = ThreadPool(self.pool_threads) - return self._pool - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: - - # header parameters - used_headers = HTTPHeaderDict(self.default_headers) - if self.cookie: - headers['Cookie'] = self.cookie - - # auth setting - self.update_params_for_auth(used_headers, - auth_settings, resource_path, method, body) - - # must happen after cookie setting and auth setting in case user is overriding those - if headers: - used_headers.update(headers) - - # request url - if host is None: - url = self.configuration.host + resource_path - else: - # use server/host defined in path or operation instead - url = host + resource_path - - # perform request and return response - response = self.request( - method, - url, - headers=used_headers, - fields=fields, - body=body, - stream=stream, - timeout=timeout, - ) - return response - - def call_api( - self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - async_req: typing.Optional[bool] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async_req request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param headers: Header parameters to be - placed in the request header. - :param body: Request body. - :param fields: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings: Auth Settings names for the request. - :param async_req: execute request asynchronously - :type async_req: bool, optional TODO remove, unused - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Also when True, if the openapi spec describes a file download, - the data will be written to a local filesystme file and the BinarySchema - instance will also inherit from FileSchema and FileIO - Default is False. - :type stream: bool, optional - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param host: api endpoint host - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - - if not async_req: - return self.__call_api( - resource_path, - method, - headers, - body, - fields, - auth_settings, - stream, - timeout, - host, - ) - - return self.pool.apply_async( - self.__call_api, - ( - resource_path, - method, - headers, - body, - json, - fields, - auth_settings, - stream, - timeout, - host, - ) - ) - - def request( - self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - stream=stream, - timeout=timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - stream=stream, - timeout=timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - headers=headers, - stream=stream, - timeout=timeout, - body=body) - else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def update_params_for_auth(self, headers, auth_settings, - resource_path, method, body): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param auth_settings: Authentication setting identifiers list. - :param resource_path: A string representation of the HTTP request resource path. - :param method: A string representation of the HTTP request method. - :param body: A object representing the body of the HTTP request. - The object type is the return value of _encoder.default(). - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if not auth_setting: - continue - if auth_setting['in'] == 'cookie': - headers.add('Cookie', auth_setting['value']) - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers.add(auth_setting['key'], auth_setting['value']) - elif auth_setting['in'] == 'query': - """ TODO implement auth in query - need to pass in prefix_separator_iterator - and need to output resource_path with query params added - """ - raise ApiValueError("Auth in query not yet implemented") - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) - from bitget import utils - SECRET_KEY = self.configuration.auth_settings().get("SECRET_KEY") - timestamp = utils.get_timestamp() - if not body: - body = bytes("", encoding = "utf8") - sign = utils.sign(utils.pre_hash(timestamp, method, resource_path, str(body, 'utf-8')), SECRET_KEY['value']) - headers.update({'ACCESS-TIMESTAMP': str(timestamp)}) - headers.update({'ACCESS-SIGN': str(sign, 'utf-8')}) - headers.update({'SECRET-KEY': ''}) - -class Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client: typing.Optional[ApiClient] = None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - @staticmethod - def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): - """ - Ensures that: - - required keys are present - - additional properties are not input - - value stored under required keys do not have the value unset - Note: detailed value checking is done in schema classes - """ - missing_required_keys = [] - required_keys_with_unset_values = [] - for required_key in cls.__required_keys__: - if required_key not in data: - missing_required_keys.append(required_key) - continue - value = data[required_key] - if value is unset: - required_keys_with_unset_values.append(required_key) - if missing_required_keys: - raise ApiTypeError( - '{} missing {} required arguments: {}'.format( - cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) - if required_keys_with_unset_values: - raise ApiValueError( - '{} contains invalid unset values for {} required keys: {}'.format( - cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values - ) - ) - - disallowed_additional_keys = [] - for key in data: - if key in cls.__required_keys__ or key in cls.__optional_keys__: - continue - disallowed_additional_keys.append(key) - if disallowed_additional_keys: - raise ApiTypeError( - '{} got {} unexpected keyword arguments: {}'.format( - cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys - ) - ) - - def _get_host_oapg( - self, - operation_id: str, - servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None - ) -> typing.Optional[str]: - configuration = self.api_client.configuration - try: - if host_index is None: - index = configuration.server_operation_index.get( - operation_id, configuration.server_index - ) - else: - index = host_index - server_variables = configuration.server_operation_variables.get( - operation_id, configuration.server_variables - ) - host = configuration.get_host_from_settings( - index, variables=server_variables, servers=servers - ) - except IndexError: - if servers: - raise ApiValueError( - "Invalid host index. Must be 0 <= index < %s" % - len(servers) - ) - host = None - return host - - -class SerializedRequestBody(typing_extensions.TypedDict, total=False): - body: typing.Union[str, bytes] - fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...] - - -class RequestBody(StyleFormSerializer, JSONDetector): - """ - A request body parameter - content: content_type to MediaType Schema info - """ - __json_encoder = JSONEncoder() - - def __init__( - self, - content: typing.Dict[str, MediaType], - required: bool = False, - ): - self.required = required - if len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') - self.content = content - - def __serialize_json( - self, - in_data: typing.Any - ) -> typing.Dict[str, bytes]: - in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( - "utf-8" - ) - return dict(body=json_str) - - @staticmethod - def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: - if isinstance(in_data, frozendict.frozendict): - raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') - elif isinstance(in_data, tuple): - raise ValueError('Unable to serialize type tuple to text/plain') - elif isinstance(in_data, NoneClass): - raise ValueError('Unable to serialize type NoneClass to text/plain') - elif isinstance(in_data, BoolClass): - raise ValueError('Unable to serialize type BoolClass to text/plain') - return dict(body=str(in_data)) - - def __multipart_json_item(self, key: str, value: Schema) -> RequestField: - json_value = self.__json_encoder.default(value) - return RequestField(name=key, data=json.dumps(json_value), headers={'Content-Type': 'application/json'}) - - def __multipart_form_item(self, key: str, value: Schema) -> RequestField: - if isinstance(value, str): - return RequestField(name=key, data=str(value), headers={'Content-Type': 'text/plain'}) - elif isinstance(value, bytes): - return RequestField(name=key, data=value, headers={'Content-Type': 'application/octet-stream'}) - elif isinstance(value, FileIO): - request_field = RequestField( - name=key, - data=value.read(), - filename=os.path.basename(value.name), - headers={'Content-Type': 'application/octet-stream'} - ) - value.close() - return request_field - else: - return self.__multipart_json_item(key=key, value=value) - - def __serialize_multipart_form_data( - self, in_data: Schema - ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: - if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') - """ - In a multipart/form-data request body, each schema property, or each element of a schema array property, - takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy - for each property of a multipart/form-data request body can be specified in an associated Encoding Object. - - When passing in multipart types, boundaries MAY be used to separate sections of the content being - transferred – thus, the following default Content-Types are defined for multipart: - - If the (object) property is a primitive, or an array of primitive values, the default Content-Type is text/plain - If the property is complex, or an array of complex values, the default Content-Type is application/json - Question: how is the array of primitives encoded? - If the property is a type: string with a contentEncoding, the default Content-Type is application/octet-stream - """ - fields = [] - for key, value in in_data.items(): - if isinstance(value, tuple): - if value: - # values use explode = True, so the code makes a RequestField for each item with name=key - for item in value: - request_field = self.__multipart_form_item(key=key, value=item) - fields.append(request_field) - else: - # send an empty array as json because exploding will not send it - request_field = self.__multipart_json_item(key=key, value=value) - fields.append(request_field) - else: - request_field = self.__multipart_form_item(key=key, value=value) - fields.append(request_field) - - return dict(fields=tuple(fields)) - - def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]: - if isinstance(in_data, bytes): - return dict(body=in_data) - # FileIO type - result = dict(body=in_data.read()) - in_data.close() - return result - - def __serialize_application_x_www_form_data( - self, in_data: typing.Any - ) -> SerializedRequestBody: - """ - POST submission of form data in body - """ - if not isinstance(in_data, frozendict.frozendict): - raise ValueError( - f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') - cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) - return dict(body=value) - - def serialize( - self, in_data: typing.Any, content_type: str - ) -> SerializedRequestBody: - """ - If a str is returned then the result will be assigned to data when making the request - If a tuple is returned then the result will be used as fields input in encode_multipart_formdata - Return a tuple of - - The key of the return dict is - - body for application/json - - encode_multipart and fields for multipart/form-data - """ - media_type = self.content[content_type] - if isinstance(in_data, media_type.schema): - cast_in_data = in_data - elif isinstance(in_data, (dict, frozendict.frozendict)) and in_data: - cast_in_data = media_type.schema(**in_data) - else: - cast_in_data = media_type.schema(in_data) - # TODO check for and use encoding if it exists - # and content_type is multipart or application/x-www-form-urlencoded - if self._content_type_is_json(content_type): - return self.__serialize_json(cast_in_data) - elif content_type == 'text/plain': - return self.__serialize_text_plain(cast_in_data) - elif content_type == 'multipart/form-data': - return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == 'application/x-www-form-urlencoded': - return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == 'application/octet-stream': - return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) diff --git a/bitget-python-sdk-open-api/bitget/apis/__init__.py b/bitget-python-sdk-open-api/bitget/apis/__init__.py deleted file mode 100644 index 7840f772..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/apis/path_to_api.py b/bitget-python-sdk-open-api/bitget/apis/path_to_api.py deleted file mode 100644 index 00fb7a4b..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/path_to_api.py +++ /dev/null @@ -1,152 +0,0 @@ -import typing_extensions - -from bitget.paths import PathValues -from bitget.apis.paths.api_margin_v1_cross_account_assets import ApiMarginV1CrossAccountAssets -from bitget.apis.paths.api_margin_v1_cross_account_borrow import ApiMarginV1CrossAccountBorrow -from bitget.apis.paths.api_margin_v1_cross_account_max_borrowable_amount import ApiMarginV1CrossAccountMaxBorrowableAmount -from bitget.apis.paths.api_margin_v1_cross_account_max_transfer_out_amount import ApiMarginV1CrossAccountMaxTransferOutAmount -from bitget.apis.paths.api_margin_v1_cross_account_repay import ApiMarginV1CrossAccountRepay -from bitget.apis.paths.api_margin_v1_cross_account_risk_rate import ApiMarginV1CrossAccountRiskRate -from bitget.apis.paths.api_margin_v1_cross_account_void import ApiMarginV1CrossAccountVoid -from bitget.apis.paths.api_margin_v1_cross_fin_list import ApiMarginV1CrossFinList -from bitget.apis.paths.api_margin_v1_cross_interest_list import ApiMarginV1CrossInterestList -from bitget.apis.paths.api_margin_v1_cross_liquidation_list import ApiMarginV1CrossLiquidationList -from bitget.apis.paths.api_margin_v1_cross_loan_list import ApiMarginV1CrossLoanList -from bitget.apis.paths.api_margin_v1_cross_order_batch_cancel_order import ApiMarginV1CrossOrderBatchCancelOrder -from bitget.apis.paths.api_margin_v1_cross_order_batch_place_order import ApiMarginV1CrossOrderBatchPlaceOrder -from bitget.apis.paths.api_margin_v1_cross_order_cancel_order import ApiMarginV1CrossOrderCancelOrder -from bitget.apis.paths.api_margin_v1_cross_order_fills import ApiMarginV1CrossOrderFills -from bitget.apis.paths.api_margin_v1_cross_order_history import ApiMarginV1CrossOrderHistory -from bitget.apis.paths.api_margin_v1_cross_order_open_orders import ApiMarginV1CrossOrderOpenOrders -from bitget.apis.paths.api_margin_v1_cross_order_place_order import ApiMarginV1CrossOrderPlaceOrder -from bitget.apis.paths.api_margin_v1_cross_public_interest_rate_and_limit import ApiMarginV1CrossPublicInterestRateAndLimit -from bitget.apis.paths.api_margin_v1_cross_public_tier_data import ApiMarginV1CrossPublicTierData -from bitget.apis.paths.api_margin_v1_cross_repay_list import ApiMarginV1CrossRepayList -from bitget.apis.paths.api_margin_v1_isolated_account_assets import ApiMarginV1IsolatedAccountAssets -from bitget.apis.paths.api_margin_v1_isolated_account_borrow import ApiMarginV1IsolatedAccountBorrow -from bitget.apis.paths.api_margin_v1_isolated_account_max_borrowable_amount import ApiMarginV1IsolatedAccountMaxBorrowableAmount -from bitget.apis.paths.api_margin_v1_isolated_account_max_transfer_out_amount import ApiMarginV1IsolatedAccountMaxTransferOutAmount -from bitget.apis.paths.api_margin_v1_isolated_account_repay import ApiMarginV1IsolatedAccountRepay -from bitget.apis.paths.api_margin_v1_isolated_account_risk_rate import ApiMarginV1IsolatedAccountRiskRate -from bitget.apis.paths.api_margin_v1_isolated_fin_list import ApiMarginV1IsolatedFinList -from bitget.apis.paths.api_margin_v1_isolated_interest_list import ApiMarginV1IsolatedInterestList -from bitget.apis.paths.api_margin_v1_isolated_liquidation_list import ApiMarginV1IsolatedLiquidationList -from bitget.apis.paths.api_margin_v1_isolated_loan_list import ApiMarginV1IsolatedLoanList -from bitget.apis.paths.api_margin_v1_isolated_order_batch_cancel_order import ApiMarginV1IsolatedOrderBatchCancelOrder -from bitget.apis.paths.api_margin_v1_isolated_order_batch_place_order import ApiMarginV1IsolatedOrderBatchPlaceOrder -from bitget.apis.paths.api_margin_v1_isolated_order_cancel_order import ApiMarginV1IsolatedOrderCancelOrder -from bitget.apis.paths.api_margin_v1_isolated_order_fills import ApiMarginV1IsolatedOrderFills -from bitget.apis.paths.api_margin_v1_isolated_order_history import ApiMarginV1IsolatedOrderHistory -from bitget.apis.paths.api_margin_v1_isolated_order_open_orders import ApiMarginV1IsolatedOrderOpenOrders -from bitget.apis.paths.api_margin_v1_isolated_order_place_order import ApiMarginV1IsolatedOrderPlaceOrder -from bitget.apis.paths.api_margin_v1_isolated_public_interest_rate_and_limit import ApiMarginV1IsolatedPublicInterestRateAndLimit -from bitget.apis.paths.api_margin_v1_isolated_public_tier_data import ApiMarginV1IsolatedPublicTierData -from bitget.apis.paths.api_margin_v1_isolated_repay_list import ApiMarginV1IsolatedRepayList -from bitget.apis.paths.api_margin_v1_public_currencies import ApiMarginV1PublicCurrencies -from bitget.apis.paths.api_p2p_v1_merchant_adv_list import ApiP2pV1MerchantAdvList -from bitget.apis.paths.api_p2p_v1_merchant_merchant_info import ApiP2pV1MerchantMerchantInfo -from bitget.apis.paths.api_p2p_v1_merchant_merchant_list import ApiP2pV1MerchantMerchantList -from bitget.apis.paths.api_p2p_v1_merchant_order_list import ApiP2pV1MerchantOrderList - -PathToApi = typing_extensions.TypedDict( - 'PathToApi', - { - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_ASSETS: ApiMarginV1CrossAccountAssets, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_BORROW: ApiMarginV1CrossAccountBorrow, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_BORROWABLE_AMOUNT: ApiMarginV1CrossAccountMaxBorrowableAmount, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT: ApiMarginV1CrossAccountMaxTransferOutAmount, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_REPAY: ApiMarginV1CrossAccountRepay, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_RISK_RATE: ApiMarginV1CrossAccountRiskRate, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_VOID: ApiMarginV1CrossAccountVoid, - PathValues.API_MARGIN_V1_CROSS_FIN_LIST: ApiMarginV1CrossFinList, - PathValues.API_MARGIN_V1_CROSS_INTEREST_LIST: ApiMarginV1CrossInterestList, - PathValues.API_MARGIN_V1_CROSS_LIQUIDATION_LIST: ApiMarginV1CrossLiquidationList, - PathValues.API_MARGIN_V1_CROSS_LOAN_LIST: ApiMarginV1CrossLoanList, - PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_CANCEL_ORDER: ApiMarginV1CrossOrderBatchCancelOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_PLACE_ORDER: ApiMarginV1CrossOrderBatchPlaceOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_CANCEL_ORDER: ApiMarginV1CrossOrderCancelOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_FILLS: ApiMarginV1CrossOrderFills, - PathValues.API_MARGIN_V1_CROSS_ORDER_HISTORY: ApiMarginV1CrossOrderHistory, - PathValues.API_MARGIN_V1_CROSS_ORDER_OPEN_ORDERS: ApiMarginV1CrossOrderOpenOrders, - PathValues.API_MARGIN_V1_CROSS_ORDER_PLACE_ORDER: ApiMarginV1CrossOrderPlaceOrder, - PathValues.API_MARGIN_V1_CROSS_PUBLIC_INTEREST_RATE_AND_LIMIT: ApiMarginV1CrossPublicInterestRateAndLimit, - PathValues.API_MARGIN_V1_CROSS_PUBLIC_TIER_DATA: ApiMarginV1CrossPublicTierData, - PathValues.API_MARGIN_V1_CROSS_REPAY_LIST: ApiMarginV1CrossRepayList, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_ASSETS: ApiMarginV1IsolatedAccountAssets, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_BORROW: ApiMarginV1IsolatedAccountBorrow, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_BORROWABLE_AMOUNT: ApiMarginV1IsolatedAccountMaxBorrowableAmount, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT: ApiMarginV1IsolatedAccountMaxTransferOutAmount, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_REPAY: ApiMarginV1IsolatedAccountRepay, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_RISK_RATE: ApiMarginV1IsolatedAccountRiskRate, - PathValues.API_MARGIN_V1_ISOLATED_FIN_LIST: ApiMarginV1IsolatedFinList, - PathValues.API_MARGIN_V1_ISOLATED_INTEREST_LIST: ApiMarginV1IsolatedInterestList, - PathValues.API_MARGIN_V1_ISOLATED_LIQUIDATION_LIST: ApiMarginV1IsolatedLiquidationList, - PathValues.API_MARGIN_V1_ISOLATED_LOAN_LIST: ApiMarginV1IsolatedLoanList, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_CANCEL_ORDER: ApiMarginV1IsolatedOrderBatchCancelOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_PLACE_ORDER: ApiMarginV1IsolatedOrderBatchPlaceOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_CANCEL_ORDER: ApiMarginV1IsolatedOrderCancelOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_FILLS: ApiMarginV1IsolatedOrderFills, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_HISTORY: ApiMarginV1IsolatedOrderHistory, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_OPEN_ORDERS: ApiMarginV1IsolatedOrderOpenOrders, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_PLACE_ORDER: ApiMarginV1IsolatedOrderPlaceOrder, - PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_INTEREST_RATE_AND_LIMIT: ApiMarginV1IsolatedPublicInterestRateAndLimit, - PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_TIER_DATA: ApiMarginV1IsolatedPublicTierData, - PathValues.API_MARGIN_V1_ISOLATED_REPAY_LIST: ApiMarginV1IsolatedRepayList, - PathValues.API_MARGIN_V1_PUBLIC_CURRENCIES: ApiMarginV1PublicCurrencies, - PathValues.API_P2P_V1_MERCHANT_ADV_LIST: ApiP2pV1MerchantAdvList, - PathValues.API_P2P_V1_MERCHANT_MERCHANT_INFO: ApiP2pV1MerchantMerchantInfo, - PathValues.API_P2P_V1_MERCHANT_MERCHANT_LIST: ApiP2pV1MerchantMerchantList, - PathValues.API_P2P_V1_MERCHANT_ORDER_LIST: ApiP2pV1MerchantOrderList, - } -) - -path_to_api = PathToApi( - { - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_ASSETS: ApiMarginV1CrossAccountAssets, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_BORROW: ApiMarginV1CrossAccountBorrow, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_BORROWABLE_AMOUNT: ApiMarginV1CrossAccountMaxBorrowableAmount, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT: ApiMarginV1CrossAccountMaxTransferOutAmount, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_REPAY: ApiMarginV1CrossAccountRepay, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_RISK_RATE: ApiMarginV1CrossAccountRiskRate, - PathValues.API_MARGIN_V1_CROSS_ACCOUNT_VOID: ApiMarginV1CrossAccountVoid, - PathValues.API_MARGIN_V1_CROSS_FIN_LIST: ApiMarginV1CrossFinList, - PathValues.API_MARGIN_V1_CROSS_INTEREST_LIST: ApiMarginV1CrossInterestList, - PathValues.API_MARGIN_V1_CROSS_LIQUIDATION_LIST: ApiMarginV1CrossLiquidationList, - PathValues.API_MARGIN_V1_CROSS_LOAN_LIST: ApiMarginV1CrossLoanList, - PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_CANCEL_ORDER: ApiMarginV1CrossOrderBatchCancelOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_PLACE_ORDER: ApiMarginV1CrossOrderBatchPlaceOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_CANCEL_ORDER: ApiMarginV1CrossOrderCancelOrder, - PathValues.API_MARGIN_V1_CROSS_ORDER_FILLS: ApiMarginV1CrossOrderFills, - PathValues.API_MARGIN_V1_CROSS_ORDER_HISTORY: ApiMarginV1CrossOrderHistory, - PathValues.API_MARGIN_V1_CROSS_ORDER_OPEN_ORDERS: ApiMarginV1CrossOrderOpenOrders, - PathValues.API_MARGIN_V1_CROSS_ORDER_PLACE_ORDER: ApiMarginV1CrossOrderPlaceOrder, - PathValues.API_MARGIN_V1_CROSS_PUBLIC_INTEREST_RATE_AND_LIMIT: ApiMarginV1CrossPublicInterestRateAndLimit, - PathValues.API_MARGIN_V1_CROSS_PUBLIC_TIER_DATA: ApiMarginV1CrossPublicTierData, - PathValues.API_MARGIN_V1_CROSS_REPAY_LIST: ApiMarginV1CrossRepayList, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_ASSETS: ApiMarginV1IsolatedAccountAssets, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_BORROW: ApiMarginV1IsolatedAccountBorrow, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_BORROWABLE_AMOUNT: ApiMarginV1IsolatedAccountMaxBorrowableAmount, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT: ApiMarginV1IsolatedAccountMaxTransferOutAmount, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_REPAY: ApiMarginV1IsolatedAccountRepay, - PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_RISK_RATE: ApiMarginV1IsolatedAccountRiskRate, - PathValues.API_MARGIN_V1_ISOLATED_FIN_LIST: ApiMarginV1IsolatedFinList, - PathValues.API_MARGIN_V1_ISOLATED_INTEREST_LIST: ApiMarginV1IsolatedInterestList, - PathValues.API_MARGIN_V1_ISOLATED_LIQUIDATION_LIST: ApiMarginV1IsolatedLiquidationList, - PathValues.API_MARGIN_V1_ISOLATED_LOAN_LIST: ApiMarginV1IsolatedLoanList, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_CANCEL_ORDER: ApiMarginV1IsolatedOrderBatchCancelOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_PLACE_ORDER: ApiMarginV1IsolatedOrderBatchPlaceOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_CANCEL_ORDER: ApiMarginV1IsolatedOrderCancelOrder, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_FILLS: ApiMarginV1IsolatedOrderFills, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_HISTORY: ApiMarginV1IsolatedOrderHistory, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_OPEN_ORDERS: ApiMarginV1IsolatedOrderOpenOrders, - PathValues.API_MARGIN_V1_ISOLATED_ORDER_PLACE_ORDER: ApiMarginV1IsolatedOrderPlaceOrder, - PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_INTEREST_RATE_AND_LIMIT: ApiMarginV1IsolatedPublicInterestRateAndLimit, - PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_TIER_DATA: ApiMarginV1IsolatedPublicTierData, - PathValues.API_MARGIN_V1_ISOLATED_REPAY_LIST: ApiMarginV1IsolatedRepayList, - PathValues.API_MARGIN_V1_PUBLIC_CURRENCIES: ApiMarginV1PublicCurrencies, - PathValues.API_P2P_V1_MERCHANT_ADV_LIST: ApiP2pV1MerchantAdvList, - PathValues.API_P2P_V1_MERCHANT_MERCHANT_INFO: ApiP2pV1MerchantMerchantInfo, - PathValues.API_P2P_V1_MERCHANT_MERCHANT_LIST: ApiP2pV1MerchantMerchantList, - PathValues.API_P2P_V1_MERCHANT_ORDER_LIST: ApiP2pV1MerchantOrderList, - } -) diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/__init__.py b/bitget-python-sdk-open-api/bitget/apis/paths/__init__.py deleted file mode 100644 index 72c91a58..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.apis.path_to_api import path_to_api diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_assets.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_assets.py deleted file mode 100644 index 5811b618..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_assets.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_assets.get import ApiForget - - -class ApiMarginV1CrossAccountAssets( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_borrow.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_borrow.py deleted file mode 100644 index 6e35b1c9..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_borrow.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_borrow.post import ApiForpost - - -class ApiMarginV1CrossAccountBorrow( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_borrowable_amount.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_borrowable_amount.py deleted file mode 100644 index 16579f01..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_borrowable_amount.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_max_borrowable_amount.post import ApiForpost - - -class ApiMarginV1CrossAccountMaxBorrowableAmount( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_transfer_out_amount.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_transfer_out_amount.py deleted file mode 100644 index 443e6c4e..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_max_transfer_out_amount.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_max_transfer_out_amount.get import ApiForget - - -class ApiMarginV1CrossAccountMaxTransferOutAmount( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_repay.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_repay.py deleted file mode 100644 index cc4eccca..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_repay.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_repay.post import ApiForpost - - -class ApiMarginV1CrossAccountRepay( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_risk_rate.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_risk_rate.py deleted file mode 100644 index cb8871ff..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_risk_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_risk_rate.get import ApiForget - - -class ApiMarginV1CrossAccountRiskRate( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_void.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_void.py deleted file mode 100644 index 76fda53d..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_account_void.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_account_void.get import ApiForget - - -class ApiMarginV1CrossAccountVoid( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_fin_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_fin_list.py deleted file mode 100644 index 7f7e7502..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_fin_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_fin_list.get import ApiForget - - -class ApiMarginV1CrossFinList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_interest_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_interest_list.py deleted file mode 100644 index 7989f13f..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_interest_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_interest_list.get import ApiForget - - -class ApiMarginV1CrossInterestList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_liquidation_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_liquidation_list.py deleted file mode 100644 index f213b786..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_liquidation_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_liquidation_list.get import ApiForget - - -class ApiMarginV1CrossLiquidationList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_loan_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_loan_list.py deleted file mode 100644 index 0ebf1392..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_loan_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_loan_list.get import ApiForget - - -class ApiMarginV1CrossLoanList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_cancel_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_cancel_order.py deleted file mode 100644 index 9391ccd2..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_cancel_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_batch_cancel_order.post import ApiForpost - - -class ApiMarginV1CrossOrderBatchCancelOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_place_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_place_order.py deleted file mode 100644 index 0d5c7013..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_batch_place_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_batch_place_order.post import ApiForpost - - -class ApiMarginV1CrossOrderBatchPlaceOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_cancel_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_cancel_order.py deleted file mode 100644 index 0d3248f9..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_cancel_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_cancel_order.post import ApiForpost - - -class ApiMarginV1CrossOrderCancelOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_fills.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_fills.py deleted file mode 100644 index 98e5840c..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_fills.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_fills.get import ApiForget - - -class ApiMarginV1CrossOrderFills( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_history.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_history.py deleted file mode 100644 index 199452c4..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_history.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_history.get import ApiForget - - -class ApiMarginV1CrossOrderHistory( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_open_orders.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_open_orders.py deleted file mode 100644 index 7fe2042c..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_open_orders.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_open_orders.get import ApiForget - - -class ApiMarginV1CrossOrderOpenOrders( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_place_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_place_order.py deleted file mode 100644 index fd28bb74..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_order_place_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_order_place_order.post import ApiForpost - - -class ApiMarginV1CrossOrderPlaceOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_interest_rate_and_limit.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_interest_rate_and_limit.py deleted file mode 100644 index 47471b4f..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_interest_rate_and_limit.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_public_interest_rate_and_limit.get import ApiForget - - -class ApiMarginV1CrossPublicInterestRateAndLimit( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_tier_data.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_tier_data.py deleted file mode 100644 index c8357985..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_public_tier_data.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_public_tier_data.get import ApiForget - - -class ApiMarginV1CrossPublicTierData( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_repay_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_repay_list.py deleted file mode 100644 index e3a02384..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_cross_repay_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_cross_repay_list.get import ApiForget - - -class ApiMarginV1CrossRepayList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_assets.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_assets.py deleted file mode 100644 index dbe9da27..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_assets.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_assets.get import ApiForget - - -class ApiMarginV1IsolatedAccountAssets( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_borrow.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_borrow.py deleted file mode 100644 index 7fe211f2..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_borrow.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_borrow.post import ApiForpost - - -class ApiMarginV1IsolatedAccountBorrow( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_borrowable_amount.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_borrowable_amount.py deleted file mode 100644 index bd2ebae7..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_borrowable_amount.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_max_borrowable_amount.post import ApiForpost - - -class ApiMarginV1IsolatedAccountMaxBorrowableAmount( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_transfer_out_amount.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_transfer_out_amount.py deleted file mode 100644 index e22b0815..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_max_transfer_out_amount.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_max_transfer_out_amount.get import ApiForget - - -class ApiMarginV1IsolatedAccountMaxTransferOutAmount( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_repay.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_repay.py deleted file mode 100644 index 063cd128..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_repay.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_repay.post import ApiForpost - - -class ApiMarginV1IsolatedAccountRepay( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_risk_rate.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_risk_rate.py deleted file mode 100644 index 0cc214dd..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_account_risk_rate.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_account_risk_rate.post import ApiForpost - - -class ApiMarginV1IsolatedAccountRiskRate( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_fin_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_fin_list.py deleted file mode 100644 index 59d13a39..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_fin_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_fin_list.get import ApiForget - - -class ApiMarginV1IsolatedFinList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_interest_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_interest_list.py deleted file mode 100644 index a0b00c1a..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_interest_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_interest_list.get import ApiForget - - -class ApiMarginV1IsolatedInterestList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_liquidation_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_liquidation_list.py deleted file mode 100644 index 5cfdf2fc..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_liquidation_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_liquidation_list.get import ApiForget - - -class ApiMarginV1IsolatedLiquidationList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_loan_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_loan_list.py deleted file mode 100644 index d462bf9f..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_loan_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_loan_list.get import ApiForget - - -class ApiMarginV1IsolatedLoanList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_cancel_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_cancel_order.py deleted file mode 100644 index dba93cd8..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_cancel_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_batch_cancel_order.post import ApiForpost - - -class ApiMarginV1IsolatedOrderBatchCancelOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_place_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_place_order.py deleted file mode 100644 index 7e462911..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_batch_place_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_batch_place_order.post import ApiForpost - - -class ApiMarginV1IsolatedOrderBatchPlaceOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_cancel_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_cancel_order.py deleted file mode 100644 index bab6ede5..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_cancel_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_cancel_order.post import ApiForpost - - -class ApiMarginV1IsolatedOrderCancelOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_fills.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_fills.py deleted file mode 100644 index be9b2f5b..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_fills.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_fills.get import ApiForget - - -class ApiMarginV1IsolatedOrderFills( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_history.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_history.py deleted file mode 100644 index 7c79f66a..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_history.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_history.get import ApiForget - - -class ApiMarginV1IsolatedOrderHistory( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_open_orders.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_open_orders.py deleted file mode 100644 index 0c9684bf..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_open_orders.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_open_orders.get import ApiForget - - -class ApiMarginV1IsolatedOrderOpenOrders( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_place_order.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_place_order.py deleted file mode 100644 index fba9658d..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_order_place_order.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_order_place_order.post import ApiForpost - - -class ApiMarginV1IsolatedOrderPlaceOrder( - ApiForpost, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_interest_rate_and_limit.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_interest_rate_and_limit.py deleted file mode 100644 index 9ed96f28..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_interest_rate_and_limit.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_public_interest_rate_and_limit.get import ApiForget - - -class ApiMarginV1IsolatedPublicInterestRateAndLimit( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_tier_data.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_tier_data.py deleted file mode 100644 index d1e15ef0..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_public_tier_data.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_public_tier_data.get import ApiForget - - -class ApiMarginV1IsolatedPublicTierData( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_repay_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_repay_list.py deleted file mode 100644 index c2c770e0..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_isolated_repay_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_isolated_repay_list.get import ApiForget - - -class ApiMarginV1IsolatedRepayList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_public_currencies.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_public_currencies.py deleted file mode 100644 index 8b1c37d0..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_margin_v1_public_currencies.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_margin_v1_public_currencies.get import ApiForget - - -class ApiMarginV1PublicCurrencies( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_adv_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_adv_list.py deleted file mode 100644 index e2cf5a57..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_adv_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_p2p_v1_merchant_adv_list.get import ApiForget - - -class ApiP2pV1MerchantAdvList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_info.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_info.py deleted file mode 100644 index b57d09a3..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_info.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_p2p_v1_merchant_merchant_info.get import ApiForget - - -class ApiP2pV1MerchantMerchantInfo( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_list.py deleted file mode 100644 index 24879c5d..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_merchant_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_p2p_v1_merchant_merchant_list.get import ApiForget - - -class ApiP2pV1MerchantMerchantList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_order_list.py b/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_order_list.py deleted file mode 100644 index 965c951e..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/paths/api_p2p_v1_merchant_order_list.py +++ /dev/null @@ -1,7 +0,0 @@ -from bitget.paths.api_p2p_v1_merchant_order_list.get import ApiForget - - -class ApiP2pV1MerchantOrderList( - ApiForget, -): - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tag_to_api.py b/bitget-python-sdk-open-api/bitget/apis/tag_to_api.py deleted file mode 100644 index 70ba115e..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tag_to_api.py +++ /dev/null @@ -1,68 +0,0 @@ -import typing_extensions - -from bitget.apis.tags import TagValues -from bitget.apis.tags.margin_cross_account_api import MarginCrossAccountApi -from bitget.apis.tags.margin_cross_borrow_api import MarginCrossBorrowApi -from bitget.apis.tags.margin_cross_finflow_api import MarginCrossFinflowApi -from bitget.apis.tags.margin_cross_interest_api import MarginCrossInterestApi -from bitget.apis.tags.margin_cross_liquidation_api import MarginCrossLiquidationApi -from bitget.apis.tags.margin_cross_order_api import MarginCrossOrderApi -from bitget.apis.tags.margin_cross_public_api import MarginCrossPublicApi -from bitget.apis.tags.margin_cross_repay_api import MarginCrossRepayApi -from bitget.apis.tags.margin_isolated_account_api import MarginIsolatedAccountApi -from bitget.apis.tags.margin_isolated_borrow_api import MarginIsolatedBorrowApi -from bitget.apis.tags.margin_isolated_finflow_api import MarginIsolatedFinflowApi -from bitget.apis.tags.margin_isolated_interest_api import MarginIsolatedInterestApi -from bitget.apis.tags.margin_isolated_liquidation_api import MarginIsolatedLiquidationApi -from bitget.apis.tags.margin_isolated_order_api import MarginIsolatedOrderApi -from bitget.apis.tags.margin_isolated_public_api import MarginIsolatedPublicApi -from bitget.apis.tags.margin_isolated_repay_api import MarginIsolatedRepayApi -from bitget.apis.tags.margin_public_api import MarginPublicApi -from bitget.apis.tags.p2p_merchant_api import P2pMerchantApi - -TagToApi = typing_extensions.TypedDict( - 'TagToApi', - { - TagValues.MARGIN_CROSS_ACCOUNT: MarginCrossAccountApi, - TagValues.MARGIN_CROSS_BORROW: MarginCrossBorrowApi, - TagValues.MARGIN_CROSS_FINFLOW: MarginCrossFinflowApi, - TagValues.MARGIN_CROSS_INTEREST: MarginCrossInterestApi, - TagValues.MARGIN_CROSS_LIQUIDATION: MarginCrossLiquidationApi, - TagValues.MARGIN_CROSS_ORDER: MarginCrossOrderApi, - TagValues.MARGIN_CROSS_PUBLIC: MarginCrossPublicApi, - TagValues.MARGIN_CROSS_REPAY: MarginCrossRepayApi, - TagValues.MARGIN_ISOLATED_ACCOUNT: MarginIsolatedAccountApi, - TagValues.MARGIN_ISOLATED_BORROW: MarginIsolatedBorrowApi, - TagValues.MARGIN_ISOLATED_FINFLOW: MarginIsolatedFinflowApi, - TagValues.MARGIN_ISOLATED_INTEREST: MarginIsolatedInterestApi, - TagValues.MARGIN_ISOLATED_LIQUIDATION: MarginIsolatedLiquidationApi, - TagValues.MARGIN_ISOLATED_ORDER: MarginIsolatedOrderApi, - TagValues.MARGIN_ISOLATED_PUBLIC: MarginIsolatedPublicApi, - TagValues.MARGIN_ISOLATED_REPAY: MarginIsolatedRepayApi, - TagValues.MARGIN_PUBLIC: MarginPublicApi, - TagValues.P2P_MERCHANT: P2pMerchantApi, - } -) - -tag_to_api = TagToApi( - { - TagValues.MARGIN_CROSS_ACCOUNT: MarginCrossAccountApi, - TagValues.MARGIN_CROSS_BORROW: MarginCrossBorrowApi, - TagValues.MARGIN_CROSS_FINFLOW: MarginCrossFinflowApi, - TagValues.MARGIN_CROSS_INTEREST: MarginCrossInterestApi, - TagValues.MARGIN_CROSS_LIQUIDATION: MarginCrossLiquidationApi, - TagValues.MARGIN_CROSS_ORDER: MarginCrossOrderApi, - TagValues.MARGIN_CROSS_PUBLIC: MarginCrossPublicApi, - TagValues.MARGIN_CROSS_REPAY: MarginCrossRepayApi, - TagValues.MARGIN_ISOLATED_ACCOUNT: MarginIsolatedAccountApi, - TagValues.MARGIN_ISOLATED_BORROW: MarginIsolatedBorrowApi, - TagValues.MARGIN_ISOLATED_FINFLOW: MarginIsolatedFinflowApi, - TagValues.MARGIN_ISOLATED_INTEREST: MarginIsolatedInterestApi, - TagValues.MARGIN_ISOLATED_LIQUIDATION: MarginIsolatedLiquidationApi, - TagValues.MARGIN_ISOLATED_ORDER: MarginIsolatedOrderApi, - TagValues.MARGIN_ISOLATED_PUBLIC: MarginIsolatedPublicApi, - TagValues.MARGIN_ISOLATED_REPAY: MarginIsolatedRepayApi, - TagValues.MARGIN_PUBLIC: MarginPublicApi, - TagValues.P2P_MERCHANT: P2pMerchantApi, - } -) diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/__init__.py b/bitget-python-sdk-open-api/bitget/apis/tags/__init__.py deleted file mode 100644 index 35c180b8..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.apis.tag_to_api import tag_to_api - -import enum - - -class TagValues(str, enum.Enum): - MARGIN_CROSS_ACCOUNT = "margin_cross_account" - MARGIN_CROSS_BORROW = "margin_cross_borrow" - MARGIN_CROSS_FINFLOW = "margin_cross_finflow" - MARGIN_CROSS_INTEREST = "margin_cross_interest" - MARGIN_CROSS_LIQUIDATION = "margin_cross_liquidation" - MARGIN_CROSS_ORDER = "margin_cross_order" - MARGIN_CROSS_PUBLIC = "margin_cross_public" - MARGIN_CROSS_REPAY = "margin_cross_repay" - MARGIN_ISOLATED_ACCOUNT = "margin_isolated_account" - MARGIN_ISOLATED_BORROW = "margin_isolated_borrow" - MARGIN_ISOLATED_FINFLOW = "margin_isolated_finflow" - MARGIN_ISOLATED_INTEREST = "margin_isolated_interest" - MARGIN_ISOLATED_LIQUIDATION = "margin_isolated_liquidation" - MARGIN_ISOLATED_ORDER = "margin_isolated_order" - MARGIN_ISOLATED_PUBLIC = "margin_isolated_public" - MARGIN_ISOLATED_REPAY = "margin_isolated_repay" - MARGIN_PUBLIC = "margin_public" - P2P_MERCHANT = "p2p_merchant" diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_account_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_account_api.py deleted file mode 100644 index 9c4d4399..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_account_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_account_assets.get import MarginCrossAccountAssets -from bitget.paths.api_margin_v1_cross_account_borrow.post import MarginCrossAccountBorrow -from bitget.paths.api_margin_v1_cross_account_max_borrowable_amount.post import MarginCrossAccountMaxBorrowableAmount -from bitget.paths.api_margin_v1_cross_account_max_transfer_out_amount.get import MarginCrossAccountMaxTransferOutAmount -from bitget.paths.api_margin_v1_cross_account_repay.post import MarginCrossAccountRepay -from bitget.paths.api_margin_v1_cross_account_risk_rate.get import MarginCrossAccountRiskRate -from bitget.paths.api_margin_v1_cross_account_void.get import Void - - -class MarginCrossAccountApi( - MarginCrossAccountAssets, - MarginCrossAccountBorrow, - MarginCrossAccountMaxBorrowableAmount, - MarginCrossAccountMaxTransferOutAmount, - MarginCrossAccountRepay, - MarginCrossAccountRiskRate, - Void, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_borrow_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_borrow_api.py deleted file mode 100644 index 905b1925..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_borrow_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_loan_list.get import CrossLoanList - - -class MarginCrossBorrowApi( - CrossLoanList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_finflow_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_finflow_api.py deleted file mode 100644 index d06250aa..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_finflow_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_fin_list.get import CrossFinList - - -class MarginCrossFinflowApi( - CrossFinList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_interest_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_interest_api.py deleted file mode 100644 index 5baf210e..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_interest_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_interest_list.get import CrossInterestList - - -class MarginCrossInterestApi( - CrossInterestList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_liquidation_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_liquidation_api.py deleted file mode 100644 index e5a5628b..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_liquidation_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_liquidation_list.get import CrossLiquidationList - - -class MarginCrossLiquidationApi( - CrossLiquidationList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_order_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_order_api.py deleted file mode 100644 index cb9793d0..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_order_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_order_batch_cancel_order.post import MarginCrossBatchCancelOrder -from bitget.paths.api_margin_v1_cross_order_batch_place_order.post import MarginCrossBatchPlaceOrder -from bitget.paths.api_margin_v1_cross_order_cancel_order.post import MarginCrossCancelOrder -from bitget.paths.api_margin_v1_cross_order_fills.get import MarginCrossFills -from bitget.paths.api_margin_v1_cross_order_history.get import MarginCrossHistoryOrders -from bitget.paths.api_margin_v1_cross_order_open_orders.get import MarginCrossOpenOrders -from bitget.paths.api_margin_v1_cross_order_place_order.post import MarginCrossPlaceOrder - - -class MarginCrossOrderApi( - MarginCrossBatchCancelOrder, - MarginCrossBatchPlaceOrder, - MarginCrossCancelOrder, - MarginCrossFills, - MarginCrossHistoryOrders, - MarginCrossOpenOrders, - MarginCrossPlaceOrder, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_public_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_public_api.py deleted file mode 100644 index 2a55e900..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_public_api.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_public_interest_rate_and_limit.get import MarginCrossPublicInterestRateAndLimit -from bitget.paths.api_margin_v1_cross_public_tier_data.get import MarginCrossPublicTierData - - -class MarginCrossPublicApi( - MarginCrossPublicInterestRateAndLimit, - MarginCrossPublicTierData, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_repay_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_repay_api.py deleted file mode 100644 index 830855b7..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_cross_repay_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_cross_repay_list.get import CrossRepayList - - -class MarginCrossRepayApi( - CrossRepayList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_account_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_account_api.py deleted file mode 100644 index 5f053c8a..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_account_api.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_account_assets.get import MarginIsolatedAccountAssets -from bitget.paths.api_margin_v1_isolated_account_borrow.post import MarginIsolatedAccountBorrow -from bitget.paths.api_margin_v1_isolated_account_max_borrowable_amount.post import MarginIsolatedAccountMaxBorrowableAmount -from bitget.paths.api_margin_v1_isolated_account_max_transfer_out_amount.get import MarginIsolatedAccountMaxTransferOutAmount -from bitget.paths.api_margin_v1_isolated_account_repay.post import MarginIsolatedAccountRepay -from bitget.paths.api_margin_v1_isolated_account_risk_rate.post import MarginIsolatedAccountRiskRate - - -class MarginIsolatedAccountApi( - MarginIsolatedAccountAssets, - MarginIsolatedAccountBorrow, - MarginIsolatedAccountMaxBorrowableAmount, - MarginIsolatedAccountMaxTransferOutAmount, - MarginIsolatedAccountRepay, - MarginIsolatedAccountRiskRate, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_borrow_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_borrow_api.py deleted file mode 100644 index 6872f2a1..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_borrow_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_loan_list.get import IsolatedLoanList - - -class MarginIsolatedBorrowApi( - IsolatedLoanList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_finflow_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_finflow_api.py deleted file mode 100644 index 7f40e1d7..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_finflow_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_fin_list.get import IsolatedFinList - - -class MarginIsolatedFinflowApi( - IsolatedFinList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_interest_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_interest_api.py deleted file mode 100644 index bd7d7416..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_interest_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_interest_list.get import IsolatedInterestList - - -class MarginIsolatedInterestApi( - IsolatedInterestList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_liquidation_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_liquidation_api.py deleted file mode 100644 index ba99388b..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_liquidation_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_liquidation_list.get import IsolatedLiquidationList - - -class MarginIsolatedLiquidationApi( - IsolatedLiquidationList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_order_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_order_api.py deleted file mode 100644 index 7d6eec0a..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_order_api.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_order_batch_cancel_order.post import MarginIsolatedBatchCancelOrder -from bitget.paths.api_margin_v1_isolated_order_batch_place_order.post import MarginIsolatedBatchPlaceOrder -from bitget.paths.api_margin_v1_isolated_order_cancel_order.post import MarginIsolatedCancelOrder -from bitget.paths.api_margin_v1_isolated_order_fills.get import MarginIsolatedFills -from bitget.paths.api_margin_v1_isolated_order_history.get import MarginIsolatedHistoryOrders -from bitget.paths.api_margin_v1_isolated_order_open_orders.get import MarginIsolatedOpenOrders -from bitget.paths.api_margin_v1_isolated_order_place_order.post import MarginIsolatedPlaceOrder - - -class MarginIsolatedOrderApi( - MarginIsolatedBatchCancelOrder, - MarginIsolatedBatchPlaceOrder, - MarginIsolatedCancelOrder, - MarginIsolatedFills, - MarginIsolatedHistoryOrders, - MarginIsolatedOpenOrders, - MarginIsolatedPlaceOrder, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_public_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_public_api.py deleted file mode 100644 index 5c5aadea..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_public_api.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_public_interest_rate_and_limit.get import MarginIsolatedPublicInterestRateAndLimit -from bitget.paths.api_margin_v1_isolated_public_tier_data.get import MarginIsolatedPublicTierData - - -class MarginIsolatedPublicApi( - MarginIsolatedPublicInterestRateAndLimit, - MarginIsolatedPublicTierData, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_repay_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_repay_api.py deleted file mode 100644 index 5e3e5d13..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_isolated_repay_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_isolated_repay_list.get import IsolateRepayList - - -class MarginIsolatedRepayApi( - IsolateRepayList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/margin_public_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/margin_public_api.py deleted file mode 100644 index e3ca0e9f..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/margin_public_api.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_margin_v1_public_currencies.get import MarginPublicCurrencies - - -class MarginPublicApi( - MarginPublicCurrencies, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/apis/tags/p2p_merchant_api.py b/bitget-python-sdk-open-api/bitget/apis/tags/p2p_merchant_api.py deleted file mode 100644 index 11c09e31..00000000 --- a/bitget-python-sdk-open-api/bitget/apis/tags/p2p_merchant_api.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from bitget.paths.api_p2p_v1_merchant_adv_list.get import MerchantAdvList -from bitget.paths.api_p2p_v1_merchant_merchant_info.get import MerchantInfo -from bitget.paths.api_p2p_v1_merchant_merchant_list.get import MerchantList -from bitget.paths.api_p2p_v1_merchant_order_list.get import MerchantOrderList - - -class P2pMerchantApi( - MerchantAdvList, - MerchantInfo, - MerchantList, - MerchantOrderList, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/bitget-python-sdk-open-api/bitget/configuration.py b/bitget-python-sdk-open-api/bitget/configuration.py deleted file mode 100644 index cecd2424..00000000 --- a/bitget-python-sdk-open-api/bitget/configuration.py +++ /dev/null @@ -1,505 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -from http import client as http_client -from bitget.exceptions import ApiValueError - - -JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems', - 'uniqueItems', 'maxProperties', 'minProperties', -} - -class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. - - :Example: - - API Key Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - cookieAuth: # name for the security scheme - type: apiKey - in: cookie - name: JSESSIONID # cookie name - - You can programmatically set the cookie: - -conf = bitget.Configuration( - api_key={'cookieAuth': 'abc123'} - api_key_prefix={'cookieAuth': 'JSESSIONID'} -) - - The following cookie will be added to the HTTP request: - Cookie: JSESSIONID abc123 - """ - - _default = None - - def __init__(self, host=None, - api_key=None, api_key_prefix=None, - username=None, password=None, - discard_unknown_keys=False, - disabled_client_side_validations="", - server_index=None, server_variables=None, - server_operation_index=None, server_operation_variables=None, - ): - """Constructor - """ - self._base_path = "https://api.bitget.com" if host is None else host - """Default Base url - """ - self.server_index = 0 if server_index is None and host is None else server_index - self.server_operation_index = server_operation_index or {} - """Default server index - """ - self.server_variables = server_variables or {} - self.server_operation_variables = server_operation_variables or {} - """Default server variables - """ - self.temp_folder_path = None - """Temp file folder for downloading files - """ - # Authentication Settings - self.api_key = {} - if api_key: - self.api_key = api_key - """dict to store API key(s) - """ - self.api_key_prefix = {} - if api_key_prefix: - self.api_key_prefix = api_key_prefix - """dict to store API prefix (e.g. Bearer) - """ - self.refresh_api_key_hook = None - """function hook to refresh API key if expired - """ - self.username = username - """Username for HTTP basic authentication - """ - self.password = password - """Password for HTTP basic authentication - """ - self.discard_unknown_keys = discard_unknown_keys - self.disabled_client_side_validations = disabled_client_side_validations - self.logger = {} - """Logging Settings - """ - self.logger["package_logger"] = logging.getLogger("bitget") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - """Log format - """ - self.logger_stream_handler = None - """Log stream handler - """ - self.logger_file_handler = None - """Log file handler - """ - self.logger_file = None - """Debug file location - """ - self.debug = False - """Debug switch - """ - - self.verify_ssl = True - """SSL/TLS verification - Set this to false to skip verifying SSL certificate when calling API - from https server. - """ - self.ssl_ca_cert = None - """Set this to customize the certificate file to verify the peer. - """ - self.cert_file = None - """client certificate file - """ - self.key_file = None - """client key file - """ - self.assert_hostname = None - """Set this to True/False to enable/disable SSL hostname verification. - """ - - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - """urllib3 connection pool's maximum number of connections saved - per pool. urllib3 uses 1 connection as default value, but this is - not the best value when you are making a lot of possibly parallel - requests to the same host, which is often the case here. - cpu_count * 5 is used as default value to increase performance. - """ - - self.proxy = None - """Proxy URL - """ - self.proxy_headers = None - """Proxy headers - """ - self.safe_chars_for_path_param = '' - """Safe chars for path_param - """ - self.retries = None - """Adding retries to override urllib3 default value 3 - """ - # Enable client side validation - self.client_side_validation = True - - # Options to pass down to the underlying urllib3 socket - self.socket_options = None - - def __deepcopy__(self, memo): - cls = self.__class__ - result = cls.__new__(cls) - memo[id(self)] = result - for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): - setattr(result, k, copy.deepcopy(v, memo)) - # shallow copy of loggers - result.logger = copy.copy(self.logger) - # use setters to configure loggers - result.logger_file = self.logger_file - result.debug = self.debug - return result - - def __setattr__(self, name, value): - object.__setattr__(self, name, value) - if name == 'disabled_client_side_validations': - s = set(filter(None, value.split(','))) - for v in s: - if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError( - "Invalid keyword: '{0}''".format(v)) - self._disabled_client_side_validations = s - - @classmethod - def set_default(cls, default): - """Set default instance of configuration. - - It stores default configuration, which can be - returned by get_default_copy method. - - :param default: object of Configuration - """ - cls._default = copy.deepcopy(default) - - @classmethod - def get_default_copy(cls): - """Return new instance of configuration. - - This method returns newly created, based on default constructor, - object of Configuration class or returns a copy of default - configuration passed by the set_default method. - - :return: The configuration object. - """ - if cls._default is not None: - return copy.deepcopy(cls._default) - return Configuration() - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in self.logger.items(): - logger.addHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in self.logger.items(): - logger.setLevel(logging.DEBUG) - # turn on http_client debug - http_client.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in self.logger.items(): - logger.setLevel(logging.WARNING) - # turn off http_client debug - http_client.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier, alias=None): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :param alias: The alternative identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook is not None: - self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - username = "" - if self.username is not None: - username = self.username - password = "" - if self.password is not None: - password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - auth = {} - if 'ACCESS_KEY' in self.api_key: - auth['ACCESS_KEY'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'ACCESS-KEY', - 'value': self.get_api_key_with_prefix( - 'ACCESS_KEY', - ), - } - if 'ACCESS_PASSPHRASE' in self.api_key: - auth['ACCESS_PASSPHRASE'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'ACCESS-PASSPHRASE', - 'value': self.get_api_key_with_prefix( - 'ACCESS_PASSPHRASE', - ), - } - if 'ACCESS_SIGN' in self.api_key: - auth['ACCESS_SIGN'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'ACCESS-SIGN', - 'value': self.get_api_key_with_prefix( - 'ACCESS_SIGN', - ), - } - if 'ACCESS_TIMESTAMP' in self.api_key: - auth['ACCESS_TIMESTAMP'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'ACCESS-TIMESTAMP', - 'value': self.get_api_key_with_prefix( - 'ACCESS_TIMESTAMP', - ), - } - if 'SECRET_KEY' in self.api_key: - auth['SECRET_KEY'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'SECRET-KEY', - 'value': self.get_api_key_with_prefix( - 'SECRET_KEY', - ), - } - return auth - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 2.0.0\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) - - def get_host_settings(self): - """Gets an array of host settings - - :return: An array of host settings - """ - return [ - { - 'url': "https://api.bitget.com", - 'description': "No description provided", - } - ] - - def get_host_from_settings(self, index, variables=None, servers=None): - """Gets host URL based on the index and variables - :param index: array index of the host settings - :param variables: hash of variable and the corresponding value - :param servers: an array of host settings or None - :return: URL based on host settings - """ - if index is None: - return self._base_path - - variables = {} if variables is None else variables - servers = self.get_host_settings() if servers is None else servers - - try: - server = servers[index] - except IndexError: - raise ValueError( - "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) - - url = server['url'] - - # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) - - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: - raise ValueError( - "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) - - url = url.replace("{" + variable_name + "}", used_value) - - return url - - @property - def host(self): - """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) - - @host.setter - def host(self, value): - """Fix base path.""" - self._base_path = value - self.server_index = None diff --git a/bitget-python-sdk-open-api/bitget/exceptions.py b/bitget-python-sdk-open-api/bitget/exceptions.py deleted file mode 100644 index 19ba412c..00000000 --- a/bitget-python-sdk-open-api/bitget/exceptions.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - - -class OpenApiException(Exception): - """The base exception class for all OpenAPIExceptions""" - - -class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): - """ Raises an exception for TypeErrors - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list): a list of keys an indices to get to the - current_item - None if unset - valid_classes (tuple): the primitive classes that current item - should be an instance of - None if unset - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a list - None if unset - """ - self.path_to_item = path_to_item - self.valid_classes = valid_classes - self.key_type = key_type - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) - - -class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list) the path to the exception in the - received_data dict. None if unset - """ - - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) - - -class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): - """ - Raised when an attribute reference or assignment fails. - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) - - -class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) - - -class ApiException(OpenApiException): - - def __init__(self, status=None, reason=None, api_response: 'bitget.api_client.ApiResponse' = None): - if api_response: - self.status = api_response.response.status - self.reason = api_response.response.reason - self.body = api_response.response.data - self.headers = api_response.response.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message - - -def render_path(path_to_item): - """Returns a string representation of a path""" - result = "" - for pth in path_to_item: - if isinstance(pth, int): - result += "[{0}]".format(pth) - else: - result += "['{0}']".format(pth) - return result diff --git a/bitget-python-sdk-open-api/bitget/model/__init__.py b/bitget-python-sdk-open-api/bitget/model/__init__.py deleted file mode 100644 index 176d525c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from bitget.models import ModelA, ModelB diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.py deleted file mode 100644 index b1d95d4f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossAssetsPopulationResult']: - return MarginCrossAssetsPopulationResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossAssetsPopulationResult'], typing.List['MarginCrossAssetsPopulationResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossAssetsPopulationResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossAssetsPopulationResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_population_result import MarginCrossAssetsPopulationResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.pyi deleted file mode 100644 index b1d95d4f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_assets_population_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossAssetsPopulationResult']: - return MarginCrossAssetsPopulationResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossAssetsPopulationResult'], typing.List['MarginCrossAssetsPopulationResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossAssetsPopulationResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossAssetsPopulationResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_population_result import MarginCrossAssetsPopulationResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.py deleted file mode 100644 index db481fe5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossLevelResult']: - return MarginCrossLevelResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossLevelResult'], typing.List['MarginCrossLevelResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossLevelResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossLevelResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_level_result import MarginCrossLevelResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.pyi deleted file mode 100644 index db481fe5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_level_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossLevelResult']: - return MarginCrossLevelResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossLevelResult'], typing.List['MarginCrossLevelResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossLevelResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossLevelResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_level_result import MarginCrossLevelResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.py deleted file mode 100644 index 98361814..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossRateAndLimitResult']: - return MarginCrossRateAndLimitResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossRateAndLimitResult'], typing.List['MarginCrossRateAndLimitResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossRateAndLimitResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossRateAndLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_rate_and_limit_result import MarginCrossRateAndLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.pyi deleted file mode 100644 index 98361814..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_cross_rate_and_limit_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginCrossRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossRateAndLimitResult']: - return MarginCrossRateAndLimitResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossRateAndLimitResult'], typing.List['MarginCrossRateAndLimitResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossRateAndLimitResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginCrossRateAndLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_rate_and_limit_result import MarginCrossRateAndLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.py deleted file mode 100644 index 4e574293..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedAssetsPopulationResult']: - return MarginIsolatedAssetsPopulationResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedAssetsPopulationResult'], typing.List['MarginIsolatedAssetsPopulationResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedAssetsPopulationResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_population_result import MarginIsolatedAssetsPopulationResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.pyi deleted file mode 100644 index 4e574293..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_population_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedAssetsPopulationResult']: - return MarginIsolatedAssetsPopulationResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedAssetsPopulationResult'], typing.List['MarginIsolatedAssetsPopulationResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedAssetsPopulationResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_population_result import MarginIsolatedAssetsPopulationResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.py deleted file mode 100644 index 0ef1299d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedAssetsRiskResult']: - return MarginIsolatedAssetsRiskResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedAssetsRiskResult'], typing.List['MarginIsolatedAssetsRiskResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedAssetsRiskResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_risk_result import MarginIsolatedAssetsRiskResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.pyi deleted file mode 100644 index 0ef1299d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_assets_risk_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedAssetsRiskResult']: - return MarginIsolatedAssetsRiskResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedAssetsRiskResult'], typing.List['MarginIsolatedAssetsRiskResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedAssetsRiskResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_risk_result import MarginIsolatedAssetsRiskResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.py deleted file mode 100644 index 94f32e2c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLevelResult']: - return MarginIsolatedLevelResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLevelResult'], typing.List['MarginIsolatedLevelResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLevelResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedLevelResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_level_result import MarginIsolatedLevelResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.pyi deleted file mode 100644 index 94f32e2c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_level_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLevelResult']: - return MarginIsolatedLevelResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLevelResult'], typing.List['MarginIsolatedLevelResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLevelResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedLevelResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_level_result import MarginIsolatedLevelResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py deleted file mode 100644 index 094d82ec..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedRateAndLimitResult']: - return MarginIsolatedRateAndLimitResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedRateAndLimitResult'], typing.List['MarginIsolatedRateAndLimitResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedRateAndLimitResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_rate_and_limit_result import MarginIsolatedRateAndLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.pyi deleted file mode 100644 index 094d82ec..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_isolated_rate_and_limit_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedRateAndLimitResult']: - return MarginIsolatedRateAndLimitResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedRateAndLimitResult'], typing.List['MarginIsolatedRateAndLimitResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedRateAndLimitResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_rate_and_limit_result import MarginIsolatedRateAndLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.py deleted file mode 100644 index 16409102..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginSystemResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginSystemResult']: - return MarginSystemResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginSystemResult'], typing.List['MarginSystemResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginSystemResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginSystemResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_system_result import MarginSystemResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.pyi deleted file mode 100644 index 16409102..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_list_of_margin_system_result.pyi +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfListOfMarginSystemResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginSystemResult']: - return MarginSystemResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginSystemResult'], typing.List['MarginSystemResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginSystemResult': - return super().__getitem__(i) - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfListOfMarginSystemResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_system_result import MarginSystemResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.py deleted file mode 100644 index 5b2e4482..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginBatchCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginBatchCancelOrderResult']: - return MarginBatchCancelOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginBatchCancelOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginBatchCancelOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginBatchCancelOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginBatchCancelOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_cancel_order_result import MarginBatchCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.pyi deleted file mode 100644 index 5b2e4482..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_cancel_order_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginBatchCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginBatchCancelOrderResult']: - return MarginBatchCancelOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginBatchCancelOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginBatchCancelOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginBatchCancelOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginBatchCancelOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_cancel_order_result import MarginBatchCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.py deleted file mode 100644 index 04e0026c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginBatchPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginBatchPlaceOrderResult']: - return MarginBatchPlaceOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginBatchPlaceOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginBatchPlaceOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginBatchPlaceOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginBatchPlaceOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_place_order_result import MarginBatchPlaceOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.pyi deleted file mode 100644 index 04e0026c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_batch_place_order_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginBatchPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginBatchPlaceOrderResult']: - return MarginBatchPlaceOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginBatchPlaceOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginBatchPlaceOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginBatchPlaceOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginBatchPlaceOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_place_order_result import MarginBatchPlaceOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.py deleted file mode 100644 index 52ebba6e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossAssetsResult']: - return MarginCrossAssetsResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossAssetsResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossAssetsResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossAssetsResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossAssetsResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_result import MarginCrossAssetsResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.pyi deleted file mode 100644 index 52ebba6e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossAssetsResult']: - return MarginCrossAssetsResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossAssetsResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossAssetsResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossAssetsResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossAssetsResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_result import MarginCrossAssetsResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.py deleted file mode 100644 index f27fb499..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossAssetsRiskResult']: - return MarginCrossAssetsRiskResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossAssetsRiskResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossAssetsRiskResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossAssetsRiskResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossAssetsRiskResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_risk_result import MarginCrossAssetsRiskResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.pyi deleted file mode 100644 index f27fb499..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_assets_risk_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossAssetsRiskResult']: - return MarginCrossAssetsRiskResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossAssetsRiskResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossAssetsRiskResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossAssetsRiskResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossAssetsRiskResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_assets_risk_result import MarginCrossAssetsRiskResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.py deleted file mode 100644 index 49f4a03a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossBorrowLimitResult']: - return MarginCrossBorrowLimitResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossBorrowLimitResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossBorrowLimitResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossBorrowLimitResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossBorrowLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_borrow_limit_result import MarginCrossBorrowLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.pyi deleted file mode 100644 index 49f4a03a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_borrow_limit_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossBorrowLimitResult']: - return MarginCrossBorrowLimitResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossBorrowLimitResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossBorrowLimitResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossBorrowLimitResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossBorrowLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_borrow_limit_result import MarginCrossBorrowLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.py deleted file mode 100644 index a166f515..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossFinFlowResult']: - return MarginCrossFinFlowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossFinFlowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossFinFlowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossFinFlowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossFinFlowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_fin_flow_result import MarginCrossFinFlowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.pyi deleted file mode 100644 index a166f515..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_fin_flow_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossFinFlowResult']: - return MarginCrossFinFlowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossFinFlowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossFinFlowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossFinFlowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossFinFlowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_fin_flow_result import MarginCrossFinFlowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.py deleted file mode 100644 index c02ac50d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossMaxBorrowResult']: - return MarginCrossMaxBorrowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossMaxBorrowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossMaxBorrowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossMaxBorrowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossMaxBorrowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_max_borrow_result import MarginCrossMaxBorrowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.pyi deleted file mode 100644 index c02ac50d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_max_borrow_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossMaxBorrowResult']: - return MarginCrossMaxBorrowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossMaxBorrowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossMaxBorrowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossMaxBorrowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossMaxBorrowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_max_borrow_result import MarginCrossMaxBorrowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.py deleted file mode 100644 index ee85841c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossRepayResult']: - return MarginCrossRepayResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossRepayResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossRepayResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossRepayResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossRepayResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_repay_result import MarginCrossRepayResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.pyi deleted file mode 100644 index ee85841c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_cross_repay_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginCrossRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginCrossRepayResult']: - return MarginCrossRepayResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginCrossRepayResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginCrossRepayResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginCrossRepayResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginCrossRepayResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_repay_result import MarginCrossRepayResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.py deleted file mode 100644 index 4e3724ba..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginInterestInfoResult']: - return MarginInterestInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginInterestInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginInterestInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginInterestInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginInterestInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_interest_info_result import MarginInterestInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.pyi deleted file mode 100644 index 4e3724ba..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_interest_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginInterestInfoResult']: - return MarginInterestInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginInterestInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginInterestInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginInterestInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginInterestInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_interest_info_result import MarginInterestInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.py deleted file mode 100644 index da2bb08e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedAssetsResult']: - return MarginIsolatedAssetsResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedAssetsResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedAssetsResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedAssetsResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedAssetsResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_result import MarginIsolatedAssetsResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.pyi deleted file mode 100644 index da2bb08e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_assets_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedAssetsResult']: - return MarginIsolatedAssetsResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedAssetsResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedAssetsResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedAssetsResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedAssetsResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_assets_result import MarginIsolatedAssetsResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.py deleted file mode 100644 index 14ce1f70..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedBorrowLimitResult']: - return MarginIsolatedBorrowLimitResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedBorrowLimitResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedBorrowLimitResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedBorrowLimitResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedBorrowLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_borrow_limit_result import MarginIsolatedBorrowLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.pyi deleted file mode 100644 index 14ce1f70..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_borrow_limit_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedBorrowLimitResult']: - return MarginIsolatedBorrowLimitResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedBorrowLimitResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedBorrowLimitResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedBorrowLimitResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedBorrowLimitResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_borrow_limit_result import MarginIsolatedBorrowLimitResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.py deleted file mode 100644 index 16ebecf5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedFinFlowResult']: - return MarginIsolatedFinFlowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedFinFlowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedFinFlowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedFinFlowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedFinFlowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_fin_flow_result import MarginIsolatedFinFlowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.pyi deleted file mode 100644 index 16ebecf5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_fin_flow_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedFinFlowResult']: - return MarginIsolatedFinFlowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedFinFlowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedFinFlowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedFinFlowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedFinFlowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_fin_flow_result import MarginIsolatedFinFlowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.py deleted file mode 100644 index c8beff3b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedInterestInfoResult']: - return MarginIsolatedInterestInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedInterestInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedInterestInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedInterestInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedInterestInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_interest_info_result import MarginIsolatedInterestInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.pyi deleted file mode 100644 index c8beff3b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_interest_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedInterestInfoResult']: - return MarginIsolatedInterestInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedInterestInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedInterestInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedInterestInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedInterestInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_interest_info_result import MarginIsolatedInterestInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.py deleted file mode 100644 index c5ea7e8c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedLiquidationInfoResult']: - return MarginIsolatedLiquidationInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedLiquidationInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedLiquidationInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedLiquidationInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedLiquidationInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_liquidation_info_result import MarginIsolatedLiquidationInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.pyi deleted file mode 100644 index c5ea7e8c..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_liquidation_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedLiquidationInfoResult']: - return MarginIsolatedLiquidationInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedLiquidationInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedLiquidationInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedLiquidationInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedLiquidationInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_liquidation_info_result import MarginIsolatedLiquidationInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.py deleted file mode 100644 index 87d916e9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedLoanInfoResult']: - return MarginIsolatedLoanInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedLoanInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedLoanInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedLoanInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedLoanInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_loan_info_result import MarginIsolatedLoanInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.pyi deleted file mode 100644 index 87d916e9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_loan_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedLoanInfoResult']: - return MarginIsolatedLoanInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedLoanInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedLoanInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedLoanInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedLoanInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_loan_info_result import MarginIsolatedLoanInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.py deleted file mode 100644 index 8daab9aa..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedMaxBorrowResult']: - return MarginIsolatedMaxBorrowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedMaxBorrowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedMaxBorrowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedMaxBorrowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedMaxBorrowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_max_borrow_result import MarginIsolatedMaxBorrowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.pyi deleted file mode 100644 index 8daab9aa..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_max_borrow_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedMaxBorrowResult']: - return MarginIsolatedMaxBorrowResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedMaxBorrowResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedMaxBorrowResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedMaxBorrowResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedMaxBorrowResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_max_borrow_result import MarginIsolatedMaxBorrowResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.py deleted file mode 100644 index 77eb4c7f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedRepayInfoResult']: - return MarginIsolatedRepayInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedRepayInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedRepayInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedRepayInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedRepayInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_info_result import MarginIsolatedRepayInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.pyi deleted file mode 100644 index 77eb4c7f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedRepayInfoResult']: - return MarginIsolatedRepayInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedRepayInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedRepayInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedRepayInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedRepayInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_info_result import MarginIsolatedRepayInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.py deleted file mode 100644 index 48998ebf..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedRepayResult']: - return MarginIsolatedRepayResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedRepayResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedRepayResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedRepayResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedRepayResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_result import MarginIsolatedRepayResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.pyi deleted file mode 100644 index 48998ebf..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_isolated_repay_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginIsolatedRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginIsolatedRepayResult']: - return MarginIsolatedRepayResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginIsolatedRepayResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginIsolatedRepayResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginIsolatedRepayResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginIsolatedRepayResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_result import MarginIsolatedRepayResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.py deleted file mode 100644 index dc4c6898..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginLiquidationInfoResult']: - return MarginLiquidationInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginLiquidationInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginLiquidationInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginLiquidationInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginLiquidationInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_liquidation_info_result import MarginLiquidationInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.pyi deleted file mode 100644 index dc4c6898..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_liquidation_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginLiquidationInfoResult']: - return MarginLiquidationInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginLiquidationInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginLiquidationInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginLiquidationInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginLiquidationInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_liquidation_info_result import MarginLiquidationInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.py deleted file mode 100644 index e1efc3c9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginLoanInfoResult']: - return MarginLoanInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginLoanInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginLoanInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginLoanInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginLoanInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_loan_info_result import MarginLoanInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.pyi deleted file mode 100644 index e1efc3c9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_loan_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginLoanInfoResult']: - return MarginLoanInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginLoanInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginLoanInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginLoanInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginLoanInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_loan_info_result import MarginLoanInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.py deleted file mode 100644 index 972e3932..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginOpenOrderInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginOpenOrderInfoResult']: - return MarginOpenOrderInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginOpenOrderInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginOpenOrderInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginOpenOrderInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginOpenOrderInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_open_order_info_result import MarginOpenOrderInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.pyi deleted file mode 100644 index 972e3932..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_open_order_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginOpenOrderInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginOpenOrderInfoResult']: - return MarginOpenOrderInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginOpenOrderInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginOpenOrderInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginOpenOrderInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginOpenOrderInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_open_order_info_result import MarginOpenOrderInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.py deleted file mode 100644 index 5de8ef53..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginPlaceOrderResult']: - return MarginPlaceOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginPlaceOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginPlaceOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginPlaceOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginPlaceOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_place_order_result import MarginPlaceOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.pyi deleted file mode 100644 index 5de8ef53..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_place_order_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginPlaceOrderResult']: - return MarginPlaceOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginPlaceOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginPlaceOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginPlaceOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginPlaceOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_place_order_result import MarginPlaceOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.py deleted file mode 100644 index c9347069..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginRepayInfoResult']: - return MarginRepayInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginRepayInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginRepayInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginRepayInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginRepayInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_repay_info_result import MarginRepayInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.pyi deleted file mode 100644 index c9347069..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_repay_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginRepayInfoResult']: - return MarginRepayInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginRepayInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginRepayInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginRepayInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginRepayInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_repay_info_result import MarginRepayInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.py deleted file mode 100644 index 41a10a53..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginTradeDetailInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginTradeDetailInfoResult']: - return MarginTradeDetailInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginTradeDetailInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginTradeDetailInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginTradeDetailInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginTradeDetailInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_trade_detail_info_result import MarginTradeDetailInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.pyi deleted file mode 100644 index 41a10a53..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_margin_trade_detail_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMarginTradeDetailInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MarginTradeDetailInfoResult']: - return MarginTradeDetailInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MarginTradeDetailInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MarginTradeDetailInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MarginTradeDetailInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMarginTradeDetailInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_trade_detail_info_result import MarginTradeDetailInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.py deleted file mode 100644 index a2f1deaa..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantAdvResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantAdvResult']: - return MerchantAdvResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantAdvResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantAdvResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantAdvResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantAdvResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_adv_result import MerchantAdvResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.pyi deleted file mode 100644 index a2f1deaa..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_adv_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantAdvResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantAdvResult']: - return MerchantAdvResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantAdvResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantAdvResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantAdvResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantAdvResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_adv_result import MerchantAdvResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.py deleted file mode 100644 index 9aed7d3b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantInfoResult']: - return MerchantInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_info_result import MerchantInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.pyi deleted file mode 100644 index 9aed7d3b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_info_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantInfoResult']: - return MerchantInfoResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantInfoResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantInfoResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantInfoResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantInfoResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_info_result import MerchantInfoResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.py deleted file mode 100644 index 8d7db3cb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantOrderResult']: - return MerchantOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_result import MerchantOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.pyi deleted file mode 100644 index 8d7db3cb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_order_result.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantOrderResult']: - return MerchantOrderResult - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantOrderResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantOrderResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantOrderResult', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantOrderResult': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_result import MerchantOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.py deleted file mode 100644 index 0b1527be..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantPersonInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantPersonInfo']: - return MerchantPersonInfo - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantPersonInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantPersonInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantPersonInfo', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantPersonInfo': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_person_info import MerchantPersonInfo diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.pyi deleted file mode 100644 index 0b1527be..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_merchant_person_info.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfMerchantPersonInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - - @staticmethod - def data() -> typing.Type['MerchantPersonInfo']: - return MerchantPersonInfo - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "data": data, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> 'MerchantPersonInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union['MerchantPersonInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "data", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - data: typing.Union['MerchantPersonInfo', schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfMerchantPersonInfo': - return super().__new__( - cls, - *args, - code=code, - data=data, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_person_info import MerchantPersonInfo diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.py b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.py deleted file mode 100644 index 504caf8d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfVoid( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfVoid': - return super().__new__( - cls, - *args, - code=code, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.pyi b/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.pyi deleted file mode 100644 index 504caf8d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/api_response_result_of_void.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class ApiResponseResultOfVoid( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.StrSchema - msg = schemas.StrSchema - requestTime = schemas.Int64Schema - __annotations__ = { - "code": code, - "msg": msg, - "requestTime": requestTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestTime"]) -> MetaOapg.properties.requestTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "msg", "requestTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> typing.Union[MetaOapg.properties.msg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestTime"]) -> typing.Union[MetaOapg.properties.requestTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "msg", "requestTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - msg: typing.Union[MetaOapg.properties.msg, str, schemas.Unset] = schemas.unset, - requestTime: typing.Union[MetaOapg.properties.requestTime, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponseResultOfVoid': - return super().__new__( - cls, - *args, - code=code, - msg=msg, - requestTime=requestTime, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.py b/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.py deleted file mode 100644 index 65484bd3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class FiatPaymentDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - required = schemas.BoolSchema - type = schemas.StrSchema - __annotations__ = { - "name": name, - "required": required, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["required"]) -> MetaOapg.properties.required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["required"]) -> typing.Union[MetaOapg.properties.required, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - required: typing.Union[MetaOapg.properties.required, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatPaymentDetailInfo': - return super().__new__( - cls, - *args, - name=name, - required=required, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.pyi b/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.pyi deleted file mode 100644 index 65484bd3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/fiat_payment_detail_info.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class FiatPaymentDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - required = schemas.BoolSchema - type = schemas.StrSchema - __annotations__ = { - "name": name, - "required": required, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["required"]) -> MetaOapg.properties.required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["required"]) -> typing.Union[MetaOapg.properties.required, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - required: typing.Union[MetaOapg.properties.required, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatPaymentDetailInfo': - return super().__new__( - cls, - *args, - name=name, - required=required, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.py b/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.py deleted file mode 100644 index a33c8e6d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class FiatPaymentInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - paymentId = schemas.StrSchema - - - class paymentInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatPaymentDetailInfo']: - return FiatPaymentDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['FiatPaymentDetailInfo'], typing.List['FiatPaymentDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymentInfo': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatPaymentDetailInfo': - return super().__getitem__(i) - paymentMethod = schemas.StrSchema - __annotations__ = { - "paymentId": paymentId, - "paymentInfo": paymentInfo, - "paymentMethod": paymentMethod, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentId"]) -> MetaOapg.properties.paymentId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentInfo"]) -> MetaOapg.properties.paymentInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentMethod"]) -> MetaOapg.properties.paymentMethod: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymentId", "paymentInfo", "paymentMethod", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentId"]) -> typing.Union[MetaOapg.properties.paymentId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentInfo"]) -> typing.Union[MetaOapg.properties.paymentInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentMethod"]) -> typing.Union[MetaOapg.properties.paymentMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymentId", "paymentInfo", "paymentMethod", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - paymentId: typing.Union[MetaOapg.properties.paymentId, str, schemas.Unset] = schemas.unset, - paymentInfo: typing.Union[MetaOapg.properties.paymentInfo, list, tuple, schemas.Unset] = schemas.unset, - paymentMethod: typing.Union[MetaOapg.properties.paymentMethod, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatPaymentInfo': - return super().__new__( - cls, - *args, - paymentId=paymentId, - paymentInfo=paymentInfo, - paymentMethod=paymentMethod, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.fiat_payment_detail_info import FiatPaymentDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.pyi b/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.pyi deleted file mode 100644 index a33c8e6d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/fiat_payment_info.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class FiatPaymentInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - paymentId = schemas.StrSchema - - - class paymentInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatPaymentDetailInfo']: - return FiatPaymentDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['FiatPaymentDetailInfo'], typing.List['FiatPaymentDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymentInfo': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatPaymentDetailInfo': - return super().__getitem__(i) - paymentMethod = schemas.StrSchema - __annotations__ = { - "paymentId": paymentId, - "paymentInfo": paymentInfo, - "paymentMethod": paymentMethod, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentId"]) -> MetaOapg.properties.paymentId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentInfo"]) -> MetaOapg.properties.paymentInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentMethod"]) -> MetaOapg.properties.paymentMethod: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymentId", "paymentInfo", "paymentMethod", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentId"]) -> typing.Union[MetaOapg.properties.paymentId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentInfo"]) -> typing.Union[MetaOapg.properties.paymentInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentMethod"]) -> typing.Union[MetaOapg.properties.paymentMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymentId", "paymentInfo", "paymentMethod", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - paymentId: typing.Union[MetaOapg.properties.paymentId, str, schemas.Unset] = schemas.unset, - paymentInfo: typing.Union[MetaOapg.properties.paymentInfo, list, tuple, schemas.Unset] = schemas.unset, - paymentMethod: typing.Union[MetaOapg.properties.paymentMethod, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatPaymentInfo': - return super().__new__( - cls, - *args, - paymentId=paymentId, - paymentInfo=paymentInfo, - paymentMethod=paymentMethod, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.fiat_payment_detail_info import FiatPaymentDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.py b/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.py deleted file mode 100644 index 9b6975a4..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchCancelOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - - - class clientOids( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'clientOids': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class orderIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderIds': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "symbol": symbol, - "clientOids": clientOids, - "orderIds": orderIds, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOids"]) -> MetaOapg.properties.clientOids: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderIds"]) -> MetaOapg.properties.orderIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOids", "orderIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOids"]) -> typing.Union[MetaOapg.properties.clientOids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderIds"]) -> typing.Union[MetaOapg.properties.orderIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOids", "orderIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - clientOids: typing.Union[MetaOapg.properties.clientOids, list, tuple, schemas.Unset] = schemas.unset, - orderIds: typing.Union[MetaOapg.properties.orderIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchCancelOrderRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - clientOids=clientOids, - orderIds=orderIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.pyi deleted file mode 100644 index 9b6975a4..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_request.pyi +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchCancelOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - - - class clientOids( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'clientOids': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class orderIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderIds': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "symbol": symbol, - "clientOids": clientOids, - "orderIds": orderIds, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOids"]) -> MetaOapg.properties.clientOids: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderIds"]) -> MetaOapg.properties.orderIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOids", "orderIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOids"]) -> typing.Union[MetaOapg.properties.clientOids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderIds"]) -> typing.Union[MetaOapg.properties.orderIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOids", "orderIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - clientOids: typing.Union[MetaOapg.properties.clientOids, list, tuple, schemas.Unset] = schemas.unset, - orderIds: typing.Union[MetaOapg.properties.orderIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchCancelOrderRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - clientOids=clientOids, - orderIds=orderIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.py b/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.py deleted file mode 100644 index e98b503b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class failure( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderFailureResult']: - return MarginCancelOrderFailureResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderFailureResult'], typing.List['MarginCancelOrderFailureResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'failure': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderFailureResult': - return super().__getitem__(i) - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderResult']: - return MarginCancelOrderResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderResult'], typing.List['MarginCancelOrderResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderResult': - return super().__getitem__(i) - __annotations__ = { - "failure": failure, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failure"]) -> MetaOapg.properties.failure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failure"]) -> typing.Union[MetaOapg.properties.failure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - failure: typing.Union[MetaOapg.properties.failure, list, tuple, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchCancelOrderResult': - return super().__new__( - cls, - *args, - failure=failure, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cancel_order_failure_result import MarginCancelOrderFailureResult -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.pyi deleted file mode 100644 index e98b503b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_cancel_order_result.pyi +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class failure( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderFailureResult']: - return MarginCancelOrderFailureResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderFailureResult'], typing.List['MarginCancelOrderFailureResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'failure': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderFailureResult': - return super().__getitem__(i) - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderResult']: - return MarginCancelOrderResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderResult'], typing.List['MarginCancelOrderResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderResult': - return super().__getitem__(i) - __annotations__ = { - "failure": failure, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failure"]) -> MetaOapg.properties.failure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failure"]) -> typing.Union[MetaOapg.properties.failure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - failure: typing.Union[MetaOapg.properties.failure, list, tuple, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchCancelOrderResult': - return super().__new__( - cls, - *args, - failure=failure, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cancel_order_failure_result import MarginCancelOrderFailureResult -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.py b/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.py deleted file mode 100644 index 68d0c76f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchOrdersRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - channelApiCode = schemas.StrSchema - ip = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginOrderRequest']: - return MarginOrderRequest - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginOrderRequest'], typing.List['MarginOrderRequest']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginOrderRequest': - return super().__getitem__(i) - __annotations__ = { - "symbol": symbol, - "channelApiCode": channelApiCode, - "ip": ip, - "orderList": orderList, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["channelApiCode"]) -> MetaOapg.properties.channelApiCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ip"]) -> MetaOapg.properties.ip: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "channelApiCode", "ip", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["channelApiCode"]) -> typing.Union[MetaOapg.properties.channelApiCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ip"]) -> typing.Union[MetaOapg.properties.ip, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "channelApiCode", "ip", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - channelApiCode: typing.Union[MetaOapg.properties.channelApiCode, str, schemas.Unset] = schemas.unset, - ip: typing.Union[MetaOapg.properties.ip, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchOrdersRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - channelApiCode=channelApiCode, - ip=ip, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_order_request import MarginOrderRequest diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.pyi deleted file mode 100644 index 68d0c76f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_orders_request.pyi +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchOrdersRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - channelApiCode = schemas.StrSchema - ip = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginOrderRequest']: - return MarginOrderRequest - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginOrderRequest'], typing.List['MarginOrderRequest']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginOrderRequest': - return super().__getitem__(i) - __annotations__ = { - "symbol": symbol, - "channelApiCode": channelApiCode, - "ip": ip, - "orderList": orderList, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["channelApiCode"]) -> MetaOapg.properties.channelApiCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ip"]) -> MetaOapg.properties.ip: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "channelApiCode", "ip", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["channelApiCode"]) -> typing.Union[MetaOapg.properties.channelApiCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ip"]) -> typing.Union[MetaOapg.properties.ip, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "channelApiCode", "ip", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - channelApiCode: typing.Union[MetaOapg.properties.channelApiCode, str, schemas.Unset] = schemas.unset, - ip: typing.Union[MetaOapg.properties.ip, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchOrdersRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - channelApiCode=channelApiCode, - ip=ip, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_order_request import MarginOrderRequest diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.py b/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.py deleted file mode 100644 index 9b3df9bb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchPlaceOrderFailureResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - errorMsg = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "errorMsg": errorMsg, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMsg"]) -> MetaOapg.properties.errorMsg: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMsg"]) -> typing.Union[MetaOapg.properties.errorMsg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - errorMsg: typing.Union[MetaOapg.properties.errorMsg, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchPlaceOrderFailureResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - errorMsg=errorMsg, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.pyi deleted file mode 100644 index 9b3df9bb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_failure_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchPlaceOrderFailureResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - errorMsg = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "errorMsg": errorMsg, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMsg"]) -> MetaOapg.properties.errorMsg: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMsg"]) -> typing.Union[MetaOapg.properties.errorMsg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - errorMsg: typing.Union[MetaOapg.properties.errorMsg, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchPlaceOrderFailureResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - errorMsg=errorMsg, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.py b/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.py deleted file mode 100644 index a8f0a6cb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class failure( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginBatchPlaceOrderFailureResult']: - return MarginBatchPlaceOrderFailureResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginBatchPlaceOrderFailureResult'], typing.List['MarginBatchPlaceOrderFailureResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'failure': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginBatchPlaceOrderFailureResult': - return super().__getitem__(i) - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderResult']: - return MarginCancelOrderResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderResult'], typing.List['MarginCancelOrderResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderResult': - return super().__getitem__(i) - __annotations__ = { - "failure": failure, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failure"]) -> MetaOapg.properties.failure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failure"]) -> typing.Union[MetaOapg.properties.failure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - failure: typing.Union[MetaOapg.properties.failure, list, tuple, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchPlaceOrderResult': - return super().__new__( - cls, - *args, - failure=failure, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_place_order_failure_result import MarginBatchPlaceOrderFailureResult -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.pyi deleted file mode 100644 index a8f0a6cb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_batch_place_order_result.pyi +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginBatchPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class failure( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginBatchPlaceOrderFailureResult']: - return MarginBatchPlaceOrderFailureResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginBatchPlaceOrderFailureResult'], typing.List['MarginBatchPlaceOrderFailureResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'failure': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginBatchPlaceOrderFailureResult': - return super().__getitem__(i) - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCancelOrderResult']: - return MarginCancelOrderResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCancelOrderResult'], typing.List['MarginCancelOrderResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCancelOrderResult': - return super().__getitem__(i) - __annotations__ = { - "failure": failure, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failure"]) -> MetaOapg.properties.failure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failure"]) -> typing.Union[MetaOapg.properties.failure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["failure", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - failure: typing.Union[MetaOapg.properties.failure, list, tuple, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginBatchPlaceOrderResult': - return super().__new__( - cls, - *args, - failure=failure, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_batch_place_order_failure_result import MarginBatchPlaceOrderFailureResult -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.py deleted file mode 100644 index 6a691c2d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderFailureResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - errorMsg = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "errorMsg": errorMsg, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMsg"]) -> MetaOapg.properties.errorMsg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMsg"]) -> typing.Union[MetaOapg.properties.errorMsg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - errorMsg: typing.Union[MetaOapg.properties.errorMsg, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderFailureResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - errorMsg=errorMsg, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.pyi deleted file mode 100644 index 6a691c2d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_failure_result.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderFailureResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - errorMsg = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "errorMsg": errorMsg, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMsg"]) -> MetaOapg.properties.errorMsg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMsg"]) -> typing.Union[MetaOapg.properties.errorMsg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "errorMsg", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - errorMsg: typing.Union[MetaOapg.properties.errorMsg, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderFailureResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - errorMsg=errorMsg, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.py b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.py deleted file mode 100644 index af6053f8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "symbol": symbol, - "clientOid": clientOid, - "orderId": orderId, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.pyi deleted file mode 100644 index af6053f8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_request.pyi +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "symbol": symbol, - "clientOid": clientOid, - "orderId": orderId, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.py deleted file mode 100644 index f0b8b0ff..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.pyi deleted file mode 100644 index f0b8b0ff..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cancel_order_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCancelOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCancelOrderResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.py deleted file mode 100644 index 64338819..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - available = schemas.StrSchema - borrow = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - frozen = schemas.StrSchema - interest = schemas.StrSchema - net = schemas.StrSchema - totalAmount = schemas.StrSchema - __annotations__ = { - "available": available, - "borrow": borrow, - "coin": coin, - "ctime": ctime, - "frozen": frozen, - "interest": interest, - "net": net, - "totalAmount": totalAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrow"]) -> MetaOapg.properties.borrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["net"]) -> MetaOapg.properties.net: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "totalAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrow"]) -> typing.Union[MetaOapg.properties.borrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["net"]) -> typing.Union[MetaOapg.properties.net, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "totalAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - borrow: typing.Union[MetaOapg.properties.borrow, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - net: typing.Union[MetaOapg.properties.net, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsPopulationResult': - return super().__new__( - cls, - *args, - available=available, - borrow=borrow, - coin=coin, - ctime=ctime, - frozen=frozen, - interest=interest, - net=net, - totalAmount=totalAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.pyi deleted file mode 100644 index 64338819..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_population_result.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - available = schemas.StrSchema - borrow = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - frozen = schemas.StrSchema - interest = schemas.StrSchema - net = schemas.StrSchema - totalAmount = schemas.StrSchema - __annotations__ = { - "available": available, - "borrow": borrow, - "coin": coin, - "ctime": ctime, - "frozen": frozen, - "interest": interest, - "net": net, - "totalAmount": totalAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrow"]) -> MetaOapg.properties.borrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["net"]) -> MetaOapg.properties.net: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "totalAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrow"]) -> typing.Union[MetaOapg.properties.borrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["net"]) -> typing.Union[MetaOapg.properties.net, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "totalAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - borrow: typing.Union[MetaOapg.properties.borrow, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - net: typing.Union[MetaOapg.properties.net, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsPopulationResult': - return super().__new__( - cls, - *args, - available=available, - borrow=borrow, - coin=coin, - ctime=ctime, - frozen=frozen, - interest=interest, - net=net, - totalAmount=totalAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.py deleted file mode 100644 index 2b678afe..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxTransferOutAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxTransferOutAmount": maxTransferOutAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> MetaOapg.properties.maxTransferOutAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> typing.Union[MetaOapg.properties.maxTransferOutAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxTransferOutAmount: typing.Union[MetaOapg.properties.maxTransferOutAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsResult': - return super().__new__( - cls, - *args, - coin=coin, - maxTransferOutAmount=maxTransferOutAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.pyi deleted file mode 100644 index 2b678afe..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxTransferOutAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxTransferOutAmount": maxTransferOutAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> MetaOapg.properties.maxTransferOutAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> typing.Union[MetaOapg.properties.maxTransferOutAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxTransferOutAmount: typing.Union[MetaOapg.properties.maxTransferOutAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsResult': - return super().__new__( - cls, - *args, - coin=coin, - maxTransferOutAmount=maxTransferOutAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.py deleted file mode 100644 index addd3551..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - riskRate = schemas.StrSchema - __annotations__ = { - "riskRate": riskRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["riskRate"]) -> MetaOapg.properties.riskRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["riskRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["riskRate"]) -> typing.Union[MetaOapg.properties.riskRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["riskRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - riskRate: typing.Union[MetaOapg.properties.riskRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsRiskResult': - return super().__new__( - cls, - *args, - riskRate=riskRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.pyi deleted file mode 100644 index addd3551..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_assets_risk_result.pyi +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - riskRate = schemas.StrSchema - __annotations__ = { - "riskRate": riskRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["riskRate"]) -> MetaOapg.properties.riskRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["riskRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["riskRate"]) -> typing.Union[MetaOapg.properties.riskRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["riskRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - riskRate: typing.Union[MetaOapg.properties.riskRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossAssetsRiskResult': - return super().__new__( - cls, - *args, - riskRate=riskRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.py deleted file mode 100644 index 862cdcde..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAmount = schemas.StrSchema - clientOid = schemas.StrSchema - coin = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "clientOid": clientOid, - "coin": coin, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> typing.Union[MetaOapg.properties.borrowAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossBorrowLimitResult': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - clientOid=clientOid, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.pyi deleted file mode 100644 index 862cdcde..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_borrow_limit_result.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAmount = schemas.StrSchema - clientOid = schemas.StrSchema - coin = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "clientOid": clientOid, - "coin": coin, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> typing.Union[MetaOapg.properties.borrowAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossBorrowLimitResult': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - clientOid=clientOid, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.py deleted file mode 100644 index 5e417829..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossFinFlowInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - balance = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - fee = schemas.StrSchema - marginId = schemas.StrSchema - marginType = schemas.StrSchema - __annotations__ = { - "amount": amount, - "balance": balance, - "coin": coin, - "ctime": ctime, - "fee": fee, - "marginId": marginId, - "marginType": marginType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginId"]) -> MetaOapg.properties.marginId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginType"]) -> MetaOapg.properties.marginType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginId"]) -> typing.Union[MetaOapg.properties.marginId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginType"]) -> typing.Union[MetaOapg.properties.marginType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - marginId: typing.Union[MetaOapg.properties.marginId, str, schemas.Unset] = schemas.unset, - marginType: typing.Union[MetaOapg.properties.marginType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossFinFlowInfo': - return super().__new__( - cls, - *args, - amount=amount, - balance=balance, - coin=coin, - ctime=ctime, - fee=fee, - marginId=marginId, - marginType=marginType, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.pyi deleted file mode 100644 index 5e417829..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_info.pyi +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossFinFlowInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - balance = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - fee = schemas.StrSchema - marginId = schemas.StrSchema - marginType = schemas.StrSchema - __annotations__ = { - "amount": amount, - "balance": balance, - "coin": coin, - "ctime": ctime, - "fee": fee, - "marginId": marginId, - "marginType": marginType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginId"]) -> MetaOapg.properties.marginId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginType"]) -> MetaOapg.properties.marginType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginId"]) -> typing.Union[MetaOapg.properties.marginId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginType"]) -> typing.Union[MetaOapg.properties.marginType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - marginId: typing.Union[MetaOapg.properties.marginId, str, schemas.Unset] = schemas.unset, - marginType: typing.Union[MetaOapg.properties.marginType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossFinFlowInfo': - return super().__new__( - cls, - *args, - amount=amount, - balance=balance, - coin=coin, - ctime=ctime, - fee=fee, - marginId=marginId, - marginType=marginType, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.py deleted file mode 100644 index d4671983..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossFinFlowInfo']: - return MarginCrossFinFlowInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossFinFlowInfo'], typing.List['MarginCrossFinFlowInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossFinFlowInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossFinFlowResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_fin_flow_info import MarginCrossFinFlowInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.pyi deleted file mode 100644 index d4671983..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_fin_flow_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossFinFlowInfo']: - return MarginCrossFinFlowInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossFinFlowInfo'], typing.List['MarginCrossFinFlowInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossFinFlowInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossFinFlowResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_fin_flow_info import MarginCrossFinFlowInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.py deleted file mode 100644 index aa815259..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - leverage = schemas.StrSchema - maintainMarginRate = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - tier = schemas.StrSchema - __annotations__ = { - "coin": coin, - "leverage": leverage, - "maintainMarginRate": maintainMarginRate, - "maxBorrowableAmount": maxBorrowableAmount, - "tier": tier, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maintainMarginRate"]) -> MetaOapg.properties.maintainMarginRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tier"]) -> MetaOapg.properties.tier: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "leverage", "maintainMarginRate", "maxBorrowableAmount", "tier", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maintainMarginRate"]) -> typing.Union[MetaOapg.properties.maintainMarginRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tier"]) -> typing.Union[MetaOapg.properties.tier, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "leverage", "maintainMarginRate", "maxBorrowableAmount", "tier", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maintainMarginRate: typing.Union[MetaOapg.properties.maintainMarginRate, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - tier: typing.Union[MetaOapg.properties.tier, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossLevelResult': - return super().__new__( - cls, - *args, - coin=coin, - leverage=leverage, - maintainMarginRate=maintainMarginRate, - maxBorrowableAmount=maxBorrowableAmount, - tier=tier, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.pyi deleted file mode 100644 index aa815259..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_level_result.pyi +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - leverage = schemas.StrSchema - maintainMarginRate = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - tier = schemas.StrSchema - __annotations__ = { - "coin": coin, - "leverage": leverage, - "maintainMarginRate": maintainMarginRate, - "maxBorrowableAmount": maxBorrowableAmount, - "tier": tier, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maintainMarginRate"]) -> MetaOapg.properties.maintainMarginRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tier"]) -> MetaOapg.properties.tier: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "leverage", "maintainMarginRate", "maxBorrowableAmount", "tier", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maintainMarginRate"]) -> typing.Union[MetaOapg.properties.maintainMarginRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tier"]) -> typing.Union[MetaOapg.properties.tier, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "leverage", "maintainMarginRate", "maxBorrowableAmount", "tier", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maintainMarginRate: typing.Union[MetaOapg.properties.maintainMarginRate, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - tier: typing.Union[MetaOapg.properties.tier, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossLevelResult': - return super().__new__( - cls, - *args, - coin=coin, - leverage=leverage, - maintainMarginRate=maintainMarginRate, - maxBorrowableAmount=maxBorrowableAmount, - tier=tier, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.py deleted file mode 100644 index c212329f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossLimitRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "borrowAmount", - "coin", - } - - class properties: - borrowAmount = schemas.StrSchema - coin = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "coin": coin, - } - - borrowAmount: MetaOapg.properties.borrowAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossLimitRequest': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.pyi deleted file mode 100644 index c212329f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_limit_request.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossLimitRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "borrowAmount", - "coin", - } - - class properties: - borrowAmount = schemas.StrSchema - coin = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "coin": coin, - } - - borrowAmount: MetaOapg.properties.borrowAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossLimitRequest': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.py deleted file mode 100644 index ae7ab12e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossMaxBorrowRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "coin", - } - - class properties: - coin = schemas.StrSchema - __annotations__ = { - "coin": coin, - } - - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossMaxBorrowRequest': - return super().__new__( - cls, - *args, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.pyi deleted file mode 100644 index ae7ab12e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_request.pyi +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossMaxBorrowRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "coin", - } - - class properties: - coin = schemas.StrSchema - __annotations__ = { - "coin": coin, - } - - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossMaxBorrowRequest': - return super().__new__( - cls, - *args, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.py deleted file mode 100644 index 56a89205..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxBorrowableAmount": maxBorrowableAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossMaxBorrowResult': - return super().__new__( - cls, - *args, - coin=coin, - maxBorrowableAmount=maxBorrowableAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.pyi deleted file mode 100644 index 56a89205..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_max_borrow_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxBorrowableAmount": maxBorrowableAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossMaxBorrowResult': - return super().__new__( - cls, - *args, - coin=coin, - maxBorrowableAmount=maxBorrowableAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.py deleted file mode 100644 index 7c0b65e8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAble = schemas.BoolSchema - coin = schemas.StrSchema - dailyInterestRate = schemas.StrSchema - leverage = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - transferInAble = schemas.BoolSchema - - - class vips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossVipResult']: - return MarginCrossVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossVipResult'], typing.List['MarginCrossVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'vips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossVipResult': - return super().__getitem__(i) - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "borrowAble": borrowAble, - "coin": coin, - "dailyInterestRate": dailyInterestRate, - "leverage": leverage, - "maxBorrowableAmount": maxBorrowableAmount, - "transferInAble": transferInAble, - "vips": vips, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAble"]) -> MetaOapg.properties.borrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transferInAble"]) -> MetaOapg.properties.transferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vips"]) -> MetaOapg.properties.vips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAble", "coin", "dailyInterestRate", "leverage", "maxBorrowableAmount", "transferInAble", "vips", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAble"]) -> typing.Union[MetaOapg.properties.borrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transferInAble"]) -> typing.Union[MetaOapg.properties.transferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vips"]) -> typing.Union[MetaOapg.properties.vips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAble", "coin", "dailyInterestRate", "leverage", "maxBorrowableAmount", "transferInAble", "vips", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAble: typing.Union[MetaOapg.properties.borrowAble, bool, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - transferInAble: typing.Union[MetaOapg.properties.transferInAble, bool, schemas.Unset] = schemas.unset, - vips: typing.Union[MetaOapg.properties.vips, list, tuple, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRateAndLimitResult': - return super().__new__( - cls, - *args, - borrowAble=borrowAble, - coin=coin, - dailyInterestRate=dailyInterestRate, - leverage=leverage, - maxBorrowableAmount=maxBorrowableAmount, - transferInAble=transferInAble, - vips=vips, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_vip_result import MarginCrossVipResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.pyi deleted file mode 100644 index 7c0b65e8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_rate_and_limit_result.pyi +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAble = schemas.BoolSchema - coin = schemas.StrSchema - dailyInterestRate = schemas.StrSchema - leverage = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - transferInAble = schemas.BoolSchema - - - class vips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginCrossVipResult']: - return MarginCrossVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginCrossVipResult'], typing.List['MarginCrossVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'vips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginCrossVipResult': - return super().__getitem__(i) - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "borrowAble": borrowAble, - "coin": coin, - "dailyInterestRate": dailyInterestRate, - "leverage": leverage, - "maxBorrowableAmount": maxBorrowableAmount, - "transferInAble": transferInAble, - "vips": vips, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAble"]) -> MetaOapg.properties.borrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transferInAble"]) -> MetaOapg.properties.transferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vips"]) -> MetaOapg.properties.vips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAble", "coin", "dailyInterestRate", "leverage", "maxBorrowableAmount", "transferInAble", "vips", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAble"]) -> typing.Union[MetaOapg.properties.borrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transferInAble"]) -> typing.Union[MetaOapg.properties.transferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vips"]) -> typing.Union[MetaOapg.properties.vips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAble", "coin", "dailyInterestRate", "leverage", "maxBorrowableAmount", "transferInAble", "vips", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAble: typing.Union[MetaOapg.properties.borrowAble, bool, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - transferInAble: typing.Union[MetaOapg.properties.transferInAble, bool, schemas.Unset] = schemas.unset, - vips: typing.Union[MetaOapg.properties.vips, list, tuple, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRateAndLimitResult': - return super().__new__( - cls, - *args, - borrowAble=borrowAble, - coin=coin, - dailyInterestRate=dailyInterestRate, - leverage=leverage, - maxBorrowableAmount=maxBorrowableAmount, - transferInAble=transferInAble, - vips=vips, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_cross_vip_result import MarginCrossVipResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.py deleted file mode 100644 index 7b301c26..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRepayRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "repayAmount", - "coin", - } - - class properties: - coin = schemas.StrSchema - repayAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "repayAmount": repayAmount, - } - - repayAmount: MetaOapg.properties.repayAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRepayRequest': - return super().__new__( - cls, - *args, - repayAmount=repayAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.pyi deleted file mode 100644 index 7b301c26..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_request.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRepayRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "repayAmount", - "coin", - } - - class properties: - coin = schemas.StrSchema - repayAmount = schemas.StrSchema - __annotations__ = { - "coin": coin, - "repayAmount": repayAmount, - } - - repayAmount: MetaOapg.properties.repayAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRepayRequest': - return super().__new__( - cls, - *args, - repayAmount=repayAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.py deleted file mode 100644 index 44ab538e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - coin = schemas.StrSchema - remainDebtAmount = schemas.StrSchema - repayAmount = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "coin": coin, - "remainDebtAmount": remainDebtAmount, - "repayAmount": repayAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remainDebtAmount"]) -> MetaOapg.properties.remainDebtAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remainDebtAmount"]) -> typing.Union[MetaOapg.properties.remainDebtAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> typing.Union[MetaOapg.properties.repayAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - remainDebtAmount: typing.Union[MetaOapg.properties.remainDebtAmount, str, schemas.Unset] = schemas.unset, - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRepayResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - coin=coin, - remainDebtAmount=remainDebtAmount, - repayAmount=repayAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.pyi deleted file mode 100644 index 44ab538e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_repay_result.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - coin = schemas.StrSchema - remainDebtAmount = schemas.StrSchema - repayAmount = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "coin": coin, - "remainDebtAmount": remainDebtAmount, - "repayAmount": repayAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remainDebtAmount"]) -> MetaOapg.properties.remainDebtAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remainDebtAmount"]) -> typing.Union[MetaOapg.properties.remainDebtAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> typing.Union[MetaOapg.properties.repayAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - remainDebtAmount: typing.Union[MetaOapg.properties.remainDebtAmount, str, schemas.Unset] = schemas.unset, - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossRepayResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - coin=coin, - remainDebtAmount=remainDebtAmount, - repayAmount=repayAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.py b/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.py deleted file mode 100644 index e79ec998..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossVipResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - dailyInterestRate = schemas.StrSchema - discountRate = schemas.StrSchema - level = schemas.StrSchema - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "dailyInterestRate": dailyInterestRate, - "discountRate": discountRate, - "level": level, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["discountRate"]) -> MetaOapg.properties.discountRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["level"]) -> MetaOapg.properties.level: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["discountRate"]) -> typing.Union[MetaOapg.properties.discountRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["level"]) -> typing.Union[MetaOapg.properties.level, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - discountRate: typing.Union[MetaOapg.properties.discountRate, str, schemas.Unset] = schemas.unset, - level: typing.Union[MetaOapg.properties.level, str, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossVipResult': - return super().__new__( - cls, - *args, - dailyInterestRate=dailyInterestRate, - discountRate=discountRate, - level=level, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.pyi deleted file mode 100644 index e79ec998..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_cross_vip_result.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginCrossVipResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - dailyInterestRate = schemas.StrSchema - discountRate = schemas.StrSchema - level = schemas.StrSchema - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "dailyInterestRate": dailyInterestRate, - "discountRate": discountRate, - "level": level, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["discountRate"]) -> MetaOapg.properties.discountRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["level"]) -> MetaOapg.properties.level: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["discountRate"]) -> typing.Union[MetaOapg.properties.discountRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["level"]) -> typing.Union[MetaOapg.properties.level, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - discountRate: typing.Union[MetaOapg.properties.discountRate, str, schemas.Unset] = schemas.unset, - level: typing.Union[MetaOapg.properties.level, str, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginCrossVipResult': - return super().__new__( - cls, - *args, - dailyInterestRate=dailyInterestRate, - discountRate=discountRate, - level=level, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_interest_info.py b/bitget-python-sdk-open-api/bitget/model/margin_interest_info.py deleted file mode 100644 index b78af6ad..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_interest_info.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginInterestInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - ctime = schemas.StrSchema - interestCoin = schemas.StrSchema - interestId = schemas.StrSchema - interestRate = schemas.StrSchema - loanCoin = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "ctime": ctime, - "interestCoin": interestCoin, - "interestId": interestId, - "interestRate": interestRate, - "loanCoin": loanCoin, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestCoin"]) -> MetaOapg.properties.interestCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestId"]) -> MetaOapg.properties.interestId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestRate"]) -> MetaOapg.properties.interestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanCoin"]) -> MetaOapg.properties.loanCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestCoin"]) -> typing.Union[MetaOapg.properties.interestCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestId"]) -> typing.Union[MetaOapg.properties.interestId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestRate"]) -> typing.Union[MetaOapg.properties.interestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanCoin"]) -> typing.Union[MetaOapg.properties.loanCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interestCoin: typing.Union[MetaOapg.properties.interestCoin, str, schemas.Unset] = schemas.unset, - interestId: typing.Union[MetaOapg.properties.interestId, str, schemas.Unset] = schemas.unset, - interestRate: typing.Union[MetaOapg.properties.interestRate, str, schemas.Unset] = schemas.unset, - loanCoin: typing.Union[MetaOapg.properties.loanCoin, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginInterestInfo': - return super().__new__( - cls, - *args, - amount=amount, - ctime=ctime, - interestCoin=interestCoin, - interestId=interestId, - interestRate=interestRate, - loanCoin=loanCoin, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_interest_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_interest_info.pyi deleted file mode 100644 index b78af6ad..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_interest_info.pyi +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginInterestInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - ctime = schemas.StrSchema - interestCoin = schemas.StrSchema - interestId = schemas.StrSchema - interestRate = schemas.StrSchema - loanCoin = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "ctime": ctime, - "interestCoin": interestCoin, - "interestId": interestId, - "interestRate": interestRate, - "loanCoin": loanCoin, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestCoin"]) -> MetaOapg.properties.interestCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestId"]) -> MetaOapg.properties.interestId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestRate"]) -> MetaOapg.properties.interestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanCoin"]) -> MetaOapg.properties.loanCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestCoin"]) -> typing.Union[MetaOapg.properties.interestCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestId"]) -> typing.Union[MetaOapg.properties.interestId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestRate"]) -> typing.Union[MetaOapg.properties.interestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanCoin"]) -> typing.Union[MetaOapg.properties.loanCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interestCoin: typing.Union[MetaOapg.properties.interestCoin, str, schemas.Unset] = schemas.unset, - interestId: typing.Union[MetaOapg.properties.interestId, str, schemas.Unset] = schemas.unset, - interestRate: typing.Union[MetaOapg.properties.interestRate, str, schemas.Unset] = schemas.unset, - loanCoin: typing.Union[MetaOapg.properties.loanCoin, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginInterestInfo': - return super().__new__( - cls, - *args, - amount=amount, - ctime=ctime, - interestCoin=interestCoin, - interestId=interestId, - interestRate=interestRate, - loanCoin=loanCoin, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.py deleted file mode 100644 index c3b81b5e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginInterestInfo']: - return MarginInterestInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginInterestInfo'], typing.List['MarginInterestInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginInterestInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginInterestInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_interest_info import MarginInterestInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.pyi deleted file mode 100644 index c3b81b5e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_interest_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginInterestInfo']: - return MarginInterestInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginInterestInfo'], typing.List['MarginInterestInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginInterestInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginInterestInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_interest_info import MarginInterestInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.py deleted file mode 100644 index 91235eb8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - available = schemas.StrSchema - borrow = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - frozen = schemas.StrSchema - interest = schemas.StrSchema - net = schemas.StrSchema - symbol = schemas.StrSchema - totalAmount = schemas.StrSchema - __annotations__ = { - "available": available, - "borrow": borrow, - "coin": coin, - "ctime": ctime, - "frozen": frozen, - "interest": interest, - "net": net, - "symbol": symbol, - "totalAmount": totalAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrow"]) -> MetaOapg.properties.borrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["net"]) -> MetaOapg.properties.net: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "symbol", "totalAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrow"]) -> typing.Union[MetaOapg.properties.borrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["net"]) -> typing.Union[MetaOapg.properties.net, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "symbol", "totalAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - borrow: typing.Union[MetaOapg.properties.borrow, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - net: typing.Union[MetaOapg.properties.net, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsPopulationResult': - return super().__new__( - cls, - *args, - available=available, - borrow=borrow, - coin=coin, - ctime=ctime, - frozen=frozen, - interest=interest, - net=net, - symbol=symbol, - totalAmount=totalAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.pyi deleted file mode 100644 index 91235eb8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_population_result.pyi +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsPopulationResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - available = schemas.StrSchema - borrow = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - frozen = schemas.StrSchema - interest = schemas.StrSchema - net = schemas.StrSchema - symbol = schemas.StrSchema - totalAmount = schemas.StrSchema - __annotations__ = { - "available": available, - "borrow": borrow, - "coin": coin, - "ctime": ctime, - "frozen": frozen, - "interest": interest, - "net": net, - "symbol": symbol, - "totalAmount": totalAmount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrow"]) -> MetaOapg.properties.borrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["net"]) -> MetaOapg.properties.net: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "symbol", "totalAmount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrow"]) -> typing.Union[MetaOapg.properties.borrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["net"]) -> typing.Union[MetaOapg.properties.net, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["available", "borrow", "coin", "ctime", "frozen", "interest", "net", "symbol", "totalAmount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - borrow: typing.Union[MetaOapg.properties.borrow, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - net: typing.Union[MetaOapg.properties.net, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsPopulationResult': - return super().__new__( - cls, - *args, - available=available, - borrow=borrow, - coin=coin, - ctime=ctime, - frozen=frozen, - interest=interest, - net=net, - symbol=symbol, - totalAmount=totalAmount, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.py deleted file mode 100644 index 2a2df999..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxTransferOutAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxTransferOutAmount": maxTransferOutAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> MetaOapg.properties.maxTransferOutAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> typing.Union[MetaOapg.properties.maxTransferOutAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxTransferOutAmount: typing.Union[MetaOapg.properties.maxTransferOutAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsResult': - return super().__new__( - cls, - *args, - coin=coin, - maxTransferOutAmount=maxTransferOutAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.pyi deleted file mode 100644 index 2a2df999..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_result.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxTransferOutAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxTransferOutAmount": maxTransferOutAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> MetaOapg.properties.maxTransferOutAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTransferOutAmount"]) -> typing.Union[MetaOapg.properties.maxTransferOutAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxTransferOutAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxTransferOutAmount: typing.Union[MetaOapg.properties.maxTransferOutAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsResult': - return super().__new__( - cls, - *args, - coin=coin, - maxTransferOutAmount=maxTransferOutAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.py deleted file mode 100644 index 2b098436..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsRiskRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - pageNum = schemas.StrSchema - pageSize = schemas.StrSchema - __annotations__ = { - "symbol": symbol, - "pageNum": pageNum, - "pageSize": pageSize, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pageNum"]) -> MetaOapg.properties.pageNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pageSize"]) -> MetaOapg.properties.pageSize: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "pageNum", "pageSize", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pageNum"]) -> typing.Union[MetaOapg.properties.pageNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pageSize"]) -> typing.Union[MetaOapg.properties.pageSize, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "pageNum", "pageSize", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - pageNum: typing.Union[MetaOapg.properties.pageNum, str, schemas.Unset] = schemas.unset, - pageSize: typing.Union[MetaOapg.properties.pageSize, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsRiskRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - pageNum=pageNum, - pageSize=pageSize, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.pyi deleted file mode 100644 index 2b098436..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_request.pyi +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsRiskRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - } - - class properties: - symbol = schemas.StrSchema - pageNum = schemas.StrSchema - pageSize = schemas.StrSchema - __annotations__ = { - "symbol": symbol, - "pageNum": pageNum, - "pageSize": pageSize, - } - - symbol: MetaOapg.properties.symbol - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pageNum"]) -> MetaOapg.properties.pageNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pageSize"]) -> MetaOapg.properties.pageSize: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol", "pageNum", "pageSize", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pageNum"]) -> typing.Union[MetaOapg.properties.pageNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pageSize"]) -> typing.Union[MetaOapg.properties.pageSize, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol", "pageNum", "pageSize", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - pageNum: typing.Union[MetaOapg.properties.pageNum, str, schemas.Unset] = schemas.unset, - pageSize: typing.Union[MetaOapg.properties.pageSize, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsRiskRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - pageNum=pageNum, - pageSize=pageSize, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.py deleted file mode 100644 index 0e603121..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - riskRate = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "riskRate": riskRate, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["riskRate"]) -> MetaOapg.properties.riskRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["riskRate", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["riskRate"]) -> typing.Union[MetaOapg.properties.riskRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["riskRate", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - riskRate: typing.Union[MetaOapg.properties.riskRate, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsRiskResult': - return super().__new__( - cls, - *args, - riskRate=riskRate, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.pyi deleted file mode 100644 index 0e603121..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_assets_risk_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedAssetsRiskResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - riskRate = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "riskRate": riskRate, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["riskRate"]) -> MetaOapg.properties.riskRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["riskRate", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["riskRate"]) -> typing.Union[MetaOapg.properties.riskRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["riskRate", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - riskRate: typing.Union[MetaOapg.properties.riskRate, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedAssetsRiskResult': - return super().__new__( - cls, - *args, - riskRate=riskRate, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.py deleted file mode 100644 index 6a3edc8a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAmount = schemas.StrSchema - clientOid = schemas.StrSchema - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "clientOid": clientOid, - "coin": coin, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> typing.Union[MetaOapg.properties.borrowAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedBorrowLimitResult': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - clientOid=clientOid, - coin=coin, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.pyi deleted file mode 100644 index 6a3edc8a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_borrow_limit_result.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedBorrowLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - borrowAmount = schemas.StrSchema - clientOid = schemas.StrSchema - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "clientOid": clientOid, - "coin": coin, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> typing.Union[MetaOapg.properties.borrowAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "clientOid", "coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedBorrowLimitResult': - return super().__new__( - cls, - *args, - borrowAmount=borrowAmount, - clientOid=clientOid, - coin=coin, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.py deleted file mode 100644 index fe9a5aa8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedFinFlowInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - balance = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - fee = schemas.StrSchema - marginId = schemas.StrSchema - marginType = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "amount": amount, - "balance": balance, - "coin": coin, - "ctime": ctime, - "fee": fee, - "marginId": marginId, - "marginType": marginType, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginId"]) -> MetaOapg.properties.marginId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginType"]) -> MetaOapg.properties.marginType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginId"]) -> typing.Union[MetaOapg.properties.marginId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginType"]) -> typing.Union[MetaOapg.properties.marginType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - marginId: typing.Union[MetaOapg.properties.marginId, str, schemas.Unset] = schemas.unset, - marginType: typing.Union[MetaOapg.properties.marginType, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedFinFlowInfo': - return super().__new__( - cls, - *args, - amount=amount, - balance=balance, - coin=coin, - ctime=ctime, - fee=fee, - marginId=marginId, - marginType=marginType, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.pyi deleted file mode 100644 index fe9a5aa8..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_info.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedFinFlowInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - balance = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - fee = schemas.StrSchema - marginId = schemas.StrSchema - marginType = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "amount": amount, - "balance": balance, - "coin": coin, - "ctime": ctime, - "fee": fee, - "marginId": marginId, - "marginType": marginType, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginId"]) -> MetaOapg.properties.marginId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["marginType"]) -> MetaOapg.properties.marginType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginId"]) -> typing.Union[MetaOapg.properties.marginId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["marginType"]) -> typing.Union[MetaOapg.properties.marginType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "balance", "coin", "ctime", "fee", "marginId", "marginType", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - marginId: typing.Union[MetaOapg.properties.marginId, str, schemas.Unset] = schemas.unset, - marginType: typing.Union[MetaOapg.properties.marginType, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedFinFlowInfo': - return super().__new__( - cls, - *args, - amount=amount, - balance=balance, - coin=coin, - ctime=ctime, - fee=fee, - marginId=marginId, - marginType=marginType, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.py deleted file mode 100644 index bc27edbc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedFinFlowInfo']: - return MarginIsolatedFinFlowInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedFinFlowInfo'], typing.List['MarginIsolatedFinFlowInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedFinFlowInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedFinFlowResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_fin_flow_info import MarginIsolatedFinFlowInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.pyi deleted file mode 100644 index bc27edbc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_fin_flow_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedFinFlowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedFinFlowInfo']: - return MarginIsolatedFinFlowInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedFinFlowInfo'], typing.List['MarginIsolatedFinFlowInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedFinFlowInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedFinFlowResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_fin_flow_info import MarginIsolatedFinFlowInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.py deleted file mode 100644 index 884e9cfe..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedInterestInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - ctime = schemas.StrSchema - interestCoin = schemas.StrSchema - interestId = schemas.StrSchema - interestRate = schemas.StrSchema - loanCoin = schemas.StrSchema - symbol = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "ctime": ctime, - "interestCoin": interestCoin, - "interestId": interestId, - "interestRate": interestRate, - "loanCoin": loanCoin, - "symbol": symbol, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestCoin"]) -> MetaOapg.properties.interestCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestId"]) -> MetaOapg.properties.interestId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestRate"]) -> MetaOapg.properties.interestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanCoin"]) -> MetaOapg.properties.loanCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "symbol", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestCoin"]) -> typing.Union[MetaOapg.properties.interestCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestId"]) -> typing.Union[MetaOapg.properties.interestId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestRate"]) -> typing.Union[MetaOapg.properties.interestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanCoin"]) -> typing.Union[MetaOapg.properties.loanCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "symbol", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interestCoin: typing.Union[MetaOapg.properties.interestCoin, str, schemas.Unset] = schemas.unset, - interestId: typing.Union[MetaOapg.properties.interestId, str, schemas.Unset] = schemas.unset, - interestRate: typing.Union[MetaOapg.properties.interestRate, str, schemas.Unset] = schemas.unset, - loanCoin: typing.Union[MetaOapg.properties.loanCoin, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedInterestInfo': - return super().__new__( - cls, - *args, - amount=amount, - ctime=ctime, - interestCoin=interestCoin, - interestId=interestId, - interestRate=interestRate, - loanCoin=loanCoin, - symbol=symbol, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.pyi deleted file mode 100644 index 884e9cfe..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedInterestInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - ctime = schemas.StrSchema - interestCoin = schemas.StrSchema - interestId = schemas.StrSchema - interestRate = schemas.StrSchema - loanCoin = schemas.StrSchema - symbol = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "ctime": ctime, - "interestCoin": interestCoin, - "interestId": interestId, - "interestRate": interestRate, - "loanCoin": loanCoin, - "symbol": symbol, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestCoin"]) -> MetaOapg.properties.interestCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestId"]) -> MetaOapg.properties.interestId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interestRate"]) -> MetaOapg.properties.interestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanCoin"]) -> MetaOapg.properties.loanCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "symbol", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestCoin"]) -> typing.Union[MetaOapg.properties.interestCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestId"]) -> typing.Union[MetaOapg.properties.interestId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interestRate"]) -> typing.Union[MetaOapg.properties.interestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanCoin"]) -> typing.Union[MetaOapg.properties.loanCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "ctime", "interestCoin", "interestId", "interestRate", "loanCoin", "symbol", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interestCoin: typing.Union[MetaOapg.properties.interestCoin, str, schemas.Unset] = schemas.unset, - interestId: typing.Union[MetaOapg.properties.interestId, str, schemas.Unset] = schemas.unset, - interestRate: typing.Union[MetaOapg.properties.interestRate, str, schemas.Unset] = schemas.unset, - loanCoin: typing.Union[MetaOapg.properties.loanCoin, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedInterestInfo': - return super().__new__( - cls, - *args, - amount=amount, - ctime=ctime, - interestCoin=interestCoin, - interestId=interestId, - interestRate=interestRate, - loanCoin=loanCoin, - symbol=symbol, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.py deleted file mode 100644 index f251fd4d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedInterestInfo']: - return MarginIsolatedInterestInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedInterestInfo'], typing.List['MarginIsolatedInterestInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedInterestInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedInterestInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_interest_info import MarginIsolatedInterestInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.pyi deleted file mode 100644 index f251fd4d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_interest_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedInterestInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedInterestInfo']: - return MarginIsolatedInterestInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedInterestInfo'], typing.List['MarginIsolatedInterestInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedInterestInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedInterestInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_interest_info import MarginIsolatedInterestInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.py deleted file mode 100644 index f0a7b7f2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseCoin = schemas.StrSchema - baseMaxBorrowableAmount = schemas.StrSchema - initRate = schemas.StrSchema - leverage = schemas.StrSchema - maintainMarginRate = schemas.StrSchema - quoteCoin = schemas.StrSchema - quoteMaxBorrowableAmount = schemas.StrSchema - symbol = schemas.StrSchema - tier = schemas.StrSchema - __annotations__ = { - "baseCoin": baseCoin, - "baseMaxBorrowableAmount": baseMaxBorrowableAmount, - "initRate": initRate, - "leverage": leverage, - "maintainMarginRate": maintainMarginRate, - "quoteCoin": quoteCoin, - "quoteMaxBorrowableAmount": quoteMaxBorrowableAmount, - "symbol": symbol, - "tier": tier, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> MetaOapg.properties.baseMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initRate"]) -> MetaOapg.properties.initRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maintainMarginRate"]) -> MetaOapg.properties.maintainMarginRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> MetaOapg.properties.quoteMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tier"]) -> MetaOapg.properties.tier: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseCoin", "baseMaxBorrowableAmount", "initRate", "leverage", "maintainMarginRate", "quoteCoin", "quoteMaxBorrowableAmount", "symbol", "tier", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initRate"]) -> typing.Union[MetaOapg.properties.initRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maintainMarginRate"]) -> typing.Union[MetaOapg.properties.maintainMarginRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tier"]) -> typing.Union[MetaOapg.properties.tier, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseCoin", "baseMaxBorrowableAmount", "initRate", "leverage", "maintainMarginRate", "quoteCoin", "quoteMaxBorrowableAmount", "symbol", "tier", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - baseMaxBorrowableAmount: typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - initRate: typing.Union[MetaOapg.properties.initRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maintainMarginRate: typing.Union[MetaOapg.properties.maintainMarginRate, str, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - quoteMaxBorrowableAmount: typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - tier: typing.Union[MetaOapg.properties.tier, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLevelResult': - return super().__new__( - cls, - *args, - baseCoin=baseCoin, - baseMaxBorrowableAmount=baseMaxBorrowableAmount, - initRate=initRate, - leverage=leverage, - maintainMarginRate=maintainMarginRate, - quoteCoin=quoteCoin, - quoteMaxBorrowableAmount=quoteMaxBorrowableAmount, - symbol=symbol, - tier=tier, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.pyi deleted file mode 100644 index f0a7b7f2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_level_result.pyi +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLevelResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseCoin = schemas.StrSchema - baseMaxBorrowableAmount = schemas.StrSchema - initRate = schemas.StrSchema - leverage = schemas.StrSchema - maintainMarginRate = schemas.StrSchema - quoteCoin = schemas.StrSchema - quoteMaxBorrowableAmount = schemas.StrSchema - symbol = schemas.StrSchema - tier = schemas.StrSchema - __annotations__ = { - "baseCoin": baseCoin, - "baseMaxBorrowableAmount": baseMaxBorrowableAmount, - "initRate": initRate, - "leverage": leverage, - "maintainMarginRate": maintainMarginRate, - "quoteCoin": quoteCoin, - "quoteMaxBorrowableAmount": quoteMaxBorrowableAmount, - "symbol": symbol, - "tier": tier, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> MetaOapg.properties.baseMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initRate"]) -> MetaOapg.properties.initRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maintainMarginRate"]) -> MetaOapg.properties.maintainMarginRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> MetaOapg.properties.quoteMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tier"]) -> MetaOapg.properties.tier: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseCoin", "baseMaxBorrowableAmount", "initRate", "leverage", "maintainMarginRate", "quoteCoin", "quoteMaxBorrowableAmount", "symbol", "tier", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initRate"]) -> typing.Union[MetaOapg.properties.initRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maintainMarginRate"]) -> typing.Union[MetaOapg.properties.maintainMarginRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tier"]) -> typing.Union[MetaOapg.properties.tier, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseCoin", "baseMaxBorrowableAmount", "initRate", "leverage", "maintainMarginRate", "quoteCoin", "quoteMaxBorrowableAmount", "symbol", "tier", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - baseMaxBorrowableAmount: typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - initRate: typing.Union[MetaOapg.properties.initRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - maintainMarginRate: typing.Union[MetaOapg.properties.maintainMarginRate, str, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - quoteMaxBorrowableAmount: typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - tier: typing.Union[MetaOapg.properties.tier, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLevelResult': - return super().__new__( - cls, - *args, - baseCoin=baseCoin, - baseMaxBorrowableAmount=baseMaxBorrowableAmount, - initRate=initRate, - leverage=leverage, - maintainMarginRate=maintainMarginRate, - quoteCoin=quoteCoin, - quoteMaxBorrowableAmount=quoteMaxBorrowableAmount, - symbol=symbol, - tier=tier, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.py deleted file mode 100644 index 4703b04a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLimitRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "borrowAmount", - "coin", - } - - class properties: - borrowAmount = schemas.StrSchema - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "coin": coin, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - borrowAmount: MetaOapg.properties.borrowAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLimitRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - borrowAmount=borrowAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.pyi deleted file mode 100644 index 4703b04a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_limit_request.pyi +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLimitRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "borrowAmount", - "coin", - } - - class properties: - borrowAmount = schemas.StrSchema - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "borrowAmount": borrowAmount, - "coin": coin, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - borrowAmount: MetaOapg.properties.borrowAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["borrowAmount"]) -> MetaOapg.properties.borrowAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["borrowAmount", "coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - borrowAmount: typing.Union[MetaOapg.properties.borrowAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLimitRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - borrowAmount=borrowAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.py deleted file mode 100644 index fa0d32f5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLiquidationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - liqEndTime = schemas.StrSchema - liqFee = schemas.StrSchema - liqId = schemas.StrSchema - liqRisk = schemas.StrSchema - liqStartTime = schemas.StrSchema - symbol = schemas.StrSchema - totalAssets = schemas.StrSchema - totalDebt = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "liqEndTime": liqEndTime, - "liqFee": liqFee, - "liqId": liqId, - "liqRisk": liqRisk, - "liqStartTime": liqStartTime, - "symbol": symbol, - "totalAssets": totalAssets, - "totalDebt": totalDebt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqEndTime"]) -> MetaOapg.properties.liqEndTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqFee"]) -> MetaOapg.properties.liqFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqId"]) -> MetaOapg.properties.liqId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqRisk"]) -> MetaOapg.properties.liqRisk: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqStartTime"]) -> MetaOapg.properties.liqStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAssets"]) -> MetaOapg.properties.totalAssets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalDebt"]) -> MetaOapg.properties.totalDebt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "symbol", "totalAssets", "totalDebt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqEndTime"]) -> typing.Union[MetaOapg.properties.liqEndTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqFee"]) -> typing.Union[MetaOapg.properties.liqFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqId"]) -> typing.Union[MetaOapg.properties.liqId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqRisk"]) -> typing.Union[MetaOapg.properties.liqRisk, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqStartTime"]) -> typing.Union[MetaOapg.properties.liqStartTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAssets"]) -> typing.Union[MetaOapg.properties.totalAssets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalDebt"]) -> typing.Union[MetaOapg.properties.totalDebt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "symbol", "totalAssets", "totalDebt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - liqEndTime: typing.Union[MetaOapg.properties.liqEndTime, str, schemas.Unset] = schemas.unset, - liqFee: typing.Union[MetaOapg.properties.liqFee, str, schemas.Unset] = schemas.unset, - liqId: typing.Union[MetaOapg.properties.liqId, str, schemas.Unset] = schemas.unset, - liqRisk: typing.Union[MetaOapg.properties.liqRisk, str, schemas.Unset] = schemas.unset, - liqStartTime: typing.Union[MetaOapg.properties.liqStartTime, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAssets: typing.Union[MetaOapg.properties.totalAssets, str, schemas.Unset] = schemas.unset, - totalDebt: typing.Union[MetaOapg.properties.totalDebt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLiquidationInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - liqEndTime=liqEndTime, - liqFee=liqFee, - liqId=liqId, - liqRisk=liqRisk, - liqStartTime=liqStartTime, - symbol=symbol, - totalAssets=totalAssets, - totalDebt=totalDebt, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.pyi deleted file mode 100644 index fa0d32f5..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info.pyi +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLiquidationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - liqEndTime = schemas.StrSchema - liqFee = schemas.StrSchema - liqId = schemas.StrSchema - liqRisk = schemas.StrSchema - liqStartTime = schemas.StrSchema - symbol = schemas.StrSchema - totalAssets = schemas.StrSchema - totalDebt = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "liqEndTime": liqEndTime, - "liqFee": liqFee, - "liqId": liqId, - "liqRisk": liqRisk, - "liqStartTime": liqStartTime, - "symbol": symbol, - "totalAssets": totalAssets, - "totalDebt": totalDebt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqEndTime"]) -> MetaOapg.properties.liqEndTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqFee"]) -> MetaOapg.properties.liqFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqId"]) -> MetaOapg.properties.liqId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqRisk"]) -> MetaOapg.properties.liqRisk: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqStartTime"]) -> MetaOapg.properties.liqStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAssets"]) -> MetaOapg.properties.totalAssets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalDebt"]) -> MetaOapg.properties.totalDebt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "symbol", "totalAssets", "totalDebt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqEndTime"]) -> typing.Union[MetaOapg.properties.liqEndTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqFee"]) -> typing.Union[MetaOapg.properties.liqFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqId"]) -> typing.Union[MetaOapg.properties.liqId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqRisk"]) -> typing.Union[MetaOapg.properties.liqRisk, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqStartTime"]) -> typing.Union[MetaOapg.properties.liqStartTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAssets"]) -> typing.Union[MetaOapg.properties.totalAssets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalDebt"]) -> typing.Union[MetaOapg.properties.totalDebt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "symbol", "totalAssets", "totalDebt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - liqEndTime: typing.Union[MetaOapg.properties.liqEndTime, str, schemas.Unset] = schemas.unset, - liqFee: typing.Union[MetaOapg.properties.liqFee, str, schemas.Unset] = schemas.unset, - liqId: typing.Union[MetaOapg.properties.liqId, str, schemas.Unset] = schemas.unset, - liqRisk: typing.Union[MetaOapg.properties.liqRisk, str, schemas.Unset] = schemas.unset, - liqStartTime: typing.Union[MetaOapg.properties.liqStartTime, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAssets: typing.Union[MetaOapg.properties.totalAssets, str, schemas.Unset] = schemas.unset, - totalDebt: typing.Union[MetaOapg.properties.totalDebt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLiquidationInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - liqEndTime=liqEndTime, - liqFee=liqFee, - liqId=liqId, - liqRisk=liqRisk, - liqStartTime=liqStartTime, - symbol=symbol, - totalAssets=totalAssets, - totalDebt=totalDebt, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.py deleted file mode 100644 index 3b81bbfc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLiquidationInfo']: - return MarginIsolatedLiquidationInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLiquidationInfo'], typing.List['MarginIsolatedLiquidationInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLiquidationInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLiquidationInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_liquidation_info import MarginIsolatedLiquidationInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.pyi deleted file mode 100644 index 3b81bbfc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_liquidation_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLiquidationInfo']: - return MarginIsolatedLiquidationInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLiquidationInfo'], typing.List['MarginIsolatedLiquidationInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLiquidationInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLiquidationInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_liquidation_info import MarginIsolatedLiquidationInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.py deleted file mode 100644 index 8c1174da..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLoanInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - loanId = schemas.StrSchema - symbol = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "loanId": loanId, - "symbol": symbol, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanId"]) -> MetaOapg.properties.loanId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "symbol", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanId"]) -> typing.Union[MetaOapg.properties.loanId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "symbol", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - loanId: typing.Union[MetaOapg.properties.loanId, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLoanInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - loanId=loanId, - symbol=symbol, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.pyi deleted file mode 100644 index 8c1174da..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info.pyi +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLoanInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - loanId = schemas.StrSchema - symbol = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "loanId": loanId, - "symbol": symbol, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanId"]) -> MetaOapg.properties.loanId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "symbol", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanId"]) -> typing.Union[MetaOapg.properties.loanId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "symbol", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - loanId: typing.Union[MetaOapg.properties.loanId, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLoanInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - loanId=loanId, - symbol=symbol, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.py deleted file mode 100644 index b8632d90..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLoanInfo']: - return MarginIsolatedLoanInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLoanInfo'], typing.List['MarginIsolatedLoanInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLoanInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLoanInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_loan_info import MarginIsolatedLoanInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.pyi deleted file mode 100644 index b8632d90..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_loan_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedLoanInfo']: - return MarginIsolatedLoanInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedLoanInfo'], typing.List['MarginIsolatedLoanInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedLoanInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedLoanInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_loan_info import MarginIsolatedLoanInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.py deleted file mode 100644 index 2815b999..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedMaxBorrowRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "coin", - } - - class properties: - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedMaxBorrowRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.pyi deleted file mode 100644 index 2815b999..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_request.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedMaxBorrowRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "coin", - } - - class properties: - coin = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedMaxBorrowRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.py deleted file mode 100644 index 6a2000d2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxBorrowableAmount": maxBorrowableAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedMaxBorrowResult': - return super().__new__( - cls, - *args, - coin=coin, - maxBorrowableAmount=maxBorrowableAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.pyi deleted file mode 100644 index 6a2000d2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_max_borrow_result.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedMaxBorrowResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - coin = schemas.StrSchema - maxBorrowableAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "maxBorrowableAmount": maxBorrowableAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> MetaOapg.properties.maxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.maxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "maxBorrowableAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - maxBorrowableAmount: typing.Union[MetaOapg.properties.maxBorrowableAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedMaxBorrowResult': - return super().__new__( - cls, - *args, - coin=coin, - maxBorrowableAmount=maxBorrowableAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.py deleted file mode 100644 index a0e995ce..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.py +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseBorrowAble = schemas.BoolSchema - baseCoin = schemas.StrSchema - baseDailyInterestRate = schemas.StrSchema - baseMaxBorrowableAmount = schemas.StrSchema - baseTransferInAble = schemas.BoolSchema - - - class baseVips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedVipResult']: - return MarginIsolatedVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedVipResult'], typing.List['MarginIsolatedVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'baseVips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedVipResult': - return super().__getitem__(i) - baseYearlyInterestRate = schemas.StrSchema - leverage = schemas.StrSchema - quoteBorrowAble = schemas.BoolSchema - quoteCoin = schemas.StrSchema - quoteDailyInterestRate = schemas.StrSchema - quoteMaxBorrowableAmount = schemas.StrSchema - quoteTransferInAble = schemas.BoolSchema - - - class quoteVips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedVipResult']: - return MarginIsolatedVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedVipResult'], typing.List['MarginIsolatedVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'quoteVips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedVipResult': - return super().__getitem__(i) - quoteYearlyInterestRate = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "baseBorrowAble": baseBorrowAble, - "baseCoin": baseCoin, - "baseDailyInterestRate": baseDailyInterestRate, - "baseMaxBorrowableAmount": baseMaxBorrowableAmount, - "baseTransferInAble": baseTransferInAble, - "baseVips": baseVips, - "baseYearlyInterestRate": baseYearlyInterestRate, - "leverage": leverage, - "quoteBorrowAble": quoteBorrowAble, - "quoteCoin": quoteCoin, - "quoteDailyInterestRate": quoteDailyInterestRate, - "quoteMaxBorrowableAmount": quoteMaxBorrowableAmount, - "quoteTransferInAble": quoteTransferInAble, - "quoteVips": quoteVips, - "quoteYearlyInterestRate": quoteYearlyInterestRate, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseBorrowAble"]) -> MetaOapg.properties.baseBorrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseDailyInterestRate"]) -> MetaOapg.properties.baseDailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> MetaOapg.properties.baseMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseTransferInAble"]) -> MetaOapg.properties.baseTransferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseVips"]) -> MetaOapg.properties.baseVips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseYearlyInterestRate"]) -> MetaOapg.properties.baseYearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteBorrowAble"]) -> MetaOapg.properties.quoteBorrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteDailyInterestRate"]) -> MetaOapg.properties.quoteDailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> MetaOapg.properties.quoteMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteTransferInAble"]) -> MetaOapg.properties.quoteTransferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteVips"]) -> MetaOapg.properties.quoteVips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteYearlyInterestRate"]) -> MetaOapg.properties.quoteYearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseBorrowAble", "baseCoin", "baseDailyInterestRate", "baseMaxBorrowableAmount", "baseTransferInAble", "baseVips", "baseYearlyInterestRate", "leverage", "quoteBorrowAble", "quoteCoin", "quoteDailyInterestRate", "quoteMaxBorrowableAmount", "quoteTransferInAble", "quoteVips", "quoteYearlyInterestRate", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseBorrowAble"]) -> typing.Union[MetaOapg.properties.baseBorrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseDailyInterestRate"]) -> typing.Union[MetaOapg.properties.baseDailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseTransferInAble"]) -> typing.Union[MetaOapg.properties.baseTransferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseVips"]) -> typing.Union[MetaOapg.properties.baseVips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseYearlyInterestRate"]) -> typing.Union[MetaOapg.properties.baseYearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteBorrowAble"]) -> typing.Union[MetaOapg.properties.quoteBorrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteDailyInterestRate"]) -> typing.Union[MetaOapg.properties.quoteDailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteTransferInAble"]) -> typing.Union[MetaOapg.properties.quoteTransferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteVips"]) -> typing.Union[MetaOapg.properties.quoteVips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteYearlyInterestRate"]) -> typing.Union[MetaOapg.properties.quoteYearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseBorrowAble", "baseCoin", "baseDailyInterestRate", "baseMaxBorrowableAmount", "baseTransferInAble", "baseVips", "baseYearlyInterestRate", "leverage", "quoteBorrowAble", "quoteCoin", "quoteDailyInterestRate", "quoteMaxBorrowableAmount", "quoteTransferInAble", "quoteVips", "quoteYearlyInterestRate", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseBorrowAble: typing.Union[MetaOapg.properties.baseBorrowAble, bool, schemas.Unset] = schemas.unset, - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - baseDailyInterestRate: typing.Union[MetaOapg.properties.baseDailyInterestRate, str, schemas.Unset] = schemas.unset, - baseMaxBorrowableAmount: typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - baseTransferInAble: typing.Union[MetaOapg.properties.baseTransferInAble, bool, schemas.Unset] = schemas.unset, - baseVips: typing.Union[MetaOapg.properties.baseVips, list, tuple, schemas.Unset] = schemas.unset, - baseYearlyInterestRate: typing.Union[MetaOapg.properties.baseYearlyInterestRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - quoteBorrowAble: typing.Union[MetaOapg.properties.quoteBorrowAble, bool, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - quoteDailyInterestRate: typing.Union[MetaOapg.properties.quoteDailyInterestRate, str, schemas.Unset] = schemas.unset, - quoteMaxBorrowableAmount: typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - quoteTransferInAble: typing.Union[MetaOapg.properties.quoteTransferInAble, bool, schemas.Unset] = schemas.unset, - quoteVips: typing.Union[MetaOapg.properties.quoteVips, list, tuple, schemas.Unset] = schemas.unset, - quoteYearlyInterestRate: typing.Union[MetaOapg.properties.quoteYearlyInterestRate, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRateAndLimitResult': - return super().__new__( - cls, - *args, - baseBorrowAble=baseBorrowAble, - baseCoin=baseCoin, - baseDailyInterestRate=baseDailyInterestRate, - baseMaxBorrowableAmount=baseMaxBorrowableAmount, - baseTransferInAble=baseTransferInAble, - baseVips=baseVips, - baseYearlyInterestRate=baseYearlyInterestRate, - leverage=leverage, - quoteBorrowAble=quoteBorrowAble, - quoteCoin=quoteCoin, - quoteDailyInterestRate=quoteDailyInterestRate, - quoteMaxBorrowableAmount=quoteMaxBorrowableAmount, - quoteTransferInAble=quoteTransferInAble, - quoteVips=quoteVips, - quoteYearlyInterestRate=quoteYearlyInterestRate, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_vip_result import MarginIsolatedVipResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.pyi deleted file mode 100644 index a0e995ce..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_rate_and_limit_result.pyi +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRateAndLimitResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseBorrowAble = schemas.BoolSchema - baseCoin = schemas.StrSchema - baseDailyInterestRate = schemas.StrSchema - baseMaxBorrowableAmount = schemas.StrSchema - baseTransferInAble = schemas.BoolSchema - - - class baseVips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedVipResult']: - return MarginIsolatedVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedVipResult'], typing.List['MarginIsolatedVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'baseVips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedVipResult': - return super().__getitem__(i) - baseYearlyInterestRate = schemas.StrSchema - leverage = schemas.StrSchema - quoteBorrowAble = schemas.BoolSchema - quoteCoin = schemas.StrSchema - quoteDailyInterestRate = schemas.StrSchema - quoteMaxBorrowableAmount = schemas.StrSchema - quoteTransferInAble = schemas.BoolSchema - - - class quoteVips( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedVipResult']: - return MarginIsolatedVipResult - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedVipResult'], typing.List['MarginIsolatedVipResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'quoteVips': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedVipResult': - return super().__getitem__(i) - quoteYearlyInterestRate = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "baseBorrowAble": baseBorrowAble, - "baseCoin": baseCoin, - "baseDailyInterestRate": baseDailyInterestRate, - "baseMaxBorrowableAmount": baseMaxBorrowableAmount, - "baseTransferInAble": baseTransferInAble, - "baseVips": baseVips, - "baseYearlyInterestRate": baseYearlyInterestRate, - "leverage": leverage, - "quoteBorrowAble": quoteBorrowAble, - "quoteCoin": quoteCoin, - "quoteDailyInterestRate": quoteDailyInterestRate, - "quoteMaxBorrowableAmount": quoteMaxBorrowableAmount, - "quoteTransferInAble": quoteTransferInAble, - "quoteVips": quoteVips, - "quoteYearlyInterestRate": quoteYearlyInterestRate, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseBorrowAble"]) -> MetaOapg.properties.baseBorrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseDailyInterestRate"]) -> MetaOapg.properties.baseDailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> MetaOapg.properties.baseMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseTransferInAble"]) -> MetaOapg.properties.baseTransferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseVips"]) -> MetaOapg.properties.baseVips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseYearlyInterestRate"]) -> MetaOapg.properties.baseYearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["leverage"]) -> MetaOapg.properties.leverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteBorrowAble"]) -> MetaOapg.properties.quoteBorrowAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteDailyInterestRate"]) -> MetaOapg.properties.quoteDailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> MetaOapg.properties.quoteMaxBorrowableAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteTransferInAble"]) -> MetaOapg.properties.quoteTransferInAble: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteVips"]) -> MetaOapg.properties.quoteVips: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteYearlyInterestRate"]) -> MetaOapg.properties.quoteYearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseBorrowAble", "baseCoin", "baseDailyInterestRate", "baseMaxBorrowableAmount", "baseTransferInAble", "baseVips", "baseYearlyInterestRate", "leverage", "quoteBorrowAble", "quoteCoin", "quoteDailyInterestRate", "quoteMaxBorrowableAmount", "quoteTransferInAble", "quoteVips", "quoteYearlyInterestRate", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseBorrowAble"]) -> typing.Union[MetaOapg.properties.baseBorrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseDailyInterestRate"]) -> typing.Union[MetaOapg.properties.baseDailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseTransferInAble"]) -> typing.Union[MetaOapg.properties.baseTransferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseVips"]) -> typing.Union[MetaOapg.properties.baseVips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseYearlyInterestRate"]) -> typing.Union[MetaOapg.properties.baseYearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["leverage"]) -> typing.Union[MetaOapg.properties.leverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteBorrowAble"]) -> typing.Union[MetaOapg.properties.quoteBorrowAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteDailyInterestRate"]) -> typing.Union[MetaOapg.properties.quoteDailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteMaxBorrowableAmount"]) -> typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteTransferInAble"]) -> typing.Union[MetaOapg.properties.quoteTransferInAble, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteVips"]) -> typing.Union[MetaOapg.properties.quoteVips, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteYearlyInterestRate"]) -> typing.Union[MetaOapg.properties.quoteYearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseBorrowAble", "baseCoin", "baseDailyInterestRate", "baseMaxBorrowableAmount", "baseTransferInAble", "baseVips", "baseYearlyInterestRate", "leverage", "quoteBorrowAble", "quoteCoin", "quoteDailyInterestRate", "quoteMaxBorrowableAmount", "quoteTransferInAble", "quoteVips", "quoteYearlyInterestRate", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseBorrowAble: typing.Union[MetaOapg.properties.baseBorrowAble, bool, schemas.Unset] = schemas.unset, - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - baseDailyInterestRate: typing.Union[MetaOapg.properties.baseDailyInterestRate, str, schemas.Unset] = schemas.unset, - baseMaxBorrowableAmount: typing.Union[MetaOapg.properties.baseMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - baseTransferInAble: typing.Union[MetaOapg.properties.baseTransferInAble, bool, schemas.Unset] = schemas.unset, - baseVips: typing.Union[MetaOapg.properties.baseVips, list, tuple, schemas.Unset] = schemas.unset, - baseYearlyInterestRate: typing.Union[MetaOapg.properties.baseYearlyInterestRate, str, schemas.Unset] = schemas.unset, - leverage: typing.Union[MetaOapg.properties.leverage, str, schemas.Unset] = schemas.unset, - quoteBorrowAble: typing.Union[MetaOapg.properties.quoteBorrowAble, bool, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - quoteDailyInterestRate: typing.Union[MetaOapg.properties.quoteDailyInterestRate, str, schemas.Unset] = schemas.unset, - quoteMaxBorrowableAmount: typing.Union[MetaOapg.properties.quoteMaxBorrowableAmount, str, schemas.Unset] = schemas.unset, - quoteTransferInAble: typing.Union[MetaOapg.properties.quoteTransferInAble, bool, schemas.Unset] = schemas.unset, - quoteVips: typing.Union[MetaOapg.properties.quoteVips, list, tuple, schemas.Unset] = schemas.unset, - quoteYearlyInterestRate: typing.Union[MetaOapg.properties.quoteYearlyInterestRate, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRateAndLimitResult': - return super().__new__( - cls, - *args, - baseBorrowAble=baseBorrowAble, - baseCoin=baseCoin, - baseDailyInterestRate=baseDailyInterestRate, - baseMaxBorrowableAmount=baseMaxBorrowableAmount, - baseTransferInAble=baseTransferInAble, - baseVips=baseVips, - baseYearlyInterestRate=baseYearlyInterestRate, - leverage=leverage, - quoteBorrowAble=quoteBorrowAble, - quoteCoin=quoteCoin, - quoteDailyInterestRate=quoteDailyInterestRate, - quoteMaxBorrowableAmount=quoteMaxBorrowableAmount, - quoteTransferInAble=quoteTransferInAble, - quoteVips=quoteVips, - quoteYearlyInterestRate=quoteYearlyInterestRate, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_vip_result import MarginIsolatedVipResult diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.py deleted file mode 100644 index bb93b794..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - interest = schemas.StrSchema - repayId = schemas.StrSchema - symbol = schemas.StrSchema - totalAmount = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "interest": interest, - "repayId": repayId, - "symbol": symbol, - "totalAmount": totalAmount, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayId"]) -> MetaOapg.properties.repayId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "symbol", "totalAmount", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayId"]) -> typing.Union[MetaOapg.properties.repayId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "symbol", "totalAmount", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - repayId: typing.Union[MetaOapg.properties.repayId, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - interest=interest, - repayId=repayId, - symbol=symbol, - totalAmount=totalAmount, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.pyi deleted file mode 100644 index bb93b794..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - interest = schemas.StrSchema - repayId = schemas.StrSchema - symbol = schemas.StrSchema - totalAmount = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "interest": interest, - "repayId": repayId, - "symbol": symbol, - "totalAmount": totalAmount, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayId"]) -> MetaOapg.properties.repayId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "symbol", "totalAmount", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayId"]) -> typing.Union[MetaOapg.properties.repayId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "symbol", "totalAmount", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - repayId: typing.Union[MetaOapg.properties.repayId, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - interest=interest, - repayId=repayId, - symbol=symbol, - totalAmount=totalAmount, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.py deleted file mode 100644 index 4582d461..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedRepayInfo']: - return MarginIsolatedRepayInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedRepayInfo'], typing.List['MarginIsolatedRepayInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedRepayInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_info import MarginIsolatedRepayInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.pyi deleted file mode 100644 index 4582d461..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginIsolatedRepayInfo']: - return MarginIsolatedRepayInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginIsolatedRepayInfo'], typing.List['MarginIsolatedRepayInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginIsolatedRepayInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_isolated_repay_info import MarginIsolatedRepayInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.py deleted file mode 100644 index ada02721..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "repayAmount", - "coin", - } - - class properties: - coin = schemas.StrSchema - repayAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "repayAmount": repayAmount, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - repayAmount: MetaOapg.properties.repayAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - repayAmount=repayAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.pyi deleted file mode 100644 index ada02721..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_request.pyi +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "repayAmount", - "coin", - } - - class properties: - coin = schemas.StrSchema - repayAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "coin": coin, - "repayAmount": repayAmount, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - repayAmount: MetaOapg.properties.repayAmount - coin: MetaOapg.properties.coin - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["coin", "repayAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, ], - coin: typing.Union[MetaOapg.properties.coin, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayRequest': - return super().__new__( - cls, - *args, - symbol=symbol, - repayAmount=repayAmount, - coin=coin, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.py deleted file mode 100644 index d5aad5f6..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - coin = schemas.StrSchema - remainDebtAmount = schemas.StrSchema - repayAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "coin": coin, - "remainDebtAmount": remainDebtAmount, - "repayAmount": repayAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remainDebtAmount"]) -> MetaOapg.properties.remainDebtAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remainDebtAmount"]) -> typing.Union[MetaOapg.properties.remainDebtAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> typing.Union[MetaOapg.properties.repayAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - remainDebtAmount: typing.Union[MetaOapg.properties.remainDebtAmount, str, schemas.Unset] = schemas.unset, - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - coin=coin, - remainDebtAmount=remainDebtAmount, - repayAmount=repayAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.pyi deleted file mode 100644 index d5aad5f6..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_repay_result.pyi +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedRepayResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - coin = schemas.StrSchema - remainDebtAmount = schemas.StrSchema - repayAmount = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "coin": coin, - "remainDebtAmount": remainDebtAmount, - "repayAmount": repayAmount, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remainDebtAmount"]) -> MetaOapg.properties.remainDebtAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayAmount"]) -> MetaOapg.properties.repayAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remainDebtAmount"]) -> typing.Union[MetaOapg.properties.remainDebtAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayAmount"]) -> typing.Union[MetaOapg.properties.repayAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "coin", "remainDebtAmount", "repayAmount", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - remainDebtAmount: typing.Union[MetaOapg.properties.remainDebtAmount, str, schemas.Unset] = schemas.unset, - repayAmount: typing.Union[MetaOapg.properties.repayAmount, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedRepayResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - coin=coin, - remainDebtAmount=remainDebtAmount, - repayAmount=repayAmount, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.py b/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.py deleted file mode 100644 index f2f5da5f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedVipResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - dailyInterestRate = schemas.StrSchema - discountRate = schemas.StrSchema - level = schemas.StrSchema - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "dailyInterestRate": dailyInterestRate, - "discountRate": discountRate, - "level": level, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["discountRate"]) -> MetaOapg.properties.discountRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["level"]) -> MetaOapg.properties.level: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["discountRate"]) -> typing.Union[MetaOapg.properties.discountRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["level"]) -> typing.Union[MetaOapg.properties.level, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - discountRate: typing.Union[MetaOapg.properties.discountRate, str, schemas.Unset] = schemas.unset, - level: typing.Union[MetaOapg.properties.level, str, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedVipResult': - return super().__new__( - cls, - *args, - dailyInterestRate=dailyInterestRate, - discountRate=discountRate, - level=level, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.pyi deleted file mode 100644 index f2f5da5f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_isolated_vip_result.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginIsolatedVipResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - dailyInterestRate = schemas.StrSchema - discountRate = schemas.StrSchema - level = schemas.StrSchema - yearlyInterestRate = schemas.StrSchema - __annotations__ = { - "dailyInterestRate": dailyInterestRate, - "discountRate": discountRate, - "level": level, - "yearlyInterestRate": yearlyInterestRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dailyInterestRate"]) -> MetaOapg.properties.dailyInterestRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["discountRate"]) -> MetaOapg.properties.discountRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["level"]) -> MetaOapg.properties.level: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> MetaOapg.properties.yearlyInterestRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dailyInterestRate"]) -> typing.Union[MetaOapg.properties.dailyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["discountRate"]) -> typing.Union[MetaOapg.properties.discountRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["level"]) -> typing.Union[MetaOapg.properties.level, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearlyInterestRate"]) -> typing.Union[MetaOapg.properties.yearlyInterestRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["dailyInterestRate", "discountRate", "level", "yearlyInterestRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - dailyInterestRate: typing.Union[MetaOapg.properties.dailyInterestRate, str, schemas.Unset] = schemas.unset, - discountRate: typing.Union[MetaOapg.properties.discountRate, str, schemas.Unset] = schemas.unset, - level: typing.Union[MetaOapg.properties.level, str, schemas.Unset] = schemas.unset, - yearlyInterestRate: typing.Union[MetaOapg.properties.yearlyInterestRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginIsolatedVipResult': - return super().__new__( - cls, - *args, - dailyInterestRate=dailyInterestRate, - discountRate=discountRate, - level=level, - yearlyInterestRate=yearlyInterestRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.py b/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.py deleted file mode 100644 index fd16ce8f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLiquidationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - liqEndTime = schemas.StrSchema - liqFee = schemas.StrSchema - liqId = schemas.StrSchema - liqRisk = schemas.StrSchema - liqStartTime = schemas.StrSchema - totalAssets = schemas.StrSchema - totalDebt = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "liqEndTime": liqEndTime, - "liqFee": liqFee, - "liqId": liqId, - "liqRisk": liqRisk, - "liqStartTime": liqStartTime, - "totalAssets": totalAssets, - "totalDebt": totalDebt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqEndTime"]) -> MetaOapg.properties.liqEndTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqFee"]) -> MetaOapg.properties.liqFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqId"]) -> MetaOapg.properties.liqId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqRisk"]) -> MetaOapg.properties.liqRisk: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqStartTime"]) -> MetaOapg.properties.liqStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAssets"]) -> MetaOapg.properties.totalAssets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalDebt"]) -> MetaOapg.properties.totalDebt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "totalAssets", "totalDebt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqEndTime"]) -> typing.Union[MetaOapg.properties.liqEndTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqFee"]) -> typing.Union[MetaOapg.properties.liqFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqId"]) -> typing.Union[MetaOapg.properties.liqId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqRisk"]) -> typing.Union[MetaOapg.properties.liqRisk, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqStartTime"]) -> typing.Union[MetaOapg.properties.liqStartTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAssets"]) -> typing.Union[MetaOapg.properties.totalAssets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalDebt"]) -> typing.Union[MetaOapg.properties.totalDebt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "totalAssets", "totalDebt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - liqEndTime: typing.Union[MetaOapg.properties.liqEndTime, str, schemas.Unset] = schemas.unset, - liqFee: typing.Union[MetaOapg.properties.liqFee, str, schemas.Unset] = schemas.unset, - liqId: typing.Union[MetaOapg.properties.liqId, str, schemas.Unset] = schemas.unset, - liqRisk: typing.Union[MetaOapg.properties.liqRisk, str, schemas.Unset] = schemas.unset, - liqStartTime: typing.Union[MetaOapg.properties.liqStartTime, str, schemas.Unset] = schemas.unset, - totalAssets: typing.Union[MetaOapg.properties.totalAssets, str, schemas.Unset] = schemas.unset, - totalDebt: typing.Union[MetaOapg.properties.totalDebt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLiquidationInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - liqEndTime=liqEndTime, - liqFee=liqFee, - liqId=liqId, - liqRisk=liqRisk, - liqStartTime=liqStartTime, - totalAssets=totalAssets, - totalDebt=totalDebt, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.pyi deleted file mode 100644 index fd16ce8f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLiquidationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - liqEndTime = schemas.StrSchema - liqFee = schemas.StrSchema - liqId = schemas.StrSchema - liqRisk = schemas.StrSchema - liqStartTime = schemas.StrSchema - totalAssets = schemas.StrSchema - totalDebt = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "liqEndTime": liqEndTime, - "liqFee": liqFee, - "liqId": liqId, - "liqRisk": liqRisk, - "liqStartTime": liqStartTime, - "totalAssets": totalAssets, - "totalDebt": totalDebt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqEndTime"]) -> MetaOapg.properties.liqEndTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqFee"]) -> MetaOapg.properties.liqFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqId"]) -> MetaOapg.properties.liqId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqRisk"]) -> MetaOapg.properties.liqRisk: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liqStartTime"]) -> MetaOapg.properties.liqStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAssets"]) -> MetaOapg.properties.totalAssets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalDebt"]) -> MetaOapg.properties.totalDebt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "totalAssets", "totalDebt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqEndTime"]) -> typing.Union[MetaOapg.properties.liqEndTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqFee"]) -> typing.Union[MetaOapg.properties.liqFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqId"]) -> typing.Union[MetaOapg.properties.liqId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqRisk"]) -> typing.Union[MetaOapg.properties.liqRisk, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liqStartTime"]) -> typing.Union[MetaOapg.properties.liqStartTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAssets"]) -> typing.Union[MetaOapg.properties.totalAssets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalDebt"]) -> typing.Union[MetaOapg.properties.totalDebt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "liqEndTime", "liqFee", "liqId", "liqRisk", "liqStartTime", "totalAssets", "totalDebt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - liqEndTime: typing.Union[MetaOapg.properties.liqEndTime, str, schemas.Unset] = schemas.unset, - liqFee: typing.Union[MetaOapg.properties.liqFee, str, schemas.Unset] = schemas.unset, - liqId: typing.Union[MetaOapg.properties.liqId, str, schemas.Unset] = schemas.unset, - liqRisk: typing.Union[MetaOapg.properties.liqRisk, str, schemas.Unset] = schemas.unset, - liqStartTime: typing.Union[MetaOapg.properties.liqStartTime, str, schemas.Unset] = schemas.unset, - totalAssets: typing.Union[MetaOapg.properties.totalAssets, str, schemas.Unset] = schemas.unset, - totalDebt: typing.Union[MetaOapg.properties.totalDebt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLiquidationInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - liqEndTime=liqEndTime, - liqFee=liqFee, - liqId=liqId, - liqRisk=liqRisk, - liqStartTime=liqStartTime, - totalAssets=totalAssets, - totalDebt=totalDebt, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.py deleted file mode 100644 index 8ad9f14a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginLiquidationInfo']: - return MarginLiquidationInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginLiquidationInfo'], typing.List['MarginLiquidationInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginLiquidationInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLiquidationInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_liquidation_info import MarginLiquidationInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.pyi deleted file mode 100644 index 8ad9f14a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_liquidation_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLiquidationInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginLiquidationInfo']: - return MarginLiquidationInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginLiquidationInfo'], typing.List['MarginLiquidationInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginLiquidationInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLiquidationInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_liquidation_info import MarginLiquidationInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_loan_info.py b/bitget-python-sdk-open-api/bitget/model/margin_loan_info.py deleted file mode 100644 index d2635c6e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_loan_info.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLoanInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - loanId = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "loanId": loanId, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanId"]) -> MetaOapg.properties.loanId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanId"]) -> typing.Union[MetaOapg.properties.loanId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - loanId: typing.Union[MetaOapg.properties.loanId, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLoanInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - loanId=loanId, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_loan_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_loan_info.pyi deleted file mode 100644 index d2635c6e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_loan_info.pyi +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLoanInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - loanId = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "loanId": loanId, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanId"]) -> MetaOapg.properties.loanId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanId"]) -> typing.Union[MetaOapg.properties.loanId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "loanId", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - loanId: typing.Union[MetaOapg.properties.loanId, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLoanInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - loanId=loanId, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.py deleted file mode 100644 index c368cd7a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginLoanInfo']: - return MarginLoanInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginLoanInfo'], typing.List['MarginLoanInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginLoanInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLoanInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_loan_info import MarginLoanInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.pyi deleted file mode 100644 index c368cd7a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_loan_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginLoanInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginLoanInfo']: - return MarginLoanInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginLoanInfo'], typing.List['MarginLoanInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginLoanInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginLoanInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_loan_info import MarginLoanInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.py deleted file mode 100644 index 57860b20..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOpenOrderInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginOrderInfo']: - return MarginOrderInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginOrderInfo'], typing.List['MarginOrderInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginOrderInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "orderList": orderList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOpenOrderInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_order_info import MarginOrderInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.pyi deleted file mode 100644 index 57860b20..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_open_order_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOpenOrderInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginOrderInfo']: - return MarginOrderInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginOrderInfo'], typing.List['MarginOrderInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginOrderInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "orderList": orderList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOpenOrderInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_order_info import MarginOrderInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_order_info.py b/bitget-python-sdk-open-api/bitget/model/margin_order_info.py deleted file mode 100644 index 6e10e6cd..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_order_info.py +++ /dev/null @@ -1,218 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOrderInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseQuantity = schemas.StrSchema - clientOid = schemas.StrSchema - ctime = schemas.StrSchema - fillPrice = schemas.StrSchema - fillQuantity = schemas.StrSchema - fillTotalAmount = schemas.StrSchema - loanType = schemas.StrSchema - orderId = schemas.StrSchema - orderType = schemas.StrSchema - price = schemas.StrSchema - quoteAmount = schemas.StrSchema - side = schemas.StrSchema - source = schemas.StrSchema - status = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "baseQuantity": baseQuantity, - "clientOid": clientOid, - "ctime": ctime, - "fillPrice": fillPrice, - "fillQuantity": fillQuantity, - "fillTotalAmount": fillTotalAmount, - "loanType": loanType, - "orderId": orderId, - "orderType": orderType, - "price": price, - "quoteAmount": quoteAmount, - "side": side, - "source": source, - "status": status, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseQuantity"]) -> MetaOapg.properties.baseQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillPrice"]) -> MetaOapg.properties.fillPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillQuantity"]) -> MetaOapg.properties.fillQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillTotalAmount"]) -> MetaOapg.properties.fillTotalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteAmount"]) -> MetaOapg.properties.quoteAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseQuantity", "clientOid", "ctime", "fillPrice", "fillQuantity", "fillTotalAmount", "loanType", "orderId", "orderType", "price", "quoteAmount", "side", "source", "status", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseQuantity"]) -> typing.Union[MetaOapg.properties.baseQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillPrice"]) -> typing.Union[MetaOapg.properties.fillPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillQuantity"]) -> typing.Union[MetaOapg.properties.fillQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillTotalAmount"]) -> typing.Union[MetaOapg.properties.fillTotalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanType"]) -> typing.Union[MetaOapg.properties.loanType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> typing.Union[MetaOapg.properties.orderType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteAmount"]) -> typing.Union[MetaOapg.properties.quoteAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> typing.Union[MetaOapg.properties.side, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union[MetaOapg.properties.source, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseQuantity", "clientOid", "ctime", "fillPrice", "fillQuantity", "fillTotalAmount", "loanType", "orderId", "orderType", "price", "quoteAmount", "side", "source", "status", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseQuantity: typing.Union[MetaOapg.properties.baseQuantity, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fillPrice: typing.Union[MetaOapg.properties.fillPrice, str, schemas.Unset] = schemas.unset, - fillQuantity: typing.Union[MetaOapg.properties.fillQuantity, str, schemas.Unset] = schemas.unset, - fillTotalAmount: typing.Union[MetaOapg.properties.fillTotalAmount, str, schemas.Unset] = schemas.unset, - loanType: typing.Union[MetaOapg.properties.loanType, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderType: typing.Union[MetaOapg.properties.orderType, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - quoteAmount: typing.Union[MetaOapg.properties.quoteAmount, str, schemas.Unset] = schemas.unset, - side: typing.Union[MetaOapg.properties.side, str, schemas.Unset] = schemas.unset, - source: typing.Union[MetaOapg.properties.source, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOrderInfo': - return super().__new__( - cls, - *args, - baseQuantity=baseQuantity, - clientOid=clientOid, - ctime=ctime, - fillPrice=fillPrice, - fillQuantity=fillQuantity, - fillTotalAmount=fillTotalAmount, - loanType=loanType, - orderId=orderId, - orderType=orderType, - price=price, - quoteAmount=quoteAmount, - side=side, - source=source, - status=status, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_order_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_order_info.pyi deleted file mode 100644 index 6e10e6cd..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_order_info.pyi +++ /dev/null @@ -1,218 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOrderInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseQuantity = schemas.StrSchema - clientOid = schemas.StrSchema - ctime = schemas.StrSchema - fillPrice = schemas.StrSchema - fillQuantity = schemas.StrSchema - fillTotalAmount = schemas.StrSchema - loanType = schemas.StrSchema - orderId = schemas.StrSchema - orderType = schemas.StrSchema - price = schemas.StrSchema - quoteAmount = schemas.StrSchema - side = schemas.StrSchema - source = schemas.StrSchema - status = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "baseQuantity": baseQuantity, - "clientOid": clientOid, - "ctime": ctime, - "fillPrice": fillPrice, - "fillQuantity": fillQuantity, - "fillTotalAmount": fillTotalAmount, - "loanType": loanType, - "orderId": orderId, - "orderType": orderType, - "price": price, - "quoteAmount": quoteAmount, - "side": side, - "source": source, - "status": status, - "symbol": symbol, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseQuantity"]) -> MetaOapg.properties.baseQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillPrice"]) -> MetaOapg.properties.fillPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillQuantity"]) -> MetaOapg.properties.fillQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillTotalAmount"]) -> MetaOapg.properties.fillTotalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteAmount"]) -> MetaOapg.properties.quoteAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseQuantity", "clientOid", "ctime", "fillPrice", "fillQuantity", "fillTotalAmount", "loanType", "orderId", "orderType", "price", "quoteAmount", "side", "source", "status", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseQuantity"]) -> typing.Union[MetaOapg.properties.baseQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillPrice"]) -> typing.Union[MetaOapg.properties.fillPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillQuantity"]) -> typing.Union[MetaOapg.properties.fillQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillTotalAmount"]) -> typing.Union[MetaOapg.properties.fillTotalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanType"]) -> typing.Union[MetaOapg.properties.loanType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> typing.Union[MetaOapg.properties.orderType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteAmount"]) -> typing.Union[MetaOapg.properties.quoteAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> typing.Union[MetaOapg.properties.side, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union[MetaOapg.properties.source, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseQuantity", "clientOid", "ctime", "fillPrice", "fillQuantity", "fillTotalAmount", "loanType", "orderId", "orderType", "price", "quoteAmount", "side", "source", "status", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseQuantity: typing.Union[MetaOapg.properties.baseQuantity, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fillPrice: typing.Union[MetaOapg.properties.fillPrice, str, schemas.Unset] = schemas.unset, - fillQuantity: typing.Union[MetaOapg.properties.fillQuantity, str, schemas.Unset] = schemas.unset, - fillTotalAmount: typing.Union[MetaOapg.properties.fillTotalAmount, str, schemas.Unset] = schemas.unset, - loanType: typing.Union[MetaOapg.properties.loanType, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderType: typing.Union[MetaOapg.properties.orderType, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - quoteAmount: typing.Union[MetaOapg.properties.quoteAmount, str, schemas.Unset] = schemas.unset, - side: typing.Union[MetaOapg.properties.side, str, schemas.Unset] = schemas.unset, - source: typing.Union[MetaOapg.properties.source, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOrderInfo': - return super().__new__( - cls, - *args, - baseQuantity=baseQuantity, - clientOid=clientOid, - ctime=ctime, - fillPrice=fillPrice, - fillQuantity=fillQuantity, - fillTotalAmount=fillTotalAmount, - loanType=loanType, - orderId=orderId, - orderType=orderType, - price=price, - quoteAmount=quoteAmount, - side=side, - source=source, - status=status, - symbol=symbol, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_order_request.py b/bitget-python-sdk-open-api/bitget/model/margin_order_request.py deleted file mode 100644 index 349005e6..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_order_request.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "orderType", - "symbol", - "side", - "loanType", - } - - class properties: - loanType = schemas.StrSchema - orderType = schemas.StrSchema - side = schemas.StrSchema - symbol = schemas.StrSchema - baseQuantity = schemas.StrSchema - channelApiCode = schemas.StrSchema - clientOid = schemas.StrSchema - ip = schemas.StrSchema - price = schemas.StrSchema - quoteAmount = schemas.StrSchema - timeInForce = schemas.StrSchema - __annotations__ = { - "loanType": loanType, - "orderType": orderType, - "side": side, - "symbol": symbol, - "baseQuantity": baseQuantity, - "channelApiCode": channelApiCode, - "clientOid": clientOid, - "ip": ip, - "price": price, - "quoteAmount": quoteAmount, - "timeInForce": timeInForce, - } - - orderType: MetaOapg.properties.orderType - symbol: MetaOapg.properties.symbol - side: MetaOapg.properties.side - loanType: MetaOapg.properties.loanType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseQuantity"]) -> MetaOapg.properties.baseQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["channelApiCode"]) -> MetaOapg.properties.channelApiCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ip"]) -> MetaOapg.properties.ip: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteAmount"]) -> MetaOapg.properties.quoteAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["timeInForce"]) -> MetaOapg.properties.timeInForce: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loanType", "orderType", "side", "symbol", "baseQuantity", "channelApiCode", "clientOid", "ip", "price", "quoteAmount", "timeInForce", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseQuantity"]) -> typing.Union[MetaOapg.properties.baseQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["channelApiCode"]) -> typing.Union[MetaOapg.properties.channelApiCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ip"]) -> typing.Union[MetaOapg.properties.ip, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteAmount"]) -> typing.Union[MetaOapg.properties.quoteAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["timeInForce"]) -> typing.Union[MetaOapg.properties.timeInForce, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loanType", "orderType", "side", "symbol", "baseQuantity", "channelApiCode", "clientOid", "ip", "price", "quoteAmount", "timeInForce", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - orderType: typing.Union[MetaOapg.properties.orderType, str, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - side: typing.Union[MetaOapg.properties.side, str, ], - loanType: typing.Union[MetaOapg.properties.loanType, str, ], - baseQuantity: typing.Union[MetaOapg.properties.baseQuantity, str, schemas.Unset] = schemas.unset, - channelApiCode: typing.Union[MetaOapg.properties.channelApiCode, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - ip: typing.Union[MetaOapg.properties.ip, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - quoteAmount: typing.Union[MetaOapg.properties.quoteAmount, str, schemas.Unset] = schemas.unset, - timeInForce: typing.Union[MetaOapg.properties.timeInForce, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOrderRequest': - return super().__new__( - cls, - *args, - orderType=orderType, - symbol=symbol, - side=side, - loanType=loanType, - baseQuantity=baseQuantity, - channelApiCode=channelApiCode, - clientOid=clientOid, - ip=ip, - price=price, - quoteAmount=quoteAmount, - timeInForce=timeInForce, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_order_request.pyi b/bitget-python-sdk-open-api/bitget/model/margin_order_request.pyi deleted file mode 100644 index 349005e6..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_order_request.pyi +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginOrderRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "orderType", - "symbol", - "side", - "loanType", - } - - class properties: - loanType = schemas.StrSchema - orderType = schemas.StrSchema - side = schemas.StrSchema - symbol = schemas.StrSchema - baseQuantity = schemas.StrSchema - channelApiCode = schemas.StrSchema - clientOid = schemas.StrSchema - ip = schemas.StrSchema - price = schemas.StrSchema - quoteAmount = schemas.StrSchema - timeInForce = schemas.StrSchema - __annotations__ = { - "loanType": loanType, - "orderType": orderType, - "side": side, - "symbol": symbol, - "baseQuantity": baseQuantity, - "channelApiCode": channelApiCode, - "clientOid": clientOid, - "ip": ip, - "price": price, - "quoteAmount": quoteAmount, - "timeInForce": timeInForce, - } - - orderType: MetaOapg.properties.orderType - symbol: MetaOapg.properties.symbol - side: MetaOapg.properties.side - loanType: MetaOapg.properties.loanType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseQuantity"]) -> MetaOapg.properties.baseQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["channelApiCode"]) -> MetaOapg.properties.channelApiCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ip"]) -> MetaOapg.properties.ip: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteAmount"]) -> MetaOapg.properties.quoteAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["timeInForce"]) -> MetaOapg.properties.timeInForce: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loanType", "orderType", "side", "symbol", "baseQuantity", "channelApiCode", "clientOid", "ip", "price", "quoteAmount", "timeInForce", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loanType"]) -> MetaOapg.properties.loanType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseQuantity"]) -> typing.Union[MetaOapg.properties.baseQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["channelApiCode"]) -> typing.Union[MetaOapg.properties.channelApiCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ip"]) -> typing.Union[MetaOapg.properties.ip, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteAmount"]) -> typing.Union[MetaOapg.properties.quoteAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["timeInForce"]) -> typing.Union[MetaOapg.properties.timeInForce, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loanType", "orderType", "side", "symbol", "baseQuantity", "channelApiCode", "clientOid", "ip", "price", "quoteAmount", "timeInForce", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - orderType: typing.Union[MetaOapg.properties.orderType, str, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - side: typing.Union[MetaOapg.properties.side, str, ], - loanType: typing.Union[MetaOapg.properties.loanType, str, ], - baseQuantity: typing.Union[MetaOapg.properties.baseQuantity, str, schemas.Unset] = schemas.unset, - channelApiCode: typing.Union[MetaOapg.properties.channelApiCode, str, schemas.Unset] = schemas.unset, - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - ip: typing.Union[MetaOapg.properties.ip, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - quoteAmount: typing.Union[MetaOapg.properties.quoteAmount, str, schemas.Unset] = schemas.unset, - timeInForce: typing.Union[MetaOapg.properties.timeInForce, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginOrderRequest': - return super().__new__( - cls, - *args, - orderType=orderType, - symbol=symbol, - side=side, - loanType=loanType, - baseQuantity=baseQuantity, - channelApiCode=channelApiCode, - clientOid=clientOid, - ip=ip, - price=price, - quoteAmount=quoteAmount, - timeInForce=timeInForce, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.py b/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.py deleted file mode 100644 index e6eb6de3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginPlaceOrderResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.pyi deleted file mode 100644 index e6eb6de3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_place_order_result.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginPlaceOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - clientOid = schemas.StrSchema - orderId = schemas.StrSchema - __annotations__ = { - "clientOid": clientOid, - "orderId": orderId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientOid"]) -> MetaOapg.properties.clientOid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientOid"]) -> typing.Union[MetaOapg.properties.clientOid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["clientOid", "orderId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - clientOid: typing.Union[MetaOapg.properties.clientOid, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginPlaceOrderResult': - return super().__new__( - cls, - *args, - clientOid=clientOid, - orderId=orderId, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_repay_info.py b/bitget-python-sdk-open-api/bitget/model/margin_repay_info.py deleted file mode 100644 index 5878aa43..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_repay_info.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginRepayInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - interest = schemas.StrSchema - repayId = schemas.StrSchema - totalAmount = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "interest": interest, - "repayId": repayId, - "totalAmount": totalAmount, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayId"]) -> MetaOapg.properties.repayId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "totalAmount", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayId"]) -> typing.Union[MetaOapg.properties.repayId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "totalAmount", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - repayId: typing.Union[MetaOapg.properties.repayId, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginRepayInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - interest=interest, - repayId=repayId, - totalAmount=totalAmount, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_repay_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_repay_info.pyi deleted file mode 100644 index 5878aa43..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_repay_info.pyi +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginRepayInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - coin = schemas.StrSchema - ctime = schemas.StrSchema - interest = schemas.StrSchema - repayId = schemas.StrSchema - totalAmount = schemas.StrSchema - type = schemas.StrSchema - __annotations__ = { - "amount": amount, - "coin": coin, - "ctime": ctime, - "interest": interest, - "repayId": repayId, - "totalAmount": totalAmount, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["interest"]) -> MetaOapg.properties.interest: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["repayId"]) -> MetaOapg.properties.repayId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalAmount"]) -> MetaOapg.properties.totalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "totalAmount", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["interest"]) -> typing.Union[MetaOapg.properties.interest, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["repayId"]) -> typing.Union[MetaOapg.properties.repayId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalAmount"]) -> typing.Union[MetaOapg.properties.totalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "coin", "ctime", "interest", "repayId", "totalAmount", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - interest: typing.Union[MetaOapg.properties.interest, str, schemas.Unset] = schemas.unset, - repayId: typing.Union[MetaOapg.properties.repayId, str, schemas.Unset] = schemas.unset, - totalAmount: typing.Union[MetaOapg.properties.totalAmount, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginRepayInfo': - return super().__new__( - cls, - *args, - amount=amount, - coin=coin, - ctime=ctime, - interest=interest, - repayId=repayId, - totalAmount=totalAmount, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.py deleted file mode 100644 index aa26647f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginRepayInfo']: - return MarginRepayInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginRepayInfo'], typing.List['MarginRepayInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginRepayInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginRepayInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_repay_info import MarginRepayInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.pyi deleted file mode 100644 index aa26647f..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_repay_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginRepayInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - maxId = schemas.StrSchema - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginRepayInfo']: - return MarginRepayInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginRepayInfo'], typing.List['MarginRepayInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginRepayInfo': - return super().__getitem__(i) - __annotations__ = { - "maxId": maxId, - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["maxId", "minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginRepayInfoResult': - return super().__new__( - cls, - *args, - maxId=maxId, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_repay_info import MarginRepayInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_system_result.py b/bitget-python-sdk-open-api/bitget/model/margin_system_result.py deleted file mode 100644 index 1b16b1b3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_system_result.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginSystemResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseCoin = schemas.StrSchema - isBorrowable = schemas.BoolSchema - liquidationRiskRatio = schemas.StrSchema - makerFeeRate = schemas.StrSchema - maxCrossLeverage = schemas.StrSchema - maxIsolatedLeverage = schemas.StrSchema - maxTradeAmount = schemas.StrSchema - minTradeAmount = schemas.StrSchema - minTradeUSDT = schemas.StrSchema - priceScale = schemas.StrSchema - quantityScale = schemas.StrSchema - quoteCoin = schemas.StrSchema - status = schemas.StrSchema - symbol = schemas.StrSchema - takerFeeRate = schemas.StrSchema - userMinBorrow = schemas.StrSchema - warningRiskRatio = schemas.StrSchema - __annotations__ = { - "baseCoin": baseCoin, - "isBorrowable": isBorrowable, - "liquidationRiskRatio": liquidationRiskRatio, - "makerFeeRate": makerFeeRate, - "maxCrossLeverage": maxCrossLeverage, - "maxIsolatedLeverage": maxIsolatedLeverage, - "maxTradeAmount": maxTradeAmount, - "minTradeAmount": minTradeAmount, - "minTradeUSDT": minTradeUSDT, - "priceScale": priceScale, - "quantityScale": quantityScale, - "quoteCoin": quoteCoin, - "status": status, - "symbol": symbol, - "takerFeeRate": takerFeeRate, - "userMinBorrow": userMinBorrow, - "warningRiskRatio": warningRiskRatio, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isBorrowable"]) -> MetaOapg.properties.isBorrowable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liquidationRiskRatio"]) -> MetaOapg.properties.liquidationRiskRatio: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["makerFeeRate"]) -> MetaOapg.properties.makerFeeRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxCrossLeverage"]) -> MetaOapg.properties.maxCrossLeverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxIsolatedLeverage"]) -> MetaOapg.properties.maxIsolatedLeverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTradeAmount"]) -> MetaOapg.properties.maxTradeAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minTradeAmount"]) -> MetaOapg.properties.minTradeAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minTradeUSDT"]) -> MetaOapg.properties.minTradeUSDT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priceScale"]) -> MetaOapg.properties.priceScale: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quantityScale"]) -> MetaOapg.properties.quantityScale: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["takerFeeRate"]) -> MetaOapg.properties.takerFeeRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userMinBorrow"]) -> MetaOapg.properties.userMinBorrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["warningRiskRatio"]) -> MetaOapg.properties.warningRiskRatio: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseCoin", "isBorrowable", "liquidationRiskRatio", "makerFeeRate", "maxCrossLeverage", "maxIsolatedLeverage", "maxTradeAmount", "minTradeAmount", "minTradeUSDT", "priceScale", "quantityScale", "quoteCoin", "status", "symbol", "takerFeeRate", "userMinBorrow", "warningRiskRatio", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isBorrowable"]) -> typing.Union[MetaOapg.properties.isBorrowable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liquidationRiskRatio"]) -> typing.Union[MetaOapg.properties.liquidationRiskRatio, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["makerFeeRate"]) -> typing.Union[MetaOapg.properties.makerFeeRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxCrossLeverage"]) -> typing.Union[MetaOapg.properties.maxCrossLeverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxIsolatedLeverage"]) -> typing.Union[MetaOapg.properties.maxIsolatedLeverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTradeAmount"]) -> typing.Union[MetaOapg.properties.maxTradeAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minTradeAmount"]) -> typing.Union[MetaOapg.properties.minTradeAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minTradeUSDT"]) -> typing.Union[MetaOapg.properties.minTradeUSDT, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priceScale"]) -> typing.Union[MetaOapg.properties.priceScale, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quantityScale"]) -> typing.Union[MetaOapg.properties.quantityScale, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["takerFeeRate"]) -> typing.Union[MetaOapg.properties.takerFeeRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userMinBorrow"]) -> typing.Union[MetaOapg.properties.userMinBorrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["warningRiskRatio"]) -> typing.Union[MetaOapg.properties.warningRiskRatio, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseCoin", "isBorrowable", "liquidationRiskRatio", "makerFeeRate", "maxCrossLeverage", "maxIsolatedLeverage", "maxTradeAmount", "minTradeAmount", "minTradeUSDT", "priceScale", "quantityScale", "quoteCoin", "status", "symbol", "takerFeeRate", "userMinBorrow", "warningRiskRatio", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - isBorrowable: typing.Union[MetaOapg.properties.isBorrowable, bool, schemas.Unset] = schemas.unset, - liquidationRiskRatio: typing.Union[MetaOapg.properties.liquidationRiskRatio, str, schemas.Unset] = schemas.unset, - makerFeeRate: typing.Union[MetaOapg.properties.makerFeeRate, str, schemas.Unset] = schemas.unset, - maxCrossLeverage: typing.Union[MetaOapg.properties.maxCrossLeverage, str, schemas.Unset] = schemas.unset, - maxIsolatedLeverage: typing.Union[MetaOapg.properties.maxIsolatedLeverage, str, schemas.Unset] = schemas.unset, - maxTradeAmount: typing.Union[MetaOapg.properties.maxTradeAmount, str, schemas.Unset] = schemas.unset, - minTradeAmount: typing.Union[MetaOapg.properties.minTradeAmount, str, schemas.Unset] = schemas.unset, - minTradeUSDT: typing.Union[MetaOapg.properties.minTradeUSDT, str, schemas.Unset] = schemas.unset, - priceScale: typing.Union[MetaOapg.properties.priceScale, str, schemas.Unset] = schemas.unset, - quantityScale: typing.Union[MetaOapg.properties.quantityScale, str, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - takerFeeRate: typing.Union[MetaOapg.properties.takerFeeRate, str, schemas.Unset] = schemas.unset, - userMinBorrow: typing.Union[MetaOapg.properties.userMinBorrow, str, schemas.Unset] = schemas.unset, - warningRiskRatio: typing.Union[MetaOapg.properties.warningRiskRatio, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginSystemResult': - return super().__new__( - cls, - *args, - baseCoin=baseCoin, - isBorrowable=isBorrowable, - liquidationRiskRatio=liquidationRiskRatio, - makerFeeRate=makerFeeRate, - maxCrossLeverage=maxCrossLeverage, - maxIsolatedLeverage=maxIsolatedLeverage, - maxTradeAmount=maxTradeAmount, - minTradeAmount=minTradeAmount, - minTradeUSDT=minTradeUSDT, - priceScale=priceScale, - quantityScale=quantityScale, - quoteCoin=quoteCoin, - status=status, - symbol=symbol, - takerFeeRate=takerFeeRate, - userMinBorrow=userMinBorrow, - warningRiskRatio=warningRiskRatio, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_system_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_system_result.pyi deleted file mode 100644 index 1b16b1b3..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_system_result.pyi +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginSystemResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - baseCoin = schemas.StrSchema - isBorrowable = schemas.BoolSchema - liquidationRiskRatio = schemas.StrSchema - makerFeeRate = schemas.StrSchema - maxCrossLeverage = schemas.StrSchema - maxIsolatedLeverage = schemas.StrSchema - maxTradeAmount = schemas.StrSchema - minTradeAmount = schemas.StrSchema - minTradeUSDT = schemas.StrSchema - priceScale = schemas.StrSchema - quantityScale = schemas.StrSchema - quoteCoin = schemas.StrSchema - status = schemas.StrSchema - symbol = schemas.StrSchema - takerFeeRate = schemas.StrSchema - userMinBorrow = schemas.StrSchema - warningRiskRatio = schemas.StrSchema - __annotations__ = { - "baseCoin": baseCoin, - "isBorrowable": isBorrowable, - "liquidationRiskRatio": liquidationRiskRatio, - "makerFeeRate": makerFeeRate, - "maxCrossLeverage": maxCrossLeverage, - "maxIsolatedLeverage": maxIsolatedLeverage, - "maxTradeAmount": maxTradeAmount, - "minTradeAmount": minTradeAmount, - "minTradeUSDT": minTradeUSDT, - "priceScale": priceScale, - "quantityScale": quantityScale, - "quoteCoin": quoteCoin, - "status": status, - "symbol": symbol, - "takerFeeRate": takerFeeRate, - "userMinBorrow": userMinBorrow, - "warningRiskRatio": warningRiskRatio, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseCoin"]) -> MetaOapg.properties.baseCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isBorrowable"]) -> MetaOapg.properties.isBorrowable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["liquidationRiskRatio"]) -> MetaOapg.properties.liquidationRiskRatio: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["makerFeeRate"]) -> MetaOapg.properties.makerFeeRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxCrossLeverage"]) -> MetaOapg.properties.maxCrossLeverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxIsolatedLeverage"]) -> MetaOapg.properties.maxIsolatedLeverage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxTradeAmount"]) -> MetaOapg.properties.maxTradeAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minTradeAmount"]) -> MetaOapg.properties.minTradeAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minTradeUSDT"]) -> MetaOapg.properties.minTradeUSDT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priceScale"]) -> MetaOapg.properties.priceScale: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quantityScale"]) -> MetaOapg.properties.quantityScale: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quoteCoin"]) -> MetaOapg.properties.quoteCoin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["takerFeeRate"]) -> MetaOapg.properties.takerFeeRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userMinBorrow"]) -> MetaOapg.properties.userMinBorrow: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["warningRiskRatio"]) -> MetaOapg.properties.warningRiskRatio: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baseCoin", "isBorrowable", "liquidationRiskRatio", "makerFeeRate", "maxCrossLeverage", "maxIsolatedLeverage", "maxTradeAmount", "minTradeAmount", "minTradeUSDT", "priceScale", "quantityScale", "quoteCoin", "status", "symbol", "takerFeeRate", "userMinBorrow", "warningRiskRatio", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseCoin"]) -> typing.Union[MetaOapg.properties.baseCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isBorrowable"]) -> typing.Union[MetaOapg.properties.isBorrowable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["liquidationRiskRatio"]) -> typing.Union[MetaOapg.properties.liquidationRiskRatio, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["makerFeeRate"]) -> typing.Union[MetaOapg.properties.makerFeeRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxCrossLeverage"]) -> typing.Union[MetaOapg.properties.maxCrossLeverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxIsolatedLeverage"]) -> typing.Union[MetaOapg.properties.maxIsolatedLeverage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxTradeAmount"]) -> typing.Union[MetaOapg.properties.maxTradeAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minTradeAmount"]) -> typing.Union[MetaOapg.properties.minTradeAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minTradeUSDT"]) -> typing.Union[MetaOapg.properties.minTradeUSDT, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priceScale"]) -> typing.Union[MetaOapg.properties.priceScale, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quantityScale"]) -> typing.Union[MetaOapg.properties.quantityScale, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quoteCoin"]) -> typing.Union[MetaOapg.properties.quoteCoin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["takerFeeRate"]) -> typing.Union[MetaOapg.properties.takerFeeRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userMinBorrow"]) -> typing.Union[MetaOapg.properties.userMinBorrow, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["warningRiskRatio"]) -> typing.Union[MetaOapg.properties.warningRiskRatio, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baseCoin", "isBorrowable", "liquidationRiskRatio", "makerFeeRate", "maxCrossLeverage", "maxIsolatedLeverage", "maxTradeAmount", "minTradeAmount", "minTradeUSDT", "priceScale", "quantityScale", "quoteCoin", "status", "symbol", "takerFeeRate", "userMinBorrow", "warningRiskRatio", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - baseCoin: typing.Union[MetaOapg.properties.baseCoin, str, schemas.Unset] = schemas.unset, - isBorrowable: typing.Union[MetaOapg.properties.isBorrowable, bool, schemas.Unset] = schemas.unset, - liquidationRiskRatio: typing.Union[MetaOapg.properties.liquidationRiskRatio, str, schemas.Unset] = schemas.unset, - makerFeeRate: typing.Union[MetaOapg.properties.makerFeeRate, str, schemas.Unset] = schemas.unset, - maxCrossLeverage: typing.Union[MetaOapg.properties.maxCrossLeverage, str, schemas.Unset] = schemas.unset, - maxIsolatedLeverage: typing.Union[MetaOapg.properties.maxIsolatedLeverage, str, schemas.Unset] = schemas.unset, - maxTradeAmount: typing.Union[MetaOapg.properties.maxTradeAmount, str, schemas.Unset] = schemas.unset, - minTradeAmount: typing.Union[MetaOapg.properties.minTradeAmount, str, schemas.Unset] = schemas.unset, - minTradeUSDT: typing.Union[MetaOapg.properties.minTradeUSDT, str, schemas.Unset] = schemas.unset, - priceScale: typing.Union[MetaOapg.properties.priceScale, str, schemas.Unset] = schemas.unset, - quantityScale: typing.Union[MetaOapg.properties.quantityScale, str, schemas.Unset] = schemas.unset, - quoteCoin: typing.Union[MetaOapg.properties.quoteCoin, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset, - takerFeeRate: typing.Union[MetaOapg.properties.takerFeeRate, str, schemas.Unset] = schemas.unset, - userMinBorrow: typing.Union[MetaOapg.properties.userMinBorrow, str, schemas.Unset] = schemas.unset, - warningRiskRatio: typing.Union[MetaOapg.properties.warningRiskRatio, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginSystemResult': - return super().__new__( - cls, - *args, - baseCoin=baseCoin, - isBorrowable=isBorrowable, - liquidationRiskRatio=liquidationRiskRatio, - makerFeeRate=makerFeeRate, - maxCrossLeverage=maxCrossLeverage, - maxIsolatedLeverage=maxIsolatedLeverage, - maxTradeAmount=maxTradeAmount, - minTradeAmount=minTradeAmount, - minTradeUSDT=minTradeUSDT, - priceScale=priceScale, - quantityScale=quantityScale, - quoteCoin=quoteCoin, - status=status, - symbol=symbol, - takerFeeRate=takerFeeRate, - userMinBorrow=userMinBorrow, - warningRiskRatio=warningRiskRatio, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.py b/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.py deleted file mode 100644 index 045cff7e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.py +++ /dev/null @@ -1,168 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginTradeDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - feeCcy = schemas.StrSchema - fees = schemas.StrSchema - fillId = schemas.StrSchema - fillPrice = schemas.StrSchema - fillQuantity = schemas.StrSchema - fillTotalAmount = schemas.StrSchema - orderId = schemas.StrSchema - orderType = schemas.StrSchema - side = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "feeCcy": feeCcy, - "fees": fees, - "fillId": fillId, - "fillPrice": fillPrice, - "fillQuantity": fillQuantity, - "fillTotalAmount": fillTotalAmount, - "orderId": orderId, - "orderType": orderType, - "side": side, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeCcy"]) -> MetaOapg.properties.feeCcy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fees"]) -> MetaOapg.properties.fees: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillId"]) -> MetaOapg.properties.fillId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillPrice"]) -> MetaOapg.properties.fillPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillQuantity"]) -> MetaOapg.properties.fillQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillTotalAmount"]) -> MetaOapg.properties.fillTotalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "feeCcy", "fees", "fillId", "fillPrice", "fillQuantity", "fillTotalAmount", "orderId", "orderType", "side", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeCcy"]) -> typing.Union[MetaOapg.properties.feeCcy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fees"]) -> typing.Union[MetaOapg.properties.fees, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillId"]) -> typing.Union[MetaOapg.properties.fillId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillPrice"]) -> typing.Union[MetaOapg.properties.fillPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillQuantity"]) -> typing.Union[MetaOapg.properties.fillQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillTotalAmount"]) -> typing.Union[MetaOapg.properties.fillTotalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> typing.Union[MetaOapg.properties.orderType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> typing.Union[MetaOapg.properties.side, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "feeCcy", "fees", "fillId", "fillPrice", "fillQuantity", "fillTotalAmount", "orderId", "orderType", "side", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - feeCcy: typing.Union[MetaOapg.properties.feeCcy, str, schemas.Unset] = schemas.unset, - fees: typing.Union[MetaOapg.properties.fees, str, schemas.Unset] = schemas.unset, - fillId: typing.Union[MetaOapg.properties.fillId, str, schemas.Unset] = schemas.unset, - fillPrice: typing.Union[MetaOapg.properties.fillPrice, str, schemas.Unset] = schemas.unset, - fillQuantity: typing.Union[MetaOapg.properties.fillQuantity, str, schemas.Unset] = schemas.unset, - fillTotalAmount: typing.Union[MetaOapg.properties.fillTotalAmount, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderType: typing.Union[MetaOapg.properties.orderType, str, schemas.Unset] = schemas.unset, - side: typing.Union[MetaOapg.properties.side, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginTradeDetailInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - feeCcy=feeCcy, - fees=fees, - fillId=fillId, - fillPrice=fillPrice, - fillQuantity=fillQuantity, - fillTotalAmount=fillTotalAmount, - orderId=orderId, - orderType=orderType, - side=side, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.pyi b/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.pyi deleted file mode 100644 index 045cff7e..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info.pyi +++ /dev/null @@ -1,168 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginTradeDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ctime = schemas.StrSchema - feeCcy = schemas.StrSchema - fees = schemas.StrSchema - fillId = schemas.StrSchema - fillPrice = schemas.StrSchema - fillQuantity = schemas.StrSchema - fillTotalAmount = schemas.StrSchema - orderId = schemas.StrSchema - orderType = schemas.StrSchema - side = schemas.StrSchema - __annotations__ = { - "ctime": ctime, - "feeCcy": feeCcy, - "fees": fees, - "fillId": fillId, - "fillPrice": fillPrice, - "fillQuantity": fillQuantity, - "fillTotalAmount": fillTotalAmount, - "orderId": orderId, - "orderType": orderType, - "side": side, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeCcy"]) -> MetaOapg.properties.feeCcy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fees"]) -> MetaOapg.properties.fees: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillId"]) -> MetaOapg.properties.fillId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillPrice"]) -> MetaOapg.properties.fillPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillQuantity"]) -> MetaOapg.properties.fillQuantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fillTotalAmount"]) -> MetaOapg.properties.fillTotalAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderType"]) -> MetaOapg.properties.orderType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["side"]) -> MetaOapg.properties.side: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ctime", "feeCcy", "fees", "fillId", "fillPrice", "fillQuantity", "fillTotalAmount", "orderId", "orderType", "side", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeCcy"]) -> typing.Union[MetaOapg.properties.feeCcy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fees"]) -> typing.Union[MetaOapg.properties.fees, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillId"]) -> typing.Union[MetaOapg.properties.fillId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillPrice"]) -> typing.Union[MetaOapg.properties.fillPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillQuantity"]) -> typing.Union[MetaOapg.properties.fillQuantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fillTotalAmount"]) -> typing.Union[MetaOapg.properties.fillTotalAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderType"]) -> typing.Union[MetaOapg.properties.orderType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> typing.Union[MetaOapg.properties.side, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ctime", "feeCcy", "fees", "fillId", "fillPrice", "fillQuantity", "fillTotalAmount", "orderId", "orderType", "side", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - feeCcy: typing.Union[MetaOapg.properties.feeCcy, str, schemas.Unset] = schemas.unset, - fees: typing.Union[MetaOapg.properties.fees, str, schemas.Unset] = schemas.unset, - fillId: typing.Union[MetaOapg.properties.fillId, str, schemas.Unset] = schemas.unset, - fillPrice: typing.Union[MetaOapg.properties.fillPrice, str, schemas.Unset] = schemas.unset, - fillQuantity: typing.Union[MetaOapg.properties.fillQuantity, str, schemas.Unset] = schemas.unset, - fillTotalAmount: typing.Union[MetaOapg.properties.fillTotalAmount, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderType: typing.Union[MetaOapg.properties.orderType, str, schemas.Unset] = schemas.unset, - side: typing.Union[MetaOapg.properties.side, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginTradeDetailInfo': - return super().__new__( - cls, - *args, - ctime=ctime, - feeCcy=feeCcy, - fees=fees, - fillId=fillId, - fillPrice=fillPrice, - fillQuantity=fillQuantity, - fillTotalAmount=fillTotalAmount, - orderId=orderId, - orderType=orderType, - side=side, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.py b/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.py deleted file mode 100644 index b04590d9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginTradeDetailInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class fills( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginTradeDetailInfo']: - return MarginTradeDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginTradeDetailInfo'], typing.List['MarginTradeDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'fills': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginTradeDetailInfo': - return super().__getitem__(i) - maxId = schemas.StrSchema - minId = schemas.StrSchema - __annotations__ = { - "fills": fills, - "maxId": maxId, - "minId": minId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fills"]) -> MetaOapg.properties.fills: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fills", "maxId", "minId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fills"]) -> typing.Union[MetaOapg.properties.fills, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fills", "maxId", "minId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - fills: typing.Union[MetaOapg.properties.fills, list, tuple, schemas.Unset] = schemas.unset, - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginTradeDetailInfoResult': - return super().__new__( - cls, - *args, - fills=fills, - maxId=maxId, - minId=minId, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_trade_detail_info import MarginTradeDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.pyi deleted file mode 100644 index b04590d9..00000000 --- a/bitget-python-sdk-open-api/bitget/model/margin_trade_detail_info_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MarginTradeDetailInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class fills( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MarginTradeDetailInfo']: - return MarginTradeDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MarginTradeDetailInfo'], typing.List['MarginTradeDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'fills': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MarginTradeDetailInfo': - return super().__getitem__(i) - maxId = schemas.StrSchema - minId = schemas.StrSchema - __annotations__ = { - "fills": fills, - "maxId": maxId, - "minId": minId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fills"]) -> MetaOapg.properties.fills: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxId"]) -> MetaOapg.properties.maxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fills", "maxId", "minId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fills"]) -> typing.Union[MetaOapg.properties.fills, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxId"]) -> typing.Union[MetaOapg.properties.maxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fills", "maxId", "minId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - fills: typing.Union[MetaOapg.properties.fills, list, tuple, schemas.Unset] = schemas.unset, - maxId: typing.Union[MetaOapg.properties.maxId, str, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MarginTradeDetailInfoResult': - return super().__new__( - cls, - *args, - fills=fills, - maxId=maxId, - minId=minId, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.margin_trade_detail_info import MarginTradeDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.py deleted file mode 100644 index 815c2919..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.py +++ /dev/null @@ -1,319 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - advId = schemas.StrSchema - advNo = schemas.StrSchema - amount = schemas.StrSchema - coin = schemas.StrSchema - coinPrecision = schemas.StrSchema - ctime = schemas.StrSchema - dealAmount = schemas.StrSchema - fiatCode = schemas.StrSchema - fiatPrecision = schemas.StrSchema - fiatSymbol = schemas.StrSchema - hide = schemas.StrSchema - maxAmount = schemas.StrSchema - minAmount = schemas.StrSchema - payDuration = schemas.StrSchema - - - class paymentMethod( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatPaymentInfo']: - return FiatPaymentInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['FiatPaymentInfo'], typing.List['FiatPaymentInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymentMethod': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatPaymentInfo': - return super().__getitem__(i) - price = schemas.StrSchema - remark = schemas.StrSchema - status = schemas.StrSchema - turnoverNum = schemas.StrSchema - turnoverRate = schemas.StrSchema - type = schemas.StrSchema - - @staticmethod - def userLimit() -> typing.Type['MerchantAdvUserLimitInfo']: - return MerchantAdvUserLimitInfo - __annotations__ = { - "advId": advId, - "advNo": advNo, - "amount": amount, - "coin": coin, - "coinPrecision": coinPrecision, - "ctime": ctime, - "dealAmount": dealAmount, - "fiatCode": fiatCode, - "fiatPrecision": fiatPrecision, - "fiatSymbol": fiatSymbol, - "hide": hide, - "maxAmount": maxAmount, - "minAmount": minAmount, - "payDuration": payDuration, - "paymentMethod": paymentMethod, - "price": price, - "remark": remark, - "status": status, - "turnoverNum": turnoverNum, - "turnoverRate": turnoverRate, - "type": type, - "userLimit": userLimit, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advId"]) -> MetaOapg.properties.advId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advNo"]) -> MetaOapg.properties.advNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coinPrecision"]) -> MetaOapg.properties.coinPrecision: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dealAmount"]) -> MetaOapg.properties.dealAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatCode"]) -> MetaOapg.properties.fiatCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatPrecision"]) -> MetaOapg.properties.fiatPrecision: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatSymbol"]) -> MetaOapg.properties.fiatSymbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hide"]) -> MetaOapg.properties.hide: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxAmount"]) -> MetaOapg.properties.maxAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minAmount"]) -> MetaOapg.properties.minAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payDuration"]) -> MetaOapg.properties.payDuration: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentMethod"]) -> MetaOapg.properties.paymentMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remark"]) -> MetaOapg.properties.remark: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["turnoverNum"]) -> MetaOapg.properties.turnoverNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["turnoverRate"]) -> MetaOapg.properties.turnoverRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userLimit"]) -> 'MerchantAdvUserLimitInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advId", "advNo", "amount", "coin", "coinPrecision", "ctime", "dealAmount", "fiatCode", "fiatPrecision", "fiatSymbol", "hide", "maxAmount", "minAmount", "payDuration", "paymentMethod", "price", "remark", "status", "turnoverNum", "turnoverRate", "type", "userLimit", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advId"]) -> typing.Union[MetaOapg.properties.advId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advNo"]) -> typing.Union[MetaOapg.properties.advNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coinPrecision"]) -> typing.Union[MetaOapg.properties.coinPrecision, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dealAmount"]) -> typing.Union[MetaOapg.properties.dealAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatCode"]) -> typing.Union[MetaOapg.properties.fiatCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatPrecision"]) -> typing.Union[MetaOapg.properties.fiatPrecision, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatSymbol"]) -> typing.Union[MetaOapg.properties.fiatSymbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hide"]) -> typing.Union[MetaOapg.properties.hide, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxAmount"]) -> typing.Union[MetaOapg.properties.maxAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minAmount"]) -> typing.Union[MetaOapg.properties.minAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payDuration"]) -> typing.Union[MetaOapg.properties.payDuration, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentMethod"]) -> typing.Union[MetaOapg.properties.paymentMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remark"]) -> typing.Union[MetaOapg.properties.remark, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["turnoverNum"]) -> typing.Union[MetaOapg.properties.turnoverNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["turnoverRate"]) -> typing.Union[MetaOapg.properties.turnoverRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userLimit"]) -> typing.Union['MerchantAdvUserLimitInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advId", "advNo", "amount", "coin", "coinPrecision", "ctime", "dealAmount", "fiatCode", "fiatPrecision", "fiatSymbol", "hide", "maxAmount", "minAmount", "payDuration", "paymentMethod", "price", "remark", "status", "turnoverNum", "turnoverRate", "type", "userLimit", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advId: typing.Union[MetaOapg.properties.advId, str, schemas.Unset] = schemas.unset, - advNo: typing.Union[MetaOapg.properties.advNo, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - coinPrecision: typing.Union[MetaOapg.properties.coinPrecision, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - dealAmount: typing.Union[MetaOapg.properties.dealAmount, str, schemas.Unset] = schemas.unset, - fiatCode: typing.Union[MetaOapg.properties.fiatCode, str, schemas.Unset] = schemas.unset, - fiatPrecision: typing.Union[MetaOapg.properties.fiatPrecision, str, schemas.Unset] = schemas.unset, - fiatSymbol: typing.Union[MetaOapg.properties.fiatSymbol, str, schemas.Unset] = schemas.unset, - hide: typing.Union[MetaOapg.properties.hide, str, schemas.Unset] = schemas.unset, - maxAmount: typing.Union[MetaOapg.properties.maxAmount, str, schemas.Unset] = schemas.unset, - minAmount: typing.Union[MetaOapg.properties.minAmount, str, schemas.Unset] = schemas.unset, - payDuration: typing.Union[MetaOapg.properties.payDuration, str, schemas.Unset] = schemas.unset, - paymentMethod: typing.Union[MetaOapg.properties.paymentMethod, list, tuple, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - remark: typing.Union[MetaOapg.properties.remark, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - turnoverNum: typing.Union[MetaOapg.properties.turnoverNum, str, schemas.Unset] = schemas.unset, - turnoverRate: typing.Union[MetaOapg.properties.turnoverRate, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - userLimit: typing.Union['MerchantAdvUserLimitInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvInfo': - return super().__new__( - cls, - *args, - advId=advId, - advNo=advNo, - amount=amount, - coin=coin, - coinPrecision=coinPrecision, - ctime=ctime, - dealAmount=dealAmount, - fiatCode=fiatCode, - fiatPrecision=fiatPrecision, - fiatSymbol=fiatSymbol, - hide=hide, - maxAmount=maxAmount, - minAmount=minAmount, - payDuration=payDuration, - paymentMethod=paymentMethod, - price=price, - remark=remark, - status=status, - turnoverNum=turnoverNum, - turnoverRate=turnoverRate, - type=type, - userLimit=userLimit, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.fiat_payment_info import FiatPaymentInfo -from bitget.model.merchant_adv_user_limit_info import MerchantAdvUserLimitInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.pyi deleted file mode 100644 index 815c2919..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_info.pyi +++ /dev/null @@ -1,319 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - advId = schemas.StrSchema - advNo = schemas.StrSchema - amount = schemas.StrSchema - coin = schemas.StrSchema - coinPrecision = schemas.StrSchema - ctime = schemas.StrSchema - dealAmount = schemas.StrSchema - fiatCode = schemas.StrSchema - fiatPrecision = schemas.StrSchema - fiatSymbol = schemas.StrSchema - hide = schemas.StrSchema - maxAmount = schemas.StrSchema - minAmount = schemas.StrSchema - payDuration = schemas.StrSchema - - - class paymentMethod( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatPaymentInfo']: - return FiatPaymentInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['FiatPaymentInfo'], typing.List['FiatPaymentInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymentMethod': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatPaymentInfo': - return super().__getitem__(i) - price = schemas.StrSchema - remark = schemas.StrSchema - status = schemas.StrSchema - turnoverNum = schemas.StrSchema - turnoverRate = schemas.StrSchema - type = schemas.StrSchema - - @staticmethod - def userLimit() -> typing.Type['MerchantAdvUserLimitInfo']: - return MerchantAdvUserLimitInfo - __annotations__ = { - "advId": advId, - "advNo": advNo, - "amount": amount, - "coin": coin, - "coinPrecision": coinPrecision, - "ctime": ctime, - "dealAmount": dealAmount, - "fiatCode": fiatCode, - "fiatPrecision": fiatPrecision, - "fiatSymbol": fiatSymbol, - "hide": hide, - "maxAmount": maxAmount, - "minAmount": minAmount, - "payDuration": payDuration, - "paymentMethod": paymentMethod, - "price": price, - "remark": remark, - "status": status, - "turnoverNum": turnoverNum, - "turnoverRate": turnoverRate, - "type": type, - "userLimit": userLimit, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advId"]) -> MetaOapg.properties.advId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advNo"]) -> MetaOapg.properties.advNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coinPrecision"]) -> MetaOapg.properties.coinPrecision: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dealAmount"]) -> MetaOapg.properties.dealAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatCode"]) -> MetaOapg.properties.fiatCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatPrecision"]) -> MetaOapg.properties.fiatPrecision: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiatSymbol"]) -> MetaOapg.properties.fiatSymbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hide"]) -> MetaOapg.properties.hide: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxAmount"]) -> MetaOapg.properties.maxAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minAmount"]) -> MetaOapg.properties.minAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payDuration"]) -> MetaOapg.properties.payDuration: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentMethod"]) -> MetaOapg.properties.paymentMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remark"]) -> MetaOapg.properties.remark: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["turnoverNum"]) -> MetaOapg.properties.turnoverNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["turnoverRate"]) -> MetaOapg.properties.turnoverRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userLimit"]) -> 'MerchantAdvUserLimitInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advId", "advNo", "amount", "coin", "coinPrecision", "ctime", "dealAmount", "fiatCode", "fiatPrecision", "fiatSymbol", "hide", "maxAmount", "minAmount", "payDuration", "paymentMethod", "price", "remark", "status", "turnoverNum", "turnoverRate", "type", "userLimit", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advId"]) -> typing.Union[MetaOapg.properties.advId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advNo"]) -> typing.Union[MetaOapg.properties.advNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coinPrecision"]) -> typing.Union[MetaOapg.properties.coinPrecision, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dealAmount"]) -> typing.Union[MetaOapg.properties.dealAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatCode"]) -> typing.Union[MetaOapg.properties.fiatCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatPrecision"]) -> typing.Union[MetaOapg.properties.fiatPrecision, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiatSymbol"]) -> typing.Union[MetaOapg.properties.fiatSymbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hide"]) -> typing.Union[MetaOapg.properties.hide, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxAmount"]) -> typing.Union[MetaOapg.properties.maxAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minAmount"]) -> typing.Union[MetaOapg.properties.minAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payDuration"]) -> typing.Union[MetaOapg.properties.payDuration, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentMethod"]) -> typing.Union[MetaOapg.properties.paymentMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remark"]) -> typing.Union[MetaOapg.properties.remark, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["turnoverNum"]) -> typing.Union[MetaOapg.properties.turnoverNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["turnoverRate"]) -> typing.Union[MetaOapg.properties.turnoverRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userLimit"]) -> typing.Union['MerchantAdvUserLimitInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advId", "advNo", "amount", "coin", "coinPrecision", "ctime", "dealAmount", "fiatCode", "fiatPrecision", "fiatSymbol", "hide", "maxAmount", "minAmount", "payDuration", "paymentMethod", "price", "remark", "status", "turnoverNum", "turnoverRate", "type", "userLimit", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advId: typing.Union[MetaOapg.properties.advId, str, schemas.Unset] = schemas.unset, - advNo: typing.Union[MetaOapg.properties.advNo, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - coinPrecision: typing.Union[MetaOapg.properties.coinPrecision, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - dealAmount: typing.Union[MetaOapg.properties.dealAmount, str, schemas.Unset] = schemas.unset, - fiatCode: typing.Union[MetaOapg.properties.fiatCode, str, schemas.Unset] = schemas.unset, - fiatPrecision: typing.Union[MetaOapg.properties.fiatPrecision, str, schemas.Unset] = schemas.unset, - fiatSymbol: typing.Union[MetaOapg.properties.fiatSymbol, str, schemas.Unset] = schemas.unset, - hide: typing.Union[MetaOapg.properties.hide, str, schemas.Unset] = schemas.unset, - maxAmount: typing.Union[MetaOapg.properties.maxAmount, str, schemas.Unset] = schemas.unset, - minAmount: typing.Union[MetaOapg.properties.minAmount, str, schemas.Unset] = schemas.unset, - payDuration: typing.Union[MetaOapg.properties.payDuration, str, schemas.Unset] = schemas.unset, - paymentMethod: typing.Union[MetaOapg.properties.paymentMethod, list, tuple, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - remark: typing.Union[MetaOapg.properties.remark, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - turnoverNum: typing.Union[MetaOapg.properties.turnoverNum, str, schemas.Unset] = schemas.unset, - turnoverRate: typing.Union[MetaOapg.properties.turnoverRate, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - userLimit: typing.Union['MerchantAdvUserLimitInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvInfo': - return super().__new__( - cls, - *args, - advId=advId, - advNo=advNo, - amount=amount, - coin=coin, - coinPrecision=coinPrecision, - ctime=ctime, - dealAmount=dealAmount, - fiatCode=fiatCode, - fiatPrecision=fiatPrecision, - fiatSymbol=fiatSymbol, - hide=hide, - maxAmount=maxAmount, - minAmount=minAmount, - payDuration=payDuration, - paymentMethod=paymentMethod, - price=price, - remark=remark, - status=status, - turnoverNum=turnoverNum, - turnoverRate=turnoverRate, - type=type, - userLimit=userLimit, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.fiat_payment_info import FiatPaymentInfo -from bitget.model.merchant_adv_user_limit_info import MerchantAdvUserLimitInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.py b/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.py deleted file mode 100644 index 0c4ff649..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class advList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantAdvInfo']: - return MerchantAdvInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantAdvInfo'], typing.List['MerchantAdvInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'advList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantAdvInfo': - return super().__getitem__(i) - minId = schemas.StrSchema - __annotations__ = { - "advList": advList, - "minId": minId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advList"]) -> MetaOapg.properties.advList: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advList", "minId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advList"]) -> typing.Union[MetaOapg.properties.advList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advList", "minId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advList: typing.Union[MetaOapg.properties.advList, list, tuple, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvResult': - return super().__new__( - cls, - *args, - advList=advList, - minId=minId, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_adv_info import MerchantAdvInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.pyi deleted file mode 100644 index 0c4ff649..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_result.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class advList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantAdvInfo']: - return MerchantAdvInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantAdvInfo'], typing.List['MerchantAdvInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'advList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantAdvInfo': - return super().__getitem__(i) - minId = schemas.StrSchema - __annotations__ = { - "advList": advList, - "minId": minId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advList"]) -> MetaOapg.properties.advList: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advList", "minId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advList"]) -> typing.Union[MetaOapg.properties.advList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advList", "minId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advList: typing.Union[MetaOapg.properties.advList, list, tuple, schemas.Unset] = schemas.unset, - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvResult': - return super().__new__( - cls, - *args, - advList=advList, - minId=minId, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_adv_info import MerchantAdvInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.py deleted file mode 100644 index 4f2ee87a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvUserLimitInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - allowMerchantPlace = schemas.StrSchema - country = schemas.StrSchema - maxCompleteNum = schemas.StrSchema - minCompleteNum = schemas.StrSchema - placeOrderNum = schemas.StrSchema - thirtyCompleteRate = schemas.StrSchema - __annotations__ = { - "allowMerchantPlace": allowMerchantPlace, - "country": country, - "maxCompleteNum": maxCompleteNum, - "minCompleteNum": minCompleteNum, - "placeOrderNum": placeOrderNum, - "thirtyCompleteRate": thirtyCompleteRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowMerchantPlace"]) -> MetaOapg.properties.allowMerchantPlace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxCompleteNum"]) -> MetaOapg.properties.maxCompleteNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minCompleteNum"]) -> MetaOapg.properties.minCompleteNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["placeOrderNum"]) -> MetaOapg.properties.placeOrderNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompleteRate"]) -> MetaOapg.properties.thirtyCompleteRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["allowMerchantPlace", "country", "maxCompleteNum", "minCompleteNum", "placeOrderNum", "thirtyCompleteRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowMerchantPlace"]) -> typing.Union[MetaOapg.properties.allowMerchantPlace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> typing.Union[MetaOapg.properties.country, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxCompleteNum"]) -> typing.Union[MetaOapg.properties.maxCompleteNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minCompleteNum"]) -> typing.Union[MetaOapg.properties.minCompleteNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["placeOrderNum"]) -> typing.Union[MetaOapg.properties.placeOrderNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompleteRate"]) -> typing.Union[MetaOapg.properties.thirtyCompleteRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["allowMerchantPlace", "country", "maxCompleteNum", "minCompleteNum", "placeOrderNum", "thirtyCompleteRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - allowMerchantPlace: typing.Union[MetaOapg.properties.allowMerchantPlace, str, schemas.Unset] = schemas.unset, - country: typing.Union[MetaOapg.properties.country, str, schemas.Unset] = schemas.unset, - maxCompleteNum: typing.Union[MetaOapg.properties.maxCompleteNum, str, schemas.Unset] = schemas.unset, - minCompleteNum: typing.Union[MetaOapg.properties.minCompleteNum, str, schemas.Unset] = schemas.unset, - placeOrderNum: typing.Union[MetaOapg.properties.placeOrderNum, str, schemas.Unset] = schemas.unset, - thirtyCompleteRate: typing.Union[MetaOapg.properties.thirtyCompleteRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvUserLimitInfo': - return super().__new__( - cls, - *args, - allowMerchantPlace=allowMerchantPlace, - country=country, - maxCompleteNum=maxCompleteNum, - minCompleteNum=minCompleteNum, - placeOrderNum=placeOrderNum, - thirtyCompleteRate=thirtyCompleteRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.pyi deleted file mode 100644 index 4f2ee87a..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_adv_user_limit_info.pyi +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantAdvUserLimitInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - allowMerchantPlace = schemas.StrSchema - country = schemas.StrSchema - maxCompleteNum = schemas.StrSchema - minCompleteNum = schemas.StrSchema - placeOrderNum = schemas.StrSchema - thirtyCompleteRate = schemas.StrSchema - __annotations__ = { - "allowMerchantPlace": allowMerchantPlace, - "country": country, - "maxCompleteNum": maxCompleteNum, - "minCompleteNum": minCompleteNum, - "placeOrderNum": placeOrderNum, - "thirtyCompleteRate": thirtyCompleteRate, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowMerchantPlace"]) -> MetaOapg.properties.allowMerchantPlace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxCompleteNum"]) -> MetaOapg.properties.maxCompleteNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minCompleteNum"]) -> MetaOapg.properties.minCompleteNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["placeOrderNum"]) -> MetaOapg.properties.placeOrderNum: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompleteRate"]) -> MetaOapg.properties.thirtyCompleteRate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["allowMerchantPlace", "country", "maxCompleteNum", "minCompleteNum", "placeOrderNum", "thirtyCompleteRate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowMerchantPlace"]) -> typing.Union[MetaOapg.properties.allowMerchantPlace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> typing.Union[MetaOapg.properties.country, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxCompleteNum"]) -> typing.Union[MetaOapg.properties.maxCompleteNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minCompleteNum"]) -> typing.Union[MetaOapg.properties.minCompleteNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["placeOrderNum"]) -> typing.Union[MetaOapg.properties.placeOrderNum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompleteRate"]) -> typing.Union[MetaOapg.properties.thirtyCompleteRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["allowMerchantPlace", "country", "maxCompleteNum", "minCompleteNum", "placeOrderNum", "thirtyCompleteRate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - allowMerchantPlace: typing.Union[MetaOapg.properties.allowMerchantPlace, str, schemas.Unset] = schemas.unset, - country: typing.Union[MetaOapg.properties.country, str, schemas.Unset] = schemas.unset, - maxCompleteNum: typing.Union[MetaOapg.properties.maxCompleteNum, str, schemas.Unset] = schemas.unset, - minCompleteNum: typing.Union[MetaOapg.properties.minCompleteNum, str, schemas.Unset] = schemas.unset, - placeOrderNum: typing.Union[MetaOapg.properties.placeOrderNum, str, schemas.Unset] = schemas.unset, - thirtyCompleteRate: typing.Union[MetaOapg.properties.thirtyCompleteRate, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantAdvUserLimitInfo': - return super().__new__( - cls, - *args, - allowMerchantPlace=allowMerchantPlace, - country=country, - maxCompleteNum=maxCompleteNum, - minCompleteNum=minCompleteNum, - placeOrderNum=placeOrderNum, - thirtyCompleteRate=thirtyCompleteRate, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_info.py deleted file mode 100644 index ed4546a2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_info.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - averagePayment = schemas.StrSchema - averageRealese = schemas.StrSchema - isOnline = schemas.StrSchema - merchantId = schemas.StrSchema - nickName = schemas.StrSchema - registerTime = schemas.StrSchema - thirtyBuy = schemas.StrSchema - thirtyCompletionRate = schemas.StrSchema - thirtySell = schemas.StrSchema - thirtyTrades = schemas.StrSchema - totalBuy = schemas.StrSchema - totalCompletionRate = schemas.StrSchema - totalSell = schemas.StrSchema - totalTrades = schemas.StrSchema - __annotations__ = { - "averagePayment": averagePayment, - "averageRealese": averageRealese, - "isOnline": isOnline, - "merchantId": merchantId, - "nickName": nickName, - "registerTime": registerTime, - "thirtyBuy": thirtyBuy, - "thirtyCompletionRate": thirtyCompletionRate, - "thirtySell": thirtySell, - "thirtyTrades": thirtyTrades, - "totalBuy": totalBuy, - "totalCompletionRate": totalCompletionRate, - "totalSell": totalSell, - "totalTrades": totalTrades, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averagePayment"]) -> MetaOapg.properties.averagePayment: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averageRealese"]) -> MetaOapg.properties.averageRealese: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isOnline"]) -> MetaOapg.properties.isOnline: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["merchantId"]) -> MetaOapg.properties.merchantId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nickName"]) -> MetaOapg.properties.nickName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["registerTime"]) -> MetaOapg.properties.registerTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyBuy"]) -> MetaOapg.properties.thirtyBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> MetaOapg.properties.thirtyCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtySell"]) -> MetaOapg.properties.thirtySell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyTrades"]) -> MetaOapg.properties.thirtyTrades: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalBuy"]) -> MetaOapg.properties.totalBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalCompletionRate"]) -> MetaOapg.properties.totalCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalSell"]) -> MetaOapg.properties.totalSell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalTrades"]) -> MetaOapg.properties.totalTrades: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "isOnline", "merchantId", "nickName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averagePayment"]) -> typing.Union[MetaOapg.properties.averagePayment, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averageRealese"]) -> typing.Union[MetaOapg.properties.averageRealese, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isOnline"]) -> typing.Union[MetaOapg.properties.isOnline, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["merchantId"]) -> typing.Union[MetaOapg.properties.merchantId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nickName"]) -> typing.Union[MetaOapg.properties.nickName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["registerTime"]) -> typing.Union[MetaOapg.properties.registerTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyBuy"]) -> typing.Union[MetaOapg.properties.thirtyBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> typing.Union[MetaOapg.properties.thirtyCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtySell"]) -> typing.Union[MetaOapg.properties.thirtySell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyTrades"]) -> typing.Union[MetaOapg.properties.thirtyTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalBuy"]) -> typing.Union[MetaOapg.properties.totalBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalCompletionRate"]) -> typing.Union[MetaOapg.properties.totalCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalSell"]) -> typing.Union[MetaOapg.properties.totalSell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalTrades"]) -> typing.Union[MetaOapg.properties.totalTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "isOnline", "merchantId", "nickName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - averagePayment: typing.Union[MetaOapg.properties.averagePayment, str, schemas.Unset] = schemas.unset, - averageRealese: typing.Union[MetaOapg.properties.averageRealese, str, schemas.Unset] = schemas.unset, - isOnline: typing.Union[MetaOapg.properties.isOnline, str, schemas.Unset] = schemas.unset, - merchantId: typing.Union[MetaOapg.properties.merchantId, str, schemas.Unset] = schemas.unset, - nickName: typing.Union[MetaOapg.properties.nickName, str, schemas.Unset] = schemas.unset, - registerTime: typing.Union[MetaOapg.properties.registerTime, str, schemas.Unset] = schemas.unset, - thirtyBuy: typing.Union[MetaOapg.properties.thirtyBuy, str, schemas.Unset] = schemas.unset, - thirtyCompletionRate: typing.Union[MetaOapg.properties.thirtyCompletionRate, str, schemas.Unset] = schemas.unset, - thirtySell: typing.Union[MetaOapg.properties.thirtySell, str, schemas.Unset] = schemas.unset, - thirtyTrades: typing.Union[MetaOapg.properties.thirtyTrades, str, schemas.Unset] = schemas.unset, - totalBuy: typing.Union[MetaOapg.properties.totalBuy, str, schemas.Unset] = schemas.unset, - totalCompletionRate: typing.Union[MetaOapg.properties.totalCompletionRate, str, schemas.Unset] = schemas.unset, - totalSell: typing.Union[MetaOapg.properties.totalSell, str, schemas.Unset] = schemas.unset, - totalTrades: typing.Union[MetaOapg.properties.totalTrades, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantInfo': - return super().__new__( - cls, - *args, - averagePayment=averagePayment, - averageRealese=averageRealese, - isOnline=isOnline, - merchantId=merchantId, - nickName=nickName, - registerTime=registerTime, - thirtyBuy=thirtyBuy, - thirtyCompletionRate=thirtyCompletionRate, - thirtySell=thirtySell, - thirtyTrades=thirtyTrades, - totalBuy=totalBuy, - totalCompletionRate=totalCompletionRate, - totalSell=totalSell, - totalTrades=totalTrades, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_info.pyi deleted file mode 100644 index ed4546a2..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_info.pyi +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - averagePayment = schemas.StrSchema - averageRealese = schemas.StrSchema - isOnline = schemas.StrSchema - merchantId = schemas.StrSchema - nickName = schemas.StrSchema - registerTime = schemas.StrSchema - thirtyBuy = schemas.StrSchema - thirtyCompletionRate = schemas.StrSchema - thirtySell = schemas.StrSchema - thirtyTrades = schemas.StrSchema - totalBuy = schemas.StrSchema - totalCompletionRate = schemas.StrSchema - totalSell = schemas.StrSchema - totalTrades = schemas.StrSchema - __annotations__ = { - "averagePayment": averagePayment, - "averageRealese": averageRealese, - "isOnline": isOnline, - "merchantId": merchantId, - "nickName": nickName, - "registerTime": registerTime, - "thirtyBuy": thirtyBuy, - "thirtyCompletionRate": thirtyCompletionRate, - "thirtySell": thirtySell, - "thirtyTrades": thirtyTrades, - "totalBuy": totalBuy, - "totalCompletionRate": totalCompletionRate, - "totalSell": totalSell, - "totalTrades": totalTrades, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averagePayment"]) -> MetaOapg.properties.averagePayment: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averageRealese"]) -> MetaOapg.properties.averageRealese: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isOnline"]) -> MetaOapg.properties.isOnline: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["merchantId"]) -> MetaOapg.properties.merchantId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nickName"]) -> MetaOapg.properties.nickName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["registerTime"]) -> MetaOapg.properties.registerTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyBuy"]) -> MetaOapg.properties.thirtyBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> MetaOapg.properties.thirtyCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtySell"]) -> MetaOapg.properties.thirtySell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyTrades"]) -> MetaOapg.properties.thirtyTrades: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalBuy"]) -> MetaOapg.properties.totalBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalCompletionRate"]) -> MetaOapg.properties.totalCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalSell"]) -> MetaOapg.properties.totalSell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalTrades"]) -> MetaOapg.properties.totalTrades: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "isOnline", "merchantId", "nickName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averagePayment"]) -> typing.Union[MetaOapg.properties.averagePayment, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averageRealese"]) -> typing.Union[MetaOapg.properties.averageRealese, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isOnline"]) -> typing.Union[MetaOapg.properties.isOnline, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["merchantId"]) -> typing.Union[MetaOapg.properties.merchantId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nickName"]) -> typing.Union[MetaOapg.properties.nickName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["registerTime"]) -> typing.Union[MetaOapg.properties.registerTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyBuy"]) -> typing.Union[MetaOapg.properties.thirtyBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> typing.Union[MetaOapg.properties.thirtyCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtySell"]) -> typing.Union[MetaOapg.properties.thirtySell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyTrades"]) -> typing.Union[MetaOapg.properties.thirtyTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalBuy"]) -> typing.Union[MetaOapg.properties.totalBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalCompletionRate"]) -> typing.Union[MetaOapg.properties.totalCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalSell"]) -> typing.Union[MetaOapg.properties.totalSell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalTrades"]) -> typing.Union[MetaOapg.properties.totalTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "isOnline", "merchantId", "nickName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - averagePayment: typing.Union[MetaOapg.properties.averagePayment, str, schemas.Unset] = schemas.unset, - averageRealese: typing.Union[MetaOapg.properties.averageRealese, str, schemas.Unset] = schemas.unset, - isOnline: typing.Union[MetaOapg.properties.isOnline, str, schemas.Unset] = schemas.unset, - merchantId: typing.Union[MetaOapg.properties.merchantId, str, schemas.Unset] = schemas.unset, - nickName: typing.Union[MetaOapg.properties.nickName, str, schemas.Unset] = schemas.unset, - registerTime: typing.Union[MetaOapg.properties.registerTime, str, schemas.Unset] = schemas.unset, - thirtyBuy: typing.Union[MetaOapg.properties.thirtyBuy, str, schemas.Unset] = schemas.unset, - thirtyCompletionRate: typing.Union[MetaOapg.properties.thirtyCompletionRate, str, schemas.Unset] = schemas.unset, - thirtySell: typing.Union[MetaOapg.properties.thirtySell, str, schemas.Unset] = schemas.unset, - thirtyTrades: typing.Union[MetaOapg.properties.thirtyTrades, str, schemas.Unset] = schemas.unset, - totalBuy: typing.Union[MetaOapg.properties.totalBuy, str, schemas.Unset] = schemas.unset, - totalCompletionRate: typing.Union[MetaOapg.properties.totalCompletionRate, str, schemas.Unset] = schemas.unset, - totalSell: typing.Union[MetaOapg.properties.totalSell, str, schemas.Unset] = schemas.unset, - totalTrades: typing.Union[MetaOapg.properties.totalTrades, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantInfo': - return super().__new__( - cls, - *args, - averagePayment=averagePayment, - averageRealese=averageRealese, - isOnline=isOnline, - merchantId=merchantId, - nickName=nickName, - registerTime=registerTime, - thirtyBuy=thirtyBuy, - thirtyCompletionRate=thirtyCompletionRate, - thirtySell=thirtySell, - thirtyTrades=thirtyTrades, - totalBuy=totalBuy, - totalCompletionRate=totalCompletionRate, - totalSell=totalSell, - totalTrades=totalTrades, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_info_result.py b/bitget-python-sdk-open-api/bitget/model/merchant_info_result.py deleted file mode 100644 index 35cfd882..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_info_result.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantInfo']: - return MerchantInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantInfo'], typing.List['MerchantInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantInfo': - return super().__getitem__(i) - __annotations__ = { - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantInfoResult': - return super().__new__( - cls, - *args, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_info import MerchantInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_info_result.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_info_result.pyi deleted file mode 100644 index 35cfd882..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_info_result.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantInfoResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - minId = schemas.StrSchema - - - class resultList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantInfo']: - return MerchantInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantInfo'], typing.List['MerchantInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resultList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantInfo': - return super().__getitem__(i) - __annotations__ = { - "minId": minId, - "resultList": resultList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resultList"]) -> MetaOapg.properties.resultList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["minId", "resultList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resultList"]) -> typing.Union[MetaOapg.properties.resultList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["minId", "resultList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - resultList: typing.Union[MetaOapg.properties.resultList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantInfoResult': - return super().__new__( - cls, - *args, - minId=minId, - resultList=resultList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_info import MerchantInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_order_info.py deleted file mode 100644 index afd45f1b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_info.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - advNo = schemas.StrSchema - amount = schemas.StrSchema - buyerRealName = schemas.StrSchema - coin = schemas.StrSchema - count = schemas.StrSchema - ctime = schemas.StrSchema - fiat = schemas.StrSchema - orderId = schemas.StrSchema - orderNo = schemas.StrSchema - - @staticmethod - def paymentInfo() -> typing.Type['MerchantOrderPaymentInfo']: - return MerchantOrderPaymentInfo - paymentTime = schemas.StrSchema - price = schemas.StrSchema - releaseCoinTime = schemas.StrSchema - representTime = schemas.StrSchema - sellerRealName = schemas.StrSchema - status = schemas.StrSchema - type = schemas.StrSchema - withdrawTime = schemas.StrSchema - __annotations__ = { - "advNo": advNo, - "amount": amount, - "buyerRealName": buyerRealName, - "coin": coin, - "count": count, - "ctime": ctime, - "fiat": fiat, - "orderId": orderId, - "orderNo": orderNo, - "paymentInfo": paymentInfo, - "paymentTime": paymentTime, - "price": price, - "releaseCoinTime": releaseCoinTime, - "representTime": representTime, - "sellerRealName": sellerRealName, - "status": status, - "type": type, - "withdrawTime": withdrawTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advNo"]) -> MetaOapg.properties.advNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["buyerRealName"]) -> MetaOapg.properties.buyerRealName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiat"]) -> MetaOapg.properties.fiat: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderNo"]) -> MetaOapg.properties.orderNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentInfo"]) -> 'MerchantOrderPaymentInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentTime"]) -> MetaOapg.properties.paymentTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["releaseCoinTime"]) -> MetaOapg.properties.releaseCoinTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["representTime"]) -> MetaOapg.properties.representTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sellerRealName"]) -> MetaOapg.properties.sellerRealName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["withdrawTime"]) -> MetaOapg.properties.withdrawTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advNo", "amount", "buyerRealName", "coin", "count", "ctime", "fiat", "orderId", "orderNo", "paymentInfo", "paymentTime", "price", "releaseCoinTime", "representTime", "sellerRealName", "status", "type", "withdrawTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advNo"]) -> typing.Union[MetaOapg.properties.advNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["buyerRealName"]) -> typing.Union[MetaOapg.properties.buyerRealName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiat"]) -> typing.Union[MetaOapg.properties.fiat, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderNo"]) -> typing.Union[MetaOapg.properties.orderNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentInfo"]) -> typing.Union['MerchantOrderPaymentInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentTime"]) -> typing.Union[MetaOapg.properties.paymentTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["releaseCoinTime"]) -> typing.Union[MetaOapg.properties.releaseCoinTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["representTime"]) -> typing.Union[MetaOapg.properties.representTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sellerRealName"]) -> typing.Union[MetaOapg.properties.sellerRealName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["withdrawTime"]) -> typing.Union[MetaOapg.properties.withdrawTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advNo", "amount", "buyerRealName", "coin", "count", "ctime", "fiat", "orderId", "orderNo", "paymentInfo", "paymentTime", "price", "releaseCoinTime", "representTime", "sellerRealName", "status", "type", "withdrawTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advNo: typing.Union[MetaOapg.properties.advNo, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - buyerRealName: typing.Union[MetaOapg.properties.buyerRealName, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - count: typing.Union[MetaOapg.properties.count, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fiat: typing.Union[MetaOapg.properties.fiat, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderNo: typing.Union[MetaOapg.properties.orderNo, str, schemas.Unset] = schemas.unset, - paymentInfo: typing.Union['MerchantOrderPaymentInfo', schemas.Unset] = schemas.unset, - paymentTime: typing.Union[MetaOapg.properties.paymentTime, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - releaseCoinTime: typing.Union[MetaOapg.properties.releaseCoinTime, str, schemas.Unset] = schemas.unset, - representTime: typing.Union[MetaOapg.properties.representTime, str, schemas.Unset] = schemas.unset, - sellerRealName: typing.Union[MetaOapg.properties.sellerRealName, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - withdrawTime: typing.Union[MetaOapg.properties.withdrawTime, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderInfo': - return super().__new__( - cls, - *args, - advNo=advNo, - amount=amount, - buyerRealName=buyerRealName, - coin=coin, - count=count, - ctime=ctime, - fiat=fiat, - orderId=orderId, - orderNo=orderNo, - paymentInfo=paymentInfo, - paymentTime=paymentTime, - price=price, - releaseCoinTime=releaseCoinTime, - representTime=representTime, - sellerRealName=sellerRealName, - status=status, - type=type, - withdrawTime=withdrawTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_payment_info import MerchantOrderPaymentInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_order_info.pyi deleted file mode 100644 index afd45f1b..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_info.pyi +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - advNo = schemas.StrSchema - amount = schemas.StrSchema - buyerRealName = schemas.StrSchema - coin = schemas.StrSchema - count = schemas.StrSchema - ctime = schemas.StrSchema - fiat = schemas.StrSchema - orderId = schemas.StrSchema - orderNo = schemas.StrSchema - - @staticmethod - def paymentInfo() -> typing.Type['MerchantOrderPaymentInfo']: - return MerchantOrderPaymentInfo - paymentTime = schemas.StrSchema - price = schemas.StrSchema - releaseCoinTime = schemas.StrSchema - representTime = schemas.StrSchema - sellerRealName = schemas.StrSchema - status = schemas.StrSchema - type = schemas.StrSchema - withdrawTime = schemas.StrSchema - __annotations__ = { - "advNo": advNo, - "amount": amount, - "buyerRealName": buyerRealName, - "coin": coin, - "count": count, - "ctime": ctime, - "fiat": fiat, - "orderId": orderId, - "orderNo": orderNo, - "paymentInfo": paymentInfo, - "paymentTime": paymentTime, - "price": price, - "releaseCoinTime": releaseCoinTime, - "representTime": representTime, - "sellerRealName": sellerRealName, - "status": status, - "type": type, - "withdrawTime": withdrawTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["advNo"]) -> MetaOapg.properties.advNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["buyerRealName"]) -> MetaOapg.properties.buyerRealName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["coin"]) -> MetaOapg.properties.coin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ctime"]) -> MetaOapg.properties.ctime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fiat"]) -> MetaOapg.properties.fiat: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderId"]) -> MetaOapg.properties.orderId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderNo"]) -> MetaOapg.properties.orderNo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentInfo"]) -> 'MerchantOrderPaymentInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentTime"]) -> MetaOapg.properties.paymentTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["price"]) -> MetaOapg.properties.price: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["releaseCoinTime"]) -> MetaOapg.properties.releaseCoinTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["representTime"]) -> MetaOapg.properties.representTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sellerRealName"]) -> MetaOapg.properties.sellerRealName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["withdrawTime"]) -> MetaOapg.properties.withdrawTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["advNo", "amount", "buyerRealName", "coin", "count", "ctime", "fiat", "orderId", "orderNo", "paymentInfo", "paymentTime", "price", "releaseCoinTime", "representTime", "sellerRealName", "status", "type", "withdrawTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["advNo"]) -> typing.Union[MetaOapg.properties.advNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["buyerRealName"]) -> typing.Union[MetaOapg.properties.buyerRealName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["coin"]) -> typing.Union[MetaOapg.properties.coin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ctime"]) -> typing.Union[MetaOapg.properties.ctime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fiat"]) -> typing.Union[MetaOapg.properties.fiat, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderId"]) -> typing.Union[MetaOapg.properties.orderId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderNo"]) -> typing.Union[MetaOapg.properties.orderNo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentInfo"]) -> typing.Union['MerchantOrderPaymentInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentTime"]) -> typing.Union[MetaOapg.properties.paymentTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["price"]) -> typing.Union[MetaOapg.properties.price, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["releaseCoinTime"]) -> typing.Union[MetaOapg.properties.releaseCoinTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["representTime"]) -> typing.Union[MetaOapg.properties.representTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sellerRealName"]) -> typing.Union[MetaOapg.properties.sellerRealName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["withdrawTime"]) -> typing.Union[MetaOapg.properties.withdrawTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["advNo", "amount", "buyerRealName", "coin", "count", "ctime", "fiat", "orderId", "orderNo", "paymentInfo", "paymentTime", "price", "releaseCoinTime", "representTime", "sellerRealName", "status", "type", "withdrawTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - advNo: typing.Union[MetaOapg.properties.advNo, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - buyerRealName: typing.Union[MetaOapg.properties.buyerRealName, str, schemas.Unset] = schemas.unset, - coin: typing.Union[MetaOapg.properties.coin, str, schemas.Unset] = schemas.unset, - count: typing.Union[MetaOapg.properties.count, str, schemas.Unset] = schemas.unset, - ctime: typing.Union[MetaOapg.properties.ctime, str, schemas.Unset] = schemas.unset, - fiat: typing.Union[MetaOapg.properties.fiat, str, schemas.Unset] = schemas.unset, - orderId: typing.Union[MetaOapg.properties.orderId, str, schemas.Unset] = schemas.unset, - orderNo: typing.Union[MetaOapg.properties.orderNo, str, schemas.Unset] = schemas.unset, - paymentInfo: typing.Union['MerchantOrderPaymentInfo', schemas.Unset] = schemas.unset, - paymentTime: typing.Union[MetaOapg.properties.paymentTime, str, schemas.Unset] = schemas.unset, - price: typing.Union[MetaOapg.properties.price, str, schemas.Unset] = schemas.unset, - releaseCoinTime: typing.Union[MetaOapg.properties.releaseCoinTime, str, schemas.Unset] = schemas.unset, - representTime: typing.Union[MetaOapg.properties.representTime, str, schemas.Unset] = schemas.unset, - sellerRealName: typing.Union[MetaOapg.properties.sellerRealName, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - withdrawTime: typing.Union[MetaOapg.properties.withdrawTime, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderInfo': - return super().__new__( - cls, - *args, - advNo=advNo, - amount=amount, - buyerRealName=buyerRealName, - coin=coin, - count=count, - ctime=ctime, - fiat=fiat, - orderId=orderId, - orderNo=orderNo, - paymentInfo=paymentInfo, - paymentTime=paymentTime, - price=price, - releaseCoinTime=releaseCoinTime, - representTime=representTime, - sellerRealName=sellerRealName, - status=status, - type=type, - withdrawTime=withdrawTime, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_payment_info import MerchantOrderPaymentInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.py deleted file mode 100644 index 5e846283..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderPaymentInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - paymethodId = schemas.StrSchema - - - class paymethodInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['OrderPaymentDetailInfo']: - return OrderPaymentDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['OrderPaymentDetailInfo'], typing.List['OrderPaymentDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymethodInfo': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'OrderPaymentDetailInfo': - return super().__getitem__(i) - paymethodName = schemas.StrSchema - __annotations__ = { - "paymethodId": paymethodId, - "paymethodInfo": paymethodInfo, - "paymethodName": paymethodName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodId"]) -> MetaOapg.properties.paymethodId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodInfo"]) -> MetaOapg.properties.paymethodInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodName"]) -> MetaOapg.properties.paymethodName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymethodId", "paymethodInfo", "paymethodName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodId"]) -> typing.Union[MetaOapg.properties.paymethodId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodInfo"]) -> typing.Union[MetaOapg.properties.paymethodInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodName"]) -> typing.Union[MetaOapg.properties.paymethodName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymethodId", "paymethodInfo", "paymethodName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - paymethodId: typing.Union[MetaOapg.properties.paymethodId, str, schemas.Unset] = schemas.unset, - paymethodInfo: typing.Union[MetaOapg.properties.paymethodInfo, list, tuple, schemas.Unset] = schemas.unset, - paymethodName: typing.Union[MetaOapg.properties.paymethodName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderPaymentInfo': - return super().__new__( - cls, - *args, - paymethodId=paymethodId, - paymethodInfo=paymethodInfo, - paymethodName=paymethodName, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.order_payment_detail_info import OrderPaymentDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.pyi deleted file mode 100644 index 5e846283..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_payment_info.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderPaymentInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - paymethodId = schemas.StrSchema - - - class paymethodInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['OrderPaymentDetailInfo']: - return OrderPaymentDetailInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['OrderPaymentDetailInfo'], typing.List['OrderPaymentDetailInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'paymethodInfo': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'OrderPaymentDetailInfo': - return super().__getitem__(i) - paymethodName = schemas.StrSchema - __annotations__ = { - "paymethodId": paymethodId, - "paymethodInfo": paymethodInfo, - "paymethodName": paymethodName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodId"]) -> MetaOapg.properties.paymethodId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodInfo"]) -> MetaOapg.properties.paymethodInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymethodName"]) -> MetaOapg.properties.paymethodName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymethodId", "paymethodInfo", "paymethodName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodId"]) -> typing.Union[MetaOapg.properties.paymethodId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodInfo"]) -> typing.Union[MetaOapg.properties.paymethodInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymethodName"]) -> typing.Union[MetaOapg.properties.paymethodName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymethodId", "paymethodInfo", "paymethodName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - paymethodId: typing.Union[MetaOapg.properties.paymethodId, str, schemas.Unset] = schemas.unset, - paymethodInfo: typing.Union[MetaOapg.properties.paymethodInfo, list, tuple, schemas.Unset] = schemas.unset, - paymethodName: typing.Union[MetaOapg.properties.paymethodName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderPaymentInfo': - return super().__new__( - cls, - *args, - paymethodId=paymethodId, - paymethodInfo=paymethodInfo, - paymethodName=paymethodName, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.order_payment_detail_info import OrderPaymentDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_result.py b/bitget-python-sdk-open-api/bitget/model/merchant_order_result.py deleted file mode 100644 index b9c0069d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_result.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - minId = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantOrderInfo']: - return MerchantOrderInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantOrderInfo'], typing.List['MerchantOrderInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantOrderInfo': - return super().__getitem__(i) - __annotations__ = { - "minId": minId, - "orderList": orderList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["minId", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["minId", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderResult': - return super().__new__( - cls, - *args, - minId=minId, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_info import MerchantOrderInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_order_result.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_order_result.pyi deleted file mode 100644 index b9c0069d..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_order_result.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantOrderResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - minId = schemas.StrSchema - - - class orderList( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MerchantOrderInfo']: - return MerchantOrderInfo - - def __new__( - cls, - arg: typing.Union[typing.Tuple['MerchantOrderInfo'], typing.List['MerchantOrderInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'orderList': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MerchantOrderInfo': - return super().__getitem__(i) - __annotations__ = { - "minId": minId, - "orderList": orderList, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["minId"]) -> MetaOapg.properties.minId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orderList"]) -> MetaOapg.properties.orderList: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["minId", "orderList", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["minId"]) -> typing.Union[MetaOapg.properties.minId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orderList"]) -> typing.Union[MetaOapg.properties.orderList, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["minId", "orderList", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - minId: typing.Union[MetaOapg.properties.minId, str, schemas.Unset] = schemas.unset, - orderList: typing.Union[MetaOapg.properties.orderList, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantOrderResult': - return super().__new__( - cls, - *args, - minId=minId, - orderList=orderList, - _configuration=_configuration, - **kwargs, - ) - -from bitget.model.merchant_order_info import MerchantOrderInfo diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_person_info.py b/bitget-python-sdk-open-api/bitget/model/merchant_person_info.py deleted file mode 100644 index 77f05cdb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_person_info.py +++ /dev/null @@ -1,258 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantPersonInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - averagePayment = schemas.StrSchema - averageRealese = schemas.StrSchema - email = schemas.StrSchema - emailBindFlag = schemas.BoolSchema - kycFlag = schemas.BoolSchema - merchantId = schemas.StrSchema - mobile = schemas.StrSchema - mobileBindFlag = schemas.BoolSchema - nickName = schemas.StrSchema - realName = schemas.StrSchema - registerTime = schemas.StrSchema - thirtyBuy = schemas.StrSchema - thirtyCompletionRate = schemas.StrSchema - thirtySell = schemas.StrSchema - thirtyTrades = schemas.StrSchema - totalBuy = schemas.StrSchema - totalCompletionRate = schemas.StrSchema - totalSell = schemas.StrSchema - totalTrades = schemas.StrSchema - __annotations__ = { - "averagePayment": averagePayment, - "averageRealese": averageRealese, - "email": email, - "emailBindFlag": emailBindFlag, - "kycFlag": kycFlag, - "merchantId": merchantId, - "mobile": mobile, - "mobileBindFlag": mobileBindFlag, - "nickName": nickName, - "realName": realName, - "registerTime": registerTime, - "thirtyBuy": thirtyBuy, - "thirtyCompletionRate": thirtyCompletionRate, - "thirtySell": thirtySell, - "thirtyTrades": thirtyTrades, - "totalBuy": totalBuy, - "totalCompletionRate": totalCompletionRate, - "totalSell": totalSell, - "totalTrades": totalTrades, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averagePayment"]) -> MetaOapg.properties.averagePayment: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averageRealese"]) -> MetaOapg.properties.averageRealese: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["emailBindFlag"]) -> MetaOapg.properties.emailBindFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kycFlag"]) -> MetaOapg.properties.kycFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["merchantId"]) -> MetaOapg.properties.merchantId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mobile"]) -> MetaOapg.properties.mobile: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mobileBindFlag"]) -> MetaOapg.properties.mobileBindFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nickName"]) -> MetaOapg.properties.nickName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["realName"]) -> MetaOapg.properties.realName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["registerTime"]) -> MetaOapg.properties.registerTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyBuy"]) -> MetaOapg.properties.thirtyBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> MetaOapg.properties.thirtyCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtySell"]) -> MetaOapg.properties.thirtySell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyTrades"]) -> MetaOapg.properties.thirtyTrades: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalBuy"]) -> MetaOapg.properties.totalBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalCompletionRate"]) -> MetaOapg.properties.totalCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalSell"]) -> MetaOapg.properties.totalSell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalTrades"]) -> MetaOapg.properties.totalTrades: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "email", "emailBindFlag", "kycFlag", "merchantId", "mobile", "mobileBindFlag", "nickName", "realName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averagePayment"]) -> typing.Union[MetaOapg.properties.averagePayment, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averageRealese"]) -> typing.Union[MetaOapg.properties.averageRealese, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["emailBindFlag"]) -> typing.Union[MetaOapg.properties.emailBindFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kycFlag"]) -> typing.Union[MetaOapg.properties.kycFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["merchantId"]) -> typing.Union[MetaOapg.properties.merchantId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mobile"]) -> typing.Union[MetaOapg.properties.mobile, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mobileBindFlag"]) -> typing.Union[MetaOapg.properties.mobileBindFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nickName"]) -> typing.Union[MetaOapg.properties.nickName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["realName"]) -> typing.Union[MetaOapg.properties.realName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["registerTime"]) -> typing.Union[MetaOapg.properties.registerTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyBuy"]) -> typing.Union[MetaOapg.properties.thirtyBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> typing.Union[MetaOapg.properties.thirtyCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtySell"]) -> typing.Union[MetaOapg.properties.thirtySell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyTrades"]) -> typing.Union[MetaOapg.properties.thirtyTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalBuy"]) -> typing.Union[MetaOapg.properties.totalBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalCompletionRate"]) -> typing.Union[MetaOapg.properties.totalCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalSell"]) -> typing.Union[MetaOapg.properties.totalSell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalTrades"]) -> typing.Union[MetaOapg.properties.totalTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "email", "emailBindFlag", "kycFlag", "merchantId", "mobile", "mobileBindFlag", "nickName", "realName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - averagePayment: typing.Union[MetaOapg.properties.averagePayment, str, schemas.Unset] = schemas.unset, - averageRealese: typing.Union[MetaOapg.properties.averageRealese, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - emailBindFlag: typing.Union[MetaOapg.properties.emailBindFlag, bool, schemas.Unset] = schemas.unset, - kycFlag: typing.Union[MetaOapg.properties.kycFlag, bool, schemas.Unset] = schemas.unset, - merchantId: typing.Union[MetaOapg.properties.merchantId, str, schemas.Unset] = schemas.unset, - mobile: typing.Union[MetaOapg.properties.mobile, str, schemas.Unset] = schemas.unset, - mobileBindFlag: typing.Union[MetaOapg.properties.mobileBindFlag, bool, schemas.Unset] = schemas.unset, - nickName: typing.Union[MetaOapg.properties.nickName, str, schemas.Unset] = schemas.unset, - realName: typing.Union[MetaOapg.properties.realName, str, schemas.Unset] = schemas.unset, - registerTime: typing.Union[MetaOapg.properties.registerTime, str, schemas.Unset] = schemas.unset, - thirtyBuy: typing.Union[MetaOapg.properties.thirtyBuy, str, schemas.Unset] = schemas.unset, - thirtyCompletionRate: typing.Union[MetaOapg.properties.thirtyCompletionRate, str, schemas.Unset] = schemas.unset, - thirtySell: typing.Union[MetaOapg.properties.thirtySell, str, schemas.Unset] = schemas.unset, - thirtyTrades: typing.Union[MetaOapg.properties.thirtyTrades, str, schemas.Unset] = schemas.unset, - totalBuy: typing.Union[MetaOapg.properties.totalBuy, str, schemas.Unset] = schemas.unset, - totalCompletionRate: typing.Union[MetaOapg.properties.totalCompletionRate, str, schemas.Unset] = schemas.unset, - totalSell: typing.Union[MetaOapg.properties.totalSell, str, schemas.Unset] = schemas.unset, - totalTrades: typing.Union[MetaOapg.properties.totalTrades, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantPersonInfo': - return super().__new__( - cls, - *args, - averagePayment=averagePayment, - averageRealese=averageRealese, - email=email, - emailBindFlag=emailBindFlag, - kycFlag=kycFlag, - merchantId=merchantId, - mobile=mobile, - mobileBindFlag=mobileBindFlag, - nickName=nickName, - realName=realName, - registerTime=registerTime, - thirtyBuy=thirtyBuy, - thirtyCompletionRate=thirtyCompletionRate, - thirtySell=thirtySell, - thirtyTrades=thirtyTrades, - totalBuy=totalBuy, - totalCompletionRate=totalCompletionRate, - totalSell=totalSell, - totalTrades=totalTrades, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/merchant_person_info.pyi b/bitget-python-sdk-open-api/bitget/model/merchant_person_info.pyi deleted file mode 100644 index 77f05cdb..00000000 --- a/bitget-python-sdk-open-api/bitget/model/merchant_person_info.pyi +++ /dev/null @@ -1,258 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class MerchantPersonInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - averagePayment = schemas.StrSchema - averageRealese = schemas.StrSchema - email = schemas.StrSchema - emailBindFlag = schemas.BoolSchema - kycFlag = schemas.BoolSchema - merchantId = schemas.StrSchema - mobile = schemas.StrSchema - mobileBindFlag = schemas.BoolSchema - nickName = schemas.StrSchema - realName = schemas.StrSchema - registerTime = schemas.StrSchema - thirtyBuy = schemas.StrSchema - thirtyCompletionRate = schemas.StrSchema - thirtySell = schemas.StrSchema - thirtyTrades = schemas.StrSchema - totalBuy = schemas.StrSchema - totalCompletionRate = schemas.StrSchema - totalSell = schemas.StrSchema - totalTrades = schemas.StrSchema - __annotations__ = { - "averagePayment": averagePayment, - "averageRealese": averageRealese, - "email": email, - "emailBindFlag": emailBindFlag, - "kycFlag": kycFlag, - "merchantId": merchantId, - "mobile": mobile, - "mobileBindFlag": mobileBindFlag, - "nickName": nickName, - "realName": realName, - "registerTime": registerTime, - "thirtyBuy": thirtyBuy, - "thirtyCompletionRate": thirtyCompletionRate, - "thirtySell": thirtySell, - "thirtyTrades": thirtyTrades, - "totalBuy": totalBuy, - "totalCompletionRate": totalCompletionRate, - "totalSell": totalSell, - "totalTrades": totalTrades, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averagePayment"]) -> MetaOapg.properties.averagePayment: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["averageRealese"]) -> MetaOapg.properties.averageRealese: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["emailBindFlag"]) -> MetaOapg.properties.emailBindFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kycFlag"]) -> MetaOapg.properties.kycFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["merchantId"]) -> MetaOapg.properties.merchantId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mobile"]) -> MetaOapg.properties.mobile: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mobileBindFlag"]) -> MetaOapg.properties.mobileBindFlag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nickName"]) -> MetaOapg.properties.nickName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["realName"]) -> MetaOapg.properties.realName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["registerTime"]) -> MetaOapg.properties.registerTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyBuy"]) -> MetaOapg.properties.thirtyBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> MetaOapg.properties.thirtyCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtySell"]) -> MetaOapg.properties.thirtySell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["thirtyTrades"]) -> MetaOapg.properties.thirtyTrades: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalBuy"]) -> MetaOapg.properties.totalBuy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalCompletionRate"]) -> MetaOapg.properties.totalCompletionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalSell"]) -> MetaOapg.properties.totalSell: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalTrades"]) -> MetaOapg.properties.totalTrades: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "email", "emailBindFlag", "kycFlag", "merchantId", "mobile", "mobileBindFlag", "nickName", "realName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averagePayment"]) -> typing.Union[MetaOapg.properties.averagePayment, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["averageRealese"]) -> typing.Union[MetaOapg.properties.averageRealese, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["emailBindFlag"]) -> typing.Union[MetaOapg.properties.emailBindFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kycFlag"]) -> typing.Union[MetaOapg.properties.kycFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["merchantId"]) -> typing.Union[MetaOapg.properties.merchantId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mobile"]) -> typing.Union[MetaOapg.properties.mobile, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mobileBindFlag"]) -> typing.Union[MetaOapg.properties.mobileBindFlag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nickName"]) -> typing.Union[MetaOapg.properties.nickName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["realName"]) -> typing.Union[MetaOapg.properties.realName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["registerTime"]) -> typing.Union[MetaOapg.properties.registerTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyBuy"]) -> typing.Union[MetaOapg.properties.thirtyBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyCompletionRate"]) -> typing.Union[MetaOapg.properties.thirtyCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtySell"]) -> typing.Union[MetaOapg.properties.thirtySell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["thirtyTrades"]) -> typing.Union[MetaOapg.properties.thirtyTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalBuy"]) -> typing.Union[MetaOapg.properties.totalBuy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalCompletionRate"]) -> typing.Union[MetaOapg.properties.totalCompletionRate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalSell"]) -> typing.Union[MetaOapg.properties.totalSell, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalTrades"]) -> typing.Union[MetaOapg.properties.totalTrades, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["averagePayment", "averageRealese", "email", "emailBindFlag", "kycFlag", "merchantId", "mobile", "mobileBindFlag", "nickName", "realName", "registerTime", "thirtyBuy", "thirtyCompletionRate", "thirtySell", "thirtyTrades", "totalBuy", "totalCompletionRate", "totalSell", "totalTrades", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - averagePayment: typing.Union[MetaOapg.properties.averagePayment, str, schemas.Unset] = schemas.unset, - averageRealese: typing.Union[MetaOapg.properties.averageRealese, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - emailBindFlag: typing.Union[MetaOapg.properties.emailBindFlag, bool, schemas.Unset] = schemas.unset, - kycFlag: typing.Union[MetaOapg.properties.kycFlag, bool, schemas.Unset] = schemas.unset, - merchantId: typing.Union[MetaOapg.properties.merchantId, str, schemas.Unset] = schemas.unset, - mobile: typing.Union[MetaOapg.properties.mobile, str, schemas.Unset] = schemas.unset, - mobileBindFlag: typing.Union[MetaOapg.properties.mobileBindFlag, bool, schemas.Unset] = schemas.unset, - nickName: typing.Union[MetaOapg.properties.nickName, str, schemas.Unset] = schemas.unset, - realName: typing.Union[MetaOapg.properties.realName, str, schemas.Unset] = schemas.unset, - registerTime: typing.Union[MetaOapg.properties.registerTime, str, schemas.Unset] = schemas.unset, - thirtyBuy: typing.Union[MetaOapg.properties.thirtyBuy, str, schemas.Unset] = schemas.unset, - thirtyCompletionRate: typing.Union[MetaOapg.properties.thirtyCompletionRate, str, schemas.Unset] = schemas.unset, - thirtySell: typing.Union[MetaOapg.properties.thirtySell, str, schemas.Unset] = schemas.unset, - thirtyTrades: typing.Union[MetaOapg.properties.thirtyTrades, str, schemas.Unset] = schemas.unset, - totalBuy: typing.Union[MetaOapg.properties.totalBuy, str, schemas.Unset] = schemas.unset, - totalCompletionRate: typing.Union[MetaOapg.properties.totalCompletionRate, str, schemas.Unset] = schemas.unset, - totalSell: typing.Union[MetaOapg.properties.totalSell, str, schemas.Unset] = schemas.unset, - totalTrades: typing.Union[MetaOapg.properties.totalTrades, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MerchantPersonInfo': - return super().__new__( - cls, - *args, - averagePayment=averagePayment, - averageRealese=averageRealese, - email=email, - emailBindFlag=emailBindFlag, - kycFlag=kycFlag, - merchantId=merchantId, - mobile=mobile, - mobileBindFlag=mobileBindFlag, - nickName=nickName, - realName=realName, - registerTime=registerTime, - thirtyBuy=thirtyBuy, - thirtyCompletionRate=thirtyCompletionRate, - thirtySell=thirtySell, - thirtyTrades=thirtyTrades, - totalBuy=totalBuy, - totalCompletionRate=totalCompletionRate, - totalSell=totalSell, - totalTrades=totalTrades, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.py b/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.py deleted file mode 100644 index 4dff78bc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class OrderPaymentDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - required = schemas.BoolSchema - type = schemas.StrSchema - value = schemas.StrSchema - __annotations__ = { - "name": name, - "required": required, - "type": type, - "value": value, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["required"]) -> MetaOapg.properties.required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", "value", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["required"]) -> typing.Union[MetaOapg.properties.required, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", "value", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - required: typing.Union[MetaOapg.properties.required, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OrderPaymentDetailInfo': - return super().__new__( - cls, - *args, - name=name, - required=required, - type=type, - value=value, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.pyi b/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.pyi deleted file mode 100644 index 4dff78bc..00000000 --- a/bitget-python-sdk-open-api/bitget/model/order_payment_detail_info.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - - -class OrderPaymentDetailInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - required = schemas.BoolSchema - type = schemas.StrSchema - value = schemas.StrSchema - __annotations__ = { - "name": name, - "required": required, - "type": type, - "value": value, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["required"]) -> MetaOapg.properties.required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", "value", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["required"]) -> typing.Union[MetaOapg.properties.required, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "required", "type", "value", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - required: typing.Union[MetaOapg.properties.required, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OrderPaymentDetailInfo': - return super().__new__( - cls, - *args, - name=name, - required=required, - type=type, - value=value, - _configuration=_configuration, - **kwargs, - ) diff --git a/bitget-python-sdk-open-api/bitget/models/__init__.py b/bitget-python-sdk-open-api/bitget/models/__init__.py deleted file mode 100644 index dc426826..00000000 --- a/bitget-python-sdk-open-api/bitget/models/__init__.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from from bitget.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -from bitget.model.api_response_result_of_list_of_margin_cross_level_result import ApiResponseResultOfListOfMarginCrossLevelResult -from bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result import ApiResponseResultOfListOfMarginCrossRateAndLimitResult -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result import ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result import ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -from bitget.model.api_response_result_of_list_of_margin_isolated_level_result import ApiResponseResultOfListOfMarginIsolatedLevelResult -from bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result import ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -from bitget.model.api_response_result_of_list_of_margin_system_result import ApiResponseResultOfListOfMarginSystemResult -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget.model.api_response_result_of_margin_cross_fin_flow_result import ApiResponseResultOfMarginCrossFinFlowResult -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget.model.api_response_result_of_margin_interest_info_result import ApiResponseResultOfMarginInterestInfoResult -from bitget.model.api_response_result_of_margin_isolated_assets_result import ApiResponseResultOfMarginIsolatedAssetsResult -from bitget.model.api_response_result_of_margin_isolated_borrow_limit_result import ApiResponseResultOfMarginIsolatedBorrowLimitResult -from bitget.model.api_response_result_of_margin_isolated_fin_flow_result import ApiResponseResultOfMarginIsolatedFinFlowResult -from bitget.model.api_response_result_of_margin_isolated_interest_info_result import ApiResponseResultOfMarginIsolatedInterestInfoResult -from bitget.model.api_response_result_of_margin_isolated_liquidation_info_result import ApiResponseResultOfMarginIsolatedLiquidationInfoResult -from bitget.model.api_response_result_of_margin_isolated_loan_info_result import ApiResponseResultOfMarginIsolatedLoanInfoResult -from bitget.model.api_response_result_of_margin_isolated_max_borrow_result import ApiResponseResultOfMarginIsolatedMaxBorrowResult -from bitget.model.api_response_result_of_margin_isolated_repay_info_result import ApiResponseResultOfMarginIsolatedRepayInfoResult -from bitget.model.api_response_result_of_margin_isolated_repay_result import ApiResponseResultOfMarginIsolatedRepayResult -from bitget.model.api_response_result_of_margin_liquidation_info_result import ApiResponseResultOfMarginLiquidationInfoResult -from bitget.model.api_response_result_of_margin_loan_info_result import ApiResponseResultOfMarginLoanInfoResult -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult -from bitget.model.api_response_result_of_margin_repay_info_result import ApiResponseResultOfMarginRepayInfoResult -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_merchant_adv_result import ApiResponseResultOfMerchantAdvResult -from bitget.model.api_response_result_of_merchant_info_result import ApiResponseResultOfMerchantInfoResult -from bitget.model.api_response_result_of_merchant_order_result import ApiResponseResultOfMerchantOrderResult -from bitget.model.api_response_result_of_merchant_person_info import ApiResponseResultOfMerchantPersonInfo -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.fiat_payment_detail_info import FiatPaymentDetailInfo -from bitget.model.fiat_payment_info import FiatPaymentInfo -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest -from bitget.model.margin_batch_cancel_order_result import MarginBatchCancelOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest -from bitget.model.margin_batch_place_order_failure_result import MarginBatchPlaceOrderFailureResult -from bitget.model.margin_batch_place_order_result import MarginBatchPlaceOrderResult -from bitget.model.margin_cancel_order_failure_result import MarginCancelOrderFailureResult -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult -from bitget.model.margin_cross_assets_population_result import MarginCrossAssetsPopulationResult -from bitget.model.margin_cross_assets_result import MarginCrossAssetsResult -from bitget.model.margin_cross_assets_risk_result import MarginCrossAssetsRiskResult -from bitget.model.margin_cross_borrow_limit_result import MarginCrossBorrowLimitResult -from bitget.model.margin_cross_fin_flow_info import MarginCrossFinFlowInfo -from bitget.model.margin_cross_fin_flow_result import MarginCrossFinFlowResult -from bitget.model.margin_cross_level_result import MarginCrossLevelResult -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest -from bitget.model.margin_cross_max_borrow_result import MarginCrossMaxBorrowResult -from bitget.model.margin_cross_rate_and_limit_result import MarginCrossRateAndLimitResult -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest -from bitget.model.margin_cross_repay_result import MarginCrossRepayResult -from bitget.model.margin_cross_vip_result import MarginCrossVipResult -from bitget.model.margin_interest_info import MarginInterestInfo -from bitget.model.margin_interest_info_result import MarginInterestInfoResult -from bitget.model.margin_isolated_assets_population_result import MarginIsolatedAssetsPopulationResult -from bitget.model.margin_isolated_assets_result import MarginIsolatedAssetsResult -from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest -from bitget.model.margin_isolated_assets_risk_result import MarginIsolatedAssetsRiskResult -from bitget.model.margin_isolated_borrow_limit_result import MarginIsolatedBorrowLimitResult -from bitget.model.margin_isolated_fin_flow_info import MarginIsolatedFinFlowInfo -from bitget.model.margin_isolated_fin_flow_result import MarginIsolatedFinFlowResult -from bitget.model.margin_isolated_interest_info import MarginIsolatedInterestInfo -from bitget.model.margin_isolated_interest_info_result import MarginIsolatedInterestInfoResult -from bitget.model.margin_isolated_level_result import MarginIsolatedLevelResult -from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest -from bitget.model.margin_isolated_liquidation_info import MarginIsolatedLiquidationInfo -from bitget.model.margin_isolated_liquidation_info_result import MarginIsolatedLiquidationInfoResult -from bitget.model.margin_isolated_loan_info import MarginIsolatedLoanInfo -from bitget.model.margin_isolated_loan_info_result import MarginIsolatedLoanInfoResult -from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest -from bitget.model.margin_isolated_max_borrow_result import MarginIsolatedMaxBorrowResult -from bitget.model.margin_isolated_rate_and_limit_result import MarginIsolatedRateAndLimitResult -from bitget.model.margin_isolated_repay_info import MarginIsolatedRepayInfo -from bitget.model.margin_isolated_repay_info_result import MarginIsolatedRepayInfoResult -from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest -from bitget.model.margin_isolated_repay_result import MarginIsolatedRepayResult -from bitget.model.margin_isolated_vip_result import MarginIsolatedVipResult -from bitget.model.margin_liquidation_info import MarginLiquidationInfo -from bitget.model.margin_liquidation_info_result import MarginLiquidationInfoResult -from bitget.model.margin_loan_info import MarginLoanInfo -from bitget.model.margin_loan_info_result import MarginLoanInfoResult -from bitget.model.margin_open_order_info_result import MarginOpenOrderInfoResult -from bitget.model.margin_order_info import MarginOrderInfo -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.margin_place_order_result import MarginPlaceOrderResult -from bitget.model.margin_repay_info import MarginRepayInfo -from bitget.model.margin_repay_info_result import MarginRepayInfoResult -from bitget.model.margin_system_result import MarginSystemResult -from bitget.model.margin_trade_detail_info import MarginTradeDetailInfo -from bitget.model.margin_trade_detail_info_result import MarginTradeDetailInfoResult -from bitget.model.merchant_adv_info import MerchantAdvInfo -from bitget.model.merchant_adv_result import MerchantAdvResult -from bitget.model.merchant_adv_user_limit_info import MerchantAdvUserLimitInfo -from bitget.model.merchant_info import MerchantInfo -from bitget.model.merchant_info_result import MerchantInfoResult -from bitget.model.merchant_order_info import MerchantOrderInfo -from bitget.model.merchant_order_payment_info import MerchantOrderPaymentInfo -from bitget.model.merchant_order_result import MerchantOrderResult -from bitget.model.merchant_person_info import MerchantPersonInfo -from bitget.model.order_payment_detail_info import OrderPaymentDetailInfo diff --git a/bitget-python-sdk-open-api/bitget/paths/__init__.py b/bitget-python-sdk-open-api/bitget/paths/__init__.py deleted file mode 100644 index 6e3b4dc1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/__init__.py +++ /dev/null @@ -1,54 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.apis.path_to_api import path_to_api - -import enum - - -class PathValues(str, enum.Enum): - API_MARGIN_V1_CROSS_ACCOUNT_ASSETS = "/api/margin/v1/cross/account/assets" - API_MARGIN_V1_CROSS_ACCOUNT_BORROW = "/api/margin/v1/cross/account/borrow" - API_MARGIN_V1_CROSS_ACCOUNT_MAX_BORROWABLE_AMOUNT = "/api/margin/v1/cross/account/maxBorrowableAmount" - API_MARGIN_V1_CROSS_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT = "/api/margin/v1/cross/account/maxTransferOutAmount" - API_MARGIN_V1_CROSS_ACCOUNT_REPAY = "/api/margin/v1/cross/account/repay" - API_MARGIN_V1_CROSS_ACCOUNT_RISK_RATE = "/api/margin/v1/cross/account/riskRate" - API_MARGIN_V1_CROSS_ACCOUNT_VOID = "/api/margin/v1/cross/account/void" - API_MARGIN_V1_CROSS_FIN_LIST = "/api/margin/v1/cross/fin/list" - API_MARGIN_V1_CROSS_INTEREST_LIST = "/api/margin/v1/cross/interest/list" - API_MARGIN_V1_CROSS_LIQUIDATION_LIST = "/api/margin/v1/cross/liquidation/list" - API_MARGIN_V1_CROSS_LOAN_LIST = "/api/margin/v1/cross/loan/list" - API_MARGIN_V1_CROSS_ORDER_BATCH_CANCEL_ORDER = "/api/margin/v1/cross/order/batchCancelOrder" - API_MARGIN_V1_CROSS_ORDER_BATCH_PLACE_ORDER = "/api/margin/v1/cross/order/batchPlaceOrder" - API_MARGIN_V1_CROSS_ORDER_CANCEL_ORDER = "/api/margin/v1/cross/order/cancelOrder" - API_MARGIN_V1_CROSS_ORDER_FILLS = "/api/margin/v1/cross/order/fills" - API_MARGIN_V1_CROSS_ORDER_HISTORY = "/api/margin/v1/cross/order/history" - API_MARGIN_V1_CROSS_ORDER_OPEN_ORDERS = "/api/margin/v1/cross/order/openOrders" - API_MARGIN_V1_CROSS_ORDER_PLACE_ORDER = "/api/margin/v1/cross/order/placeOrder" - API_MARGIN_V1_CROSS_PUBLIC_INTEREST_RATE_AND_LIMIT = "/api/margin/v1/cross/public/interestRateAndLimit" - API_MARGIN_V1_CROSS_PUBLIC_TIER_DATA = "/api/margin/v1/cross/public/tierData" - API_MARGIN_V1_CROSS_REPAY_LIST = "/api/margin/v1/cross/repay/list" - API_MARGIN_V1_ISOLATED_ACCOUNT_ASSETS = "/api/margin/v1/isolated/account/assets" - API_MARGIN_V1_ISOLATED_ACCOUNT_BORROW = "/api/margin/v1/isolated/account/borrow" - API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_BORROWABLE_AMOUNT = "/api/margin/v1/isolated/account/maxBorrowableAmount" - API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT = "/api/margin/v1/isolated/account/maxTransferOutAmount" - API_MARGIN_V1_ISOLATED_ACCOUNT_REPAY = "/api/margin/v1/isolated/account/repay" - API_MARGIN_V1_ISOLATED_ACCOUNT_RISK_RATE = "/api/margin/v1/isolated/account/riskRate" - API_MARGIN_V1_ISOLATED_FIN_LIST = "/api/margin/v1/isolated/fin/list" - API_MARGIN_V1_ISOLATED_INTEREST_LIST = "/api/margin/v1/isolated/interest/list" - API_MARGIN_V1_ISOLATED_LIQUIDATION_LIST = "/api/margin/v1/isolated/liquidation/list" - API_MARGIN_V1_ISOLATED_LOAN_LIST = "/api/margin/v1/isolated/loan/list" - API_MARGIN_V1_ISOLATED_ORDER_BATCH_CANCEL_ORDER = "/api/margin/v1/isolated/order/batchCancelOrder" - API_MARGIN_V1_ISOLATED_ORDER_BATCH_PLACE_ORDER = "/api/margin/v1/isolated/order/batchPlaceOrder" - API_MARGIN_V1_ISOLATED_ORDER_CANCEL_ORDER = "/api/margin/v1/isolated/order/cancelOrder" - API_MARGIN_V1_ISOLATED_ORDER_FILLS = "/api/margin/v1/isolated/order/fills" - API_MARGIN_V1_ISOLATED_ORDER_HISTORY = "/api/margin/v1/isolated/order/history" - API_MARGIN_V1_ISOLATED_ORDER_OPEN_ORDERS = "/api/margin/v1/isolated/order/openOrders" - API_MARGIN_V1_ISOLATED_ORDER_PLACE_ORDER = "/api/margin/v1/isolated/order/placeOrder" - API_MARGIN_V1_ISOLATED_PUBLIC_INTEREST_RATE_AND_LIMIT = "/api/margin/v1/isolated/public/interestRateAndLimit" - API_MARGIN_V1_ISOLATED_PUBLIC_TIER_DATA = "/api/margin/v1/isolated/public/tierData" - API_MARGIN_V1_ISOLATED_REPAY_LIST = "/api/margin/v1/isolated/repay/list" - API_MARGIN_V1_PUBLIC_CURRENCIES = "/api/margin/v1/public/currencies" - API_P2P_V1_MERCHANT_ADV_LIST = "/api/p2p/v1/merchant/advList" - API_P2P_V1_MERCHANT_MERCHANT_INFO = "/api/p2p/v1/merchant/merchantInfo" - API_P2P_V1_MERCHANT_MERCHANT_LIST = "/api/p2p/v1/merchant/merchantList" - API_P2P_V1_MERCHANT_ORDER_LIST = "/api/p2p/v1/merchant/orderList" diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/__init__.py deleted file mode 100644 index e84cc8de..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_assets import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_ASSETS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.py deleted file mode 100644 index 6efbbecc..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_assets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - assets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_assets( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.pyi deleted file mode 100644 index 5840a2f6..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_assets/get.pyi +++ /dev/null @@ -1,342 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_assets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - assets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_assets( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/__init__.py deleted file mode 100644 index c44caf59..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_borrow import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_BORROW \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.py deleted file mode 100644 index d6e8200a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossLimitRequest - - -request_body_margin_cross_limit_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossBorrowLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - borrow - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_limit_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountBorrow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.pyi deleted file mode 100644 index 8318d36d..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_borrow/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossLimitRequest - - -request_body_margin_cross_limit_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossBorrowLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - borrow - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_limit_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountBorrow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/__init__.py deleted file mode 100644 index 6bcb6043..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_max_borrowable_amount import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_BORROWABLE_AMOUNT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.py deleted file mode 100644 index 7c5c5faf..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossMaxBorrowRequest - - -request_body_margin_cross_max_borrow_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossMaxBorrowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxBorrowableAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_max_borrow_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountMaxBorrowableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.pyi deleted file mode 100644 index 253c6ca5..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_borrowable_amount/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossMaxBorrowRequest - - -request_body_margin_cross_max_borrow_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossMaxBorrowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxBorrowableAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_max_borrow_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountMaxBorrowableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/__init__.py deleted file mode 100644 index 16a7f92b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_max_transfer_out_amount import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.py deleted file mode 100644 index 9036a24d..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossAssetsResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxTransferOutAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountMaxTransferOutAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.pyi deleted file mode 100644 index 4556b174..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_max_transfer_out_amount/get.pyi +++ /dev/null @@ -1,342 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossAssetsResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxTransferOutAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountMaxTransferOutAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/__init__.py deleted file mode 100644 index 2c3d5254..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_repay import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_REPAY \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.py deleted file mode 100644 index bd3e5d92..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossRepayRequest - - -request_body_margin_cross_repay_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossRepayResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - repay - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_repay_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountRepay(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.pyi deleted file mode 100644 index c3f619bd..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_repay/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginCrossRepayRequest - - -request_body_margin_cross_repay_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossRepayResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - repay - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cross_repay_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountRepay(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/__init__.py deleted file mode 100644 index 842539e8..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_risk_rate import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_RISK_RATE \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.py deleted file mode 100644 index 70ce97b4..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.py +++ /dev/null @@ -1,304 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossAssetsRiskResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - riskRate - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountRiskRate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_risk_rate( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_risk_rate_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_risk_rate_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.pyi deleted file mode 100644 index 983fc956..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_risk_rate/get.pyi +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossAssetsRiskResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_account_risk_rate_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - riskRate - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossAccountRiskRate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_account_risk_rate( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_account_risk_rate( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_risk_rate_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_account_risk_rate_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/__init__.py deleted file mode 100644 index fae5b677..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_account_void import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ACCOUNT_VOID \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.py deleted file mode 100644 index be799ee9..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.py +++ /dev/null @@ -1,303 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _void_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - void - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class Void(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def void( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._void_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._void_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.pyi deleted file mode 100644 index 2b05c7cf..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_account_void/get.pyi +++ /dev/null @@ -1,288 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _void_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _void_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - void - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class Void(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def void( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def void( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._void_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._void_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/__init__.py deleted file mode 100644 index 1d3bc850..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_fin_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_FIN_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.py deleted file mode 100644 index fb398e53..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.py +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_fin_flow_result import ApiResponseResultOfMarginCrossFinFlowResult - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -MarginTypeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'marginType': typing.Union[MarginTypeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_margin_type = api_client.QueryParameter( - name="marginType", - schema=MarginTypeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossFinFlowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_fin_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_margin_type, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossFinList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_fin_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.pyi deleted file mode 100644 index df3ede89..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_fin_list/get.pyi +++ /dev/null @@ -1,377 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_fin_flow_result import ApiResponseResultOfMarginCrossFinFlowResult - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -MarginTypeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'marginType': typing.Union[MarginTypeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_margin_type = api_client.QueryParameter( - name="marginType", - schema=MarginTypeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginCrossFinFlowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_fin_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_margin_type, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossFinList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_fin_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/__init__.py deleted file mode 100644 index 0b2188e4..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_interest_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_INTEREST_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.py deleted file mode 100644 index 1f707c0d..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_interest_info_result import ApiResponseResultOfMarginInterestInfoResult - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginInterestInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_interest_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossInterestList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_interest_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.pyi deleted file mode 100644 index cd1f9293..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_interest_list/get.pyi +++ /dev/null @@ -1,363 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_interest_info_result import ApiResponseResultOfMarginInterestInfoResult - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginInterestInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_interest_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossInterestList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_interest_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/__init__.py deleted file mode 100644 index 1d10cd6b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_liquidation_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_LIQUIDATION_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.py deleted file mode 100644 index 50fca910..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_liquidation_info_result import ApiResponseResultOfMarginLiquidationInfoResult - -from . import path - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginLiquidationInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_liquidation_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossLiquidationList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_liquidation_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.pyi deleted file mode 100644 index 9829063a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_liquidation_list/get.pyi +++ /dev/null @@ -1,363 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_liquidation_info_result import ApiResponseResultOfMarginLiquidationInfoResult - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginLiquidationInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_liquidation_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossLiquidationList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_liquidation_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/__init__.py deleted file mode 100644 index 11167d82..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_loan_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_LOAN_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.py deleted file mode 100644 index 5f2977f1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.py +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_loan_info_result import ApiResponseResultOfMarginLoanInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginLoanInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_loan_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossLoanList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_loan_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.pyi deleted file mode 100644 index f4b3bd9a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_loan_list/get.pyi +++ /dev/null @@ -1,377 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_loan_info_result import ApiResponseResultOfMarginLoanInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginLoanInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_loan_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossLoanList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_loan_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/__init__.py deleted file mode 100644 index f348ad52..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_batch_cancel_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_CANCEL_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.py deleted file mode 100644 index 28da072c..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchCancelOrderRequest - - -request_body_margin_batch_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchCancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_batch_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossBatchCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.pyi deleted file mode 100644 index 96058edd..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_cancel_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchCancelOrderRequest - - -request_body_margin_batch_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchCancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_batch_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossBatchCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/__init__.py deleted file mode 100644 index 3fee49af..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_batch_place_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_BATCH_PLACE_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.py deleted file mode 100644 index eb3537df..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchOrdersRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchPlaceOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossBatchPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.pyi deleted file mode 100644 index 9cd03374..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_batch_place_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchOrdersRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchPlaceOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossBatchPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/__init__.py deleted file mode 100644 index 9a67a2cd..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_cancel_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_CANCEL_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.py deleted file mode 100644 index 888b2c10..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginCancelOrderRequest - - -request_body_margin_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - cancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.pyi deleted file mode 100644 index 4ed80070..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_cancel_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult - -# body param -SchemaForRequestBodyApplicationJson = MarginCancelOrderRequest - - -request_body_margin_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - cancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/__init__.py deleted file mode 100644 index b4b12f24..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_fills import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_FILLS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.py deleted file mode 100644 index 6d0ff9b3..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.py +++ /dev/null @@ -1,400 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -LastFillIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'lastFillId': typing.Union[LastFillIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_last_fill_id = api_client.QueryParameter( - name="lastFillId", - schema=LastFillIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginTradeDetailInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_fills_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - fills - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_last_fill_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossFills(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_fills( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.pyi deleted file mode 100644 index 76a704f0..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_fills/get.pyi +++ /dev/null @@ -1,385 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -LastFillIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'lastFillId': typing.Union[LastFillIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_last_fill_id = api_client.QueryParameter( - name="lastFillId", - schema=LastFillIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginTradeDetailInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_fills_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - fills - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_last_fill_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossFills(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_fills( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/__init__.py deleted file mode 100644 index eababddf..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_history import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_HISTORY \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.py deleted file mode 100644 index e0562db8..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.py +++ /dev/null @@ -1,407 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -MinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'minId': typing.Union[MinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_min_id = api_client.QueryParameter( - name="minId", - schema=MinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_history_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - history - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossHistoryOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_history_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.pyi deleted file mode 100644 index 7147a2b2..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_history/get.pyi +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -MinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'minId': typing.Union[MinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_min_id = api_client.QueryParameter( - name="minId", - schema=MinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_history_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - history - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossHistoryOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_history_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/__init__.py deleted file mode 100644 index f7bd858c..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_open_orders import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_OPEN_ORDERS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.py deleted file mode 100644 index 34e1b71a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.py +++ /dev/null @@ -1,393 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_open_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - openOrders - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossOpenOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_open_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.pyi deleted file mode 100644 index 92d3fd58..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_open_orders/get.pyi +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_open_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - openOrders - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossOpenOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_open_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/__init__.py deleted file mode 100644 index 381970aa..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_order_place_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_ORDER_PLACE_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.py deleted file mode 100644 index e3798e42..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginOrderRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - placeOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.pyi deleted file mode 100644 index 234073fb..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_order_place_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult - -# body param -SchemaForRequestBodyApplicationJson = MarginOrderRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - placeOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/__init__.py deleted file mode 100644 index 2e5b0bf4..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_public_interest_rate_and_limit import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_PUBLIC_INTEREST_RATE_AND_LIMIT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.py deleted file mode 100644 index fd5b028b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result import ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossRateAndLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - interestRateAndLimit - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPublicInterestRateAndLimit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.pyi deleted file mode 100644 index f221f75b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_interest_rate_and_limit/get.pyi +++ /dev/null @@ -1,341 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result import ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossRateAndLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - interestRateAndLimit - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPublicInterestRateAndLimit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/__init__.py deleted file mode 100644 index ddb0db20..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_public_tier_data import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_PUBLIC_TIER_DATA \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.py deleted file mode 100644 index fb11d697..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_list_of_margin_cross_level_result import ApiResponseResultOfListOfMarginCrossLevelResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossLevelResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - tierData - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPublicTierData(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_public_tier_data( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.pyi deleted file mode 100644 index bda6df4d..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_public_tier_data/get.pyi +++ /dev/null @@ -1,341 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_list_of_margin_cross_level_result import ApiResponseResultOfListOfMarginCrossLevelResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -CoinSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginCrossLevelResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_cross_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - tierData - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginCrossPublicTierData(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_cross_public_tier_data( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_cross_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_cross_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/__init__.py deleted file mode 100644 index da8ea395..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_cross_repay_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_CROSS_REPAY_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.py deleted file mode 100644 index 9e54a6c6..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.py +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_repay_info_result import ApiResponseResultOfMarginRepayInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -RepayIdSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'repayId': typing.Union[RepayIdSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_repay_id = api_client.QueryParameter( - name="repayId", - schema=RepayIdSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginRepayInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_repay_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_repay_id, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossRepayList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_repay_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.pyi deleted file mode 100644 index fd8a9933..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_cross_repay_list/get.pyi +++ /dev/null @@ -1,377 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_repay_info_result import ApiResponseResultOfMarginRepayInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -CoinSchema = schemas.StrSchema -RepayIdSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'repayId': typing.Union[RepayIdSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_repay_id = api_client.QueryParameter( - name="repayId", - schema=RepayIdSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginRepayInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _cross_repay_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _cross_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_repay_id, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class CrossRepayList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def cross_repay_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def cross_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._cross_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/__init__.py deleted file mode 100644 index 3f6432a1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_assets import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_ASSETS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.py deleted file mode 100644 index ce6c48be..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result import ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - assets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_assets( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.pyi deleted file mode 100644 index bd830359..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_assets/get.pyi +++ /dev/null @@ -1,342 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result import ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_assets_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - assets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_assets( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_assets( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/__init__.py deleted file mode 100644 index 661f6b48..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_borrow import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_BORROW \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.py deleted file mode 100644 index 5a0a7416..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_borrow_limit_result import ApiResponseResultOfMarginIsolatedBorrowLimitResult -from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedLimitRequest - - -request_body_margin_isolated_limit_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedBorrowLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - borrow - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_limit_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountBorrow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.pyi deleted file mode 100644 index 952eef0b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_borrow/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_borrow_limit_result import ApiResponseResultOfMarginIsolatedBorrowLimitResult -from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedLimitRequest - - -request_body_margin_isolated_limit_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedBorrowLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_borrow_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - borrow - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_limit_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountBorrow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_borrow( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_borrow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/__init__.py deleted file mode 100644 index 8a529f7e..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_max_borrowable_amount import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_BORROWABLE_AMOUNT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.py deleted file mode 100644 index a4e9c3a7..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_isolated_max_borrow_result import ApiResponseResultOfMarginIsolatedMaxBorrowResult -from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedMaxBorrowRequest - - -request_body_margin_isolated_max_borrow_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedMaxBorrowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxBorrowableAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_max_borrow_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountMaxBorrowableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.pyi deleted file mode 100644 index 0ea34b46..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_borrowable_amount/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_isolated_max_borrow_result import ApiResponseResultOfMarginIsolatedMaxBorrowResult -from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedMaxBorrowRequest - - -request_body_margin_isolated_max_borrow_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedMaxBorrowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_max_borrowable_amount_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxBorrowableAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_max_borrow_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountMaxBorrowableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_max_borrowable_amount( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_borrowable_amount_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py deleted file mode 100644 index 3bb21a82..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_max_transfer_out_amount import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_MAX_TRANSFER_OUT_AMOUNT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.py deleted file mode 100644 index 22e296a1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.py +++ /dev/null @@ -1,365 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_assets_result import ApiResponseResultOfMarginIsolatedAssetsResult - -from . import path - -# Query params -CoinSchema = schemas.StrSchema -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedAssetsResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxTransferOutAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountMaxTransferOutAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.pyi deleted file mode 100644 index eb8e8adc..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_max_transfer_out_amount/get.pyi +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_assets_result import ApiResponseResultOfMarginIsolatedAssetsResult - -# Query params -CoinSchema = schemas.StrSchema -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, - required=True, -) -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedAssetsResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_max_transfer_out_amount_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - maxTransferOutAmount - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_coin, - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountMaxTransferOutAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_max_transfer_out_amount( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_max_transfer_out_amount_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/__init__.py deleted file mode 100644 index e668859a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_repay import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_REPAY \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.py deleted file mode 100644 index 3f269988..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest -from bitget.model.api_response_result_of_margin_isolated_repay_result import ApiResponseResultOfMarginIsolatedRepayResult - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedRepayRequest - - -request_body_margin_isolated_repay_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedRepayResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - repay - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_repay_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountRepay(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.pyi deleted file mode 100644 index 552807f2..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_repay/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest -from bitget.model.api_response_result_of_margin_isolated_repay_result import ApiResponseResultOfMarginIsolatedRepayResult - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedRepayRequest - - -request_body_margin_isolated_repay_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedRepayResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_repay_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - repay - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_repay_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountRepay(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_repay( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_repay_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/__init__.py deleted file mode 100644 index 703ec7a7..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_account_risk_rate import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ACCOUNT_RISK_RATE \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.py deleted file mode 100644 index 86b4f0cc..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result import ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedAssetsRiskRequest - - -request_body_margin_isolated_assets_risk_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - riskRate - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_assets_risk_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountRiskRate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_risk_rate_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_risk_rate_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.pyi deleted file mode 100644 index 3b1ff861..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_account_risk_rate/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result import ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginIsolatedAssetsRiskRequest - - -request_body_margin_isolated_assets_risk_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_account_risk_rate_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - riskRate - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_isolated_assets_risk_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedAccountRiskRate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_account_risk_rate( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_risk_rate_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_account_risk_rate_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/__init__.py deleted file mode 100644 index 6302aacd..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_fin_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_FIN_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.py deleted file mode 100644 index 2f7bcc46..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.py +++ /dev/null @@ -1,407 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_fin_flow_result import ApiResponseResultOfMarginIsolatedFinFlowResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -MarginTypeSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'marginType': typing.Union[MarginTypeSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_margin_type = api_client.QueryParameter( - name="marginType", - schema=MarginTypeSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedFinFlowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_fin_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_margin_type, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedFinList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_fin_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.pyi deleted file mode 100644 index a61db8cb..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_fin_list/get.pyi +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_fin_flow_result import ApiResponseResultOfMarginIsolatedFinFlowResult - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -MarginTypeSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'marginType': typing.Union[MarginTypeSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_margin_type = api_client.QueryParameter( - name="marginType", - schema=MarginTypeSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedFinFlowResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_fin_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_fin_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_margin_type, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedFinList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_fin_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_fin_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_fin_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/__init__.py deleted file mode 100644 index 09113443..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_interest_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_INTEREST_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.py deleted file mode 100644 index 94631782..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.py +++ /dev/null @@ -1,386 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_interest_info_result import ApiResponseResultOfMarginIsolatedInterestInfoResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedInterestInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_interest_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_start_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedInterestList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_interest_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.pyi deleted file mode 100644 index 14efb717..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_interest_list/get.pyi +++ /dev/null @@ -1,371 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_interest_info_result import ApiResponseResultOfMarginIsolatedInterestInfoResult - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedInterestInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_interest_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_interest_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_start_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedInterestList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_interest_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_interest_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_interest_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/__init__.py deleted file mode 100644 index 6f2dd2df..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_liquidation_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_LIQUIDATION_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.py deleted file mode 100644 index 82e58f4f..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.py +++ /dev/null @@ -1,386 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_liquidation_info_result import ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedLiquidationInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_liquidation_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedLiquidationList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_liquidation_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.pyi deleted file mode 100644 index e02f1715..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_liquidation_list/get.pyi +++ /dev/null @@ -1,371 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_liquidation_info_result import ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedLiquidationInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_liquidation_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_liquidation_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedLiquidationList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_liquidation_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_liquidation_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_liquidation_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/__init__.py deleted file mode 100644 index 032c90b8..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_loan_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_LOAN_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.py deleted file mode 100644 index fce68e4a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.py +++ /dev/null @@ -1,400 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_loan_info_result import ApiResponseResultOfMarginIsolatedLoanInfoResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedLoanInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_loan_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedLoanList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_loan_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.pyi deleted file mode 100644 index 106e8cb1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_loan_list/get.pyi +++ /dev/null @@ -1,385 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_loan_info_result import ApiResponseResultOfMarginIsolatedLoanInfoResult - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -LoanIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'loanId': typing.Union[LoanIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_loan_id = api_client.QueryParameter( - name="loanId", - schema=LoanIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedLoanInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolated_loan_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolated_loan_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_start_time, - request_query_end_time, - request_query_loan_id, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolatedLoanList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolated_loan_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolated_loan_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolated_loan_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/__init__.py deleted file mode 100644 index 7505f2e2..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_batch_cancel_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_CANCEL_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.py deleted file mode 100644 index 25b945ac..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchCancelOrderRequest - - -request_body_margin_batch_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchCancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_batch_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedBatchCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.pyi deleted file mode 100644 index 4679fa0c..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_cancel_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchCancelOrderRequest - - -request_body_margin_batch_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_batch_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchCancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_batch_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedBatchCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_batch_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/__init__.py deleted file mode 100644 index a408eaf7..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_batch_place_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_BATCH_PLACE_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.py deleted file mode 100644 index 2b44574f..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchOrdersRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchPlaceOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedBatchPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.pyi deleted file mode 100644 index 1e56ae28..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_batch_place_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - -# body param -SchemaForRequestBodyApplicationJson = MarginBatchOrdersRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_batch_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - batchPlaceOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedBatchPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_batch_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_batch_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/__init__.py deleted file mode 100644 index 9f3daa9e..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_cancel_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_CANCEL_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.py deleted file mode 100644 index 92aab690..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginCancelOrderRequest - - -request_body_margin_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - cancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.pyi deleted file mode 100644 index 0027f584..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_cancel_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult - -# body param -SchemaForRequestBodyApplicationJson = MarginCancelOrderRequest - - -request_body_margin_cancel_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginBatchCancelOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_cancel_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - cancelOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_cancel_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedCancelOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_cancel_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_cancel_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/__init__.py deleted file mode 100644 index 2a9777f9..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_fills import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_FILLS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.py deleted file mode 100644 index 511464a5..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.py +++ /dev/null @@ -1,392 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -LastFillIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'lastFillId': typing.Union[LastFillIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_last_fill_id = api_client.QueryParameter( - name="lastFillId", - schema=LastFillIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginTradeDetailInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_fills_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - fills - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_last_fill_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedFills(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_fills( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.pyi deleted file mode 100644 index dfa78019..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_fills/get.pyi +++ /dev/null @@ -1,377 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -LastFillIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'lastFillId': typing.Union[LastFillIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_last_fill_id = api_client.QueryParameter( - name="lastFillId", - schema=LastFillIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginTradeDetailInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_fills_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_fills_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - fills - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_last_fill_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedFills(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_fills( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_fills( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_fills_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/__init__.py deleted file mode 100644 index 778ab272..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_history import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_HISTORY \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.py deleted file mode 100644 index 8d8ecf39..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.py +++ /dev/null @@ -1,406 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -MinIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'minId': typing.Union[MinIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_min_id = api_client.QueryParameter( - name="minId", - schema=MinIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - history - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - request_query_min_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedHistoryOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_history_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.pyi deleted file mode 100644 index d1539aff..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_history/get.pyi +++ /dev/null @@ -1,391 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -SourceSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -MinIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'source': typing.Union[SourceSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'minId': typing.Union[MinIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, -) -request_query_source = api_client.QueryParameter( - name="source", - schema=SourceSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_min_id = api_client.QueryParameter( - name="minId", - schema=MinIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_history_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - history - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_source, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - request_query_min_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedHistoryOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_history_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_history_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_history_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/__init__.py deleted file mode 100644 index a84a7043..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_open_orders import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_OPEN_ORDERS \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.py deleted file mode 100644 index a072a599..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.py +++ /dev/null @@ -1,393 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - openOrders - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedOpenOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_open_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.pyi deleted file mode 100644 index c4bbe91e..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_open_orders/get.pyi +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -SymbolSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -OrderIdSchema = schemas.StrSchema -ClientOidSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'orderId': typing.Union[OrderIdSchema, str, ], - 'clientOid': typing.Union[ClientOidSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_order_id = api_client.QueryParameter( - name="orderId", - schema=OrderIdSchema, -) -request_query_client_oid = api_client.QueryParameter( - name="clientOid", - schema=ClientOidSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginOpenOrderInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_open_orders_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - openOrders - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_start_time, - request_query_end_time, - request_query_order_id, - request_query_client_oid, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedOpenOrders(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_open_orders( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_open_orders( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_open_orders_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/__init__.py deleted file mode 100644 index 4721ed1b..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_order_place_order import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_ORDER_PLACE_ORDER \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.py deleted file mode 100644 index a842c5a5..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = MarginOrderRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - placeOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.pyi deleted file mode 100644 index 83ca3a6e..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_order_place_order/post.pyi +++ /dev/null @@ -1,384 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult - -# body param -SchemaForRequestBodyApplicationJson = MarginOrderRequest - - -request_body_margin_order_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginPlaceOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_place_order_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - placeOrder - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_margin_order_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPlaceOrder(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_place_order( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_place_order_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py deleted file mode 100644 index 6e3a07c3..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_public_interest_rate_and_limit import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_INTEREST_RATE_AND_LIMIT \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.py deleted file mode 100644 index f8aab18f..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result import ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - interestRateAndLimit - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPublicInterestRateAndLimit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.pyi deleted file mode 100644 index 351b2386..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_interest_rate_and_limit/get.pyi +++ /dev/null @@ -1,341 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result import ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_public_interest_rate_and_limit_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - interestRateAndLimit - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPublicInterestRateAndLimit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_public_interest_rate_and_limit( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_interest_rate_and_limit_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/__init__.py deleted file mode 100644 index 7ff3a7d6..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_public_tier_data import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_PUBLIC_TIER_DATA \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.py deleted file mode 100644 index 92061870..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_level_result import ApiResponseResultOfListOfMarginIsolatedLevelResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedLevelResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - tierData - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPublicTierData(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_public_tier_data( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.pyi deleted file mode 100644 index a6e52597..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_public_tier_data/get.pyi +++ /dev/null @@ -1,341 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_level_result import ApiResponseResultOfListOfMarginIsolatedLevelResult - -# Query params -SymbolSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginIsolatedLevelResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_isolated_public_tier_data_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - tierData - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginIsolatedPublicTierData(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_isolated_public_tier_data( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_isolated_public_tier_data( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_isolated_public_tier_data_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/__init__.py deleted file mode 100644 index 1ca78584..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_isolated_repay_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_ISOLATED_REPAY_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.py deleted file mode 100644 index 2af81ce1..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.py +++ /dev/null @@ -1,400 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_repay_info_result import ApiResponseResultOfMarginIsolatedRepayInfoResult - -from . import path - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -RepayIdSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'repayId': typing.Union[RepayIdSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_repay_id = api_client.QueryParameter( - name="repayId", - schema=RepayIdSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedRepayInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolate_repay_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_repay_id, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolateRepayList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolate_repay_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolate_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolate_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.pyi deleted file mode 100644 index 934844a2..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_isolated_repay_list/get.pyi +++ /dev/null @@ -1,385 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_repay_info_result import ApiResponseResultOfMarginIsolatedRepayInfoResult - -# Query params -SymbolSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -RepayIdSchema = schemas.StrSchema -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -PageIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'symbol': typing.Union[SymbolSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'coin': typing.Union[CoinSchema, str, ], - 'repayId': typing.Union[RepayIdSchema, str, ], - 'endTime': typing.Union[EndTimeSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'pageId': typing.Union[PageIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_symbol = api_client.QueryParameter( - name="symbol", - schema=SymbolSchema, - required=True, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_repay_id = api_client.QueryParameter( - name="repayId", - schema=RepayIdSchema, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_page_id = api_client.QueryParameter( - name="pageId", - schema=PageIdSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMarginIsolatedRepayInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _isolate_repay_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _isolate_repay_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - list - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_symbol, - request_query_coin, - request_query_repay_id, - request_query_start_time, - request_query_end_time, - request_query_page_size, - request_query_page_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class IsolateRepayList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def isolate_repay_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def isolate_repay_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolate_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._isolate_repay_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/__init__.py deleted file mode 100644 index f2859631..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_margin_v1_public_currencies import Api - -from bitget.paths import PathValues - -path = PathValues.API_MARGIN_V1_PUBLIC_CURRENCIES \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.py b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.py deleted file mode 100644 index eebb6463..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.py +++ /dev/null @@ -1,296 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_system_result import ApiResponseResultOfListOfMarginSystemResult - -from . import path - -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginSystemResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_public_currencies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - currencies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginPublicCurrencies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_public_currencies( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_public_currencies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_public_currencies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.pyi deleted file mode 100644 index d3d3b260..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_margin_v1_public_currencies/get.pyi +++ /dev/null @@ -1,288 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_system_result import ApiResponseResultOfListOfMarginSystemResult - -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfListOfMarginSystemResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _margin_public_currencies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _margin_public_currencies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - currencies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MarginPublicCurrencies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def margin_public_currencies( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def margin_public_currencies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_public_currencies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._margin_public_currencies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/__init__.py deleted file mode 100644 index 6856c8ae..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_p2p_v1_merchant_adv_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_P2P_V1_MERCHANT_ADV_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.py deleted file mode 100644 index e45f1c10..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_adv_result import ApiResponseResultOfMerchantAdvResult - -from . import path - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema -TypeSchema = schemas.StrSchema -AdvNoSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -LanguageTypeSchema = schemas.StrSchema -FiatSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -OrderBySchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'type': typing.Union[TypeSchema, str, ], - 'advNo': typing.Union[AdvNoSchema, str, ], - 'coin': typing.Union[CoinSchema, str, ], - 'languageType': typing.Union[LanguageTypeSchema, str, ], - 'fiat': typing.Union[FiatSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_status = api_client.QueryParameter( - name="status", - schema=StatusSchema, -) -request_query_type = api_client.QueryParameter( - name="type", - schema=TypeSchema, -) -request_query_adv_no = api_client.QueryParameter( - name="advNo", - schema=AdvNoSchema, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_language_type = api_client.QueryParameter( - name="languageType", - schema=LanguageTypeSchema, -) -request_query_fiat = api_client.QueryParameter( - name="fiat", - schema=FiatSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - schema=OrderBySchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantAdvResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_adv_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - advList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_status, - request_query_type, - request_query_adv_no, - request_query_coin, - request_query_language_type, - request_query_fiat, - request_query_last_min_id, - request_query_page_size, - request_query_order_by, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantAdvList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_adv_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_adv_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_adv_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.pyi deleted file mode 100644 index a788c32a..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_adv_list/get.pyi +++ /dev/null @@ -1,412 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_adv_result import ApiResponseResultOfMerchantAdvResult - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema -TypeSchema = schemas.StrSchema -AdvNoSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -LanguageTypeSchema = schemas.StrSchema -FiatSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -OrderBySchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'type': typing.Union[TypeSchema, str, ], - 'advNo': typing.Union[AdvNoSchema, str, ], - 'coin': typing.Union[CoinSchema, str, ], - 'languageType': typing.Union[LanguageTypeSchema, str, ], - 'fiat': typing.Union[FiatSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_status = api_client.QueryParameter( - name="status", - schema=StatusSchema, -) -request_query_type = api_client.QueryParameter( - name="type", - schema=TypeSchema, -) -request_query_adv_no = api_client.QueryParameter( - name="advNo", - schema=AdvNoSchema, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_language_type = api_client.QueryParameter( - name="languageType", - schema=LanguageTypeSchema, -) -request_query_fiat = api_client.QueryParameter( - name="fiat", - schema=FiatSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - schema=OrderBySchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantAdvResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_adv_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_adv_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - advList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_status, - request_query_type, - request_query_adv_no, - request_query_coin, - request_query_language_type, - request_query_fiat, - request_query_last_min_id, - request_query_page_size, - request_query_order_by, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantAdvList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_adv_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_adv_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_adv_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_adv_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/__init__.py deleted file mode 100644 index c2e57997..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_p2p_v1_merchant_merchant_info import Api - -from bitget.paths import PathValues - -path = PathValues.API_P2P_V1_MERCHANT_MERCHANT_INFO \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.py deleted file mode 100644 index b34c1239..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.py +++ /dev/null @@ -1,304 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_person_info import ApiResponseResultOfMerchantPersonInfo - -from . import path - -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantPersonInfo - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_info_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - merchantInfo - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantInfo(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_info( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_info_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_info_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.pyi deleted file mode 100644 index 7e28dc0e..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_info/get.pyi +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_person_info import ApiResponseResultOfMerchantPersonInfo - -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantPersonInfo - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_info_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_info_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - merchantInfo - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantInfo(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_info( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_info( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_info_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_info_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/__init__.py deleted file mode 100644 index 8d86d1f2..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_p2p_v1_merchant_merchant_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_P2P_V1_MERCHANT_MERCHANT_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.py deleted file mode 100644 index 759ffcaf..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.py +++ /dev/null @@ -1,377 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_info_result import ApiResponseResultOfMerchantInfoResult - -from . import path - -# Query params -OnlineSchema = schemas.StrSchema -MerchantIdSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'online': typing.Union[OnlineSchema, str, ], - 'merchantId': typing.Union[MerchantIdSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_online = api_client.QueryParameter( - name="online", - schema=OnlineSchema, -) -request_query_merchant_id = api_client.QueryParameter( - name="merchantId", - schema=MerchantIdSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - merchantList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_online, - request_query_merchant_id, - request_query_last_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.pyi deleted file mode 100644 index 09284b23..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_merchant_list/get.pyi +++ /dev/null @@ -1,362 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_info_result import ApiResponseResultOfMerchantInfoResult - -# Query params -OnlineSchema = schemas.StrSchema -MerchantIdSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'online': typing.Union[OnlineSchema, str, ], - 'merchantId': typing.Union[MerchantIdSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_online = api_client.QueryParameter( - name="online", - schema=OnlineSchema, -) -request_query_merchant_id = api_client.QueryParameter( - name="merchantId", - schema=MerchantIdSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantInfoResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - merchantList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_online, - request_query_merchant_id, - request_query_last_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/__init__.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/__init__.py deleted file mode 100644 index c91f71ec..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from bitget.paths.api_p2p_v1_merchant_order_list import Api - -from bitget.paths import PathValues - -path = PathValues.API_P2P_V1_MERCHANT_ORDER_LIST \ No newline at end of file diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.py b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.py deleted file mode 100644 index 20da4ae7..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_merchant_order_result import ApiResponseResultOfMerchantOrderResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -from . import path - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema -TypeSchema = schemas.StrSchema -AdvNoSchema = schemas.StrSchema -OrderNoSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -LanguageTypeSchema = schemas.StrSchema -FiatSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'type': typing.Union[TypeSchema, str, ], - 'advNo': typing.Union[AdvNoSchema, str, ], - 'orderNo': typing.Union[OrderNoSchema, str, ], - 'coin': typing.Union[CoinSchema, str, ], - 'languageType': typing.Union[LanguageTypeSchema, str, ], - 'fiat': typing.Union[FiatSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_status = api_client.QueryParameter( - name="status", - schema=StatusSchema, -) -request_query_type = api_client.QueryParameter( - name="type", - schema=TypeSchema, -) -request_query_adv_no = api_client.QueryParameter( - name="advNo", - schema=AdvNoSchema, -) -request_query_order_no = api_client.QueryParameter( - name="orderNo", - schema=OrderNoSchema, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_language_type = api_client.QueryParameter( - name="languageType", - schema=LanguageTypeSchema, -) -request_query_fiat = api_client.QueryParameter( - name="fiat", - schema=FiatSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -_auth = [ - 'ACCESS_KEY', - 'ACCESS_PASSPHRASE', - 'ACCESS_SIGN', - 'ACCESS_TIMESTAMP', - 'SECRET_KEY', -] -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '429': _response_for_429, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_order_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - orderList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_status, - request_query_type, - request_query_adv_no, - request_query_order_no, - request_query_coin, - request_query_language_type, - request_query_fiat, - request_query_last_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantOrderList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_order_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_order_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_order_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.pyi b/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.pyi deleted file mode 100644 index 14420a65..00000000 --- a/bitget-python-sdk-open-api/bitget/paths/api_p2p_v1_merchant_order_list/get.pyi +++ /dev/null @@ -1,412 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from bitget import schemas # noqa: F401 - -from bitget.model.api_response_result_of_merchant_order_result import ApiResponseResultOfMerchantOrderResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid - -# Query params -StartTimeSchema = schemas.StrSchema -EndTimeSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema -TypeSchema = schemas.StrSchema -AdvNoSchema = schemas.StrSchema -OrderNoSchema = schemas.StrSchema -CoinSchema = schemas.StrSchema -LanguageTypeSchema = schemas.StrSchema -FiatSchema = schemas.StrSchema -LastMinIdSchema = schemas.StrSchema -PageSizeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'startTime': typing.Union[StartTimeSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'endTime': typing.Union[EndTimeSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'type': typing.Union[TypeSchema, str, ], - 'advNo': typing.Union[AdvNoSchema, str, ], - 'orderNo': typing.Union[OrderNoSchema, str, ], - 'coin': typing.Union[CoinSchema, str, ], - 'languageType': typing.Union[LanguageTypeSchema, str, ], - 'fiat': typing.Union[FiatSchema, str, ], - 'lastMinId': typing.Union[LastMinIdSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_start_time = api_client.QueryParameter( - name="startTime", - schema=StartTimeSchema, - required=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - schema=EndTimeSchema, -) -request_query_status = api_client.QueryParameter( - name="status", - schema=StatusSchema, -) -request_query_type = api_client.QueryParameter( - name="type", - schema=TypeSchema, -) -request_query_adv_no = api_client.QueryParameter( - name="advNo", - schema=AdvNoSchema, -) -request_query_order_no = api_client.QueryParameter( - name="orderNo", - schema=OrderNoSchema, -) -request_query_coin = api_client.QueryParameter( - name="coin", - schema=CoinSchema, -) -request_query_language_type = api_client.QueryParameter( - name="languageType", - schema=LanguageTypeSchema, -) -request_query_fiat = api_client.QueryParameter( - name="fiat", - schema=FiatSchema, -) -request_query_last_min_id = api_client.QueryParameter( - name="lastMinId", - schema=LastMinIdSchema, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - schema=PageSizeSchema, -) -SchemaFor200ResponseBodyApplicationJson = ApiResponseResultOfMerchantOrderResult - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor429ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor429(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor429ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_429 = api_client.OpenApiResponse( - response_cls=ApiResponseFor429, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor429ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = ApiResponseResultOfVoid - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def _merchant_order_list_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _merchant_order_list_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - orderList - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_start_time, - request_query_end_time, - request_query_status, - request_query_type, - request_query_adv_no, - request_query_order_no, - request_query_coin, - request_query_language_type, - request_query_fiat, - request_query_last_min_id, - request_query_page_size, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException(api_response=api_response) - - return api_response - - -class MerchantOrderList(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def merchant_order_list( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def merchant_order_list( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_order_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._merchant_order_list_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/bitget-python-sdk-open-api/bitget/rest.py b/bitget-python-sdk-open-api/bitget/rest.py deleted file mode 100644 index 0640b0ea..00000000 --- a/bitget-python-sdk-open-api/bitget/rest.py +++ /dev/null @@ -1,254 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import logging -import ssl -from urllib.parse import urlencode -import typing - -import certifi -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from bitget.exceptions import ApiException, ApiValueError - - -logger = logging.getLogger(__name__) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries - - if configuration.socket_options is not None: - addition_pool_args['socket_options'] = configuration.socket_options - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - proxy_headers=configuration.proxy_headers, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request( - self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, typing.Any], ...]] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: - """Perform requests. - - :param method: http request method - :param url: http request url - :param headers: http request headers - :param body: request body, for other types - :param fields: request parameters for - `application/x-www-form-urlencoded` - or `multipart/form-data` - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is False. - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if fields and body: - raise ApiValueError( - "body parameter cannot be used with fields parameter." - ) - - fields = fields or {} - headers = headers or {} - - if timeout: - if isinstance(timeout, (int, float)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=timeout) - elif (isinstance(timeout, tuple) and - len(timeout) == 2): - timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if 'Content-Type' not in headers and body is None: - r = self.pool_manager.request( - method, - url, - preload_content=not stream, - timeout=timeout, - headers=headers - ) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - body=body, - fields=fields, - encode_multipart=False, - preload_content=not stream, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=fields, - encode_multipart=True, - preload_content=not stream, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str) or isinstance(body, bytes): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=not stream, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - preload_content=not stream, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if not stream: - # log response body - logger.debug("response body: %s", r.data) - - return r - - def GET(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def HEAD(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def OPTIONS(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, - stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def POST(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PUT(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PATCH(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) diff --git a/bitget-python-sdk-open-api/bitget/schemas.py b/bitget-python-sdk-open-api/bitget/schemas.py deleted file mode 100644 index 487fd784..00000000 --- a/bitget-python-sdk-open-api/bitget/schemas.py +++ /dev/null @@ -1,2463 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 -import functools -import decimal -import io -import re -import types -import typing -import uuid - -from dateutil.parser.isoparser import isoparser, _takes_ascii -import frozendict - -from bitget.exceptions import ( - ApiTypeError, - ApiValueError, -) -from bitget.configuration import ( - Configuration, -) - - -class Unset(object): - """ - An instance of this class is set as the default value for object type(dict) properties that are optional - When a property has an unset value, that property will not be assigned in the dict - """ - pass - -unset = Unset() - -none_type = type(None) -file_type = io.IOBase - - -class FileIO(io.FileIO): - """ - A class for storing files - Note: this class is not immutable - """ - - def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader]): - if isinstance(arg, (io.FileIO, io.BufferedReader)): - if arg.closed: - raise ApiValueError('Invalid file state; file is closed and must be open') - arg.close() - inst = super(FileIO, cls).__new__(cls, arg.name) - super(FileIO, inst).__init__(arg.name) - return inst - raise ApiValueError('FileIO must be passed arg which contains the open file') - - def __init__(self, arg: typing.Union[io.FileIO, io.BufferedReader]): - pass - - -def update(d: dict, u: dict): - """ - Adds u to d - Where each dict is defaultdict(set) - """ - if not u: - return d - for k, v in u.items(): - if k not in d: - d[k] = v - else: - d[k] = d[k] | v - - -class ValidationMetadata(frozendict.frozendict): - """ - A class storing metadata that is needed to validate OpenApi Schema payloads - """ - def __new__( - cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), - from_server: bool = False, - configuration: typing.Optional[Configuration] = None, - seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() - ): - """ - Args: - path_to_item: the path to the current data being instantiated. - For {'a': [1]} if the code is handling, 1, then the path is ('args[0]', 'a', 0) - This changes from location to location - from_server: whether or not this data came form the server - True when receiving server data - False when instantiating model with client side data not form the server - This does not change from location to location - configuration: the Configuration instance to use - This is needed because in Configuration: - - one can disable validation checking - This does not change from location to location - seen_classes: when deserializing data that matches multiple schemas, this is used to store - the schemas that have been traversed. This is used to stop processing when a cycle is seen. - This changes from location to location - validated_path_to_schemas: stores the already validated schema classes for a given path location - This does not change from location to location - """ - return super().__new__( - cls, - path_to_item=path_to_item, - from_server=from_server, - configuration=configuration, - seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas - ) - - def validation_ran_earlier(self, cls: type) -> bool: - validated_schemas = self.validated_path_to_schemas.get(self.path_to_item, set()) - validation_ran_earlier = validated_schemas and cls in validated_schemas - if validation_ran_earlier: - return True - if cls in self.seen_classes: - return True - return False - - @property - def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get('path_to_item') - - @property - def from_server(self) -> bool: - return self.get('from_server') - - @property - def configuration(self) -> typing.Optional[Configuration]: - return self.get('configuration') - - @property - def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get('seen_classes') - - @property - def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get('validated_path_to_schemas') - - -class Singleton: - """ - Enums and singletons are the same - The same instance is returned for a given key of (cls, arg) - """ - _instances = {} - - def __new__(cls, arg: typing.Any, **kwargs): - """ - cls base classes: BoolClass, NoneClass, str, decimal.Decimal - The 3rd key is used in the tuple below for a corner case where an enum contains integer 1 - However 1.0 can also be ingested into that enum schema because 1.0 == 1 and - Decimal('1.0') == Decimal('1') - But if we omitted the 3rd value in the key, then Decimal('1.0') would be stored as Decimal('1') - and json serializing that instance would be '1' rather than the expected '1.0' - Adding the 3rd value, the str of arg ensures that 1.0 -> Decimal('1.0') which is serialized as 1.0 - """ - key = (cls, arg, str(arg)) - if key not in cls._instances: - if isinstance(arg, (none_type, bool, BoolClass, NoneClass)): - inst = super().__new__(cls) - cls._instances[key] = inst - else: - cls._instances[key] = super().__new__(cls, arg) - return cls._instances[key] - - def __repr__(self): - if isinstance(self, NoneClass): - return f'<{self.__class__.__name__}: None>' - elif isinstance(self, BoolClass): - if bool(self): - return f'<{self.__class__.__name__}: True>' - return f'<{self.__class__.__name__}: False>' - return f'<{self.__class__.__name__}: {super().__repr__()}>' - - -class classproperty: - - def __init__(self, fget): - self.fget = fget - - def __get__(self, owner_self, owner_cls): - return self.fget(owner_cls) - - -class NoneClass(Singleton): - @classproperty - def NONE(cls): - return cls(None) - - def __bool__(self) -> bool: - return False - - -class BoolClass(Singleton): - @classproperty - def TRUE(cls): - return cls(True) - - @classproperty - def FALSE(cls): - return cls(False) - - @functools.lru_cache() - def __bool__(self) -> bool: - for key, instance in self._instances.items(): - if self is instance: - return bool(key[1]) - raise ValueError('Unable to find the boolean value of this instance') - - -class MetaOapgTyped: - exclusive_maximum: typing.Union[int, float] - inclusive_maximum: typing.Union[int, float] - exclusive_minimum: typing.Union[int, float] - inclusive_minimum: typing.Union[int, float] - max_items: int - min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] - - - class properties: - # to hold object properties - pass - - additional_properties: typing.Optional[typing.Type['Schema']] - max_properties: int - min_properties: int - all_of: typing.List[typing.Type['Schema']] - one_of: typing.List[typing.Type['Schema']] - any_of: typing.List[typing.Type['Schema']] - not_schema: typing.Type['Schema'] - max_length: int - min_length: int - items: typing.Type['Schema'] - - -class Schema: - """ - the base class of all swagger/openapi schemas/models - """ - __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} - _types: typing.Set[typing.Type] - MetaOapg = MetaOapgTyped - - @staticmethod - def __get_valid_classes_phrase(input_classes): - """Returns a string phrase describing what types are allowed""" - all_classes = list(input_classes) - all_classes = sorted(all_classes, key=lambda cls: cls.__name__) - all_class_names = [cls.__name__ for cls in all_classes] - if len(all_class_names) == 1: - return "is {0}".format(all_class_names[0]) - return "is one of [{0}]".format(", ".join(all_class_names)) - - @staticmethod - def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: - if isinstance(item_cls, types.FunctionType): - # referenced schema - return item_cls() - elif isinstance(item_cls, staticmethod): - # referenced schema - return item_cls.__func__() - return item_cls - - @classmethod - def __type_error_message( - cls, var_value=None, var_name=None, valid_classes=None, key_type=None - ): - """ - Keyword Args: - var_value (any): the variable which has the type_error - var_name (str): the name of the variable which has the typ error - valid_classes (tuple): the accepted classes for current_item's - value - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a tuple - """ - key_or_value = "value" - if key_type: - key_or_value = "key" - valid_classes_phrase = cls.__get_valid_classes_phrase(valid_classes) - msg = "Invalid type. Required {1} type {2} and " "passed type was {3}".format( - var_name, - key_or_value, - valid_classes_phrase, - type(var_value).__name__, - ) - return msg - - @classmethod - def __get_type_error(cls, var_value, path_to_item, valid_classes, key_type=False): - error_msg = cls.__type_error_message( - var_name=path_to_item[-1], - var_value=var_value, - valid_classes=valid_classes, - key_type=key_type, - ) - return ApiTypeError( - error_msg, - path_to_item=path_to_item, - valid_classes=valid_classes, - key_type=key_type, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - Schema _validate_oapg - All keyword validation except for type checking was done in calling stack frames - If those validations passed, the validated classes are collected in path_to_schemas - - Returns: - path_to_schemas: a map of path to schemas - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - base_class = type(arg) - if base_class not in cls._types: - base_class = type("str") - # raise cls.__get_type_error( - # arg, - # validation_metadata.path_to_item, - # cls._types, - # key_type=False, - # ) - - path_to_schemas = {validation_metadata.path_to_item: set()} - path_to_schemas[validation_metadata.path_to_item].add(cls) - path_to_schemas[validation_metadata.path_to_item].add(base_class) - return path_to_schemas - - @staticmethod - def _process_schema_classes_oapg( - schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] - ): - """ - Processes and mutates schema_classes - If a SomeSchema is a subclass of DictSchema then remove DictSchema because it is already included - """ - if len(schema_classes) < 2: - return - if len(schema_classes) > 2 and UnsetAnyTypeSchema in schema_classes: - schema_classes.remove(UnsetAnyTypeSchema) - x_schema = schema_type_classes & schema_classes - if not x_schema: - return - x_schema = x_schema.pop() - if any(c is not x_schema and issubclass(c, x_schema) for c in schema_classes): - # needed to not have a mro error in get_new_class - schema_classes.remove(x_schema) - - @classmethod - def __get_new_cls( - cls, - arg, - validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: - """ - Make a new dynamic class and return an instance of that class - We are making an instance of cls, but instead of making cls - make a new class, new_cls - which includes dynamic bases including cls - return an instance of that new class - - Dict property + List Item Assignment Use cases: - 1. value is NOT an instance of the required schema class - the value is validated by _validate_oapg - _validate_oapg returns a key value pair - where the key is the path to the item, and the value will be the required manufactured class - made out of the matching schemas - 2. value is an instance of the the correct schema type - the value is NOT validated by _validate_oapg, _validate_oapg only checks that the instance is of the correct schema type - for this value, _validate_oapg does NOT return an entry for it in _path_to_schemas - and in list/dict _get_items_oapg,_get_properties_oapg the value will be directly assigned - because value is of the correct type, and validation was run earlier when the instance was created - """ - _path_to_schemas = {} - if validation_metadata.validated_path_to_schemas: - update(_path_to_schemas, validation_metadata.validated_path_to_schemas) - if not validation_metadata.validation_ran_earlier(cls): - other_path_to_schemas = cls._validate_oapg(arg, validation_metadata=validation_metadata) - update(_path_to_schemas, other_path_to_schemas) - # loop through it make a new class for each entry - # do not modify the returned result because it is cached and we would be modifying the cached value - path_to_schemas = {} - for path, schema_classes in _path_to_schemas.items(): - """ - Use cases - 1. N number of schema classes + enum + type != bool/None, classes in path_to_schemas: tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - needs Singleton added - 2. N number of schema classes + enum + type == bool/None, classes in path_to_schemas: BoolClass/NoneClass - Singleton already added - 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - """ - cls._process_schema_classes_oapg(schema_classes) - enum_schema = any( - issubclass(this_cls, EnumBase) for this_cls in schema_classes) - inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) - chosen_schema_classes = schema_classes - inheritable_primitive_type - suffix = tuple(inheritable_primitive_type) - if enum_schema and suffix[0] not in {NoneClass, BoolClass}: - suffix = (Singleton,) + suffix - - used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) - path_to_schemas[path] = mfg_cls - - return path_to_schemas - - @classmethod - def _get_new_instance_without_conversion_oapg( - cls, - arg: typing.Any, - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - # We have a Dynamic class and we are making an instance of it - if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): - properties = cls._get_properties_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, properties) - elif issubclass(cls, tuple) and issubclass(cls, ListBase): - items = cls._get_items_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, items) - """ - str = openapi str, date, and datetime - decimal.Decimal = openapi int and float - FileIO = openapi binary type and the user inputs a file - bytes = openapi binary type and the user inputs bytes - """ - return super(Schema, cls).__new__(cls, arg) - - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.Union[ - str, - date, - datetime, - int, - float, - decimal.Decimal, - bool, - None, - 'Schema', - dict, - frozendict.frozendict, - tuple, - list, - io.FileIO, - io.BufferedReader, - bytes - ], - _configuration: typing.Optional[Configuration] - ): - """ - Schema from_openapi_data_oapg - """ - from_server = True - validated_path_to_schemas = {} - arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) - validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) - path_to_schemas = cls.__get_new_cls(arg, validation_metadata) - new_cls = path_to_schemas[validation_metadata.path_to_item] - new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, - validation_metadata.path_to_item, - path_to_schemas - ) - return new_inst - - @staticmethod - def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: - input_dict = {} - if args and isinstance(args[0], (dict, frozendict.frozendict)): - input_dict.update(args[0]) - if kwargs: - input_dict.update(kwargs) - return frozendict.frozendict(input_dict) - - @staticmethod - def __remove_unsets(kwargs): - return {key: val for key, val in kwargs.items() if val is not unset} - - def __new__(cls, *args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): - """ - Schema __new__ - - Args: - args (int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): the value - kwargs (str, int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): dict values - _configuration: contains the Configuration that enables json schema validation keywords - like minItems, minLength etc - - Note: double underscores are used here because pycharm thinks that these variables - are instance properties if they are named normally :( - """ - __kwargs = cls.__remove_unsets(kwargs) - if not args and not __kwargs: - raise TypeError( - 'No input given. args or kwargs must be given.' - ) - if not __kwargs and args and not isinstance(args[0], dict): - __arg = args[0] - else: - __arg = cls.__get_input_dict(*args, **__kwargs) - __from_server = False - __validated_path_to_schemas = {} - __arg = cast_to_allowed_types( - __arg, __from_server, __validated_path_to_schemas) - __validation_metadata = ValidationMetadata( - configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) - __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) - __new_cls = __path_to_schemas[__validation_metadata.path_to_item] - return __new_cls._get_new_instance_without_conversion_oapg( - __arg, - __validation_metadata.path_to_item, - __path_to_schemas - ) - - def __init__( - self, - *args: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset - ] - ): - """ - this is needed to fix 'Unexpected argument' warning in pycharm - this code does nothing because all Schema instances are immutable - this means that all input data is passed into and used in new, and after the new instance is made - no new attributes are assigned and init is not used - """ - pass - -""" -import itertools -data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') -type_to_cls = { - 'None': 'NoneClass', - 'FrozenDict': 'frozendict.frozendict', - 'Tuple': 'tuple', - 'Str': 'str', - 'Decimal': 'decimal.Decimal', - 'Bool': 'BoolClass' -} -cls_tuples = [v for v in itertools.combinations(data_types, 5)] -typed_classes = [f"class {''.join(cls_tuple)}Mixin({', '.join(type_to_cls[typ] for typ in cls_tuple)}):\n pass" for cls_tuple in cls_tuples] -for cls in typed_classes: - print(cls) -object_classes = [f"{''.join(cls_tuple)}Mixin = object" for cls_tuple in cls_tuples] -for cls in object_classes: - print(cls) -""" -if typing.TYPE_CHECKING: - # qty 1 - NoneMixin = NoneClass - FrozenDictMixin = frozendict.frozendict - TupleMixin = tuple - StrMixin = str - DecimalMixin = decimal.Decimal - BoolMixin = BoolClass - BytesMixin = bytes - FileMixin = FileIO - # qty 2 - class BinaryMixin(bytes, FileIO): - pass - class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): - pass - class NoneTupleMixin(NoneClass, tuple): - pass - class NoneStrMixin(NoneClass, str): - pass - class NoneDecimalMixin(NoneClass, decimal.Decimal): - pass - class NoneBoolMixin(NoneClass, BoolClass): - pass - class FrozenDictTupleMixin(frozendict.frozendict, tuple): - pass - class FrozenDictStrMixin(frozendict.frozendict, str): - pass - class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): - pass - class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): - pass - class TupleStrMixin(tuple, str): - pass - class TupleDecimalMixin(tuple, decimal.Decimal): - pass - class TupleBoolMixin(tuple, BoolClass): - pass - class StrDecimalMixin(str, decimal.Decimal): - pass - class StrBoolMixin(str, BoolClass): - pass - class DecimalBoolMixin(decimal.Decimal, BoolClass): - pass - # qty 3 - class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): - pass - class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): - pass - class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): - pass - class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): - pass - class NoneTupleStrMixin(NoneClass, tuple, str): - pass - class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): - pass - class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): - pass - class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): - pass - class NoneStrBoolMixin(NoneClass, str, BoolClass): - pass - class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): - pass - class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): - pass - class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): - pass - class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): - pass - class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): - pass - class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): - pass - class TupleStrDecimalMixin(tuple, str, decimal.Decimal): - pass - class TupleStrBoolMixin(tuple, str, BoolClass): - pass - class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): - pass - class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): - pass - # qty 4 - class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): - pass - class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): - pass - class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): - pass - class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): - pass - class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): - pass - class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): - pass - class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): - pass - class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): - pass - class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): - pass - class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): - pass - class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): - pass - class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): - pass - class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): - pass - class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): - pass - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): - pass - class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): - pass - class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): - pass - class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): - pass - class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): - pass - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): - pass - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): - pass -else: - # qty 1 - class NoneMixin: - _types = {NoneClass} - class FrozenDictMixin: - _types = {frozendict.frozendict} - class TupleMixin: - _types = {tuple} - class StrMixin: - _types = {str} - class DecimalMixin: - _types = {decimal.Decimal} - class BoolMixin: - _types = {BoolClass} - class BytesMixin: - _types = {bytes} - class FileMixin: - _types = {FileIO} - # qty 2 - class BinaryMixin: - _types = {bytes, FileIO} - class NoneFrozenDictMixin: - _types = {NoneClass, frozendict.frozendict} - class NoneTupleMixin: - _types = {NoneClass, tuple} - class NoneStrMixin: - _types = {NoneClass, str} - class NoneDecimalMixin: - _types = {NoneClass, decimal.Decimal} - class NoneBoolMixin: - _types = {NoneClass, BoolClass} - class FrozenDictTupleMixin: - _types = {frozendict.frozendict, tuple} - class FrozenDictStrMixin: - _types = {frozendict.frozendict, str} - class FrozenDictDecimalMixin: - _types = {frozendict.frozendict, decimal.Decimal} - class FrozenDictBoolMixin: - _types = {frozendict.frozendict, BoolClass} - class TupleStrMixin: - _types = {tuple, str} - class TupleDecimalMixin: - _types = {tuple, decimal.Decimal} - class TupleBoolMixin: - _types = {tuple, BoolClass} - class StrDecimalMixin: - _types = {str, decimal.Decimal} - class StrBoolMixin: - _types = {str, BoolClass} - class DecimalBoolMixin: - _types = {decimal.Decimal, BoolClass} - # qty 3 - class NoneFrozenDictTupleMixin: - _types = {NoneClass, frozendict.frozendict, tuple} - class NoneFrozenDictStrMixin: - _types = {NoneClass, frozendict.frozendict, str} - class NoneFrozenDictDecimalMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal} - class NoneFrozenDictBoolMixin: - _types = {NoneClass, frozendict.frozendict, BoolClass} - class NoneTupleStrMixin: - _types = {NoneClass, tuple, str} - class NoneTupleDecimalMixin: - _types = {NoneClass, tuple, decimal.Decimal} - class NoneTupleBoolMixin: - _types = {NoneClass, tuple, BoolClass} - class NoneStrDecimalMixin: - _types = {NoneClass, str, decimal.Decimal} - class NoneStrBoolMixin: - _types = {NoneClass, str, BoolClass} - class NoneDecimalBoolMixin: - _types = {NoneClass, decimal.Decimal, BoolClass} - class FrozenDictTupleStrMixin: - _types = {frozendict.frozendict, tuple, str} - class FrozenDictTupleDecimalMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal} - class FrozenDictTupleBoolMixin: - _types = {frozendict.frozendict, tuple, BoolClass} - class FrozenDictStrDecimalMixin: - _types = {frozendict.frozendict, str, decimal.Decimal} - class FrozenDictStrBoolMixin: - _types = {frozendict.frozendict, str, BoolClass} - class FrozenDictDecimalBoolMixin: - _types = {frozendict.frozendict, decimal.Decimal, BoolClass} - class TupleStrDecimalMixin: - _types = {tuple, str, decimal.Decimal} - class TupleStrBoolMixin: - _types = {tuple, str, BoolClass} - class TupleDecimalBoolMixin: - _types = {tuple, decimal.Decimal, BoolClass} - class StrDecimalBoolMixin: - _types = {str, decimal.Decimal, BoolClass} - # qty 4 - class NoneFrozenDictTupleStrMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str} - class NoneFrozenDictTupleDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} - class NoneFrozenDictTupleBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} - class NoneFrozenDictStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} - class NoneFrozenDictStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, BoolClass} - class NoneFrozenDictDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalMixin: - _types = {NoneClass, tuple, str, decimal.Decimal} - class NoneTupleStrBoolMixin: - _types = {NoneClass, tuple, str, BoolClass} - class NoneTupleDecimalBoolMixin: - _types = {NoneClass, tuple, decimal.Decimal, BoolClass} - class NoneStrDecimalBoolMixin: - _types = {NoneClass, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal} - class FrozenDictTupleStrBoolMixin: - _types = {frozendict.frozendict, tuple, str, BoolClass} - class FrozenDictTupleDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class FrozenDictStrDecimalBoolMixin: - _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} - class TupleStrDecimalBoolMixin: - _types = {tuple, str, decimal.Decimal, BoolClass} - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} - class NoneFrozenDictTupleStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} - class NoneFrozenDictTupleDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class NoneFrozenDictStrDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalBoolMixin: - _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} - - -class ValidatorBase: - @staticmethod - def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): - """Returns true if JSON schema validation is enabled for the specified - validation keyword. This can be used to skip JSON schema structural validation - as requested in the configuration. - Note: the suffix _oapg stands for openapi python (experimental) generator and - it has been added to prevent collisions with other methods and properties - - Args: - schema_keyword (string): the name of a JSON schema validation keyword. - configuration (Configuration): the configuration class. - """ - - return (configuration is None or - not hasattr(configuration, '_disabled_client_side_validations') or - schema_keyword not in configuration._disabled_client_side_validations) - - @staticmethod - def _raise_validation_errror_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): - raise ApiValueError( - "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format( - value=value, - constraint_msg=constraint_msg, - constraint_value=constraint_value, - additional_txt=additional_txt, - path_to_item=path_to_item, - ) - ) - - -class EnumBase: - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - EnumBase _validate_oapg - Validates that arg is in the enum's allowed values - """ - try: - cls.MetaOapg.enum_value_to_name[arg] - except KeyError: - raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class BoolBase: - def is_true_oapg(self) -> bool: - """ - A replacement for x is True - True if the instance is a BoolClass True Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) - - def is_false_oapg(self) -> bool: - """ - A replacement for x is False - True if the instance is a BoolClass False Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) is False - - -class NoneBase: - def is_none_oapg(self) -> bool: - """ - A replacement for x is None - True if the instance is a NoneClass None Singleton - """ - if issubclass(self.__class__, NoneClass): - return True - return False - - -class StrBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_str_oapg(self) -> str: - return self - - @property - def as_date_oapg(self) -> date: - raise Exception('not implemented') - - @property - def as_datetime_oapg(self) -> datetime: - raise Exception('not implemented') - - @property - def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception('not implemented') - - @property - def as_uuid_oapg(self) -> uuid.UUID: - raise Exception('not implemented') - - @classmethod - def __check_str_validations( - cls, - arg: str, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_length') and - len(arg) > cls.MetaOapg.max_length): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="length must be less than or equal to", - constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_length') and - len(arg) < cls.MetaOapg.min_length): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="length must be greater than or equal to", - constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'regex')): - for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get('flags', 0) - if not re.search(regex_dict['pattern'], arg, flags=flags): - if flags != 0: - # Don't print the regex flags if the flags are not - # specified in the OAS document. - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags) - ) - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - StrBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, str): - cls.__check_str_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class UUIDBase: - @property - @functools.lru_cache() - def as_uuid_oapg(self) -> uuid.UUID: - return uuid.UUID(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - uuid.UUID(arg) - return True - except ValueError: - raise ApiValueError( - "Invalid value '{}' for type UUID at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - UUIDBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class CustomIsoparser(isoparser): - - @_takes_ascii - def parse_isodatetime(self, dt_str): - components, pos = self._parse_isodate(dt_str) - if len(dt_str) > pos: - if self._sep is None or dt_str[pos:pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1:]) - else: - raise ValueError('String contains unknown ISO components') - - if len(components) > 3 and components[3] == 24: - components[3] = 0 - return datetime(*components) + timedelta(days=1) - - if len(components) <= 3: - raise ValueError('Value is not a datetime') - - return datetime(*components) - - @_takes_ascii - def parse_isodate(self, datestr): - components, pos = self._parse_isodate(datestr) - - if len(datestr) > pos: - raise ValueError('String contains invalid time components') - - if len(components) > 3: - raise ValueError('String contains invalid time components') - - return date(*components) - - -DEFAULT_ISOPARSER = CustomIsoparser() - - -class DateBase: - @property - @functools.lru_cache() - def as_date_oapg(self) -> date: - return DEFAULT_ISOPARSER.parse_isodate(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodate(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 date format. " - "Invalid value '{}' for type date at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - DateBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DateTimeBase: - @property - @functools.lru_cache() - def as_datetime_oapg(self) -> datetime: - return DEFAULT_ISOPARSER.parse_isodatetime(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodatetime(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 datetime format. " - "Invalid value '{}' for type datetime at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DateTimeBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DecimalBase: - """ - A class for storing decimals that are sent over the wire as strings - These schemas must remain based on StrBase rather than NumberBase - because picking base classes must be deterministic - """ - - @property - @functools.lru_cache() - def as_decimal_oapg(self) -> decimal.Decimal: - return decimal.Decimal(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - decimal.Decimal(arg) - return True - except decimal.InvalidOperation: - raise ApiValueError( - "Value cannot be converted to a decimal. " - "Invalid value '{}' for type decimal at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DecimalBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class NumberBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - """ - Note: for some numbers like 9.0 they could be represented as an - integer but our code chooses to store them as - >>> Decimal('9.0').as_tuple() - DecimalTuple(sign=0, digits=(9, 0), exponent=-1) - so we can tell that the value came from a float and convert it back to a float - during later serialization - """ - if self.as_tuple().exponent < 0: - # this could be represented as an integer but should be represented as a float - # because that's what it was serialized from - raise ApiValueError(f'{self} is not an integer') - self._as_int = int(self) - return self._as_int - - @property - def as_float_oapg(self) -> float: - try: - return self._as_float - except AttributeError: - if self.as_tuple().exponent >= 0: - raise ApiValueError(f'{self} is not an float') - self._as_float = float(self) - return self._as_float - - @classmethod - def __check_numeric_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if cls._is_json_validation_enabled_oapg('multipleOf', - validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): - multiple_of_value = cls.MetaOapg.multiple_of - if (not (float(arg) / multiple_of_value).is_integer()): - # Note 'multipleOf' will be as good as the floating point arithmetic. - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="value must be a multiple of", - constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item - ) - - checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) for validation_key in { - 'exclusive_maximum', - 'inclusive_maximum', - 'exclusive_minimum', - 'inclusive_minimum', - } - ) - if not checking_max_or_min_values: - return - - if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_maximum') and - arg >= cls.MetaOapg.exclusive_maximum): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must be a value less than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_maximum') and - arg > cls.MetaOapg.inclusive_maximum): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must be a value less than or equal to", - constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_minimum') and - arg <= cls.MetaOapg.exclusive_minimum): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must be a value greater than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_minimum') and - arg < cls.MetaOapg.inclusive_minimum): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="must be a value greater than or equal to", - constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - NumberBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, decimal.Decimal): - cls.__check_numeric_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class ListBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @classmethod - def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for items are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - list_items: the input list of items - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - - # if we have definitions for an items schema, use it - # otherwise accept anything - item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) - item_cls = cls._get_class_oapg(item_cls) - path_to_schemas = {} - for i, value in enumerate(list_items): - item_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item+(i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if item_validation_metadata.validation_ran_earlier(item_cls): - continue - other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_tuple_validations( - cls, arg, - validation_metadata: ValidationMetadata): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_items') and - len(arg) > cls.MetaOapg.max_items): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="number of items must be less than or equal to", - constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_items') and - len(arg) < cls.MetaOapg.min_items): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="number of items must be greater than or equal to", - constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): - unique_items = set(arg) - if len(arg) > len(unique_items): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value='unique_items==True', - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - ListBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, tuple): - cls.__check_tuple_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - if not isinstance(arg, tuple): - return _path_to_schemas - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_items_oapg( - cls: 'Schema', - arg: typing.List[typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - ''' - ListBase _get_items_oapg - ''' - cast_items = [] - - for i, value in enumerate(arg): - item_path_to_item = path_to_item + (i,) - item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg( - value, - item_path_to_item, - path_to_schemas - ) - cast_items.append(new_value) - - return cast_items - - -class Discriminable: - MetaOapg: MetaOapgTyped - - @classmethod - def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): - if not args or args and disc_property_name not in args[0]: - # The input data does not contain the discriminator property - raise ApiValueError( - "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) - ) - - @classmethod - def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_value: str): - """ - Used in schemas with discriminators - """ - if not hasattr(cls.MetaOapg, 'discriminator'): - return None - disc = cls.MetaOapg.discriminator() - if disc_property_name not in disc: - return None - discriminated_cls = disc[disc_property_name].get(disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if not hasattr(cls, 'MetaOapg'): - return None - elif not ( - hasattr(cls.MetaOapg, 'all_of') or - hasattr(cls.MetaOapg, 'one_of') or - hasattr(cls.MetaOapg, 'any_of') - ): - return None - # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, 'all_of'): - for allof_cls in cls.MetaOapg.all_of(): - discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, 'one_of'): - for oneof_cls in cls.MetaOapg.one_of(): - discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, 'any_of'): - for anyof_cls in cls.MetaOapg.any_of(): - discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - return None - - -class DictBase(Discriminable, ValidatorBase): - - @classmethod - def __validate_arg_presence(cls, arg): - """ - Ensures that: - - all required arguments are passed in - - the input variable names are valid - - present in properties or - - accepted because additionalProperties exists - Exceptions will be raised if: - - invalid arguments were passed in - - a var_name is invalid if additional_properties == NotAnyTypeSchema - and var_name not in properties.__annotations__ - - required properties were not passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - seen_required_properties = set() - invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, 'required', set()) - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) - for property_name in arg: - if property_name in required_property_names: - seen_required_properties.add(property_name) - elif property_name in property_annotations: - continue - elif additional_properties is not NotAnyTypeSchema: - continue - else: - invalid_arguments.append(property_name) - missing_required_arguments = list(required_property_names - seen_required_properties) - if missing_required_arguments: - missing_required_arguments.sort() - raise ApiTypeError( - "{} is missing {} required argument{}: {}".format( - cls.__name__, - len(missing_required_arguments), - "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments - ) - ) - if invalid_arguments: - invalid_arguments.sort() - raise ApiTypeError( - "{} was passed {} invalid argument{}: {}".format( - cls.__name__, - len(invalid_arguments), - "s" if len(invalid_arguments) > 1 else "", - invalid_arguments - ) - ) - - @classmethod - def __validate_args(cls, arg, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for properties are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) - for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item+(property_name,) - if property_name in property_annotations: - schema = property_annotations[property_name] - elif additional_properties is not NotAnyTypeSchema: - if additional_properties is UnsetAnyTypeSchema: - """ - If additionalProperties is unset and this path_to_item does not yet have - any validations on it, validate it. - If it already has validations on it, skip this validation. - """ - if path_to_item in path_to_schemas: - continue - schema = additional_properties - else: - raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( - value, cls, validation_metadata.path_to_item+(property_name,) - )) - schema = cls._get_class_oapg(schema) - arg_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if arg_validation_metadata.validation_ran_earlier(schema): - continue - other_path_to_schemas = schema._validate_oapg(value, validation_metadata=arg_validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_dict_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_properties') and - len(arg) > cls.MetaOapg.max_properties): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="number of properties must be less than or equal to", - constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_properties') and - len(arg) < cls.MetaOapg.min_properties): - cls._raise_validation_errror_message_oapg( - value=arg, - constraint_msg="number of properties must be greater than or equal to", - constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DictBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, frozendict.frozendict): - cls.__check_dict_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - if not isinstance(arg, frozendict.frozendict): - return _path_to_schemas - cls.__validate_arg_presence(arg) - other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata) - update(_path_to_schemas, other_path_to_schemas) - try: - discriminator = cls.MetaOapg.discriminator() - except AttributeError: - return _path_to_schemas - # discriminator exists - disc_prop_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( - cls.__name__, - disc_prop_name, - list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,) - ) - ) - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if updated_vm.validation_ran_earlier(discriminated_cls): - return _path_to_schemas - other_path_to_schemas = discriminated_cls._validate_oapg(arg, validation_metadata=updated_vm) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_properties_oapg( - cls, - arg: typing.Dict[str, typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - """ - DictBase _get_properties_oapg, this is how properties are set - These values already passed validation - """ - dict_items = {} - - for property_name_js, value in arg.items(): - property_path_to_item = path_to_item + (property_name_js,) - property_cls = path_to_schemas[property_path_to_item] - new_value = property_cls._get_new_instance_without_conversion_oapg( - value, - property_path_to_item, - path_to_schemas - ) - dict_items[property_name_js] = new_value - - return dict_items - - def __setattr__(self, name: str, value: typing.Any): - if not isinstance(self, FileIO): - raise AttributeError('property setting not supported on immutable instances') - - def __getattr__(self, name: str): - """ - for instance.name access - Properties are only type hinted for required properties - so that hasattr(instance, 'optionalProp') is False when that key is not present - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - if name not in self.__class__.__annotations__: - raise AttributeError(f"{self} has no attribute '{name}'") - try: - value = self[name] - return value - except KeyError as ex: - raise AttributeError(str(ex)) - - def __getitem__(self, name: str): - """ - dict_instance[name] accessor - key errors thrown - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - return super().__getitem__(name) - - def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: - # dict_instance[name] accessor - if not isinstance(self, frozendict.frozendict): - raise NotImplementedError() - try: - return super().__getitem__(name) - except KeyError: - return unset - - -def cast_to_allowed_types( - arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], - from_server: bool, - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), -) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: - """ - Casts the input payload arg into the allowed types - The input validated_path_to_schemas is mutated by running this function - - When from_server is False then - - date/datetime is cast to str - - int/float is cast to Decimal - - If a Schema instance is passed in it is converted back to a primitive instance because - One may need to validate that data to the original Schema class AND additional different classes - those additional classes will need to be added to the new manufactured class for that payload - If the code didn't do this and kept the payload as a Schema instance it would fail to validate to other - Schema classes and the code wouldn't be able to mfg a new class that includes all valid schemas - TODO: store the validated schema classes in validation_metadata - - Args: - arg: the payload - from_server: whether this payload came from the server or not - validated_path_to_schemas: a dict that stores the validated classes at any path location in the payload - """ - if isinstance(arg, Schema): - # store the already run validations - schema_classes = set() - source_schema_was_unset = len(arg.__class__.__bases__) == 2 and UnsetAnyTypeSchema in arg.__class__.__bases__ - if not source_schema_was_unset: - """ - Do not include UnsetAnyTypeSchema and its base class because - it did not exist in the original spec schema definition - It was added to ensure that all instances are of type Schema and the allowed base types - """ - for cls in arg.__class__.__bases__: - if cls is Singleton: - # Skip Singleton - continue - schema_classes.add(cls) - validated_path_to_schemas[path_to_item] = schema_classes - - type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") - if isinstance(arg, str): - return str(arg) - elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) - elif isinstance(arg, (bool, BoolClass)): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - if arg: - return BoolClass.TRUE - return BoolClass.FALSE - elif isinstance(arg, int): - return decimal.Decimal(arg) - elif isinstance(arg, float): - decimal_from_float = decimal.Decimal(arg) - if decimal_from_float.as_integer_ratio()[1] == 1: - # 9.0 -> Decimal('9.0') - # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float)+'.0') - return decimal_from_float - elif isinstance(arg, (tuple, list)): - return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) - elif isinstance(arg, (none_type, NoneClass)): - return NoneClass.NONE - elif isinstance(arg, (date, datetime)): - if not from_server: - return arg.isoformat() - raise type_error - elif isinstance(arg, uuid.UUID): - if not from_server: - return str(arg) - raise type_error - elif isinstance(arg, decimal.Decimal): - return decimal.Decimal(arg) - elif isinstance(arg, bytes): - return bytes(arg) - elif isinstance(arg, (io.FileIO, io.BufferedReader)): - return FileIO(arg) - raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) - - -class ComposedBase(Discriminable): - - @classmethod - def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): - path_to_schemas = defaultdict(set) - for allof_cls in cls.MetaOapg.all_of(): - if validation_metadata.validation_ran_earlier(allof_cls): - continue - other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __get_oneof_class( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata, - ): - oneof_classes = [] - path_to_schemas = defaultdict(set) - for oneof_cls in cls.MetaOapg.one_of(): - if oneof_cls in path_to_schemas[validation_metadata.path_to_item]: - oneof_classes.append(oneof_cls) - continue - if validation_metadata.validation_ran_earlier(oneof_cls): - oneof_classes.append(oneof_cls) - continue - try: - path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and oneof_cls is discriminated_cls: - raise ex - continue - oneof_classes.append(oneof_cls) - if not oneof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the oneOf schemas matched the input data.".format(cls) - ) - elif len(oneof_classes) > 1: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. Multiple " - "oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes) - ) - # exactly one class matches - return path_to_schemas - - @classmethod - def __get_anyof_classes( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata - ): - anyof_classes = [] - path_to_schemas = defaultdict(set) - for anyof_cls in cls.MetaOapg.any_of(): - if validation_metadata.validation_ran_earlier(anyof_cls): - anyof_classes.append(anyof_cls) - continue - - try: - other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and anyof_cls is discriminated_cls: - raise ex - continue - anyof_classes.append(anyof_cls) - update(path_to_schemas, other_path_to_schemas) - if not anyof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the anyOf schemas matched the input data.".format(cls) - ) - return path_to_schemas - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - ComposedBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - # validation checking on types, validations, and enums - path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - - # process composed schema - discriminator = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): - discriminator = cls.MetaOapg.discriminator() - discriminated_cls = None - if discriminator and arg and isinstance(arg, frozendict.frozendict): - disc_property_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) - # get discriminated_cls by looking at the dict in the current class - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( - arg[disc_property_name], - cls.__name__, - disc_property_name, - list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,) - ) - ) - - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): - other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): - other_path_to_schemas = cls.__get_oneof_class( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): - other_path_to_schemas = cls.__get_anyof_classes( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - not_cls = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): - not_cls = cls.MetaOapg.not_schema - not_cls = cls._get_class_oapg(not_cls) - if not_cls: - other_path_to_schemas = None - not_exception = ApiValueError( - "Invalid value '{}' was passed in to {}. Value is invalid because it is disallowed by {}".format( - arg, - cls.__name__, - not_cls.__name__, - ) - ) - if updated_vm.validation_ran_earlier(not_cls): - raise not_exception - - try: - other_path_to_schemas = not_cls._validate_oapg(arg, validation_metadata=updated_vm) - except (ApiValueError, ApiTypeError): - pass - if other_path_to_schemas: - raise not_exception - - if discriminated_cls is not None and not updated_vm.validation_ran_earlier(discriminated_cls): - # TODO use an exception from this package here - assert discriminated_cls in path_to_schemas[updated_vm.path_to_item] - return path_to_schemas - - -# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase -class ComposedSchema( - ComposedBase, - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolMixin -): - @classmethod - def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): - if not args: - if not kwargs: - raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) - args = (kwargs, ) - return super().from_openapi_data_oapg(args[0], _configuration=_configuration) - - -class ListSchema( - ListBase, - Schema, - TupleMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class NoneSchema( - NoneBase, - Schema, - NoneMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: None, **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class NumberSchema( - NumberBase, - Schema, - DecimalMixin -): - """ - This is used for type: number with no format - Both integers AND floats are accepted - """ - - @classmethod - def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class IntBase: - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - self._as_int = int(self) - return self._as_int - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - - denominator = arg.as_integer_ratio()[-1] - if denominator != 1: - raise ApiValueError( - "Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - IntBase _validate_oapg - TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class IntSchema(IntBase, NumberSchema): - - @classmethod - def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class Int32Base: - __inclusive_minimum = decimal.Decimal(-2147483648) - __inclusive_maximum = decimal.Decimal(2147483647) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int32 at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int32Schema( - Int32Base, - IntSchema -): - pass - - -class Int64Base: - __inclusive_minimum = decimal.Decimal(-9223372036854775808) - __inclusive_maximum = decimal.Decimal(9223372036854775807) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int64 at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int64Schema( - Int64Base, - IntSchema -): - pass - - -class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type float at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Float32Schema( - Float32Base, - NumberSchema -): - - @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type double at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - -class Float64Schema( - Float64Base, - NumberSchema -): - - @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): - # todo check format - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class StrSchema( - StrBase, - Schema, - StrMixin -): - """ - date + datetime string types must inherit from this class - That is because one can validate a str payload as both: - - type: string (format unset) - - type: string, format: date - """ - - @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class UUIDSchema(UUIDBase, StrSchema): - - def __new__(cls, arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class DateSchema(DateBase, StrSchema): - - def __new__(cls, arg: typing.Union[str, date], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class DateTimeSchema(DateTimeBase, StrSchema): - - def __new__(cls, arg: typing.Union[str, datetime], **kwargs: Configuration): - return super().__new__(cls, arg, **kwargs) - - -class DecimalSchema(DecimalBase, StrSchema): - - def __new__(cls, arg: str, **kwargs: Configuration): - """ - Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads - which can be simple (str) or complex (dicts or lists with nested values) - Because casting is only done once and recursively casts all values prior to validation then for a potential - client side Decimal input if Decimal was accepted as an input in DecimalSchema then one would not know - if one was using it for a StrSchema (where it should be cast to str) or one is using it for NumberSchema - where it should stay as Decimal. - """ - return super().__new__(cls, arg, **kwargs) - - -class BytesSchema( - Schema, - BytesMixin -): - """ - this class will subclass bytes and is immutable - """ - def __new__(cls, arg: bytes, **kwargs: Configuration): - return super(Schema, cls).__new__(cls, arg) - - -class FileSchema( - Schema, - FileMixin -): - """ - This class is NOT immutable - Dynamic classes are built using it for example when AnyType allows in binary data - Al other schema classes ARE immutable - If one wanted to make this immutable one could make this a DictSchema with required properties: - - data = BytesSchema (which would be an immutable bytes based schema) - - file_name = StrSchema - and cast_to_allowed_types would convert bytes and file instances into dicts containing data + file_name - The downside would be that data would be stored in memory which one may not want to do for very large files - - The developer is responsible for closing this file and deleting it - - This class was kept as mutable: - - to allow file reading and writing to disk - - to be able to preserve file name info - """ - - def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader], **kwargs: Configuration): - return super(Schema, cls).__new__(cls, arg) - - -class BinaryBase: - pass - - -class BinarySchema( - ComposedBase, - BinaryBase, - Schema, - BinaryMixin -): - class MetaOapg: - @staticmethod - def one_of(): - return [ - BytesSchema, - FileSchema, - ] - - def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration): - return super().__new__(cls, arg) - - -class BoolSchema( - BoolBase, - Schema, - BoolMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, arg: bool, **kwargs: ValidationMetadata): - return super().__new__(cls, arg, **kwargs) - - -class AnyTypeSchema( - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolFileBytesMixin -): - # Python representation of a schema defined as true or {} - pass - - -class UnsetAnyTypeSchema(AnyTypeSchema): - # Used when additionalProperties/items was not explicitly defined and a defining schema is needed - pass - - -class NotAnyTypeSchema( - ComposedSchema, -): - """ - Python representation of a schema defined as false or {'not': {}} - Does not allow inputs in of AnyType - Note: validations on this class are never run because the code knows that no inputs will ever validate - """ - - class MetaOapg: - not_schema = AnyTypeSchema - - def __new__( - cls, - *args, - _configuration: typing.Optional[Configuration] = None, - ) -> 'NotAnyTypeSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - -class DictSchema( - DictBase, - Schema, - FrozenDictMixin -): - @classmethod - def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, *args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): - return super().__new__(cls, *args, **kwargs) - - -schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema} - - -@functools.lru_cache() -def get_new_class( - class_name: str, - bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] -) -> typing.Type[Schema]: - """ - Returns a new class that is made with the subclass bases - """ - new_cls: typing.Type[Schema] = type(class_name, bases, {}) - return new_cls - - -LOG_CACHE_USAGE = False - - -def log_cache_usage(cache_fn): - if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) diff --git a/bitget-python-sdk-open-api/bitget/utils.py b/bitget-python-sdk-open-api/bitget/utils.py deleted file mode 100644 index 351b5d54..00000000 --- a/bitget-python-sdk-open-api/bitget/utils.py +++ /dev/null @@ -1,14 +0,0 @@ -import hmac -import base64 -import time - -def sign(message, secret_key): - mac = hmac.new(bytes(secret_key, encoding='utf8'), bytes(message, encoding='utf-8'), digestmod='sha256') - d = mac.digest() - return base64.b64encode(d) - -def pre_hash(timestamp, method, request_path, body): - return str(timestamp) + str.upper(method) + request_path + body - -def get_timestamp(): - return int(time.time() * 1000) diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossAccountApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossAccountApi.md deleted file mode 100644 index f6763905..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossAccountApi.md +++ /dev/null @@ -1,1151 +0,0 @@ - -# bitget.apis.tags.margin_cross_account_api.MarginCrossAccountApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_cross_account_assets**](#margin_cross_account_assets) | **get** /api/margin/v1/cross/account/assets | assets -[**margin_cross_account_borrow**](#margin_cross_account_borrow) | **post** /api/margin/v1/cross/account/borrow | borrow -[**margin_cross_account_max_borrowable_amount**](#margin_cross_account_max_borrowable_amount) | **post** /api/margin/v1/cross/account/maxBorrowableAmount | maxBorrowableAmount -[**margin_cross_account_max_transfer_out_amount**](#margin_cross_account_max_transfer_out_amount) | **get** /api/margin/v1/cross/account/maxTransferOutAmount | maxTransferOutAmount -[**margin_cross_account_repay**](#margin_cross_account_repay) | **post** /api/margin/v1/cross/account/repay | repay -[**margin_cross_account_risk_rate**](#margin_cross_account_risk_rate) | **get** /api/margin/v1/cross/account/riskRate | riskRate -[**void**](#void) | **get** /api/margin/v1/cross/account/void | void - -# **margin_cross_account_assets** - -> ApiResponseResultOfListOfMarginCrossAssetsPopulationResult margin_cross_account_assets(coin) - -assets - -Get Assets - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'coin': "USDT", - } - try: - # assets - api_response = api_instance.margin_cross_account_assets( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_assets: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_assets.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_assets.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_assets.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_assets.ApiResponseFor500) | Server Error - -#### margin_cross_account_assets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginCrossAssetsPopulationResult**](../../models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md) | | - - -#### margin_cross_account_assets.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_assets.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_assets.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_account_borrow** - -> ApiResponseResultOfMarginCrossBorrowLimitResult margin_cross_account_borrow(margin_cross_limit_request) - -borrow - -borrow - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginCrossLimitRequest( - borrow_amount="1.0", - coin="USDT", - ) - try: - # borrow - api_response = api_instance.margin_cross_account_borrow( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_borrow: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginCrossLimitRequest**](../../models/MarginCrossLimitRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_borrow.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_borrow.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_borrow.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_borrow.ApiResponseFor500) | Server Error - -#### margin_cross_account_borrow.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossBorrowLimitResult**](../../models/ApiResponseResultOfMarginCrossBorrowLimitResult.md) | | - - -#### margin_cross_account_borrow.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_borrow.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_borrow.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_account_max_borrowable_amount** - -> ApiResponseResultOfMarginCrossMaxBorrowResult margin_cross_account_max_borrowable_amount(margin_cross_max_borrow_request) - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginCrossMaxBorrowRequest( - coin="USDT", - ) - try: - # maxBorrowableAmount - api_response = api_instance.margin_cross_account_max_borrowable_amount( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_max_borrowable_amount: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginCrossMaxBorrowRequest**](../../models/MarginCrossMaxBorrowRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_max_borrowable_amount.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_max_borrowable_amount.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_max_borrowable_amount.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_max_borrowable_amount.ApiResponseFor500) | Server Error - -#### margin_cross_account_max_borrowable_amount.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossMaxBorrowResult**](../../models/ApiResponseResultOfMarginCrossMaxBorrowResult.md) | | - - -#### margin_cross_account_max_borrowable_amount.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_max_borrowable_amount.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_max_borrowable_amount.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_account_max_transfer_out_amount** - -> ApiResponseResultOfMarginCrossAssetsResult margin_cross_account_max_transfer_out_amount(coin) - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'coin': "USDT", - } - try: - # maxTransferOutAmount - api_response = api_instance.margin_cross_account_max_transfer_out_amount( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_max_transfer_out_amount: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_max_transfer_out_amount.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_max_transfer_out_amount.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_max_transfer_out_amount.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_max_transfer_out_amount.ApiResponseFor500) | Server Error - -#### margin_cross_account_max_transfer_out_amount.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossAssetsResult**](../../models/ApiResponseResultOfMarginCrossAssetsResult.md) | | - - -#### margin_cross_account_max_transfer_out_amount.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_max_transfer_out_amount.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_max_transfer_out_amount.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_account_repay** - -> ApiResponseResultOfMarginCrossRepayResult margin_cross_account_repay(margin_cross_repay_request) - -repay - -repay - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginCrossRepayRequest( - coin="USDT", - repay_amount="1.0", - ) - try: - # repay - api_response = api_instance.margin_cross_account_repay( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_repay: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginCrossRepayRequest**](../../models/MarginCrossRepayRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_repay.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_repay.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_repay.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_repay.ApiResponseFor500) | Server Error - -#### margin_cross_account_repay.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossRepayResult**](../../models/ApiResponseResultOfMarginCrossRepayResult.md) | | - - -#### margin_cross_account_repay.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_repay.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_repay.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_account_risk_rate** - -> ApiResponseResultOfMarginCrossAssetsRiskResult margin_cross_account_risk_rate() - -riskRate - -riskRate - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # riskRate - api_response = api_instance.margin_cross_account_risk_rate() - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->margin_cross_account_risk_rate: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_account_risk_rate.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_account_risk_rate.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_account_risk_rate.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_account_risk_rate.ApiResponseFor500) | Server Error - -#### margin_cross_account_risk_rate.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossAssetsRiskResult**](../../models/ApiResponseResultOfMarginCrossAssetsRiskResult.md) | | - - -#### margin_cross_account_risk_rate.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_risk_rate.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_account_risk_rate.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **void** - -> ApiResponseResultOfVoid void() - -void - -empty - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # void - api_response = api_instance.void() - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossAccountApi->void: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#void.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#void.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#void.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#void.ApiResponseFor500) | Server Error - -#### void.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### void.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### void.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### void.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossBorrowApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossBorrowApi.md deleted file mode 100644 index d1747375..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossBorrowApi.md +++ /dev/null @@ -1,239 +0,0 @@ - -# bitget.apis.tags.margin_cross_borrow_api.MarginCrossBorrowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cross_loan_list**](#cross_loan_list) | **get** /api/margin/v1/cross/loan/list | list - -# **cross_loan_list** - -> ApiResponseResultOfMarginLoanInfoResult cross_loan_list(start_time) - -list - -Get Loan List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_borrow_api -from bitget.model.api_response_result_of_margin_loan_info_result import ApiResponseResultOfMarginLoanInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_borrow_api.MarginCrossBorrowApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.cross_loan_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossBorrowApi->cross_loan_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'coin': "USDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'loanId': "loanId_example", - 'pageSize': "10", - 'pageId': "minId", - } - try: - # list - api_response = api_instance.cross_loan_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossBorrowApi->cross_loan_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -loanId | LoanIdSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LoanIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cross_loan_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#cross_loan_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#cross_loan_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#cross_loan_list.ApiResponseFor500) | Server Error - -#### cross_loan_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginLoanInfoResult**](../../models/ApiResponseResultOfMarginLoanInfoResult.md) | | - - -#### cross_loan_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_loan_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_loan_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossFinflowApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossFinflowApi.md deleted file mode 100644 index 09974e72..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossFinflowApi.md +++ /dev/null @@ -1,239 +0,0 @@ - -# bitget.apis.tags.margin_cross_finflow_api.MarginCrossFinflowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cross_fin_list**](#cross_fin_list) | **get** /api/margin/v1/cross/fin/list | list - -# **cross_fin_list** - -> ApiResponseResultOfMarginCrossFinFlowResult cross_fin_list(start_time) - -list - -Get finance flow List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_finflow_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_cross_fin_flow_result import ApiResponseResultOfMarginCrossFinFlowResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_finflow_api.MarginCrossFinflowApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.cross_fin_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossFinflowApi->cross_fin_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'coin': "USDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'marginType': "transfer_in", - 'pageSize': "10", - 'pageId': "minId", - } - try: - # list - api_response = api_instance.cross_fin_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossFinflowApi->cross_fin_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -marginType | MarginTypeSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MarginTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cross_fin_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#cross_fin_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#cross_fin_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#cross_fin_list.ApiResponseFor500) | Server Error - -#### cross_fin_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginCrossFinFlowResult**](../../models/ApiResponseResultOfMarginCrossFinFlowResult.md) | | - - -#### cross_fin_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_fin_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_fin_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossInterestApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossInterestApi.md deleted file mode 100644 index f8cf3e32..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossInterestApi.md +++ /dev/null @@ -1,221 +0,0 @@ - -# bitget.apis.tags.margin_cross_interest_api.MarginCrossInterestApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cross_interest_list**](#cross_interest_list) | **get** /api/margin/v1/cross/interest/list | list - -# **cross_interest_list** - -> ApiResponseResultOfMarginInterestInfoResult cross_interest_list(start_time) - -list - -Get interest List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_interest_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_interest_info_result import ApiResponseResultOfMarginInterestInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_interest_api.MarginCrossInterestApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193138000", - } - try: - # list - api_response = api_instance.cross_interest_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossInterestApi->cross_interest_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'coin': "USDT", - 'startTime': "1678193138000", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.cross_interest_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossInterestApi->cross_interest_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | optional -startTime | StartTimeSchema | | -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cross_interest_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#cross_interest_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#cross_interest_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#cross_interest_list.ApiResponseFor500) | Server Error - -#### cross_interest_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginInterestInfoResult**](../../models/ApiResponseResultOfMarginInterestInfoResult.md) | | - - -#### cross_interest_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_interest_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_interest_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossLiquidationApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossLiquidationApi.md deleted file mode 100644 index ad89a13d..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossLiquidationApi.md +++ /dev/null @@ -1,221 +0,0 @@ - -# bitget.apis.tags.margin_cross_liquidation_api.MarginCrossLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cross_liquidation_list**](#cross_liquidation_list) | **get** /api/margin/v1/cross/liquidation/list | list - -# **cross_liquidation_list** - -> ApiResponseResultOfMarginLiquidationInfoResult cross_liquidation_list(start_time) - -list - -Get liquidation List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_liquidation_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_liquidation_info_result import ApiResponseResultOfMarginLiquidationInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_liquidation_api.MarginCrossLiquidationApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193138000", - } - try: - # list - api_response = api_instance.cross_liquidation_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossLiquidationApi->cross_liquidation_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'startTime': "1678193138000", - 'endTime': "1678193338000", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.cross_liquidation_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossLiquidationApi->cross_liquidation_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cross_liquidation_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#cross_liquidation_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#cross_liquidation_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#cross_liquidation_list.ApiResponseFor500) | Server Error - -#### cross_liquidation_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginLiquidationInfoResult**](../../models/ApiResponseResultOfMarginLiquidationInfoResult.md) | | - - -#### cross_liquidation_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_liquidation_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_liquidation_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossOrderApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossOrderApi.md deleted file mode 100644 index 83bf8d4e..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossOrderApi.md +++ /dev/null @@ -1,1434 +0,0 @@ - -# bitget.apis.tags.margin_cross_order_api.MarginCrossOrderApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_cross_batch_cancel_order**](#margin_cross_batch_cancel_order) | **post** /api/margin/v1/cross/order/batchCancelOrder | batchCancelOrder -[**margin_cross_batch_place_order**](#margin_cross_batch_place_order) | **post** /api/margin/v1/cross/order/batchPlaceOrder | batchPlaceOrder -[**margin_cross_cancel_order**](#margin_cross_cancel_order) | **post** /api/margin/v1/cross/order/cancelOrder | cancelOrder -[**margin_cross_fills**](#margin_cross_fills) | **get** /api/margin/v1/cross/order/fills | fills -[**margin_cross_history_orders**](#margin_cross_history_orders) | **get** /api/margin/v1/cross/order/history | history -[**margin_cross_open_orders**](#margin_cross_open_orders) | **get** /api/margin/v1/cross/order/openOrders | openOrders -[**margin_cross_place_order**](#margin_cross_place_order) | **post** /api/margin/v1/cross/order/placeOrder | placeOrder - -# **margin_cross_batch_cancel_order** - -> ApiResponseResultOfMarginBatchCancelOrderResult margin_cross_batch_cancel_order(margin_batch_cancel_order_request) - -batchCancelOrder - -Margin Cross BatchCancelOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginBatchCancelOrderRequest( - client_oids=[myId001], - order_ids=[34324234234234324], - symbol="BTCUSDT_SPBL", - ) - try: - # batchCancelOrder - api_response = api_instance.margin_cross_batch_cancel_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_batch_cancel_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginBatchCancelOrderRequest**](../../models/MarginBatchCancelOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_batch_cancel_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_batch_cancel_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_batch_cancel_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_batch_cancel_order.ApiResponseFor500) | Server Error - -#### margin_cross_batch_cancel_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchCancelOrderResult**](../../models/ApiResponseResultOfMarginBatchCancelOrderResult.md) | | - - -#### margin_cross_batch_cancel_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_batch_cancel_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_batch_cancel_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_batch_place_order** - -> ApiResponseResultOfMarginBatchPlaceOrderResult margin_cross_batch_place_order(margin_order_request) - -batchPlaceOrder - -Margin Cross PlaceOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginBatchOrdersRequest( - channel_api_code="channel_api_code_example", - ip="ip_example", - order_list=[ - MarginOrderRequest( - base_quantity="0.2", - channel_api_code="channel_api_code_example", - client_oid="myId0001", - ip="ip_example", - loan_type="normal/autoLoan/autoRepay", - order_type="limit/market", - price="21000", - quote_amount="2000", - side="sell/buy", - symbol="BTCUSDT_SPBL", - time_in_force="gtc", - ) - ], - symbol="BTCUSDT_SPBL", - ) - try: - # batchPlaceOrder - api_response = api_instance.margin_cross_batch_place_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_batch_place_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginBatchOrdersRequest**](../../models/MarginBatchOrdersRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_batch_place_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_batch_place_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_batch_place_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_batch_place_order.ApiResponseFor500) | Server Error - -#### margin_cross_batch_place_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](../../models/ApiResponseResultOfMarginBatchPlaceOrderResult.md) | | - - -#### margin_cross_batch_place_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_batch_place_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_batch_place_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_cancel_order** - -> ApiResponseResultOfMarginBatchCancelOrderResult margin_cross_cancel_order(margin_cancel_order_request) - -cancelOrder - -Margin Cross CancelOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginCancelOrderRequest( - client_oid="myId0001", - order_id="324234234234234723647", - symbol="BTCUSDT_SPBL", - ) - try: - # cancelOrder - api_response = api_instance.margin_cross_cancel_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_cancel_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginCancelOrderRequest**](../../models/MarginCancelOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_cancel_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_cancel_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_cancel_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_cancel_order.ApiResponseFor500) | Server Error - -#### margin_cross_cancel_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchCancelOrderResult**](../../models/ApiResponseResultOfMarginBatchCancelOrderResult.md) | | - - -#### margin_cross_cancel_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_cancel_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_cancel_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_fills** - -> ApiResponseResultOfMarginTradeDetailInfoResult margin_cross_fills(symbolstart_time) - -fills - -Margin Cross Fills - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # fills - api_response = api_instance.margin_cross_fills( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_fills: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'source': "API", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'lastFillId': "lastFillId_example", - 'pageSize': "10", - } - try: - # fills - api_response = api_instance.margin_cross_fills( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_fills: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -source | SourceSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -lastFillId | LastFillIdSchema | | optional -pageSize | PageSizeSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SourceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LastFillIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_fills.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_fills.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_fills.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_fills.ApiResponseFor500) | Server Error - -#### margin_cross_fills.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginTradeDetailInfoResult**](../../models/ApiResponseResultOfMarginTradeDetailInfoResult.md) | | - - -#### margin_cross_fills.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_fills.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_fills.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_history_orders** - -> ApiResponseResultOfMarginOpenOrderInfoResult margin_cross_history_orders(symbolstart_time) - -history - -Margin Cross historyOrders - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # history - api_response = api_instance.margin_cross_history_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_history_orders: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'source': "API", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'clientOid': "123456", - 'minId': "minId_example", - 'pageSize': "10", - } - try: - # history - api_response = api_instance.margin_cross_history_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_history_orders: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -source | SourceSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -clientOid | ClientOidSchema | | optional -minId | MinIdSchema | | optional -pageSize | PageSizeSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SourceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ClientOidSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MinIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_history_orders.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_history_orders.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_history_orders.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_history_orders.ApiResponseFor500) | Server Error - -#### margin_cross_history_orders.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginOpenOrderInfoResult**](../../models/ApiResponseResultOfMarginOpenOrderInfoResult.md) | | - - -#### margin_cross_history_orders.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_history_orders.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_history_orders.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_open_orders** - -> ApiResponseResultOfMarginOpenOrderInfoResult margin_cross_open_orders(symbolstart_time) - -openOrders - -Margin Cross openOrders - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # openOrders - api_response = api_instance.margin_cross_open_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_open_orders: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'clientOid': "123456", - 'pageSize': "10", - } - try: - # openOrders - api_response = api_instance.margin_cross_open_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_open_orders: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -clientOid | ClientOidSchema | | optional -pageSize | PageSizeSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ClientOidSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_open_orders.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_open_orders.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_open_orders.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_open_orders.ApiResponseFor500) | Server Error - -#### margin_cross_open_orders.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginOpenOrderInfoResult**](../../models/ApiResponseResultOfMarginOpenOrderInfoResult.md) | | - - -#### margin_cross_open_orders.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_open_orders.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_open_orders.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_place_order** - -> ApiResponseResultOfMarginPlaceOrderResult margin_cross_place_order(margin_order_request) - -placeOrder - -Margin Cross PlaceOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginOrderRequest( - base_quantity="0.2", - channel_api_code="channel_api_code_example", - client_oid="myId0001", - ip="ip_example", - loan_type="normal/autoLoan/autoRepay", - order_type="limit/market", - price="21000", - quote_amount="2000", - side="sell/buy", - symbol="BTCUSDT_SPBL", - time_in_force="gtc", - ) - try: - # placeOrder - api_response = api_instance.margin_cross_place_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossOrderApi->margin_cross_place_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginOrderRequest**](../../models/MarginOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_place_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_place_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_place_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_place_order.ApiResponseFor500) | Server Error - -#### margin_cross_place_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginPlaceOrderResult**](../../models/ApiResponseResultOfMarginPlaceOrderResult.md) | | - - -#### margin_cross_place_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_place_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_place_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossPublicApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossPublicApi.md deleted file mode 100644 index c217fc25..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossPublicApi.md +++ /dev/null @@ -1,276 +0,0 @@ - -# bitget.apis.tags.margin_cross_public_api.MarginCrossPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_cross_public_interest_rate_and_limit**](#margin_cross_public_interest_rate_and_limit) | **get** /api/margin/v1/cross/public/interestRateAndLimit | interestRateAndLimit -[**margin_cross_public_tier_data**](#margin_cross_public_tier_data) | **get** /api/margin/v1/cross/public/tierData | tierData - -# **margin_cross_public_interest_rate_and_limit** - -> ApiResponseResultOfListOfMarginCrossRateAndLimitResult margin_cross_public_interest_rate_and_limit(coin) - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example - -```python -import bitget -from bitget.apis.tags import margin_cross_public_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result import ApiResponseResultOfListOfMarginCrossRateAndLimitResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_public_api.MarginCrossPublicApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'coin': "USDT", - } - try: - # interestRateAndLimit - api_response = api_instance.margin_cross_public_interest_rate_and_limit( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossPublicApi->margin_cross_public_interest_rate_and_limit: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_public_interest_rate_and_limit.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_public_interest_rate_and_limit.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_public_interest_rate_and_limit.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_public_interest_rate_and_limit.ApiResponseFor500) | Server Error - -#### margin_cross_public_interest_rate_and_limit.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginCrossRateAndLimitResult**](../../models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md) | | - - -#### margin_cross_public_interest_rate_and_limit.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_public_interest_rate_and_limit.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_public_interest_rate_and_limit.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_cross_public_tier_data** - -> ApiResponseResultOfListOfMarginCrossLevelResult margin_cross_public_tier_data(coin) - -tierData - -Get TierData - -### Example - -```python -import bitget -from bitget.apis.tags import margin_cross_public_api -from bitget.model.api_response_result_of_list_of_margin_cross_level_result import ApiResponseResultOfListOfMarginCrossLevelResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_public_api.MarginCrossPublicApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'coin': "USDT", - } - try: - # tierData - api_response = api_instance.margin_cross_public_tier_data( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossPublicApi->margin_cross_public_tier_data: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_cross_public_tier_data.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_cross_public_tier_data.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_cross_public_tier_data.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_cross_public_tier_data.ApiResponseFor500) | Server Error - -#### margin_cross_public_tier_data.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginCrossLevelResult**](../../models/ApiResponseResultOfListOfMarginCrossLevelResult.md) | | - - -#### margin_cross_public_tier_data.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_public_tier_data.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_cross_public_tier_data.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossRepayApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossRepayApi.md deleted file mode 100644 index 68f89d11..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginCrossRepayApi.md +++ /dev/null @@ -1,239 +0,0 @@ - -# bitget.apis.tags.margin_cross_repay_api.MarginCrossRepayApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cross_repay_list**](#cross_repay_list) | **get** /api/margin/v1/cross/repay/list | list - -# **cross_repay_list** - -> ApiResponseResultOfMarginRepayInfoResult cross_repay_list(start_time) - -list - -Get liquidation List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_cross_repay_api -from bitget.model.api_response_result_of_margin_repay_info_result import ApiResponseResultOfMarginRepayInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_cross_repay_api.MarginCrossRepayApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.cross_repay_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossRepayApi->cross_repay_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'coin': "USDT", - 'repayId': "32428347234", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'pageSize': "10", - 'pageId': "minId", - } - try: - # list - api_response = api_instance.cross_repay_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginCrossRepayApi->cross_repay_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | optional -repayId | RepayIdSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# RepayIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cross_repay_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#cross_repay_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#cross_repay_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#cross_repay_list.ApiResponseFor500) | Server Error - -#### cross_repay_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginRepayInfoResult**](../../models/ApiResponseResultOfMarginRepayInfoResult.md) | | - - -#### cross_repay_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_repay_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### cross_repay_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedAccountApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedAccountApi.md deleted file mode 100644 index 6e319c77..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedAccountApi.md +++ /dev/null @@ -1,1042 +0,0 @@ - -# bitget.apis.tags.margin_isolated_account_api.MarginIsolatedAccountApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_isolated_account_assets**](#margin_isolated_account_assets) | **get** /api/margin/v1/isolated/account/assets | assets -[**margin_isolated_account_borrow**](#margin_isolated_account_borrow) | **post** /api/margin/v1/isolated/account/borrow | borrow -[**margin_isolated_account_max_borrowable_amount**](#margin_isolated_account_max_borrowable_amount) | **post** /api/margin/v1/isolated/account/maxBorrowableAmount | maxBorrowableAmount -[**margin_isolated_account_max_transfer_out_amount**](#margin_isolated_account_max_transfer_out_amount) | **get** /api/margin/v1/isolated/account/maxTransferOutAmount | maxTransferOutAmount -[**margin_isolated_account_repay**](#margin_isolated_account_repay) | **post** /api/margin/v1/isolated/account/repay | repay -[**margin_isolated_account_risk_rate**](#margin_isolated_account_risk_rate) | **post** /api/margin/v1/isolated/account/riskRate | riskRate - -# **margin_isolated_account_assets** - -> ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult margin_isolated_account_assets(symbol) - -assets - -Get Assets - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result import ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - } - try: - # assets - api_response = api_instance.margin_isolated_account_assets( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_assets: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_assets.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_assets.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_assets.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_assets.ApiResponseFor500) | Server Error - -#### margin_isolated_account_assets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult**](../../models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md) | | - - -#### margin_isolated_account_assets.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_assets.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_assets.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_account_borrow** - -> ApiResponseResultOfMarginIsolatedBorrowLimitResult margin_isolated_account_borrow(margin_isolated_limit_request) - -borrow - -borrow - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_borrow_limit_result import ApiResponseResultOfMarginIsolatedBorrowLimitResult -from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginIsolatedLimitRequest( - borrow_amount="1.0", - coin="USDT", - symbol="USDT", - ) - try: - # borrow - api_response = api_instance.margin_isolated_account_borrow( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_borrow: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginIsolatedLimitRequest**](../../models/MarginIsolatedLimitRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_borrow.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_borrow.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_borrow.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_borrow.ApiResponseFor500) | Server Error - -#### margin_isolated_account_borrow.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedBorrowLimitResult**](../../models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md) | | - - -#### margin_isolated_account_borrow.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_borrow.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_borrow.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_account_max_borrowable_amount** - -> ApiResponseResultOfMarginIsolatedMaxBorrowResult margin_isolated_account_max_borrowable_amount(margin_isolated_max_borrow_request) - -maxBorrowableAmount - -Get MaxBorrowableAmount - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_margin_isolated_max_borrow_result import ApiResponseResultOfMarginIsolatedMaxBorrowResult -from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginIsolatedMaxBorrowRequest( - coin="USDT", - symbol="BTCUSDT", - ) - try: - # maxBorrowableAmount - api_response = api_instance.margin_isolated_account_max_borrowable_amount( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_max_borrowable_amount: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginIsolatedMaxBorrowRequest**](../../models/MarginIsolatedMaxBorrowRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_max_borrowable_amount.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_max_borrowable_amount.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_max_borrowable_amount.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_max_borrowable_amount.ApiResponseFor500) | Server Error - -#### margin_isolated_account_max_borrowable_amount.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedMaxBorrowResult**](../../models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md) | | - - -#### margin_isolated_account_max_borrowable_amount.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_max_borrowable_amount.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_max_borrowable_amount.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_account_max_transfer_out_amount** - -> ApiResponseResultOfMarginIsolatedAssetsResult margin_isolated_account_max_transfer_out_amount(coinsymbol) - -maxTransferOutAmount - -Get Max TransferOutAmount - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_assets_result import ApiResponseResultOfMarginIsolatedAssetsResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'coin': "USDT", - 'symbol': "BTCUSDT", - } - try: - # maxTransferOutAmount - api_response = api_instance.margin_isolated_account_max_transfer_out_amount( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_max_transfer_out_amount: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -coin | CoinSchema | | -symbol | SymbolSchema | | - - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_max_transfer_out_amount.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_max_transfer_out_amount.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_max_transfer_out_amount.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_max_transfer_out_amount.ApiResponseFor500) | Server Error - -#### margin_isolated_account_max_transfer_out_amount.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedAssetsResult**](../../models/ApiResponseResultOfMarginIsolatedAssetsResult.md) | | - - -#### margin_isolated_account_max_transfer_out_amount.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_max_transfer_out_amount.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_max_transfer_out_amount.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_account_repay** - -> ApiResponseResultOfMarginIsolatedRepayResult margin_isolated_account_repay(margin_isolated_repay_request) - -repay - -repay - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest -from bitget.model.api_response_result_of_margin_isolated_repay_result import ApiResponseResultOfMarginIsolatedRepayResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginIsolatedRepayRequest( - coin="USDT", - repay_amount="1.0", - symbol="BTCUSDT", - ) - try: - # repay - api_response = api_instance.margin_isolated_account_repay( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_repay: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginIsolatedRepayRequest**](../../models/MarginIsolatedRepayRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_repay.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_repay.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_repay.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_repay.ApiResponseFor500) | Server Error - -#### margin_isolated_account_repay.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedRepayResult**](../../models/ApiResponseResultOfMarginIsolatedRepayResult.md) | | - - -#### margin_isolated_account_repay.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_repay.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_repay.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_account_risk_rate** - -> ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult margin_isolated_account_risk_rate(margin_isolated_assets_risk_request) - -riskRate - -riskRate - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_account_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result import ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginIsolatedAssetsRiskRequest( - page_num="1", - page_size="100", - symbol="BTCUSDT", - ) - try: - # riskRate - api_response = api_instance.margin_isolated_account_risk_rate( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedAccountApi->margin_isolated_account_risk_rate: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginIsolatedAssetsRiskRequest**](../../models/MarginIsolatedAssetsRiskRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_account_risk_rate.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_account_risk_rate.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_account_risk_rate.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_account_risk_rate.ApiResponseFor500) | Server Error - -#### margin_isolated_account_risk_rate.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult**](../../models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md) | | - - -#### margin_isolated_account_risk_rate.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_risk_rate.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_account_risk_rate.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedBorrowApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedBorrowApi.md deleted file mode 100644 index 8644e6d0..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedBorrowApi.md +++ /dev/null @@ -1,249 +0,0 @@ - -# bitget.apis.tags.margin_isolated_borrow_api.MarginIsolatedBorrowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**isolated_loan_list**](#isolated_loan_list) | **get** /api/margin/v1/isolated/loan/list | list - -# **isolated_loan_list** - -> ApiResponseResultOfMarginIsolatedLoanInfoResult isolated_loan_list(symbolstart_time) - -list - -Get Loan List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_borrow_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_loan_info_result import ApiResponseResultOfMarginIsolatedLoanInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_borrow_api.MarginIsolatedBorrowApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.isolated_loan_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedBorrowApi->isolated_loan_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'coin': "USDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'loanId': "loanId_example", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.isolated_loan_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedBorrowApi->isolated_loan_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -coin | CoinSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -loanId | LoanIdSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LoanIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#isolated_loan_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#isolated_loan_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#isolated_loan_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#isolated_loan_list.ApiResponseFor500) | Server Error - -#### isolated_loan_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedLoanInfoResult**](../../models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md) | | - - -#### isolated_loan_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_loan_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_loan_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedFinflowApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedFinflowApi.md deleted file mode 100644 index 3bbe6ee8..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedFinflowApi.md +++ /dev/null @@ -1,258 +0,0 @@ - -# bitget.apis.tags.margin_isolated_finflow_api.MarginIsolatedFinflowApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**isolated_fin_list**](#isolated_fin_list) | **get** /api/margin/v1/isolated/fin/list | list - -# **isolated_fin_list** - -> ApiResponseResultOfMarginIsolatedFinFlowResult isolated_fin_list(symbolstart_time) - -list - -Get finance flow List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_finflow_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_fin_flow_result import ApiResponseResultOfMarginIsolatedFinFlowResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_finflow_api.MarginIsolatedFinflowApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.isolated_fin_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedFinflowApi->isolated_fin_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'coin': "USDT", - 'marginType': "transfer_in", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'loanId': "loanId_example", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.isolated_fin_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedFinflowApi->isolated_fin_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -coin | CoinSchema | | optional -marginType | MarginTypeSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -loanId | LoanIdSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MarginTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LoanIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#isolated_fin_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#isolated_fin_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#isolated_fin_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#isolated_fin_list.ApiResponseFor500) | Server Error - -#### isolated_fin_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedFinFlowResult**](../../models/ApiResponseResultOfMarginIsolatedFinFlowResult.md) | | - - -#### isolated_fin_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_fin_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_fin_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedInterestApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedInterestApi.md deleted file mode 100644 index 4c9c9110..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedInterestApi.md +++ /dev/null @@ -1,231 +0,0 @@ - -# bitget.apis.tags.margin_isolated_interest_api.MarginIsolatedInterestApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**isolated_interest_list**](#isolated_interest_list) | **get** /api/margin/v1/isolated/interest/list | list - -# **isolated_interest_list** - -> ApiResponseResultOfMarginIsolatedInterestInfoResult isolated_interest_list(symbolstart_time) - -list - -Get interest List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_interest_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_interest_info_result import ApiResponseResultOfMarginIsolatedInterestInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_interest_api.MarginIsolatedInterestApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193138000", - } - try: - # list - api_response = api_instance.isolated_interest_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedInterestApi->isolated_interest_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'coin': "USDT", - 'startTime': "1678193138000", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.isolated_interest_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedInterestApi->isolated_interest_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -coin | CoinSchema | | optional -startTime | StartTimeSchema | | -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#isolated_interest_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#isolated_interest_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#isolated_interest_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#isolated_interest_list.ApiResponseFor500) | Server Error - -#### isolated_interest_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedInterestInfoResult**](../../models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md) | | - - -#### isolated_interest_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_interest_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_interest_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedLiquidationApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedLiquidationApi.md deleted file mode 100644 index 494259de..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedLiquidationApi.md +++ /dev/null @@ -1,231 +0,0 @@ - -# bitget.apis.tags.margin_isolated_liquidation_api.MarginIsolatedLiquidationApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**isolated_liquidation_list**](#isolated_liquidation_list) | **get** /api/margin/v1/isolated/liquidation/list | list - -# **isolated_liquidation_list** - -> ApiResponseResultOfMarginIsolatedLiquidationInfoResult isolated_liquidation_list(symbolstart_time) - -list - -Get liquidation List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_liquidation_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_liquidation_info_result import ApiResponseResultOfMarginIsolatedLiquidationInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_liquidation_api.MarginIsolatedLiquidationApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193138000", - } - try: - # list - api_response = api_instance.isolated_liquidation_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedLiquidationApi->isolated_liquidation_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193138000", - 'endTime': "1678193338000", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.isolated_liquidation_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedLiquidationApi->isolated_liquidation_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#isolated_liquidation_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#isolated_liquidation_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#isolated_liquidation_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#isolated_liquidation_list.ApiResponseFor500) | Server Error - -#### isolated_liquidation_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedLiquidationInfoResult**](../../models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md) | | - - -#### isolated_liquidation_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_liquidation_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolated_liquidation_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedOrderApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedOrderApi.md deleted file mode 100644 index bee3b797..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedOrderApi.md +++ /dev/null @@ -1,1423 +0,0 @@ - -# bitget.apis.tags.margin_isolated_order_api.MarginIsolatedOrderApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_isolated_batch_cancel_order**](#margin_isolated_batch_cancel_order) | **post** /api/margin/v1/isolated/order/batchCancelOrder | batchCancelOrder -[**margin_isolated_batch_place_order**](#margin_isolated_batch_place_order) | **post** /api/margin/v1/isolated/order/batchPlaceOrder | batchPlaceOrder -[**margin_isolated_cancel_order**](#margin_isolated_cancel_order) | **post** /api/margin/v1/isolated/order/cancelOrder | cancelOrder -[**margin_isolated_fills**](#margin_isolated_fills) | **get** /api/margin/v1/isolated/order/fills | fills -[**margin_isolated_history_orders**](#margin_isolated_history_orders) | **get** /api/margin/v1/isolated/order/history | history -[**margin_isolated_open_orders**](#margin_isolated_open_orders) | **get** /api/margin/v1/isolated/order/openOrders | openOrders -[**margin_isolated_place_order**](#margin_isolated_place_order) | **post** /api/margin/v1/isolated/order/placeOrder | placeOrder - -# **margin_isolated_batch_cancel_order** - -> ApiResponseResultOfMarginBatchCancelOrderResult margin_isolated_batch_cancel_order(margin_batch_cancel_order_request) - -batchCancelOrder - -Margin Isolated BatchCancelOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginBatchCancelOrderRequest( - client_oids=[myId001], - order_ids=[34324234234234324], - symbol="BTCUSDT_SPBL", - ) - try: - # batchCancelOrder - api_response = api_instance.margin_isolated_batch_cancel_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_batch_cancel_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginBatchCancelOrderRequest**](../../models/MarginBatchCancelOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_batch_cancel_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_batch_cancel_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_batch_cancel_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_batch_cancel_order.ApiResponseFor500) | Server Error - -#### margin_isolated_batch_cancel_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchCancelOrderResult**](../../models/ApiResponseResultOfMarginBatchCancelOrderResult.md) | | - - -#### margin_isolated_batch_cancel_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_batch_cancel_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_batch_cancel_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_batch_place_order** - -> ApiResponseResultOfMarginBatchPlaceOrderResult margin_isolated_batch_place_order(margin_order_request) - -batchPlaceOrder - -Margin Isolated PlaceOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginBatchOrdersRequest( - channel_api_code="channel_api_code_example", - ip="ip_example", - order_list=[ - MarginOrderRequest( - base_quantity="0.2", - channel_api_code="channel_api_code_example", - client_oid="myId0001", - ip="ip_example", - loan_type="normal/autoLoan/autoRepay", - order_type="limit/market", - price="21000", - quote_amount="2000", - side="sell/buy", - symbol="BTCUSDT_SPBL", - time_in_force="gtc", - ) - ], - symbol="BTCUSDT_SPBL", - ) - try: - # batchPlaceOrder - api_response = api_instance.margin_isolated_batch_place_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_batch_place_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginBatchOrdersRequest**](../../models/MarginBatchOrdersRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_batch_place_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_batch_place_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_batch_place_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_batch_place_order.ApiResponseFor500) | Server Error - -#### margin_isolated_batch_place_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchPlaceOrderResult**](../../models/ApiResponseResultOfMarginBatchPlaceOrderResult.md) | | - - -#### margin_isolated_batch_place_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_batch_place_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_batch_place_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_cancel_order** - -> ApiResponseResultOfMarginBatchCancelOrderResult margin_isolated_cancel_order(margin_cancel_order_request) - -cancelOrder - -Margin Isolated CancelOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginCancelOrderRequest( - client_oid="myId0001", - order_id="324234234234234723647", - symbol="BTCUSDT_SPBL", - ) - try: - # cancelOrder - api_response = api_instance.margin_isolated_cancel_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_cancel_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginCancelOrderRequest**](../../models/MarginCancelOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_cancel_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_cancel_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_cancel_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_cancel_order.ApiResponseFor500) | Server Error - -#### margin_isolated_cancel_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginBatchCancelOrderResult**](../../models/ApiResponseResultOfMarginBatchCancelOrderResult.md) | | - - -#### margin_isolated_cancel_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_cancel_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_cancel_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_fills** - -> ApiResponseResultOfMarginTradeDetailInfoResult margin_isolated_fills(start_time) - -fills - -Margin Isolated Fills - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # fills - api_response = api_instance.margin_isolated_fills( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_fills: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'lastFillId': "lastFillId_example", - 'pageSize': "10", - } - try: - # fills - api_response = api_instance.margin_isolated_fills( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_fills: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -lastFillId | LastFillIdSchema | | optional -pageSize | PageSizeSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LastFillIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_fills.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_fills.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_fills.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_fills.ApiResponseFor500) | Server Error - -#### margin_isolated_fills.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginTradeDetailInfoResult**](../../models/ApiResponseResultOfMarginTradeDetailInfoResult.md) | | - - -#### margin_isolated_fills.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_fills.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_fills.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_history_orders** - -> ApiResponseResultOfMarginOpenOrderInfoResult margin_isolated_history_orders(start_time) - -history - -Margin Isolated historyOrders - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # history - api_response = api_instance.margin_isolated_history_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_history_orders: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'source': "API", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'clientOid': "123456", - 'pageSize': "10", - 'minId': "minId_example", - } - try: - # history - api_response = api_instance.margin_isolated_history_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_history_orders: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | optional -source | SourceSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -clientOid | ClientOidSchema | | optional -pageSize | PageSizeSchema | | optional -minId | MinIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SourceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ClientOidSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MinIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_history_orders.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_history_orders.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_history_orders.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_history_orders.ApiResponseFor500) | Server Error - -#### margin_isolated_history_orders.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginOpenOrderInfoResult**](../../models/ApiResponseResultOfMarginOpenOrderInfoResult.md) | | - - -#### margin_isolated_history_orders.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_history_orders.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_history_orders.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_open_orders** - -> ApiResponseResultOfMarginOpenOrderInfoResult margin_isolated_open_orders(symbolstart_time) - -openOrders - -Margin Isolated openOrders - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # openOrders - api_response = api_instance.margin_isolated_open_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_open_orders: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'orderId': "32428347234", - 'clientOid': "123456", - 'pageSize': "10", - } - try: - # openOrders - api_response = api_instance.margin_isolated_open_orders( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_open_orders: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -orderId | OrderIdSchema | | optional -clientOid | ClientOidSchema | | optional -pageSize | PageSizeSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ClientOidSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_open_orders.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_open_orders.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_open_orders.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_open_orders.ApiResponseFor500) | Server Error - -#### margin_isolated_open_orders.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginOpenOrderInfoResult**](../../models/ApiResponseResultOfMarginOpenOrderInfoResult.md) | | - - -#### margin_isolated_open_orders.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_open_orders.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_open_orders.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_place_order** - -> ApiResponseResultOfMarginPlaceOrderResult margin_isolated_place_order(margin_order_request) - -placeOrder - -Margin Isolated PlaceOrder - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_order_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.margin_order_request import MarginOrderRequest -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - - # example passing only required values which don't have defaults set - body = MarginOrderRequest( - base_quantity="0.2", - channel_api_code="channel_api_code_example", - client_oid="myId0001", - ip="ip_example", - loan_type="normal/autoLoan/autoRepay", - order_type="limit/market", - price="21000", - quote_amount="2000", - side="sell/buy", - symbol="BTCUSDT_SPBL", - time_in_force="gtc", - ) - try: - # placeOrder - api_response = api_instance.margin_isolated_place_order( - body=body, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedOrderApi->margin_isolated_place_order: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**MarginOrderRequest**](../../models/MarginOrderRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_place_order.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_place_order.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_place_order.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_place_order.ApiResponseFor500) | Server Error - -#### margin_isolated_place_order.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginPlaceOrderResult**](../../models/ApiResponseResultOfMarginPlaceOrderResult.md) | | - - -#### margin_isolated_place_order.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_place_order.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_place_order.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedPublicApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedPublicApi.md deleted file mode 100644 index 481eacd3..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedPublicApi.md +++ /dev/null @@ -1,276 +0,0 @@ - -# bitget.apis.tags.margin_isolated_public_api.MarginIsolatedPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_isolated_public_interest_rate_and_limit**](#margin_isolated_public_interest_rate_and_limit) | **get** /api/margin/v1/isolated/public/interestRateAndLimit | interestRateAndLimit -[**margin_isolated_public_tier_data**](#margin_isolated_public_tier_data) | **get** /api/margin/v1/isolated/public/tierData | tierData - -# **margin_isolated_public_interest_rate_and_limit** - -> ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult margin_isolated_public_interest_rate_and_limit(symbol) - -interestRateAndLimit - -Get InterestRateAndLimit - -### Example - -```python -import bitget -from bitget.apis.tags import margin_isolated_public_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result import ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_public_api.MarginIsolatedPublicApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - } - try: - # interestRateAndLimit - api_response = api_instance.margin_isolated_public_interest_rate_and_limit( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedPublicApi->margin_isolated_public_interest_rate_and_limit: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_public_interest_rate_and_limit.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_public_interest_rate_and_limit.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_public_interest_rate_and_limit.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_public_interest_rate_and_limit.ApiResponseFor500) | Server Error - -#### margin_isolated_public_interest_rate_and_limit.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult**](../../models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md) | | - - -#### margin_isolated_public_interest_rate_and_limit.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_public_interest_rate_and_limit.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_public_interest_rate_and_limit.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **margin_isolated_public_tier_data** - -> ApiResponseResultOfListOfMarginIsolatedLevelResult margin_isolated_public_tier_data(symbol) - -tierData - -Get TierData - -### Example - -```python -import bitget -from bitget.apis.tags import margin_isolated_public_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_isolated_level_result import ApiResponseResultOfListOfMarginIsolatedLevelResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_public_api.MarginIsolatedPublicApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - } - try: - # tierData - api_response = api_instance.margin_isolated_public_tier_data( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedPublicApi->margin_isolated_public_tier_data: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_isolated_public_tier_data.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_isolated_public_tier_data.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_isolated_public_tier_data.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_isolated_public_tier_data.ApiResponseFor500) | Server Error - -#### margin_isolated_public_tier_data.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginIsolatedLevelResult**](../../models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md) | | - - -#### margin_isolated_public_tier_data.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_public_tier_data.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_isolated_public_tier_data.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedRepayApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedRepayApi.md deleted file mode 100644 index c8127330..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginIsolatedRepayApi.md +++ /dev/null @@ -1,249 +0,0 @@ - -# bitget.apis.tags.margin_isolated_repay_api.MarginIsolatedRepayApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**isolate_repay_list**](#isolate_repay_list) | **get** /api/margin/v1/isolated/repay/list | list - -# **isolate_repay_list** - -> ApiResponseResultOfMarginIsolatedRepayInfoResult isolate_repay_list(symbolstart_time) - -list - -Get liquidation List - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import margin_isolated_repay_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_margin_isolated_repay_info_result import ApiResponseResultOfMarginIsolatedRepayInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_isolated_repay_api.MarginIsolatedRepayApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'symbol': "BTCUSDT", - 'startTime': "1678193338000", - } - try: - # list - api_response = api_instance.isolate_repay_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedRepayApi->isolate_repay_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'symbol': "BTCUSDT", - 'coin': "USDT", - 'repayId': "repayId_example", - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'pageSize': "10", - 'pageId': "pageId_example", - } - try: - # list - api_response = api_instance.isolate_repay_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginIsolatedRepayApi->isolate_repay_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -symbol | SymbolSchema | | -coin | CoinSchema | | optional -repayId | RepayIdSchema | | optional -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -pageSize | PageSizeSchema | | optional -pageId | PageIdSchema | | optional - - -# SymbolSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# RepayIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#isolate_repay_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#isolate_repay_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#isolate_repay_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#isolate_repay_list.ApiResponseFor500) | Server Error - -#### isolate_repay_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMarginIsolatedRepayInfoResult**](../../models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md) | | - - -#### isolate_repay_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolate_repay_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### isolate_repay_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/MarginPublicApi.md b/bitget-python-sdk-open-api/docs/apis/tags/MarginPublicApi.md deleted file mode 100644 index 11e6efe3..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/MarginPublicApi.md +++ /dev/null @@ -1,115 +0,0 @@ - -# bitget.apis.tags.margin_public_api.MarginPublicApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**margin_public_currencies**](#margin_public_currencies) | **get** /api/margin/v1/public/currencies | currencies - -# **margin_public_currencies** - -> ApiResponseResultOfListOfMarginSystemResult margin_public_currencies() - -currencies - -Get Currencies - -### Example - -```python -import bitget -from bitget.apis.tags import margin_public_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_list_of_margin_system_result import ApiResponseResultOfListOfMarginSystemResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = margin_public_api.MarginPublicApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # currencies - api_response = api_instance.margin_public_currencies() - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling MarginPublicApi->margin_public_currencies: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#margin_public_currencies.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#margin_public_currencies.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#margin_public_currencies.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#margin_public_currencies.ApiResponseFor500) | Server Error - -#### margin_public_currencies.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfListOfMarginSystemResult**](../../models/ApiResponseResultOfListOfMarginSystemResult.md) | | - - -#### margin_public_currencies.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_public_currencies.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### margin_public_currencies.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/apis/tags/P2pMerchantApi.md b/bitget-python-sdk-open-api/docs/apis/tags/P2pMerchantApi.md deleted file mode 100644 index f76dd631..00000000 --- a/bitget-python-sdk-open-api/docs/apis/tags/P2pMerchantApi.md +++ /dev/null @@ -1,906 +0,0 @@ - -# bitget.apis.tags.p2p_merchant_api.P2pMerchantApi - -All URIs are relative to *https://api.bitget.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**merchant_adv_list**](#merchant_adv_list) | **get** /api/p2p/v1/merchant/advList | advList -[**merchant_info**](#merchant_info) | **get** /api/p2p/v1/merchant/merchantInfo | merchantInfo -[**merchant_list**](#merchant_list) | **get** /api/p2p/v1/merchant/merchantList | merchantList -[**merchant_order_list**](#merchant_order_list) | **get** /api/p2p/v1/merchant/orderList | orderList - -# **merchant_adv_list** - -> ApiResponseResultOfMerchantAdvResult merchant_adv_list(start_time) - -advList - -P2P merchant adv info - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import p2p_merchant_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_adv_result import ApiResponseResultOfMerchantAdvResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = p2p_merchant_api.P2pMerchantApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # advList - api_response = api_instance.merchant_adv_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_adv_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'status': "upper", - 'type': "sell", - 'advNo': "1678193338000", - 'coin': "USDT", - 'languageType': "en-US", - 'fiat': "USD", - 'lastMinId': "43534", - 'pageSize': "10", - 'orderBy': "createTime", - } - try: - # advList - api_response = api_instance.merchant_adv_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_adv_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -status | StatusSchema | | optional -type | TypeSchema | | optional -advNo | AdvNoSchema | | optional -coin | CoinSchema | | optional -languageType | LanguageTypeSchema | | optional -fiat | FiatSchema | | optional -lastMinId | LastMinIdSchema | | optional -pageSize | PageSizeSchema | | optional -orderBy | OrderBySchema | | optional - - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StatusSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# TypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AdvNoSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LanguageTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# FiatSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LastMinIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderBySchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#merchant_adv_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#merchant_adv_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#merchant_adv_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#merchant_adv_list.ApiResponseFor500) | Server Error - -#### merchant_adv_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMerchantAdvResult**](../../models/ApiResponseResultOfMerchantAdvResult.md) | | - - -#### merchant_adv_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_adv_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_adv_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **merchant_info** - -> ApiResponseResultOfMerchantPersonInfo merchant_info() - -merchantInfo - -P2P merchant info self - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import p2p_merchant_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_person_info import ApiResponseResultOfMerchantPersonInfo -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = p2p_merchant_api.P2pMerchantApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # merchantInfo - api_response = api_instance.merchant_info() - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_info: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#merchant_info.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#merchant_info.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#merchant_info.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#merchant_info.ApiResponseFor500) | Server Error - -#### merchant_info.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMerchantPersonInfo**](../../models/ApiResponseResultOfMerchantPersonInfo.md) | | - - -#### merchant_info.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_info.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_info.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **merchant_list** - -> ApiResponseResultOfMerchantInfoResult merchant_list() - -merchantList - -P2P merchant list - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import p2p_merchant_api -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget.model.api_response_result_of_merchant_info_result import ApiResponseResultOfMerchantInfoResult -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = p2p_merchant_api.P2pMerchantApi(api_client) - - # example passing only optional values - query_params = { - 'online': "yes", - 'merchantId': "4534534534", - 'lastMinId': "1678193338000", - 'pageSize': "10", - } - try: - # merchantList - api_response = api_instance.merchant_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -online | OnlineSchema | | optional -merchantId | MerchantIdSchema | | optional -lastMinId | LastMinIdSchema | | optional -pageSize | PageSizeSchema | | optional - - -# OnlineSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MerchantIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LastMinIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#merchant_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#merchant_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#merchant_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#merchant_list.ApiResponseFor500) | Server Error - -#### merchant_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMerchantInfoResult**](../../models/ApiResponseResultOfMerchantInfoResult.md) | | - - -#### merchant_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **merchant_order_list** - -> ApiResponseResultOfMerchantOrderResult merchant_order_list(start_time) - -orderList - -P2P merchant order info - -### Example - -* Api Key Authentication (ACCESS_KEY): -* Api Key Authentication (ACCESS_PASSPHRASE): -* Api Key Authentication (ACCESS_SIGN): -* Api Key Authentication (ACCESS_TIMESTAMP): -* Api Key Authentication (SECRET_KEY): -```python -import bitget -from bitget.apis.tags import p2p_merchant_api -from bitget.model.api_response_result_of_merchant_order_result import ApiResponseResultOfMerchantOrderResult -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from pprint import pprint -# Defining the host is optional and defaults to https://api.bitget.com -# See configuration.py for a list of all supported configuration parameters. -configuration = bitget.Configuration( - host = "https://api.bitget.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: ACCESS_KEY -configuration.api_key['ACCESS_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_KEY'] = 'Bearer' - -# Configure API key authorization: ACCESS_PASSPHRASE -configuration.api_key['ACCESS_PASSPHRASE'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_PASSPHRASE'] = 'Bearer' - -# Configure API key authorization: ACCESS_SIGN -configuration.api_key['ACCESS_SIGN'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_SIGN'] = 'Bearer' - -# Configure API key authorization: ACCESS_TIMESTAMP -configuration.api_key['ACCESS_TIMESTAMP'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['ACCESS_TIMESTAMP'] = 'Bearer' - -# Configure API key authorization: SECRET_KEY -configuration.api_key['SECRET_KEY'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['SECRET_KEY'] = 'Bearer' -# Enter a context with an instance of the API client -with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = p2p_merchant_api.P2pMerchantApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'startTime': "1678193338000", - } - try: - # orderList - api_response = api_instance.merchant_order_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_order_list: %s\n" % e) - - # example passing only optional values - query_params = { - 'startTime': "1678193338000", - 'endTime': "1678193338000", - 'status': "wait_pay", - 'type': "sell", - 'advNo': "1678193338000", - 'orderNo': "23842478324723423", - 'coin': "USDT", - 'languageType': "en-US", - 'fiat': "USD", - 'lastMinId': "43534", - 'pageSize': "10", - } - try: - # orderList - api_response = api_instance.merchant_order_list( - query_params=query_params, - ) - pprint(api_response) - except bitget.ApiException as e: - print("Exception when calling P2pMerchantApi->merchant_order_list: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -startTime | StartTimeSchema | | -endTime | EndTimeSchema | | optional -status | StatusSchema | | optional -type | TypeSchema | | optional -advNo | AdvNoSchema | | optional -orderNo | OrderNoSchema | | optional -coin | CoinSchema | | optional -languageType | LanguageTypeSchema | | optional -fiat | FiatSchema | | optional -lastMinId | LastMinIdSchema | | optional -pageSize | PageSizeSchema | | optional - - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StatusSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# TypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AdvNoSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderNoSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CoinSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LanguageTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# FiatSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LastMinIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#merchant_order_list.ApiResponseFor200) | OK -400 | [ApiResponseFor400](#merchant_order_list.ApiResponseFor400) | Bad Request -429 | [ApiResponseFor429](#merchant_order_list.ApiResponseFor429) | Gateway Frequency Limit -500 | [ApiResponseFor500](#merchant_order_list.ApiResponseFor500) | Server Error - -#### merchant_order_list.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfMerchantOrderResult**](../../models/ApiResponseResultOfMerchantOrderResult.md) | | - - -#### merchant_order_list.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_order_list.ApiResponseFor429 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor429ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor429ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -#### merchant_order_list.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ApiResponseResultOfVoid**](../../models/ApiResponseResultOfVoid.md) | | - - -### Authorization - -[ACCESS_KEY](../../../README.md#ACCESS_KEY), [ACCESS_PASSPHRASE](../../../README.md#ACCESS_PASSPHRASE), [ACCESS_SIGN](../../../README.md#ACCESS_SIGN), [ACCESS_TIMESTAMP](../../../README.md#ACCESS_TIMESTAMP), [SECRET_KEY](../../../README.md#SECRET_KEY) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md deleted file mode 100644 index c2878abd..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result.ApiResponseResultOfListOfMarginCrossAssetsPopulationResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCrossAssetsPopulationResult**](MarginCrossAssetsPopulationResult.md) | [**MarginCrossAssetsPopulationResult**](MarginCrossAssetsPopulationResult.md) | [**MarginCrossAssetsPopulationResult**](MarginCrossAssetsPopulationResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossLevelResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossLevelResult.md deleted file mode 100644 index fbc431a4..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossLevelResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_cross_level_result.ApiResponseResultOfListOfMarginCrossLevelResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCrossLevelResult**](MarginCrossLevelResult.md) | [**MarginCrossLevelResult**](MarginCrossLevelResult.md) | [**MarginCrossLevelResult**](MarginCrossLevelResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md deleted file mode 100644 index 4685f69b..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result.ApiResponseResultOfListOfMarginCrossRateAndLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCrossRateAndLimitResult**](MarginCrossRateAndLimitResult.md) | [**MarginCrossRateAndLimitResult**](MarginCrossRateAndLimitResult.md) | [**MarginCrossRateAndLimitResult**](MarginCrossRateAndLimitResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index 33c9fcd4..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result.ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedAssetsPopulationResult**](MarginIsolatedAssetsPopulationResult.md) | [**MarginIsolatedAssetsPopulationResult**](MarginIsolatedAssetsPopulationResult.md) | [**MarginIsolatedAssetsPopulationResult**](MarginIsolatedAssetsPopulationResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md deleted file mode 100644 index 32483388..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result.ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedAssetsRiskResult**](MarginIsolatedAssetsRiskResult.md) | [**MarginIsolatedAssetsRiskResult**](MarginIsolatedAssetsRiskResult.md) | [**MarginIsolatedAssetsRiskResult**](MarginIsolatedAssetsRiskResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md deleted file mode 100644 index efcdf321..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedLevelResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_isolated_level_result.ApiResponseResultOfListOfMarginIsolatedLevelResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedLevelResult**](MarginIsolatedLevelResult.md) | [**MarginIsolatedLevelResult**](MarginIsolatedLevelResult.md) | [**MarginIsolatedLevelResult**](MarginIsolatedLevelResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md deleted file mode 100644 index 73793dd8..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result.ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedRateAndLimitResult**](MarginIsolatedRateAndLimitResult.md) | [**MarginIsolatedRateAndLimitResult**](MarginIsolatedRateAndLimitResult.md) | [**MarginIsolatedRateAndLimitResult**](MarginIsolatedRateAndLimitResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginSystemResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginSystemResult.md deleted file mode 100644 index 7c60611b..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfListOfMarginSystemResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.api_response_result_of_list_of_margin_system_result.ApiResponseResultOfListOfMarginSystemResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**[data](#data)** | list, tuple, | tuple, | data | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginSystemResult**](MarginSystemResult.md) | [**MarginSystemResult**](MarginSystemResult.md) | [**MarginSystemResult**](MarginSystemResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchCancelOrderResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchCancelOrderResult.md deleted file mode 100644 index 12c41d4b..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchCancelOrderResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_batch_cancel_order_result.ApiResponseResultOfMarginBatchCancelOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginBatchCancelOrderResult**](MarginBatchCancelOrderResult.md) | [**MarginBatchCancelOrderResult**](MarginBatchCancelOrderResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchPlaceOrderResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchPlaceOrderResult.md deleted file mode 100644 index ee54a620..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_batch_place_order_result.ApiResponseResultOfMarginBatchPlaceOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginBatchPlaceOrderResult**](MarginBatchPlaceOrderResult.md) | [**MarginBatchPlaceOrderResult**](MarginBatchPlaceOrderResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsResult.md deleted file mode 100644 index 1cf4fa16..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_assets_result.ApiResponseResultOfMarginCrossAssetsResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossAssetsResult**](MarginCrossAssetsResult.md) | [**MarginCrossAssetsResult**](MarginCrossAssetsResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsRiskResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsRiskResult.md deleted file mode 100644 index 9ed2cc79..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_assets_risk_result.ApiResponseResultOfMarginCrossAssetsRiskResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossAssetsRiskResult**](MarginCrossAssetsRiskResult.md) | [**MarginCrossAssetsRiskResult**](MarginCrossAssetsRiskResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossBorrowLimitResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossBorrowLimitResult.md deleted file mode 100644 index 9f69d1a5..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_borrow_limit_result.ApiResponseResultOfMarginCrossBorrowLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossBorrowLimitResult**](MarginCrossBorrowLimitResult.md) | [**MarginCrossBorrowLimitResult**](MarginCrossBorrowLimitResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossFinFlowResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossFinFlowResult.md deleted file mode 100644 index 3d58a7d4..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossFinFlowResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_fin_flow_result.ApiResponseResultOfMarginCrossFinFlowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossFinFlowResult**](MarginCrossFinFlowResult.md) | [**MarginCrossFinFlowResult**](MarginCrossFinFlowResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossMaxBorrowResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossMaxBorrowResult.md deleted file mode 100644 index 78d725ef..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_max_borrow_result.ApiResponseResultOfMarginCrossMaxBorrowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossMaxBorrowResult**](MarginCrossMaxBorrowResult.md) | [**MarginCrossMaxBorrowResult**](MarginCrossMaxBorrowResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossRepayResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossRepayResult.md deleted file mode 100644 index 52b750fc..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginCrossRepayResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_cross_repay_result.ApiResponseResultOfMarginCrossRepayResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginCrossRepayResult**](MarginCrossRepayResult.md) | [**MarginCrossRepayResult**](MarginCrossRepayResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginInterestInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginInterestInfoResult.md deleted file mode 100644 index 94b177ab..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginInterestInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_interest_info_result.ApiResponseResultOfMarginInterestInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginInterestInfoResult**](MarginInterestInfoResult.md) | [**MarginInterestInfoResult**](MarginInterestInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedAssetsResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedAssetsResult.md deleted file mode 100644 index 9035678b..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedAssetsResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_assets_result.ApiResponseResultOfMarginIsolatedAssetsResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedAssetsResult**](MarginIsolatedAssetsResult.md) | [**MarginIsolatedAssetsResult**](MarginIsolatedAssetsResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 73cc39ae..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_borrow_limit_result.ApiResponseResultOfMarginIsolatedBorrowLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedBorrowLimitResult**](MarginIsolatedBorrowLimitResult.md) | [**MarginIsolatedBorrowLimitResult**](MarginIsolatedBorrowLimitResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedFinFlowResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedFinFlowResult.md deleted file mode 100644 index 9052f92b..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_fin_flow_result.ApiResponseResultOfMarginIsolatedFinFlowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedFinFlowResult**](MarginIsolatedFinFlowResult.md) | [**MarginIsolatedFinFlowResult**](MarginIsolatedFinFlowResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md deleted file mode 100644 index b789e912..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_interest_info_result.ApiResponseResultOfMarginIsolatedInterestInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedInterestInfoResult**](MarginIsolatedInterestInfoResult.md) | [**MarginIsolatedInterestInfoResult**](MarginIsolatedInterestInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index f5035401..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_liquidation_info_result.ApiResponseResultOfMarginIsolatedLiquidationInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedLiquidationInfoResult**](MarginIsolatedLiquidationInfoResult.md) | [**MarginIsolatedLiquidationInfoResult**](MarginIsolatedLiquidationInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md deleted file mode 100644 index d8218224..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_loan_info_result.ApiResponseResultOfMarginIsolatedLoanInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedLoanInfoResult**](MarginIsolatedLoanInfoResult.md) | [**MarginIsolatedLoanInfoResult**](MarginIsolatedLoanInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 4160b1d5..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_max_borrow_result.ApiResponseResultOfMarginIsolatedMaxBorrowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedMaxBorrowResult**](MarginIsolatedMaxBorrowResult.md) | [**MarginIsolatedMaxBorrowResult**](MarginIsolatedMaxBorrowResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md deleted file mode 100644 index d1b71bc7..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_repay_info_result.ApiResponseResultOfMarginIsolatedRepayInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedRepayInfoResult**](MarginIsolatedRepayInfoResult.md) | [**MarginIsolatedRepayInfoResult**](MarginIsolatedRepayInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayResult.md deleted file mode 100644 index 64508904..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginIsolatedRepayResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_isolated_repay_result.ApiResponseResultOfMarginIsolatedRepayResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginIsolatedRepayResult**](MarginIsolatedRepayResult.md) | [**MarginIsolatedRepayResult**](MarginIsolatedRepayResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLiquidationInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLiquidationInfoResult.md deleted file mode 100644 index 820768ae..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLiquidationInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_liquidation_info_result.ApiResponseResultOfMarginLiquidationInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginLiquidationInfoResult**](MarginLiquidationInfoResult.md) | [**MarginLiquidationInfoResult**](MarginLiquidationInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLoanInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLoanInfoResult.md deleted file mode 100644 index a60b9e53..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginLoanInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_loan_info_result.ApiResponseResultOfMarginLoanInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginLoanInfoResult**](MarginLoanInfoResult.md) | [**MarginLoanInfoResult**](MarginLoanInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginOpenOrderInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginOpenOrderInfoResult.md deleted file mode 100644 index eb04c662..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginOpenOrderInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_open_order_info_result.ApiResponseResultOfMarginOpenOrderInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginOpenOrderInfoResult**](MarginOpenOrderInfoResult.md) | [**MarginOpenOrderInfoResult**](MarginOpenOrderInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginPlaceOrderResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginPlaceOrderResult.md deleted file mode 100644 index dbbc712f..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginPlaceOrderResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_place_order_result.ApiResponseResultOfMarginPlaceOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginPlaceOrderResult**](MarginPlaceOrderResult.md) | [**MarginPlaceOrderResult**](MarginPlaceOrderResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginRepayInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginRepayInfoResult.md deleted file mode 100644 index 995a6d56..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginRepayInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_repay_info_result.ApiResponseResultOfMarginRepayInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginRepayInfoResult**](MarginRepayInfoResult.md) | [**MarginRepayInfoResult**](MarginRepayInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginTradeDetailInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginTradeDetailInfoResult.md deleted file mode 100644 index c877b281..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMarginTradeDetailInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_margin_trade_detail_info_result.ApiResponseResultOfMarginTradeDetailInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MarginTradeDetailInfoResult**](MarginTradeDetailInfoResult.md) | [**MarginTradeDetailInfoResult**](MarginTradeDetailInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantAdvResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantAdvResult.md deleted file mode 100644 index 347870a7..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantAdvResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_merchant_adv_result.ApiResponseResultOfMerchantAdvResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MerchantAdvResult**](MerchantAdvResult.md) | [**MerchantAdvResult**](MerchantAdvResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantInfoResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantInfoResult.md deleted file mode 100644 index b4087fc5..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantInfoResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_merchant_info_result.ApiResponseResultOfMerchantInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MerchantInfoResult**](MerchantInfoResult.md) | [**MerchantInfoResult**](MerchantInfoResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantOrderResult.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantOrderResult.md deleted file mode 100644 index 88712819..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantOrderResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_merchant_order_result.ApiResponseResultOfMerchantOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MerchantOrderResult**](MerchantOrderResult.md) | [**MerchantOrderResult**](MerchantOrderResult.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantPersonInfo.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantPersonInfo.md deleted file mode 100644 index 6b15445c..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfMerchantPersonInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.api_response_result_of_merchant_person_info.ApiResponseResultOfMerchantPersonInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**data** | [**MerchantPersonInfo**](MerchantPersonInfo.md) | [**MerchantPersonInfo**](MerchantPersonInfo.md) | | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfVoid.md b/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfVoid.md deleted file mode 100644 index 301f9938..00000000 --- a/bitget-python-sdk-open-api/docs/models/ApiResponseResultOfVoid.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.api_response_result_of_void.ApiResponseResultOfVoid - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | str, | str, | code | [optional] -**msg** | str, | str, | msg | [optional] -**requestTime** | decimal.Decimal, int, | decimal.Decimal, | requestTime | [optional] value must be a 64 bit integer -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/FiatPaymentDetailInfo.md b/bitget-python-sdk-open-api/docs/models/FiatPaymentDetailInfo.md deleted file mode 100644 index c7647eac..00000000 --- a/bitget-python-sdk-open-api/docs/models/FiatPaymentDetailInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.fiat_payment_detail_info.FiatPaymentDetailInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**required** | bool, | BoolClass, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/FiatPaymentInfo.md b/bitget-python-sdk-open-api/docs/models/FiatPaymentInfo.md deleted file mode 100644 index baf776f1..00000000 --- a/bitget-python-sdk-open-api/docs/models/FiatPaymentInfo.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.fiat_payment_info.FiatPaymentInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paymentId** | str, | str, | | [optional] -**[paymentInfo](#paymentInfo)** | list, tuple, | tuple, | | [optional] -**paymentMethod** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# paymentInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**FiatPaymentDetailInfo**](FiatPaymentDetailInfo.md) | [**FiatPaymentDetailInfo**](FiatPaymentDetailInfo.md) | [**FiatPaymentDetailInfo**](FiatPaymentDetailInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderRequest.md b/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderRequest.md deleted file mode 100644 index 1f109208..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderRequest.md +++ /dev/null @@ -1,45 +0,0 @@ -# bitget.model.margin_batch_cancel_order_request.MarginBatchCancelOrderRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**[clientOids](#clientOids)** | list, tuple, | tuple, | clientOids | [optional] -**[orderIds](#orderIds)** | list, tuple, | tuple, | orderIds | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# clientOids - -clientOids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | clientOids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# orderIds - -orderIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | orderIds | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderResult.md b/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderResult.md deleted file mode 100644 index 16892a86..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginBatchCancelOrderResult.md +++ /dev/null @@ -1,40 +0,0 @@ -# bitget.model.margin_batch_cancel_order_result.MarginBatchCancelOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[failure](#failure)** | list, tuple, | tuple, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# failure - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCancelOrderFailureResult**](MarginCancelOrderFailureResult.md) | [**MarginCancelOrderFailureResult**](MarginCancelOrderFailureResult.md) | [**MarginCancelOrderFailureResult**](MarginCancelOrderFailureResult.md) | | - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCancelOrderResult**](MarginCancelOrderResult.md) | [**MarginCancelOrderResult**](MarginCancelOrderResult.md) | [**MarginCancelOrderResult**](MarginCancelOrderResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginBatchOrdersRequest.md b/bitget-python-sdk-open-api/docs/models/MarginBatchOrdersRequest.md deleted file mode 100644 index e03188be..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginBatchOrdersRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# bitget.model.margin_batch_orders_request.MarginBatchOrdersRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**channelApiCode** | str, | str, | | [optional] -**ip** | str, | str, | | [optional] -**[orderList](#orderList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# orderList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginOrderRequest**](MarginOrderRequest.md) | [**MarginOrderRequest**](MarginOrderRequest.md) | [**MarginOrderRequest**](MarginOrderRequest.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderFailureResult.md b/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderFailureResult.md deleted file mode 100644 index c558bb6b..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderFailureResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_batch_place_order_failure_result.MarginBatchPlaceOrderFailureResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**errorMsg** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderResult.md b/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderResult.md deleted file mode 100644 index 10b347f1..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginBatchPlaceOrderResult.md +++ /dev/null @@ -1,40 +0,0 @@ -# bitget.model.margin_batch_place_order_result.MarginBatchPlaceOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[failure](#failure)** | list, tuple, | tuple, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# failure - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginBatchPlaceOrderFailureResult**](MarginBatchPlaceOrderFailureResult.md) | [**MarginBatchPlaceOrderFailureResult**](MarginBatchPlaceOrderFailureResult.md) | [**MarginBatchPlaceOrderFailureResult**](MarginBatchPlaceOrderFailureResult.md) | | - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCancelOrderResult**](MarginCancelOrderResult.md) | [**MarginCancelOrderResult**](MarginCancelOrderResult.md) | [**MarginCancelOrderResult**](MarginCancelOrderResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderFailureResult.md b/bitget-python-sdk-open-api/docs/models/MarginCancelOrderFailureResult.md deleted file mode 100644 index 14f0d810..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderFailureResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_cancel_order_failure_result.MarginCancelOrderFailureResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**errorMsg** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderRequest.md b/bitget-python-sdk-open-api/docs/models/MarginCancelOrderRequest.md deleted file mode 100644 index c4a6d7b5..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_cancel_order_request.MarginCancelOrderRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**clientOid** | str, | str, | clientOid | [optional] -**orderId** | str, | str, | orderId | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderResult.md b/bitget-python-sdk-open-api/docs/models/MarginCancelOrderResult.md deleted file mode 100644 index 589ab451..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCancelOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_cancel_order_result.MarginCancelOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsPopulationResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsPopulationResult.md deleted file mode 100644 index c5d2eceb..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsPopulationResult.md +++ /dev/null @@ -1,22 +0,0 @@ -# bitget.model.margin_cross_assets_population_result.MarginCrossAssetsPopulationResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**available** | str, | str, | | [optional] -**borrow** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**frozen** | str, | str, | | [optional] -**interest** | str, | str, | | [optional] -**net** | str, | str, | | [optional] -**totalAmount** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsResult.md deleted file mode 100644 index a03b94ae..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_cross_assets_result.MarginCrossAssetsResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | | [optional] -**maxTransferOutAmount** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsRiskResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsRiskResult.md deleted file mode 100644 index a0e117e1..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossAssetsRiskResult.md +++ /dev/null @@ -1,15 +0,0 @@ -# bitget.model.margin_cross_assets_risk_result.MarginCrossAssetsRiskResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**riskRate** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossBorrowLimitResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossBorrowLimitResult.md deleted file mode 100644 index 4796a0ab..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossBorrowLimitResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_cross_borrow_limit_result.MarginCrossBorrowLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**borrowAmount** | str, | str, | | [optional] -**clientOid** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowInfo.md b/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowInfo.md deleted file mode 100644 index a880b42d..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowInfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# bitget.model.margin_cross_fin_flow_info.MarginCrossFinFlowInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**fee** | str, | str, | | [optional] -**marginId** | str, | str, | | [optional] -**marginType** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowResult.md deleted file mode 100644 index 04a59028..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossFinFlowResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_cross_fin_flow_result.MarginCrossFinFlowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCrossFinFlowInfo**](MarginCrossFinFlowInfo.md) | [**MarginCrossFinFlowInfo**](MarginCrossFinFlowInfo.md) | [**MarginCrossFinFlowInfo**](MarginCrossFinFlowInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossLevelResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossLevelResult.md deleted file mode 100644 index 5cdf832c..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossLevelResult.md +++ /dev/null @@ -1,19 +0,0 @@ -# bitget.model.margin_cross_level_result.MarginCrossLevelResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | | [optional] -**leverage** | str, | str, | | [optional] -**maintainMarginRate** | str, | str, | | [optional] -**maxBorrowableAmount** | str, | str, | | [optional] -**tier** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossLimitRequest.md b/bitget-python-sdk-open-api/docs/models/MarginCrossLimitRequest.md deleted file mode 100644 index ee24ca69..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossLimitRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_cross_limit_request.MarginCrossLimitRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**borrowAmount** | str, | str, | borrowAmount | -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowRequest.md b/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowRequest.md deleted file mode 100644 index de75107a..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# bitget.model.margin_cross_max_borrow_request.MarginCrossMaxBorrowRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowResult.md deleted file mode 100644 index 864a89eb..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossMaxBorrowResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_cross_max_borrow_result.MarginCrossMaxBorrowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | | [optional] -**maxBorrowableAmount** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossRateAndLimitResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossRateAndLimitResult.md deleted file mode 100644 index fc277328..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossRateAndLimitResult.md +++ /dev/null @@ -1,34 +0,0 @@ -# bitget.model.margin_cross_rate_and_limit_result.MarginCrossRateAndLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**borrowAble** | bool, | BoolClass, | | [optional] -**coin** | str, | str, | | [optional] -**dailyInterestRate** | str, | str, | | [optional] -**leverage** | str, | str, | | [optional] -**maxBorrowableAmount** | str, | str, | | [optional] -**transferInAble** | bool, | BoolClass, | | [optional] -**[vips](#vips)** | list, tuple, | tuple, | | [optional] -**yearlyInterestRate** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# vips - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginCrossVipResult**](MarginCrossVipResult.md) | [**MarginCrossVipResult**](MarginCrossVipResult.md) | [**MarginCrossVipResult**](MarginCrossVipResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossRepayRequest.md b/bitget-python-sdk-open-api/docs/models/MarginCrossRepayRequest.md deleted file mode 100644 index 39cdea6e..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossRepayRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_cross_repay_request.MarginCrossRepayRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**repayAmount** | str, | str, | repayAmount | -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossRepayResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossRepayResult.md deleted file mode 100644 index 162ea3b4..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossRepayResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.margin_cross_repay_result.MarginCrossRepayResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**remainDebtAmount** | str, | str, | | [optional] -**repayAmount** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginCrossVipResult.md b/bitget-python-sdk-open-api/docs/models/MarginCrossVipResult.md deleted file mode 100644 index 0555e05f..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginCrossVipResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.margin_cross_vip_result.MarginCrossVipResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**dailyInterestRate** | str, | str, | | [optional] -**discountRate** | str, | str, | | [optional] -**level** | str, | str, | | [optional] -**yearlyInterestRate** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginInterestInfo.md b/bitget-python-sdk-open-api/docs/models/MarginInterestInfo.md deleted file mode 100644 index d2d240d7..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginInterestInfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# bitget.model.margin_interest_info.MarginInterestInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**interestCoin** | str, | str, | | [optional] -**interestId** | str, | str, | | [optional] -**interestRate** | str, | str, | | [optional] -**loanCoin** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginInterestInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginInterestInfoResult.md deleted file mode 100644 index 4169aab9..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginInterestInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_interest_info_result.MarginInterestInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginInterestInfo**](MarginInterestInfo.md) | [**MarginInterestInfo**](MarginInterestInfo.md) | [**MarginInterestInfo**](MarginInterestInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsPopulationResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsPopulationResult.md deleted file mode 100644 index 527daaec..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsPopulationResult.md +++ /dev/null @@ -1,23 +0,0 @@ -# bitget.model.margin_isolated_assets_population_result.MarginIsolatedAssetsPopulationResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**available** | str, | str, | | [optional] -**borrow** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**frozen** | str, | str, | | [optional] -**interest** | str, | str, | | [optional] -**net** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**totalAmount** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsResult.md deleted file mode 100644 index 808e3b97..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_isolated_assets_result.MarginIsolatedAssetsResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | | [optional] -**maxTransferOutAmount** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskRequest.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskRequest.md deleted file mode 100644 index b0f924c6..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_isolated_assets_risk_request.MarginIsolatedAssetsRiskRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**pageNum** | str, | str, | pageNum | [optional] -**pageSize** | str, | str, | pageSize | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskResult.md deleted file mode 100644 index 06c1ceb0..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedAssetsRiskResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_isolated_assets_risk_result.MarginIsolatedAssetsRiskResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**riskRate** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedBorrowLimitResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedBorrowLimitResult.md deleted file mode 100644 index 5739d91c..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedBorrowLimitResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.margin_isolated_borrow_limit_result.MarginIsolatedBorrowLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**borrowAmount** | str, | str, | | [optional] -**clientOid** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowInfo.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowInfo.md deleted file mode 100644 index 22934358..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# bitget.model.margin_isolated_fin_flow_info.MarginIsolatedFinFlowInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**fee** | str, | str, | | [optional] -**marginId** | str, | str, | | [optional] -**marginType** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowResult.md deleted file mode 100644 index 62c557c0..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedFinFlowResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_isolated_fin_flow_result.MarginIsolatedFinFlowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedFinFlowInfo**](MarginIsolatedFinFlowInfo.md) | [**MarginIsolatedFinFlowInfo**](MarginIsolatedFinFlowInfo.md) | [**MarginIsolatedFinFlowInfo**](MarginIsolatedFinFlowInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfo.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfo.md deleted file mode 100644 index 2744a78d..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# bitget.model.margin_isolated_interest_info.MarginIsolatedInterestInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**interestCoin** | str, | str, | | [optional] -**interestId** | str, | str, | | [optional] -**interestRate** | str, | str, | | [optional] -**loanCoin** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfoResult.md deleted file mode 100644 index 7a96fbb7..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedInterestInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_isolated_interest_info_result.MarginIsolatedInterestInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedInterestInfo**](MarginIsolatedInterestInfo.md) | [**MarginIsolatedInterestInfo**](MarginIsolatedInterestInfo.md) | [**MarginIsolatedInterestInfo**](MarginIsolatedInterestInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLevelResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLevelResult.md deleted file mode 100644 index 8c5752c2..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLevelResult.md +++ /dev/null @@ -1,23 +0,0 @@ -# bitget.model.margin_isolated_level_result.MarginIsolatedLevelResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baseCoin** | str, | str, | | [optional] -**baseMaxBorrowableAmount** | str, | str, | | [optional] -**initRate** | str, | str, | | [optional] -**leverage** | str, | str, | | [optional] -**maintainMarginRate** | str, | str, | | [optional] -**quoteCoin** | str, | str, | | [optional] -**quoteMaxBorrowableAmount** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**tier** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLimitRequest.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLimitRequest.md deleted file mode 100644 index ff7e8b82..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLimitRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_isolated_limit_request.MarginIsolatedLimitRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**borrowAmount** | str, | str, | borrowAmount | -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfo.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfo.md deleted file mode 100644 index d139d8b8..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfo.md +++ /dev/null @@ -1,23 +0,0 @@ -# bitget.model.margin_isolated_liquidation_info.MarginIsolatedLiquidationInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**ctime** | str, | str, | | [optional] -**liqEndTime** | str, | str, | | [optional] -**liqFee** | str, | str, | | [optional] -**liqId** | str, | str, | | [optional] -**liqRisk** | str, | str, | | [optional] -**liqStartTime** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**totalAssets** | str, | str, | | [optional] -**totalDebt** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfoResult.md deleted file mode 100644 index cce71cc4..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLiquidationInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_isolated_liquidation_info_result.MarginIsolatedLiquidationInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedLiquidationInfo**](MarginIsolatedLiquidationInfo.md) | [**MarginIsolatedLiquidationInfo**](MarginIsolatedLiquidationInfo.md) | [**MarginIsolatedLiquidationInfo**](MarginIsolatedLiquidationInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfo.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfo.md deleted file mode 100644 index 3a0bd03a..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# bitget.model.margin_isolated_loan_info.MarginIsolatedLoanInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**loanId** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfoResult.md deleted file mode 100644 index 19b5b424..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedLoanInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_isolated_loan_info_result.MarginIsolatedLoanInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedLoanInfo**](MarginIsolatedLoanInfo.md) | [**MarginIsolatedLoanInfo**](MarginIsolatedLoanInfo.md) | [**MarginIsolatedLoanInfo**](MarginIsolatedLoanInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowRequest.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowRequest.md deleted file mode 100644 index f9b6b6b9..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_isolated_max_borrow_request.MarginIsolatedMaxBorrowRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowResult.md deleted file mode 100644 index 677172de..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedMaxBorrowResult.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_isolated_max_borrow_result.MarginIsolatedMaxBorrowResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**coin** | str, | str, | | [optional] -**maxBorrowableAmount** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRateAndLimitResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedRateAndLimitResult.md deleted file mode 100644 index 8b9c1ca6..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRateAndLimitResult.md +++ /dev/null @@ -1,54 +0,0 @@ -# bitget.model.margin_isolated_rate_and_limit_result.MarginIsolatedRateAndLimitResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baseBorrowAble** | bool, | BoolClass, | | [optional] -**baseCoin** | str, | str, | | [optional] -**baseDailyInterestRate** | str, | str, | | [optional] -**baseMaxBorrowableAmount** | str, | str, | | [optional] -**baseTransferInAble** | bool, | BoolClass, | | [optional] -**[baseVips](#baseVips)** | list, tuple, | tuple, | | [optional] -**baseYearlyInterestRate** | str, | str, | | [optional] -**leverage** | str, | str, | | [optional] -**quoteBorrowAble** | bool, | BoolClass, | | [optional] -**quoteCoin** | str, | str, | | [optional] -**quoteDailyInterestRate** | str, | str, | | [optional] -**quoteMaxBorrowableAmount** | str, | str, | | [optional] -**quoteTransferInAble** | bool, | BoolClass, | | [optional] -**[quoteVips](#quoteVips)** | list, tuple, | tuple, | | [optional] -**quoteYearlyInterestRate** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# baseVips - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | [**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | [**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | | - -# quoteVips - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | [**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | [**MarginIsolatedVipResult**](MarginIsolatedVipResult.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfo.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfo.md deleted file mode 100644 index 0661e38c..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# bitget.model.margin_isolated_repay_info.MarginIsolatedRepayInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**interest** | str, | str, | | [optional] -**repayId** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**totalAmount** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfoResult.md deleted file mode 100644 index f413e1c2..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_isolated_repay_info_result.MarginIsolatedRepayInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginIsolatedRepayInfo**](MarginIsolatedRepayInfo.md) | [**MarginIsolatedRepayInfo**](MarginIsolatedRepayInfo.md) | [**MarginIsolatedRepayInfo**](MarginIsolatedRepayInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayRequest.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayRequest.md deleted file mode 100644 index 73dd2e25..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# bitget.model.margin_isolated_repay_request.MarginIsolatedRepayRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | symbol | -**repayAmount** | str, | str, | repayAmount | -**coin** | str, | str, | coin | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayResult.md deleted file mode 100644 index 9e2da51b..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedRepayResult.md +++ /dev/null @@ -1,19 +0,0 @@ -# bitget.model.margin_isolated_repay_result.MarginIsolatedRepayResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**remainDebtAmount** | str, | str, | | [optional] -**repayAmount** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginIsolatedVipResult.md b/bitget-python-sdk-open-api/docs/models/MarginIsolatedVipResult.md deleted file mode 100644 index b82dec40..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginIsolatedVipResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.margin_isolated_vip_result.MarginIsolatedVipResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**dailyInterestRate** | str, | str, | | [optional] -**discountRate** | str, | str, | | [optional] -**level** | str, | str, | | [optional] -**yearlyInterestRate** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfo.md b/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfo.md deleted file mode 100644 index 5a1b3494..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# bitget.model.margin_liquidation_info.MarginLiquidationInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**ctime** | str, | str, | | [optional] -**liqEndTime** | str, | str, | | [optional] -**liqFee** | str, | str, | | [optional] -**liqId** | str, | str, | | [optional] -**liqRisk** | str, | str, | | [optional] -**liqStartTime** | str, | str, | | [optional] -**totalAssets** | str, | str, | | [optional] -**totalDebt** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfoResult.md deleted file mode 100644 index c8f4f17b..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginLiquidationInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_liquidation_info_result.MarginLiquidationInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginLiquidationInfo**](MarginLiquidationInfo.md) | [**MarginLiquidationInfo**](MarginLiquidationInfo.md) | [**MarginLiquidationInfo**](MarginLiquidationInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginLoanInfo.md b/bitget-python-sdk-open-api/docs/models/MarginLoanInfo.md deleted file mode 100644 index a7f73871..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginLoanInfo.md +++ /dev/null @@ -1,19 +0,0 @@ -# bitget.model.margin_loan_info.MarginLoanInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**loanId** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginLoanInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginLoanInfoResult.md deleted file mode 100644 index 8e074ce8..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginLoanInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_loan_info_result.MarginLoanInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginLoanInfo**](MarginLoanInfo.md) | [**MarginLoanInfo**](MarginLoanInfo.md) | [**MarginLoanInfo**](MarginLoanInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginOpenOrderInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginOpenOrderInfoResult.md deleted file mode 100644 index 0ace0fb1..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginOpenOrderInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_open_order_info_result.MarginOpenOrderInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[orderList](#orderList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# orderList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginOrderInfo**](MarginOrderInfo.md) | [**MarginOrderInfo**](MarginOrderInfo.md) | [**MarginOrderInfo**](MarginOrderInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginOrderInfo.md b/bitget-python-sdk-open-api/docs/models/MarginOrderInfo.md deleted file mode 100644 index 16ec5723..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginOrderInfo.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_order_info.MarginOrderInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baseQuantity** | str, | str, | | [optional] -**clientOid** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**fillPrice** | str, | str, | | [optional] -**fillQuantity** | str, | str, | | [optional] -**fillTotalAmount** | str, | str, | | [optional] -**loanType** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**orderType** | str, | str, | | [optional] -**price** | str, | str, | | [optional] -**quoteAmount** | str, | str, | | [optional] -**side** | str, | str, | | [optional] -**source** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginOrderRequest.md b/bitget-python-sdk-open-api/docs/models/MarginOrderRequest.md deleted file mode 100644 index cdb9abd8..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginOrderRequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# bitget.model.margin_order_request.MarginOrderRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**orderType** | str, | str, | orderType | -**symbol** | str, | str, | symbol | -**side** | str, | str, | side | -**loanType** | str, | str, | loanType | -**baseQuantity** | str, | str, | baseQuantity | [optional] -**channelApiCode** | str, | str, | | [optional] -**clientOid** | str, | str, | clientOid | [optional] -**ip** | str, | str, | | [optional] -**price** | str, | str, | price | [optional] -**quoteAmount** | str, | str, | quoteAmount | [optional] -**timeInForce** | str, | str, | timeInForce | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginPlaceOrderResult.md b/bitget-python-sdk-open-api/docs/models/MarginPlaceOrderResult.md deleted file mode 100644 index 2b45bb4c..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginPlaceOrderResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# bitget.model.margin_place_order_result.MarginPlaceOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**clientOid** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginRepayInfo.md b/bitget-python-sdk-open-api/docs/models/MarginRepayInfo.md deleted file mode 100644 index 18b6525b..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginRepayInfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# bitget.model.margin_repay_info.MarginRepayInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**interest** | str, | str, | | [optional] -**repayId** | str, | str, | | [optional] -**totalAmount** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginRepayInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginRepayInfoResult.md deleted file mode 100644 index 87ffa416..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginRepayInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_repay_info_result.MarginRepayInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginRepayInfo**](MarginRepayInfo.md) | [**MarginRepayInfo**](MarginRepayInfo.md) | [**MarginRepayInfo**](MarginRepayInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginSystemResult.md b/bitget-python-sdk-open-api/docs/models/MarginSystemResult.md deleted file mode 100644 index 6038b1ac..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginSystemResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# bitget.model.margin_system_result.MarginSystemResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**baseCoin** | str, | str, | | [optional] -**isBorrowable** | bool, | BoolClass, | | [optional] -**liquidationRiskRatio** | str, | str, | | [optional] -**makerFeeRate** | str, | str, | | [optional] -**maxCrossLeverage** | str, | str, | | [optional] -**maxIsolatedLeverage** | str, | str, | | [optional] -**maxTradeAmount** | str, | str, | | [optional] -**minTradeAmount** | str, | str, | | [optional] -**minTradeUSDT** | str, | str, | | [optional] -**priceScale** | str, | str, | | [optional] -**quantityScale** | str, | str, | | [optional] -**quoteCoin** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**symbol** | str, | str, | | [optional] -**takerFeeRate** | str, | str, | | [optional] -**userMinBorrow** | str, | str, | | [optional] -**warningRiskRatio** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfo.md b/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfo.md deleted file mode 100644 index f8c6f93f..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfo.md +++ /dev/null @@ -1,24 +0,0 @@ -# bitget.model.margin_trade_detail_info.MarginTradeDetailInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**ctime** | str, | str, | | [optional] -**feeCcy** | str, | str, | | [optional] -**fees** | str, | str, | | [optional] -**fillId** | str, | str, | | [optional] -**fillPrice** | str, | str, | | [optional] -**fillQuantity** | str, | str, | | [optional] -**fillTotalAmount** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**orderType** | str, | str, | | [optional] -**side** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfoResult.md b/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfoResult.md deleted file mode 100644 index ce1ff4c4..00000000 --- a/bitget-python-sdk-open-api/docs/models/MarginTradeDetailInfoResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.margin_trade_detail_info_result.MarginTradeDetailInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[fills](#fills)** | list, tuple, | tuple, | | [optional] -**maxId** | str, | str, | | [optional] -**minId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# fills - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MarginTradeDetailInfo**](MarginTradeDetailInfo.md) | [**MarginTradeDetailInfo**](MarginTradeDetailInfo.md) | [**MarginTradeDetailInfo**](MarginTradeDetailInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantAdvInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantAdvInfo.md deleted file mode 100644 index f8af0a0f..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantAdvInfo.md +++ /dev/null @@ -1,48 +0,0 @@ -# bitget.model.merchant_adv_info.MerchantAdvInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**advId** | str, | str, | | [optional] -**advNo** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**coinPrecision** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**dealAmount** | str, | str, | | [optional] -**fiatCode** | str, | str, | | [optional] -**fiatPrecision** | str, | str, | | [optional] -**fiatSymbol** | str, | str, | | [optional] -**hide** | str, | str, | | [optional] -**maxAmount** | str, | str, | | [optional] -**minAmount** | str, | str, | | [optional] -**payDuration** | str, | str, | | [optional] -**[paymentMethod](#paymentMethod)** | list, tuple, | tuple, | | [optional] -**price** | str, | str, | | [optional] -**remark** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**turnoverNum** | str, | str, | | [optional] -**turnoverRate** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**userLimit** | [**MerchantAdvUserLimitInfo**](MerchantAdvUserLimitInfo.md) | [**MerchantAdvUserLimitInfo**](MerchantAdvUserLimitInfo.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# paymentMethod - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**FiatPaymentInfo**](FiatPaymentInfo.md) | [**FiatPaymentInfo**](FiatPaymentInfo.md) | [**FiatPaymentInfo**](FiatPaymentInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantAdvResult.md b/bitget-python-sdk-open-api/docs/models/MerchantAdvResult.md deleted file mode 100644 index 6d1218a0..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantAdvResult.md +++ /dev/null @@ -1,28 +0,0 @@ -# bitget.model.merchant_adv_result.MerchantAdvResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[advList](#advList)** | list, tuple, | tuple, | | [optional] -**minId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# advList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MerchantAdvInfo**](MerchantAdvInfo.md) | [**MerchantAdvInfo**](MerchantAdvInfo.md) | [**MerchantAdvInfo**](MerchantAdvInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantAdvUserLimitInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantAdvUserLimitInfo.md deleted file mode 100644 index 678c9d34..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantAdvUserLimitInfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# bitget.model.merchant_adv_user_limit_info.MerchantAdvUserLimitInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**allowMerchantPlace** | str, | str, | | [optional] -**country** | str, | str, | | [optional] -**maxCompleteNum** | str, | str, | | [optional] -**minCompleteNum** | str, | str, | | [optional] -**placeOrderNum** | str, | str, | | [optional] -**thirtyCompleteRate** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantInfo.md deleted file mode 100644 index 9234d307..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantInfo.md +++ /dev/null @@ -1,28 +0,0 @@ -# bitget.model.merchant_info.MerchantInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**averagePayment** | str, | str, | | [optional] -**averageRealese** | str, | str, | | [optional] -**isOnline** | str, | str, | | [optional] -**merchantId** | str, | str, | | [optional] -**nickName** | str, | str, | | [optional] -**registerTime** | str, | str, | | [optional] -**thirtyBuy** | str, | str, | | [optional] -**thirtyCompletionRate** | str, | str, | | [optional] -**thirtySell** | str, | str, | | [optional] -**thirtyTrades** | str, | str, | | [optional] -**totalBuy** | str, | str, | | [optional] -**totalCompletionRate** | str, | str, | | [optional] -**totalSell** | str, | str, | | [optional] -**totalTrades** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantInfoResult.md b/bitget-python-sdk-open-api/docs/models/MerchantInfoResult.md deleted file mode 100644 index bb6e72af..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantInfoResult.md +++ /dev/null @@ -1,28 +0,0 @@ -# bitget.model.merchant_info_result.MerchantInfoResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**minId** | str, | str, | | [optional] -**[resultList](#resultList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resultList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MerchantInfo**](MerchantInfo.md) | [**MerchantInfo**](MerchantInfo.md) | [**MerchantInfo**](MerchantInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantOrderInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantOrderInfo.md deleted file mode 100644 index 4d47d429..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantOrderInfo.md +++ /dev/null @@ -1,32 +0,0 @@ -# bitget.model.merchant_order_info.MerchantOrderInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**advNo** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**buyerRealName** | str, | str, | | [optional] -**coin** | str, | str, | | [optional] -**count** | str, | str, | | [optional] -**ctime** | str, | str, | | [optional] -**fiat** | str, | str, | | [optional] -**orderId** | str, | str, | | [optional] -**orderNo** | str, | str, | | [optional] -**paymentInfo** | [**MerchantOrderPaymentInfo**](MerchantOrderPaymentInfo.md) | [**MerchantOrderPaymentInfo**](MerchantOrderPaymentInfo.md) | | [optional] -**paymentTime** | str, | str, | | [optional] -**price** | str, | str, | | [optional] -**releaseCoinTime** | str, | str, | | [optional] -**representTime** | str, | str, | | [optional] -**sellerRealName** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**withdrawTime** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantOrderPaymentInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantOrderPaymentInfo.md deleted file mode 100644 index 91eba950..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantOrderPaymentInfo.md +++ /dev/null @@ -1,29 +0,0 @@ -# bitget.model.merchant_order_payment_info.MerchantOrderPaymentInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paymethodId** | str, | str, | | [optional] -**[paymethodInfo](#paymethodInfo)** | list, tuple, | tuple, | | [optional] -**paymethodName** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# paymethodInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**OrderPaymentDetailInfo**](OrderPaymentDetailInfo.md) | [**OrderPaymentDetailInfo**](OrderPaymentDetailInfo.md) | [**OrderPaymentDetailInfo**](OrderPaymentDetailInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantOrderResult.md b/bitget-python-sdk-open-api/docs/models/MerchantOrderResult.md deleted file mode 100644 index 4ce3688e..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantOrderResult.md +++ /dev/null @@ -1,28 +0,0 @@ -# bitget.model.merchant_order_result.MerchantOrderResult - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**minId** | str, | str, | | [optional] -**[orderList](#orderList)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# orderList - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MerchantOrderInfo**](MerchantOrderInfo.md) | [**MerchantOrderInfo**](MerchantOrderInfo.md) | [**MerchantOrderInfo**](MerchantOrderInfo.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/MerchantPersonInfo.md b/bitget-python-sdk-open-api/docs/models/MerchantPersonInfo.md deleted file mode 100644 index 7b24d409..00000000 --- a/bitget-python-sdk-open-api/docs/models/MerchantPersonInfo.md +++ /dev/null @@ -1,33 +0,0 @@ -# bitget.model.merchant_person_info.MerchantPersonInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**averagePayment** | str, | str, | | [optional] -**averageRealese** | str, | str, | | [optional] -**email** | str, | str, | | [optional] -**emailBindFlag** | bool, | BoolClass, | | [optional] -**kycFlag** | bool, | BoolClass, | | [optional] -**merchantId** | str, | str, | | [optional] -**mobile** | str, | str, | | [optional] -**mobileBindFlag** | bool, | BoolClass, | | [optional] -**nickName** | str, | str, | | [optional] -**realName** | str, | str, | | [optional] -**registerTime** | str, | str, | | [optional] -**thirtyBuy** | str, | str, | | [optional] -**thirtyCompletionRate** | str, | str, | | [optional] -**thirtySell** | str, | str, | | [optional] -**thirtyTrades** | str, | str, | | [optional] -**totalBuy** | str, | str, | | [optional] -**totalCompletionRate** | str, | str, | | [optional] -**totalSell** | str, | str, | | [optional] -**totalTrades** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/docs/models/OrderPaymentDetailInfo.md b/bitget-python-sdk-open-api/docs/models/OrderPaymentDetailInfo.md deleted file mode 100644 index 856fd92f..00000000 --- a/bitget-python-sdk-open-api/docs/models/OrderPaymentDetailInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -# bitget.model.order_payment_detail_info.OrderPaymentDetailInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**required** | bool, | BoolClass, | | [optional] -**type** | str, | str, | | [optional] -**value** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/bitget-python-sdk-open-api/git_push.sh b/bitget-python-sdk-open-api/git_push.sh deleted file mode 100644 index ced3be2b..00000000 --- a/bitget-python-sdk-open-api/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/bitget-python-sdk-open-api/requirements.txt b/bitget-python-sdk-open-api/requirements.txt deleted file mode 100644 index 3cb66126..00000000 --- a/bitget-python-sdk-open-api/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -certifi >= 14.5.14 -frozendict ~= 2.3.4 -python-dateutil ~= 2.7.0 -setuptools >= 21.0.0 -typing_extensions ~= 4.3.0 -urllib3 ~= 1.26.7 diff --git a/bitget-python-sdk-open-api/setup.cfg b/bitget-python-sdk-open-api/setup.cfg deleted file mode 100644 index 11433ee8..00000000 --- a/bitget-python-sdk-open-api/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/bitget-python-sdk-open-api/setup.py b/bitget-python-sdk-open-api/setup.py deleted file mode 100644 index 32bb69e6..00000000 --- a/bitget-python-sdk-open-api/setup.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "bitget_python_sdk_open_api" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = [ - "certifi >= 14.5.14", - "frozendict ~= 2.3.4", - "python-dateutil ~= 2.7.0", - "setuptools >= 21.0.0", - "typing_extensions ~= 4.3.0", - "urllib3 ~= 1.26.7", -] - -setup( - name=NAME, - version=VERSION, - description="Bitget Open API", - author="OpenAPI Generator community", - author_email="team@openapitools.org", - url="", - keywords=["OpenAPI", "OpenAPI-Generator", "Bitget Open API"], - python_requires=">=3.7", - install_requires=REQUIRES, - packages=find_packages(exclude=["test", "tests"]), - include_package_data=True, - long_description="""\ - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - """ -) diff --git a/bitget-python-sdk-open-api/test-requirements.txt b/bitget-python-sdk-open-api/test-requirements.txt deleted file mode 100644 index 2d88b034..00000000 --- a/bitget-python-sdk-open-api/test-requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest~=4.6.7 # needed for python 3.4 -pytest-cov>=2.8.1 -pytest-randomly==1.2.3 # needed for python 3.4 diff --git a/bitget-python-sdk-open-api/test/test_models/__init__.py b/bitget-python-sdk-open-api/test/test_models/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_assets_population_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_assets_population_result.py deleted file mode 100644 index 5916c8b7..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_assets_population_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_cross_assets_population_result import ApiResponseResultOfListOfMarginCrossAssetsPopulationResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginCrossAssetsPopulationResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginCrossAssetsPopulationResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_level_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_level_result.py deleted file mode 100644 index 2f9350bf..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_level_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_cross_level_result import ApiResponseResultOfListOfMarginCrossLevelResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginCrossLevelResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginCrossLevelResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_rate_and_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_rate_and_limit_result.py deleted file mode 100644 index 144f132e..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_cross_rate_and_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_cross_rate_and_limit_result import ApiResponseResultOfListOfMarginCrossRateAndLimitResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginCrossRateAndLimitResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginCrossRateAndLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_population_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_population_result.py deleted file mode 100644 index 7f51eb90..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_population_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_population_result import ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginIsolatedAssetsPopulationResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_risk_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_risk_result.py deleted file mode 100644 index b44a9942..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_assets_risk_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_isolated_assets_risk_result import ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginIsolatedAssetsRiskResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginIsolatedAssetsRiskResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_level_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_level_result.py deleted file mode 100644 index a5b2b06c..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_level_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_isolated_level_result import ApiResponseResultOfListOfMarginIsolatedLevelResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginIsolatedLevelResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginIsolatedLevelResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py deleted file mode 100644 index ebc3eb4a..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_isolated_rate_and_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_isolated_rate_and_limit_result import ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginIsolatedRateAndLimitResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginIsolatedRateAndLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_system_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_system_result.py deleted file mode 100644 index 3d90f51d..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_list_of_margin_system_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_list_of_margin_system_result import ApiResponseResultOfListOfMarginSystemResult -from bitget import configuration - - -class TestApiResponseResultOfListOfMarginSystemResult(unittest.TestCase): - """ApiResponseResultOfListOfMarginSystemResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_cancel_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_cancel_order_result.py deleted file mode 100644 index cfb03b95..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_cancel_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_batch_cancel_order_result import ApiResponseResultOfMarginBatchCancelOrderResult -from bitget import configuration - - -class TestApiResponseResultOfMarginBatchCancelOrderResult(unittest.TestCase): - """ApiResponseResultOfMarginBatchCancelOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_place_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_place_order_result.py deleted file mode 100644 index 985fedc6..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_batch_place_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_batch_place_order_result import ApiResponseResultOfMarginBatchPlaceOrderResult -from bitget import configuration - - -class TestApiResponseResultOfMarginBatchPlaceOrderResult(unittest.TestCase): - """ApiResponseResultOfMarginBatchPlaceOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_result.py deleted file mode 100644 index 9d559e4b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_assets_result import ApiResponseResultOfMarginCrossAssetsResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossAssetsResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossAssetsResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_risk_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_risk_result.py deleted file mode 100644 index 1510023f..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_assets_risk_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_assets_risk_result import ApiResponseResultOfMarginCrossAssetsRiskResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossAssetsRiskResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossAssetsRiskResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_borrow_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_borrow_limit_result.py deleted file mode 100644 index 7af1618c..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_borrow_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_borrow_limit_result import ApiResponseResultOfMarginCrossBorrowLimitResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossBorrowLimitResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossBorrowLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_fin_flow_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_fin_flow_result.py deleted file mode 100644 index 3cb656d1..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_fin_flow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_fin_flow_result import ApiResponseResultOfMarginCrossFinFlowResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossFinFlowResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossFinFlowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_max_borrow_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_max_borrow_result.py deleted file mode 100644 index 7f52574a..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_max_borrow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_max_borrow_result import ApiResponseResultOfMarginCrossMaxBorrowResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossMaxBorrowResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossMaxBorrowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_repay_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_repay_result.py deleted file mode 100644 index 7c90d414..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_cross_repay_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_cross_repay_result import ApiResponseResultOfMarginCrossRepayResult -from bitget import configuration - - -class TestApiResponseResultOfMarginCrossRepayResult(unittest.TestCase): - """ApiResponseResultOfMarginCrossRepayResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_interest_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_interest_info_result.py deleted file mode 100644 index 73b99fb2..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_interest_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_interest_info_result import ApiResponseResultOfMarginInterestInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginInterestInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginInterestInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_assets_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_assets_result.py deleted file mode 100644 index ffccd3f7..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_assets_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_assets_result import ApiResponseResultOfMarginIsolatedAssetsResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedAssetsResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedAssetsResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_borrow_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_borrow_limit_result.py deleted file mode 100644 index ac2b089b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_borrow_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_borrow_limit_result import ApiResponseResultOfMarginIsolatedBorrowLimitResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedBorrowLimitResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedBorrowLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_fin_flow_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_fin_flow_result.py deleted file mode 100644 index 1ea0a873..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_fin_flow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_fin_flow_result import ApiResponseResultOfMarginIsolatedFinFlowResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedFinFlowResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedFinFlowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_interest_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_interest_info_result.py deleted file mode 100644 index 208021f9..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_interest_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_interest_info_result import ApiResponseResultOfMarginIsolatedInterestInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedInterestInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedInterestInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_liquidation_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_liquidation_info_result.py deleted file mode 100644 index 6aab0005..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_liquidation_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_liquidation_info_result import ApiResponseResultOfMarginIsolatedLiquidationInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedLiquidationInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedLiquidationInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_loan_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_loan_info_result.py deleted file mode 100644 index 3e3e7bd6..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_loan_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_loan_info_result import ApiResponseResultOfMarginIsolatedLoanInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedLoanInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedLoanInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_max_borrow_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_max_borrow_result.py deleted file mode 100644 index fba0e6a0..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_max_borrow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_max_borrow_result import ApiResponseResultOfMarginIsolatedMaxBorrowResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedMaxBorrowResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedMaxBorrowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_info_result.py deleted file mode 100644 index 103a6562..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_repay_info_result import ApiResponseResultOfMarginIsolatedRepayInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedRepayInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedRepayInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_result.py deleted file mode 100644 index bf3ac48f..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_isolated_repay_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_isolated_repay_result import ApiResponseResultOfMarginIsolatedRepayResult -from bitget import configuration - - -class TestApiResponseResultOfMarginIsolatedRepayResult(unittest.TestCase): - """ApiResponseResultOfMarginIsolatedRepayResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_liquidation_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_liquidation_info_result.py deleted file mode 100644 index 463f7242..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_liquidation_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_liquidation_info_result import ApiResponseResultOfMarginLiquidationInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginLiquidationInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginLiquidationInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_loan_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_loan_info_result.py deleted file mode 100644 index 48026aec..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_loan_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_loan_info_result import ApiResponseResultOfMarginLoanInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginLoanInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginLoanInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_open_order_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_open_order_info_result.py deleted file mode 100644 index a94d0b41..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_open_order_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_open_order_info_result import ApiResponseResultOfMarginOpenOrderInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginOpenOrderInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginOpenOrderInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_place_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_place_order_result.py deleted file mode 100644 index 6c9f9780..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_place_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_place_order_result import ApiResponseResultOfMarginPlaceOrderResult -from bitget import configuration - - -class TestApiResponseResultOfMarginPlaceOrderResult(unittest.TestCase): - """ApiResponseResultOfMarginPlaceOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_repay_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_repay_info_result.py deleted file mode 100644 index c27fcdeb..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_repay_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_repay_info_result import ApiResponseResultOfMarginRepayInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginRepayInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginRepayInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_trade_detail_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_trade_detail_info_result.py deleted file mode 100644 index 9935c913..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_margin_trade_detail_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_margin_trade_detail_info_result import ApiResponseResultOfMarginTradeDetailInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMarginTradeDetailInfoResult(unittest.TestCase): - """ApiResponseResultOfMarginTradeDetailInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_adv_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_adv_result.py deleted file mode 100644 index 52191513..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_adv_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_merchant_adv_result import ApiResponseResultOfMerchantAdvResult -from bitget import configuration - - -class TestApiResponseResultOfMerchantAdvResult(unittest.TestCase): - """ApiResponseResultOfMerchantAdvResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_info_result.py deleted file mode 100644 index 0689ffcf..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_merchant_info_result import ApiResponseResultOfMerchantInfoResult -from bitget import configuration - - -class TestApiResponseResultOfMerchantInfoResult(unittest.TestCase): - """ApiResponseResultOfMerchantInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_order_result.py deleted file mode 100644 index 95f631e2..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_merchant_order_result import ApiResponseResultOfMerchantOrderResult -from bitget import configuration - - -class TestApiResponseResultOfMerchantOrderResult(unittest.TestCase): - """ApiResponseResultOfMerchantOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_person_info.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_person_info.py deleted file mode 100644 index f96724e6..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_merchant_person_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_merchant_person_info import ApiResponseResultOfMerchantPersonInfo -from bitget import configuration - - -class TestApiResponseResultOfMerchantPersonInfo(unittest.TestCase): - """ApiResponseResultOfMerchantPersonInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_void.py b/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_void.py deleted file mode 100644 index 4cf5319f..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_api_response_result_of_void.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.api_response_result_of_void import ApiResponseResultOfVoid -from bitget import configuration - - -class TestApiResponseResultOfVoid(unittest.TestCase): - """ApiResponseResultOfVoid unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_detail_info.py b/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_detail_info.py deleted file mode 100644 index de0cdfe9..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_detail_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.fiat_payment_detail_info import FiatPaymentDetailInfo -from bitget import configuration - - -class TestFiatPaymentDetailInfo(unittest.TestCase): - """FiatPaymentDetailInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_info.py b/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_info.py deleted file mode 100644 index eaef7edd..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_fiat_payment_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.fiat_payment_info import FiatPaymentInfo -from bitget import configuration - - -class TestFiatPaymentInfo(unittest.TestCase): - """FiatPaymentInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_request.py deleted file mode 100644 index 98eff7a4..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest -from bitget import configuration - - -class TestMarginBatchCancelOrderRequest(unittest.TestCase): - """MarginBatchCancelOrderRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_result.py deleted file mode 100644 index da921caf..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_cancel_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_batch_cancel_order_result import MarginBatchCancelOrderResult -from bitget import configuration - - -class TestMarginBatchCancelOrderResult(unittest.TestCase): - """MarginBatchCancelOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_orders_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_batch_orders_request.py deleted file mode 100644 index 0435b58e..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_orders_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest -from bitget import configuration - - -class TestMarginBatchOrdersRequest(unittest.TestCase): - """MarginBatchOrdersRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_failure_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_failure_result.py deleted file mode 100644 index 958f3e28..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_failure_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_batch_place_order_failure_result import MarginBatchPlaceOrderFailureResult -from bitget import configuration - - -class TestMarginBatchPlaceOrderFailureResult(unittest.TestCase): - """MarginBatchPlaceOrderFailureResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_result.py deleted file mode 100644 index 321c4f67..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_batch_place_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_batch_place_order_result import MarginBatchPlaceOrderResult -from bitget import configuration - - -class TestMarginBatchPlaceOrderResult(unittest.TestCase): - """MarginBatchPlaceOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_failure_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_failure_result.py deleted file mode 100644 index e8c98956..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_failure_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cancel_order_failure_result import MarginCancelOrderFailureResult -from bitget import configuration - - -class TestMarginCancelOrderFailureResult(unittest.TestCase): - """MarginCancelOrderFailureResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_request.py deleted file mode 100644 index 91c7db02..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest -from bitget import configuration - - -class TestMarginCancelOrderRequest(unittest.TestCase): - """MarginCancelOrderRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_result.py deleted file mode 100644 index 5cfe09ba..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cancel_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cancel_order_result import MarginCancelOrderResult -from bitget import configuration - - -class TestMarginCancelOrderResult(unittest.TestCase): - """MarginCancelOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_population_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_population_result.py deleted file mode 100644 index aa2dc88b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_population_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_assets_population_result import MarginCrossAssetsPopulationResult -from bitget import configuration - - -class TestMarginCrossAssetsPopulationResult(unittest.TestCase): - """MarginCrossAssetsPopulationResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_result.py deleted file mode 100644 index 6ad4885b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_assets_result import MarginCrossAssetsResult -from bitget import configuration - - -class TestMarginCrossAssetsResult(unittest.TestCase): - """MarginCrossAssetsResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_risk_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_risk_result.py deleted file mode 100644 index 7019a423..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_assets_risk_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_assets_risk_result import MarginCrossAssetsRiskResult -from bitget import configuration - - -class TestMarginCrossAssetsRiskResult(unittest.TestCase): - """MarginCrossAssetsRiskResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_borrow_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_borrow_limit_result.py deleted file mode 100644 index 799b5a66..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_borrow_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_borrow_limit_result import MarginCrossBorrowLimitResult -from bitget import configuration - - -class TestMarginCrossBorrowLimitResult(unittest.TestCase): - """MarginCrossBorrowLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_info.py deleted file mode 100644 index caa8e356..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_fin_flow_info import MarginCrossFinFlowInfo -from bitget import configuration - - -class TestMarginCrossFinFlowInfo(unittest.TestCase): - """MarginCrossFinFlowInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_result.py deleted file mode 100644 index f89e5d22..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_fin_flow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_fin_flow_result import MarginCrossFinFlowResult -from bitget import configuration - - -class TestMarginCrossFinFlowResult(unittest.TestCase): - """MarginCrossFinFlowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_level_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_level_result.py deleted file mode 100644 index 10f0292f..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_level_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_level_result import MarginCrossLevelResult -from bitget import configuration - - -class TestMarginCrossLevelResult(unittest.TestCase): - """MarginCrossLevelResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_limit_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_limit_request.py deleted file mode 100644 index 92fdfac7..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_limit_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest -from bitget import configuration - - -class TestMarginCrossLimitRequest(unittest.TestCase): - """MarginCrossLimitRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_request.py deleted file mode 100644 index 1df4e010..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest -from bitget import configuration - - -class TestMarginCrossMaxBorrowRequest(unittest.TestCase): - """MarginCrossMaxBorrowRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_result.py deleted file mode 100644 index 0f685b24..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_max_borrow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_max_borrow_result import MarginCrossMaxBorrowResult -from bitget import configuration - - -class TestMarginCrossMaxBorrowResult(unittest.TestCase): - """MarginCrossMaxBorrowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_rate_and_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_rate_and_limit_result.py deleted file mode 100644 index 50f12ea8..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_rate_and_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_rate_and_limit_result import MarginCrossRateAndLimitResult -from bitget import configuration - - -class TestMarginCrossRateAndLimitResult(unittest.TestCase): - """MarginCrossRateAndLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_request.py deleted file mode 100644 index fdc0db9b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest -from bitget import configuration - - -class TestMarginCrossRepayRequest(unittest.TestCase): - """MarginCrossRepayRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_result.py deleted file mode 100644 index 0908a701..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_repay_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_repay_result import MarginCrossRepayResult -from bitget import configuration - - -class TestMarginCrossRepayResult(unittest.TestCase): - """MarginCrossRepayResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_vip_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_cross_vip_result.py deleted file mode 100644 index d01b2caf..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_cross_vip_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_cross_vip_result import MarginCrossVipResult -from bitget import configuration - - -class TestMarginCrossVipResult(unittest.TestCase): - """MarginCrossVipResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info.py deleted file mode 100644 index eb7962b1..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_interest_info import MarginInterestInfo -from bitget import configuration - - -class TestMarginInterestInfo(unittest.TestCase): - """MarginInterestInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info_result.py deleted file mode 100644 index 8ea3a752..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_interest_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_interest_info_result import MarginInterestInfoResult -from bitget import configuration - - -class TestMarginInterestInfoResult(unittest.TestCase): - """MarginInterestInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_population_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_population_result.py deleted file mode 100644 index c6f19b66..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_population_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_assets_population_result import MarginIsolatedAssetsPopulationResult -from bitget import configuration - - -class TestMarginIsolatedAssetsPopulationResult(unittest.TestCase): - """MarginIsolatedAssetsPopulationResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_result.py deleted file mode 100644 index 9dc91956..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_assets_result import MarginIsolatedAssetsResult -from bitget import configuration - - -class TestMarginIsolatedAssetsResult(unittest.TestCase): - """MarginIsolatedAssetsResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_request.py deleted file mode 100644 index df19a08d..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest -from bitget import configuration - - -class TestMarginIsolatedAssetsRiskRequest(unittest.TestCase): - """MarginIsolatedAssetsRiskRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_result.py deleted file mode 100644 index 180f63f1..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_assets_risk_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_assets_risk_result import MarginIsolatedAssetsRiskResult -from bitget import configuration - - -class TestMarginIsolatedAssetsRiskResult(unittest.TestCase): - """MarginIsolatedAssetsRiskResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_borrow_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_borrow_limit_result.py deleted file mode 100644 index df36ab01..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_borrow_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_borrow_limit_result import MarginIsolatedBorrowLimitResult -from bitget import configuration - - -class TestMarginIsolatedBorrowLimitResult(unittest.TestCase): - """MarginIsolatedBorrowLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_info.py deleted file mode 100644 index dce58de8..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_fin_flow_info import MarginIsolatedFinFlowInfo -from bitget import configuration - - -class TestMarginIsolatedFinFlowInfo(unittest.TestCase): - """MarginIsolatedFinFlowInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_result.py deleted file mode 100644 index 49d78301..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_fin_flow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_fin_flow_result import MarginIsolatedFinFlowResult -from bitget import configuration - - -class TestMarginIsolatedFinFlowResult(unittest.TestCase): - """MarginIsolatedFinFlowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info.py deleted file mode 100644 index 612fe6bb..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_interest_info import MarginIsolatedInterestInfo -from bitget import configuration - - -class TestMarginIsolatedInterestInfo(unittest.TestCase): - """MarginIsolatedInterestInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info_result.py deleted file mode 100644 index 49423e27..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_interest_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_interest_info_result import MarginIsolatedInterestInfoResult -from bitget import configuration - - -class TestMarginIsolatedInterestInfoResult(unittest.TestCase): - """MarginIsolatedInterestInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_level_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_level_result.py deleted file mode 100644 index d30dde27..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_level_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_level_result import MarginIsolatedLevelResult -from bitget import configuration - - -class TestMarginIsolatedLevelResult(unittest.TestCase): - """MarginIsolatedLevelResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_limit_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_limit_request.py deleted file mode 100644 index 725fff90..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_limit_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest -from bitget import configuration - - -class TestMarginIsolatedLimitRequest(unittest.TestCase): - """MarginIsolatedLimitRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info.py deleted file mode 100644 index d0beeb5d..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_liquidation_info import MarginIsolatedLiquidationInfo -from bitget import configuration - - -class TestMarginIsolatedLiquidationInfo(unittest.TestCase): - """MarginIsolatedLiquidationInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info_result.py deleted file mode 100644 index a3a1aa59..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_liquidation_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_liquidation_info_result import MarginIsolatedLiquidationInfoResult -from bitget import configuration - - -class TestMarginIsolatedLiquidationInfoResult(unittest.TestCase): - """MarginIsolatedLiquidationInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info.py deleted file mode 100644 index 6748f7c7..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_loan_info import MarginIsolatedLoanInfo -from bitget import configuration - - -class TestMarginIsolatedLoanInfo(unittest.TestCase): - """MarginIsolatedLoanInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info_result.py deleted file mode 100644 index cb0e4cf1..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_loan_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_loan_info_result import MarginIsolatedLoanInfoResult -from bitget import configuration - - -class TestMarginIsolatedLoanInfoResult(unittest.TestCase): - """MarginIsolatedLoanInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_request.py deleted file mode 100644 index 35d57c6a..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest -from bitget import configuration - - -class TestMarginIsolatedMaxBorrowRequest(unittest.TestCase): - """MarginIsolatedMaxBorrowRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_result.py deleted file mode 100644 index 1632e278..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_max_borrow_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_max_borrow_result import MarginIsolatedMaxBorrowResult -from bitget import configuration - - -class TestMarginIsolatedMaxBorrowResult(unittest.TestCase): - """MarginIsolatedMaxBorrowResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_rate_and_limit_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_rate_and_limit_result.py deleted file mode 100644 index 8d668445..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_rate_and_limit_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_rate_and_limit_result import MarginIsolatedRateAndLimitResult -from bitget import configuration - - -class TestMarginIsolatedRateAndLimitResult(unittest.TestCase): - """MarginIsolatedRateAndLimitResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info.py deleted file mode 100644 index 262165a9..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_repay_info import MarginIsolatedRepayInfo -from bitget import configuration - - -class TestMarginIsolatedRepayInfo(unittest.TestCase): - """MarginIsolatedRepayInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info_result.py deleted file mode 100644 index e54aabd6..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_repay_info_result import MarginIsolatedRepayInfoResult -from bitget import configuration - - -class TestMarginIsolatedRepayInfoResult(unittest.TestCase): - """MarginIsolatedRepayInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_request.py deleted file mode 100644 index a9fa2160..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest -from bitget import configuration - - -class TestMarginIsolatedRepayRequest(unittest.TestCase): - """MarginIsolatedRepayRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_result.py deleted file mode 100644 index c89d690d..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_repay_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_repay_result import MarginIsolatedRepayResult -from bitget import configuration - - -class TestMarginIsolatedRepayResult(unittest.TestCase): - """MarginIsolatedRepayResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_vip_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_vip_result.py deleted file mode 100644 index c3c72db6..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_isolated_vip_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_isolated_vip_result import MarginIsolatedVipResult -from bitget import configuration - - -class TestMarginIsolatedVipResult(unittest.TestCase): - """MarginIsolatedVipResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info.py deleted file mode 100644 index c226c6ff..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_liquidation_info import MarginLiquidationInfo -from bitget import configuration - - -class TestMarginLiquidationInfo(unittest.TestCase): - """MarginLiquidationInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info_result.py deleted file mode 100644 index ade3b7b3..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_liquidation_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_liquidation_info_result import MarginLiquidationInfoResult -from bitget import configuration - - -class TestMarginLiquidationInfoResult(unittest.TestCase): - """MarginLiquidationInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info.py deleted file mode 100644 index 2cf0e226..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_loan_info import MarginLoanInfo -from bitget import configuration - - -class TestMarginLoanInfo(unittest.TestCase): - """MarginLoanInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info_result.py deleted file mode 100644 index 262b8b4b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_loan_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_loan_info_result import MarginLoanInfoResult -from bitget import configuration - - -class TestMarginLoanInfoResult(unittest.TestCase): - """MarginLoanInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_open_order_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_open_order_info_result.py deleted file mode 100644 index 6b6c4c41..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_open_order_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_open_order_info_result import MarginOpenOrderInfoResult -from bitget import configuration - - -class TestMarginOpenOrderInfoResult(unittest.TestCase): - """MarginOpenOrderInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_order_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_order_info.py deleted file mode 100644 index 04d40d35..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_order_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_order_info import MarginOrderInfo -from bitget import configuration - - -class TestMarginOrderInfo(unittest.TestCase): - """MarginOrderInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_order_request.py b/bitget-python-sdk-open-api/test/test_models/test_margin_order_request.py deleted file mode 100644 index f3ba53a7..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_order_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_order_request import MarginOrderRequest -from bitget import configuration - - -class TestMarginOrderRequest(unittest.TestCase): - """MarginOrderRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_place_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_place_order_result.py deleted file mode 100644 index 357d2ed9..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_place_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_place_order_result import MarginPlaceOrderResult -from bitget import configuration - - -class TestMarginPlaceOrderResult(unittest.TestCase): - """MarginPlaceOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info.py deleted file mode 100644 index 73f57d1b..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_repay_info import MarginRepayInfo -from bitget import configuration - - -class TestMarginRepayInfo(unittest.TestCase): - """MarginRepayInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info_result.py deleted file mode 100644 index a4eb9b1f..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_repay_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_repay_info_result import MarginRepayInfoResult -from bitget import configuration - - -class TestMarginRepayInfoResult(unittest.TestCase): - """MarginRepayInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_system_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_system_result.py deleted file mode 100644 index a61e2646..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_system_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_system_result import MarginSystemResult -from bitget import configuration - - -class TestMarginSystemResult(unittest.TestCase): - """MarginSystemResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info.py b/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info.py deleted file mode 100644 index 289b6ff0..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_trade_detail_info import MarginTradeDetailInfo -from bitget import configuration - - -class TestMarginTradeDetailInfo(unittest.TestCase): - """MarginTradeDetailInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info_result.py deleted file mode 100644 index 65c23517..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_margin_trade_detail_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.margin_trade_detail_info_result import MarginTradeDetailInfoResult -from bitget import configuration - - -class TestMarginTradeDetailInfoResult(unittest.TestCase): - """MarginTradeDetailInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_info.py deleted file mode 100644 index 99d359dc..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_adv_info import MerchantAdvInfo -from bitget import configuration - - -class TestMerchantAdvInfo(unittest.TestCase): - """MerchantAdvInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_result.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_result.py deleted file mode 100644 index 181648dc..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_adv_result import MerchantAdvResult -from bitget import configuration - - -class TestMerchantAdvResult(unittest.TestCase): - """MerchantAdvResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_user_limit_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_user_limit_info.py deleted file mode 100644 index 45ecf4eb..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_adv_user_limit_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_adv_user_limit_info import MerchantAdvUserLimitInfo -from bitget import configuration - - -class TestMerchantAdvUserLimitInfo(unittest.TestCase): - """MerchantAdvUserLimitInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_info.py deleted file mode 100644 index d17f0831..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_info import MerchantInfo -from bitget import configuration - - -class TestMerchantInfo(unittest.TestCase): - """MerchantInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_info_result.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_info_result.py deleted file mode 100644 index acb08a26..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_info_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_info_result import MerchantInfoResult -from bitget import configuration - - -class TestMerchantInfoResult(unittest.TestCase): - """MerchantInfoResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_order_info.py deleted file mode 100644 index 01ae45e5..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_order_info import MerchantOrderInfo -from bitget import configuration - - -class TestMerchantOrderInfo(unittest.TestCase): - """MerchantOrderInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_payment_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_order_payment_info.py deleted file mode 100644 index b2da09df..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_payment_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_order_payment_info import MerchantOrderPaymentInfo -from bitget import configuration - - -class TestMerchantOrderPaymentInfo(unittest.TestCase): - """MerchantOrderPaymentInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_result.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_order_result.py deleted file mode 100644 index 0b302763..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_order_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_order_result import MerchantOrderResult -from bitget import configuration - - -class TestMerchantOrderResult(unittest.TestCase): - """MerchantOrderResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_merchant_person_info.py b/bitget-python-sdk-open-api/test/test_models/test_merchant_person_info.py deleted file mode 100644 index e65d9da8..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_merchant_person_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.merchant_person_info import MerchantPersonInfo -from bitget import configuration - - -class TestMerchantPersonInfo(unittest.TestCase): - """MerchantPersonInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_models/test_order_payment_detail_info.py b/bitget-python-sdk-open-api/test/test_models/test_order_payment_detail_info.py deleted file mode 100644 index f62c17a5..00000000 --- a/bitget-python-sdk-open-api/test/test_models/test_order_payment_detail_info.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Bitget Open API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 2.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget.model.order_payment_detail_info import OrderPaymentDetailInfo -from bitget import configuration - - -class TestOrderPaymentDetailInfo(unittest.TestCase): - """OrderPaymentDetailInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/__init__.py b/bitget-python-sdk-open-api/test/test_paths/__init__.py deleted file mode 100644 index 8a2451e2..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/__init__.py +++ /dev/null @@ -1,80 +0,0 @@ -import json -import typing - -import urllib3 -from urllib3._collections import HTTPHeaderDict - - -class ApiTestMixin: - json_content_type = 'application/json' - user_agent = 'OpenAPI-Generator/1.0.0/python' - - @classmethod - def assert_pool_manager_request_called_with( - cls, - mock_request, - url: str, - method: str = 'POST', - body: typing.Optional[bytes] = None, - content_type: typing.Optional[str] = None, - accept_content_type: typing.Optional[str] = None, - stream: bool = False, - ): - headers = { - 'User-Agent': cls.user_agent - } - if accept_content_type: - headers['Accept'] = accept_content_type - if content_type: - headers['Content-Type'] = content_type - kwargs = dict( - headers=HTTPHeaderDict(headers), - preload_content=not stream, - timeout=None, - ) - if content_type and method != 'GET': - kwargs['body'] = body - mock_request.assert_called_with( - method, - url, - **kwargs - ) - - @staticmethod - def headers_for_content_type(content_type: str) -> typing.Dict[str, str]: - return {'content-type': content_type} - - @classmethod - def response( - cls, - body: typing.Union[str, bytes], - status: int = 200, - content_type: str = json_content_type, - headers: typing.Optional[typing.Dict[str, str]] = None, - preload_content: bool = True - ) -> urllib3.HTTPResponse: - if headers is None: - headers = {} - headers.update(cls.headers_for_content_type(content_type)) - return urllib3.HTTPResponse( - body, - headers=headers, - status=status, - preload_content=preload_content - ) - - @staticmethod - def json_bytes(in_data: typing.Any) -> bytes: - return json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode('utf-8') - - @staticmethod - def get_default_configuration( - ): - import bitget - configuration = bitget.Configuration( - host = "https://api.bitget.com" - ) - configuration.api_key['ACCESS_KEY'] = 'your value' - configuration.api_key['ACCESS_PASSPHRASE'] = 'your value' - configuration.api_key['SECRET_KEY'] = 'your value' - return configuration diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/test_get.py deleted file mode 100644 index 5667b9bd..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_assets/test_get.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_assets import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountAssets(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountAssets unit test stubs - assets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - req = { - 'coin':"USDT" - } - api_response = api_instance.margin_cross_account_assets(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['coin'], 'USDT') - self.assertIsNotNone(item['totalAmount']) - self.assertIsNotNone(item['available']) - self.assertIsNotNone(item['frozen']) - self.assertIsNotNone(item['borrow']) - self.assertIsNotNone(item['interest']) - self.assertIsNotNone(item['net']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/test_post.py deleted file mode 100644 index b5c7408f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_borrow/test_post.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_borrow import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountBorrow(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountBorrow unit test stubs - borrow # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - from bitget.model.margin_cross_limit_request import MarginCrossLimitRequest - req = MarginCrossLimitRequest( - coin="USDT", - borrowAmount="1" - ) - api_response = api_instance.margin_cross_account_borrow(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertIsNotNone(api_response.body['data']['borrowAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/test_post.py deleted file mode 100644 index 7ecfbd6b..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_borrowable_amount/test_post.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_max_borrowable_amount import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountMaxBorrowableAmount(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountMaxBorrowableAmount unit test stubs - maxBorrowableAmount # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest - req = MarginCrossMaxBorrowRequest( - coin="USDT" - ) - api_response = api_instance.margin_cross_account_max_borrowable_amount(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertIsNotNone(api_response.body['data']['maxBorrowableAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/test_get.py deleted file mode 100644 index e71f7cb1..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_max_transfer_out_amount/test_get.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_max_transfer_out_amount import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountMaxTransferOutAmount(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountMaxTransferOutAmount unit test stubs - maxTransferOutAmount # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - from bitget.model.margin_cross_max_borrow_request import MarginCrossMaxBorrowRequest - req = MarginCrossMaxBorrowRequest( - coin="USDT" - ) - api_response = api_instance.margin_cross_account_max_transfer_out_amount(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertIsNotNone(api_response.body['data']['maxTransferOutAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/test_post.py deleted file mode 100644 index 6015ca4a..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_repay/test_post.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_repay import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountRepay(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountRepay unit test stubs - repay # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - from bitget.model.margin_cross_repay_request import MarginCrossRepayRequest - req = MarginCrossRepayRequest( - coin="USDT", - repayAmount="1" - ) - api_response = api_instance.margin_cross_account_repay(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertIsNotNone(api_response.body['data']['repayAmount']) - self.assertIsNotNone(api_response.body['data']['remainDebtAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/test_get.py deleted file mode 100644 index deac4ede..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_risk_rate/test_get.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_risk_rate import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountRiskRate(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountRiskRate unit test stubs - riskRate # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_account_api - api_instance = margin_cross_account_api.MarginCrossAccountApi(api_client) - try: - api_response = api_instance.margin_cross_account_risk_rate() - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - self.assertIsNotNone(api_response.body['data']['riskRate']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/test_get.py deleted file mode 100644 index e013c89f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_account_void/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_account_void import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossAccountVoid(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossAccountVoid unit test stubs - void # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/test_get.py deleted file mode 100644 index 5cd2e4c7..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_fin_list/test_get.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_fin_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossFinList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossFinList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_finflow_api - api_instance = margin_cross_finflow_api.MarginCrossFinflowApi(api_client) - try: - req = { - 'startTime': "1679133422000", - 'endTime': "1679833422000", - } - api_response = api_instance.cross_fin_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['marginId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['marginType']) - self.assertIsNotNone(item['balance']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/test_get.py deleted file mode 100644 index 1a7fa2a6..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_interest_list/test_get.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_interest_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossInterestList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossInterestList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_interest_api - api_instance = margin_cross_interest_api.MarginCrossInterestApi(api_client) - try: - req = { - 'startTime': "1679133422000", - } - api_response = api_instance.cross_interest_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['interestId']) - self.assertIsNotNone(item['loanCoin']) - self.assertIsNotNone(item['amount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/test_get.py deleted file mode 100644 index 052117ea..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_liquidation_list/test_get.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_liquidation_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossLiquidationList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossLiquidationList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_liquidation_api - api_instance = margin_cross_liquidation_api.MarginCrossLiquidationApi(api_client) - try: - req = { - 'startTime': "1679133422000", - 'endTime': "1679933422000", - } - api_response = api_instance.cross_liquidation_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['liqId']) - self.assertIsNotNone(item['liqRisk']) - self.assertIsNotNone(item['totalAssets']) - self.assertIsNotNone(item['LiqFee']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/test_get.py deleted file mode 100644 index 3d488852..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_loan_list/test_get.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_loan_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossLoanList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossLoanList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_borrow_api - api_instance = margin_cross_borrow_api.MarginCrossBorrowApi(api_client) - try: - req = { - 'coin':"USDT", - 'startTime': "1679133422000", - } - api_response = api_instance.cross_loan_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['loanId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['amount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/test_post.py deleted file mode 100644 index f22de0c2..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_cancel_order/test_post.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_batch_cancel_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderBatchCancelOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderBatchCancelOrder unit test stubs - batchCancelOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - from bitget.apis.tags import margin_cross_order_api - - api_instance = margin_cross_order_api.MarginCrossPlaceOrder(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="limit", - price="1600", - timeInForce="gtc", - baseQuantity="0.625", - quoteAmount="1000", - loanType="normal", - ) - place_response = api_instance.margin_cross_place_order(req) - print(place_response) - self.assertIsNotNone(place_response) - self.assertIsNotNone(place_response.body) - self.assertEqual(place_response.body['code'], '00000') - self.assertEqual(place_response.body['msg'], 'success') - self.assertIsNotNone(place_response.body['data']['orderId']) - - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossBatchCancelOrder(api_client) - try: - from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - req = MarginBatchCancelOrderRequest( - symbol="BTCUSDT", - orderIds=[place_response.body['data']['orderId']] - ) - api_response = api_instance.margin_cross_batch_cancel_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['resultList'][0]['orderId'], place_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/test_post.py deleted file mode 100644 index b12f080f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_batch_place_order/test_post.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget import configuration, api_client -from bitget.paths.api_margin_v1_cross_order_batch_place_order import post # noqa: E501 -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderBatchPlaceOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderBatchPlaceOrder unit test stubs - batchPlaceOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_order_api - api_instance = margin_cross_order_api.MarginCrossBatchPlaceOrder(api_client) - try: - from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - from bitget.model.margin_order_request import MarginOrderRequest - item = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="market", - timeInForce="gtc", - quoteAmount="10", - loanType="normal" - ) - - req = MarginBatchOrdersRequest( - symbol="BTCUSDT", - orderList=[item] - ) - - api_response = api_instance.margin_cross_batch_place_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertIsNotNone(api_response.body['data']['resultList'][0]) - - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - response_status = 200 - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/test_post.py deleted file mode 100644 index 89a98e9f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_cancel_order/test_post.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_cancel_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderCancelOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderCancelOrder unit test stubs - cancelOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - from bitget.apis.tags import margin_cross_order_api - - api_instance = margin_cross_order_api.MarginCrossPlaceOrder(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="limit", - price="1600", - timeInForce="gtc", - baseQuantity="0.625", - quoteAmount="1000", - loanType="normal", - ) - place_response = api_instance.margin_cross_place_order(req) - print(place_response) - self.assertIsNotNone(place_response) - self.assertIsNotNone(place_response.body) - self.assertEqual(place_response.body['code'], '00000') - self.assertEqual(place_response.body['msg'], 'success') - self.assertIsNotNone(place_response.body['data']['orderId']) - - # Create an instance of the API class - api_instance = margin_cross_order_api.MarginCrossCancelOrder(api_client) - try: - from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest - req = MarginCancelOrderRequest( - symbol="BTCUSDT", - orderId=place_response.body['data']['orderId'] - ) - api_response = api_instance.margin_cross_cancel_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['resultList'][0]['orderId'], place_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/test_get.py deleted file mode 100644 index 15217f6d..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_fills/test_get.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_fills import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderFills(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderFills unit test stubs - fills # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_order_api - api_instance = margin_cross_order_api.MarginCrossFills(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.margin_cross_fills(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['fills']) - for item in api_response.body['data']['fills']: - print(item) - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['fillId']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['fees']) - self.assertIsNotNone(item['feeCcy']) - self.assertIsNotNone(item['fillPrice']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/test_get.py deleted file mode 100644 index 7c9c75d5..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_history/test_get.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_history import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderHistory(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderHistory unit test stubs - history # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_order_api - api_instance = margin_cross_order_api.MarginCrossHistoryOrders(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.margin_cross_history_orders(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderList']) - for item in api_response.body['data']['orderList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['source']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['loanType']) - self.assertIsNotNone(item['price']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['status']) - self.assertIsNotNone(item['baseQuantity']) - self.assertIsNotNone(item['quoteAmount']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/test_get.py deleted file mode 100644 index 1e4e2585..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_open_orders/test_get.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_open_orders import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderOpenOrders(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderOpenOrders unit test stubs - openOrders # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_order_api - api_instance = margin_cross_order_api.MarginCrossOpenOrders(api_client) - try: - req = { - 'symbol': "BTCUSDT", - 'startTime': "1679133422000", - 'endTime': "1679733422000" - } - api_response = api_instance.margin_cross_open_orders(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderList']) - for item in api_response.body['data']['orderList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['source']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['loanType']) - self.assertIsNotNone(item['price']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['status']) - self.assertIsNotNone(item['baseQuantity']) - self.assertIsNotNone(item['quoteAmount']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/test_post.py deleted file mode 100644 index f04931d0..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_order_place_order/test_post.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_order_place_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossOrderPlaceOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossOrderPlaceOrder unit test stubs - placeOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_order_api - api_instance = margin_cross_order_api.MarginCrossPlaceOrder(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - try: - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="market", - timeInForce="gtc", - quoteAmount="10", - loanType="normal", - ) - api_response = api_instance.margin_cross_place_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/test_get.py deleted file mode 100644 index 810dcc31..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_interest_rate_and_limit/test_get.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_public_interest_rate_and_limit import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossPublicInterestRateAndLimit(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossPublicInterestRateAndLimit unit test stubs - interestRateAndLimit # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_public_api - api_instance = margin_cross_public_api.MarginCrossPublicInterestRateAndLimit(api_client) - try: - req = { - 'coin':"USDT" - } - api_response = api_instance.margin_cross_public_interest_rate_and_limit(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['coin'], 'USDT') - self.assertIsNotNone(item['leverage']) - self.assertIsNotNone(item['transferInAble']) - self.assertIsNotNone(item['borrowAble']) - self.assertIsNotNone(item['dailyInterestRate']) - self.assertIsNotNone(item['yearlyInterestRate']) - self.assertIsNotNone(item['maxBorrowableAmount']) - self.assertIsNotNone(item['vips']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/test_get.py deleted file mode 100644 index e27ba25f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_public_tier_data/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_public_tier_data import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossPublicTierData(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossPublicTierData unit test stubs - tierData # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_public_api - api_instance = margin_cross_public_api.MarginCrossPublicTierData(api_client) - try: - req = { - 'coin':"USDT" - } - api_response = api_instance.margin_cross_public_tier_data(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['coin'], 'USDT') - self.assertIsNotNone(item['tier']) - self.assertIsNotNone(item['leverage']) - self.assertIsNotNone(item['maxBorrowableAmount']) - self.assertIsNotNone(item['maintainMarginRate']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/test_get.py deleted file mode 100644 index b3a929b3..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_cross_repay_list/test_get.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_cross_repay_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1CrossRepayList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1CrossRepayList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_cross_repay_api - api_instance = margin_cross_repay_api.MarginCrossRepayApi(api_client) - try: - req = { - 'startTime': "1679133422000", - } - api_response = api_instance.cross_repay_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['repayId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['totalAmount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/test_get.py deleted file mode 100644 index 7c49802c..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_assets/test_get.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_account_assets import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountAssets(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountAssets unit test stubs - assets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - try: - req = { - 'symbol':"BTCUSDT" - } - api_response = api_instance.margin_isolated_account_assets(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['totalAmount']) - self.assertIsNotNone(item['available']) - self.assertIsNotNone(item['frozen']) - self.assertIsNotNone(item['borrow']) - self.assertIsNotNone(item['interest']) - self.assertIsNotNone(item['net']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/test_post.py deleted file mode 100644 index b1008f46..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_borrow/test_post.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_account_borrow import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountBorrow(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountBorrow unit test stubs - borrow # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - try: - from bitget.model.margin_isolated_limit_request import MarginIsolatedLimitRequest - req = MarginIsolatedLimitRequest( - coin="USDT", - borrowAmount="1", - symbol="BTCUSDT" - ) - api_response = api_instance.margin_isolated_account_borrow(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertEqual(api_response.body['data']['symbol'], 'BTCUSDT') - self.assertIsNotNone(api_response.body['data']['borrowAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/test_post.py deleted file mode 100644 index e90c78a8..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_borrowable_amount/test_post.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_account_max_borrowable_amount import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountMaxBorrowableAmount(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountMaxBorrowableAmount unit test stubs - maxBorrowableAmount # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountMaxBorrowableAmount(api_client) - try: - from bitget.model.margin_isolated_max_borrow_request import MarginIsolatedMaxBorrowRequest - req = MarginIsolatedMaxBorrowRequest( - coin="USDT", - symbol="BTCUSDT" - ) - api_response = api_instance.margin_isolated_account_max_borrowable_amount(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertEqual(api_response.body['data']['symbol'], 'BTCUSDT') - self.assertIsNotNone(api_response.body['data']['maxBorrowableAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/test_get.py deleted file mode 100644 index 73892d42..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_max_transfer_out_amount/test_get.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget import configuration, api_client -from bitget.paths.api_margin_v1_isolated_account_max_transfer_out_amount import get # noqa: E501 -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountMaxTransferOutAmount(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountMaxTransferOutAmount unit test stubs - maxTransferOutAmount # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - try: - req = { - 'coin': "USDT", - 'symbol': "BTCUSDT" - } - api_response = api_instance.margin_isolated_account_max_transfer_out_amount(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertEqual(api_response.body['data']['symbol'], 'BTCUSDT') - self.assertIsNotNone(api_response.body['data']['maxTransferOutAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/test_post.py deleted file mode 100644 index ad691d04..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_repay/test_post.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_account_repay import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountRepay(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountRepay unit test stubs - repay # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountRepay(api_client) - try: - from bitget.model.margin_isolated_repay_request import MarginIsolatedRepayRequest - req = MarginIsolatedRepayRequest( - coin="USDT", - repayAmount="1", - symbol="BTCUSDT" - ) - api_response = api_instance.margin_isolated_account_repay(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['coin'], 'USDT') - self.assertIsNotNone(api_response.body['data']['repayAmount']) - self.assertIsNotNone(api_response.body['data']['remainDebtAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/test_post.py deleted file mode 100644 index 64def070..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_account_risk_rate/test_post.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_account_risk_rate import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedAccountRiskRate(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedAccountRiskRate unit test stubs - riskRate # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_account_api - api_instance = margin_isolated_account_api.MarginIsolatedAccountApi(api_client) - try: - from bitget.model.margin_isolated_assets_risk_request import MarginIsolatedAssetsRiskRequest - req = MarginIsolatedAssetsRiskRequest( - symbol="BTCUSDT" - ) - api_response = api_instance.margin_isolated_account_risk_rate(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['riskRate']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/test_get.py deleted file mode 100644 index 6debc004..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_fin_list/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_fin_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedFinList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedFinList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_finflow_api - api_instance = margin_isolated_finflow_api.MarginIsolatedFinflowApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000" - } - api_response = api_instance.isolated_fin_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['marginId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['marginType']) - self.assertIsNotNone(item['balance']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/test_get.py deleted file mode 100644 index d29e0280..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_interest_list/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_interest_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedInterestList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedInterestList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_interest_api - api_instance = margin_isolated_interest_api.MarginIsolatedInterestApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.isolated_interest_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['interestId']) - self.assertIsNotNone(item['loanCoin']) - self.assertIsNotNone(item['amount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/test_get.py deleted file mode 100644 index c5222fa6..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_liquidation_list/test_get.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_liquidation_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedLiquidationList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedLiquidationList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_liquidation_api - api_instance = margin_isolated_liquidation_api.MarginIsolatedLiquidationApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - 'endTime': "1679933422000", - } - api_response = api_instance.isolated_liquidation_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['liqId']) - self.assertIsNotNone(item['liqRisk']) - self.assertIsNotNone(item['totalAssets']) - self.assertIsNotNone(item['LiqFee']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/test_get.py deleted file mode 100644 index f64d3ac0..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_loan_list/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_loan_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedLoanList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedLoanList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_borrow_api - api_instance = margin_isolated_borrow_api.MarginIsolatedBorrowApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.isolated_loan_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['loanId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['amount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/test_post.py deleted file mode 100644 index 74fbea9f..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_cancel_order/test_post.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_batch_cancel_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderBatchCancelOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderBatchCancelOrder unit test stubs - batchCancelOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - from bitget.apis.tags import margin_isolated_order_api - - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="limit", - price="1600", - timeInForce="gtc", - baseQuantity="0.625", - quoteAmount="1000", - loanType="normal", - ) - place_response = api_instance.margin_isolated_place_order(req) - print(place_response) - self.assertIsNotNone(place_response) - self.assertIsNotNone(place_response.body) - self.assertEqual(place_response.body['code'], '00000') - self.assertEqual(place_response.body['msg'], 'success') - self.assertIsNotNone(place_response.body['data']['orderId']) - - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedBatchCancelOrder(api_client) - try: - from bitget.model.margin_batch_cancel_order_request import MarginBatchCancelOrderRequest - req = MarginBatchCancelOrderRequest( - symbol="BTCUSDT", - orderIds=[place_response.body['data']['orderId']] - ) - api_response = api_instance.margin_isolated_batch_cancel_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['resultList'][0]['orderId'], place_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/test_post.py deleted file mode 100644 index 8c723592..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_batch_place_order/test_post.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_batch_place_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderBatchPlaceOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderBatchPlaceOrder unit test stubs - batchPlaceOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_order_api - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - try: - from bitget.model.margin_batch_orders_request import MarginBatchOrdersRequest - from bitget.model.margin_order_request import MarginOrderRequest - item = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="market", - timeInForce="gtc", - quoteAmount="10", - loanType="normal" - ) - - req = MarginBatchOrdersRequest( - symbol="BTCUSDT", - orderList=[item] - ) - - api_response = api_instance.margin_isolated_batch_place_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertIsNotNone(api_response.body['data']['resultList'][0]) - - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/test_post.py deleted file mode 100644 index c152b3a4..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_cancel_order/test_post.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_cancel_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderCancelOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderCancelOrder unit test stubs - cancelOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - from bitget.apis.tags import margin_isolated_order_api - - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="limit", - price="1600", - timeInForce="gtc", - baseQuantity="0.625", - quoteAmount="1000", - loanType="normal", - ) - place_response = api_instance.margin_isolated_place_order(req) - print(place_response) - self.assertIsNotNone(place_response) - self.assertIsNotNone(place_response.body) - self.assertEqual(place_response.body['code'], '00000') - self.assertEqual(place_response.body['msg'], 'success') - self.assertIsNotNone(place_response.body['data']['orderId']) - - # Create an instance of the API class - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - try: - from bitget.model.margin_cancel_order_request import MarginCancelOrderRequest - req = MarginCancelOrderRequest( - symbol="BTCUSDT", - orderId=place_response.body['data']['orderId'] - ) - api_response = api_instance.margin_isolated_cancel_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertIsNotNone(api_response.body['data']['resultList']) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertEqual(api_response.body['data']['resultList'][0]['orderId'], place_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/test_get.py deleted file mode 100644 index 6ad3804b..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_fills/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest - -import bitget -from bitget import configuration, api_client -from bitget.paths.api_margin_v1_isolated_order_fills import get # noqa: E501 -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderFills(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderFills unit test stubs - fills # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_order_api - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - try: - req = { - 'symbol': "BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.margin_isolated_fills(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['fills']) - for item in api_response.body['data']['fills']: - print(item) - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['fillId']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['fees']) - self.assertIsNotNone(item['feeCcy']) - self.assertIsNotNone(item['fillPrice']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/test_get.py deleted file mode 100644 index c4b1a510..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_history/test_get.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_history import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderHistory(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderHistory unit test stubs - history # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_order_api - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.margin_isolated_history_orders(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderList']) - for item in api_response.body['data']['orderList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['source']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['loanType']) - self.assertIsNotNone(item['price']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['status']) - self.assertIsNotNone(item['baseQuantity']) - self.assertIsNotNone(item['quoteAmount']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/test_get.py deleted file mode 100644 index 9df8a738..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_open_orders/test_get.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_open_orders import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderOpenOrders(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderOpenOrders unit test stubs - openOrders # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_order_api - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - try: - req = { - 'symbol': "BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.margin_isolated_open_orders(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderList']) - for item in api_response.body['data']['orderList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['orderType']) - self.assertIsNotNone(item['source']) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['loanType']) - self.assertIsNotNone(item['price']) - self.assertIsNotNone(item['side']) - self.assertIsNotNone(item['status']) - self.assertIsNotNone(item['baseQuantity']) - self.assertIsNotNone(item['quoteAmount']) - self.assertIsNotNone(item['fillQuantity']) - self.assertIsNotNone(item['fillTotalAmount']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/test_post.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/test_post.py deleted file mode 100644 index 12d120ce..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_order_place_order/test_post.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_order_place_order import post # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedOrderPlaceOrder(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedOrderPlaceOrder unit test stubs - placeOrder # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_order_api - api_instance = margin_isolated_order_api.MarginIsolatedOrderApi(api_client) - from bitget.model.margin_order_request import MarginOrderRequest - try: - req = MarginOrderRequest( - symbol="BTCUSDT", - side="buy", - orderType="market", - timeInForce="gtc", - quoteAmount="10", - loanType="normal", - ) - api_response = api_instance.margin_isolated_place_order(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderId']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/test_get.py deleted file mode 100644 index fa416b23..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_interest_rate_and_limit/test_get.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_public_interest_rate_and_limit import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedPublicInterestRateAndLimit(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedPublicInterestRateAndLimit unit test stubs - interestRateAndLimit # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_public_api - api_instance = margin_isolated_public_api.MarginIsolatedPublicInterestRateAndLimit(api_client) - try: - req = { - 'symbol':"BTCUSDT" - } - api_response = api_instance.margin_isolated_public_interest_rate_and_limit(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['leverage']) - self.assertIsNotNone(item['baseCoin']) - self.assertIsNotNone(item['baseTransferInAble']) - self.assertIsNotNone(item['baseBorrowAble']) - self.assertIsNotNone(item['baseDailyInterestRate']) - self.assertIsNotNone(item['baseYearlyInterestRate']) - self.assertIsNotNone(item['baseMaxBorrowableAmount']) - self.assertIsNotNone(item['baseVips']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/test_get.py deleted file mode 100644 index 54d5a2e6..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_public_tier_data/test_get.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_public_tier_data import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedPublicTierData(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedPublicTierData unit test stubs - tierData # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_public_api - api_instance = margin_isolated_public_api.MarginIsolatedPublicTierData(api_client) - try: - req = { - 'symbol':"BTCUSDT" - } - api_response = api_instance.margin_isolated_public_tier_data(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['tier']) - self.assertIsNotNone(item['leverage']) - self.assertIsNotNone(item['baseCoin']) - self.assertIsNotNone(item['quoteCoin']) - self.assertIsNotNone(item['baseMaxBorrowableAmount']) - self.assertIsNotNone(item['quoteMaxBorrowableAmount']) - self.assertIsNotNone(item['maintainMarginRate']) - self.assertIsNotNone(item['initRate']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/test_get.py deleted file mode 100644 index eaac33b2..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_isolated_repay_list/test_get.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_isolated_repay_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1IsolatedRepayList(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1IsolatedRepayList unit test stubs - list # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_isolated_repay_api - api_instance = margin_isolated_repay_api.MarginIsolatedRepayApi(api_client) - try: - req = { - 'symbol':"BTCUSDT", - 'startTime': "1679133422000", - } - api_response = api_instance.isolate_repay_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertEqual(item['symbol'], 'BTCUSDT') - self.assertIsNotNone(item['repayId']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['totalAmount']) - self.assertIsNotNone(item['type']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/test_get.py deleted file mode 100644 index 70c162e9..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_margin_v1_public_currencies/test_get.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_margin_v1_public_currencies import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiMarginV1PublicCurrencies(ApiTestMixin, unittest.TestCase): - """ - ApiMarginV1PublicCurrencies unit test stubs - currencies # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import margin_public_api - api_instance = margin_public_api.MarginPublicApi(api_client) - try: - api_response = api_instance.margin_public_currencies() - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']) - for item in api_response.body['data']: - print(item) - self.assertIsNotNone(item['symbol']) - self.assertIsNotNone(item['baseCoin']) - self.assertIsNotNone(item['quoteCoin']) - self.assertIsNotNone(item['maxCrossLeverage']) - self.assertIsNotNone(item['maxIsolatedLeverage']) - self.assertIsNotNone(item['warningRiskRatio']) - self.assertIsNotNone(item['liquidationRiskRatio']) - self.assertIsNotNone(item['minTradeAmount']) - self.assertIsNotNone(item['maxTradeAmount']) - self.assertIsNotNone(item['takerFeeRate']) - self.assertIsNotNone(item['makerFeeRate']) - self.assertIsNotNone(item['quantityScale']) - self.assertIsNotNone(item['isBorrowable']) - self.assertIsNotNone(item['status']) - except bitget.ApiException as e: - print("Exception when calling place_order: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/test_get.py deleted file mode 100644 index d56763e3..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_adv_list/test_get.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_p2p_v1_merchant_adv_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiP2pV1MerchantAdvList(ApiTestMixin, unittest.TestCase): - """ - ApiP2pV1MerchantAdvList unit test stubs - advList # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import p2p_merchant_api - api_instance = p2p_merchant_api.MerchantAdvList(api_client) - try: - req = { - 'startTime': "1676260773000", - } - api_response = api_instance.merchant_adv_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['advList']) - for item in api_response.body['data']['advList']: - print(item) - self.assertIsNotNone(item['advId']) - self.assertIsNotNone(item['advNo']) - self.assertIsNotNone(item['amount']) - self.assertIsNotNone(item['coin']) - self.assertIsNotNone(item['fiatPrecision']) - self.assertIsNotNone(item['minAmount']) - self.assertIsNotNone(item['turnoverRate']) - self.assertIsNotNone(item['turnoverNum']) - except bitget.ApiException as e: - print("Exception when calling: %s\n" % e) - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/test_get.py deleted file mode 100644 index 8611a132..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_info/test_get.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_p2p_v1_merchant_merchant_info import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiP2pV1MerchantMerchantInfo(ApiTestMixin, unittest.TestCase): - """ - ApiP2pV1MerchantMerchantInfo unit test stubs - merchantInfo # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import p2p_merchant_api - api_instance = p2p_merchant_api.MerchantInfo(api_client) - try: - api_response = api_instance.merchant_info() - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['nickName']) - self.assertIsNotNone(api_response.body['data']['merchantId']) - self.assertIsNotNone(api_response.body['data']['realName']) - self.assertIsNotNone(api_response.body['data']['kycFlag']) - self.assertIsNotNone(api_response.body['data']['totalSell']) - self.assertIsNotNone(api_response.body['data']['email']) - self.assertIsNotNone(api_response.body['data']['mobile']) - except bitget.ApiException as e: - print("Exception when calling: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/test_get.py deleted file mode 100644 index 8c441347..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_merchant_list/test_get.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_p2p_v1_merchant_merchant_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiP2pV1MerchantMerchantList(ApiTestMixin, unittest.TestCase): - """ - ApiP2pV1MerchantMerchantList unit test stubs - merchantList # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import p2p_merchant_api - api_instance = p2p_merchant_api.MerchantOrderList(api_client) - try: - req = { - 'startTime': "1676260773000", - } - api_response = api_instance.merchant_order_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['orderList']) - for item in api_response.body['data']['orderList']: - print(item) - self.assertIsNotNone(item['orderId']) - self.assertIsNotNone(item['orderNo']) - self.assertIsNotNone(item['advNo']) - self.assertIsNotNone(item['price']) - self.assertIsNotNone(item['count']) - self.assertIsNotNone(item['type']) - self.assertIsNotNone(item['status']) - self.assertIsNotNone(item['paymentInfo']) - except bitget.ApiException as e: - print("Exception when calling: %s\n" % e) - - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/__init__.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/test_get.py b/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/test_get.py deleted file mode 100644 index 8a31d122..00000000 --- a/bitget-python-sdk-open-api/test/test_paths/test_api_p2p_v1_merchant_order_list/test_get.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import bitget -from bitget.paths.api_p2p_v1_merchant_order_list import get # noqa: E501 -from bitget import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestApiP2pV1MerchantOrderList(ApiTestMixin, unittest.TestCase): - """ - ApiP2pV1MerchantOrderList unit test stubs - orderList # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - def testApi(self): - configuration = ApiTestMixin.get_default_configuration() - # Enter a context with an instance of the API client - with bitget.ApiClient(configuration) as api_client: - # Create an instance of the API class - from bitget.apis.tags import p2p_merchant_api - api_instance = p2p_merchant_api.MerchantList(api_client) - try: - req = { - 'online': "no", - } - api_response = api_instance.merchant_list(req) - print(api_response) - self.assertIsNotNone(api_response) - self.assertIsNotNone(api_response.body) - self.assertEqual(api_response.body['code'], '00000') - self.assertEqual(api_response.body['msg'], 'success') - self.assertIsNotNone(api_response.body['data']['resultList']) - for item in api_response.body['data']['resultList']: - print(item) - self.assertIsNotNone(item['nickName']) - self.assertIsNotNone(item['merchantId']) - self.assertIsNotNone(item['isOnline']) - self.assertIsNotNone(item['averageRealese']) - self.assertIsNotNone(item['totalTrades']) - self.assertIsNotNone(item['thirtyTrades']) - self.assertIsNotNone(item['thirtyCompletionRate']) - except bitget.ApiException as e: - print("Exception when calling: %s\n" % e) - - -if __name__ == '__main__': - unittest.main() diff --git a/bitget-python-sdk-open-api/tox.ini b/bitget-python-sdk-open-api/tox.ini deleted file mode 100644 index 49d4df83..00000000 --- a/bitget-python-sdk-open-api/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py37 - -[testenv] -passenv = PYTHON_VERSION -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=bitget From b77de324abec1b42cfd8938f89c7d31b531d044d Mon Sep 17 00:00:00 2001 From: jidening Date: Mon, 16 Oct 2023 15:01:27 +0800 Subject: [PATCH 04/25] python sdk --- bitget-python-sdk-api/README.md | 89 +++++-- bitget-python-sdk-api/README_EN.md | 76 ++++-- bitget-python-sdk-api/bitget/bitget_api.py | 14 ++ .../bitget/broker/account_api.py | 136 ---------- .../bitget/broker/manage_api.py | 52 ---- bitget-python-sdk-api/bitget/client.py | 10 +- bitget-python-sdk-api/bitget/consts.py | 57 +---- bitget-python-sdk-api/bitget/exceptions.py | 3 +- .../bitget/mix/account_api.py | 148 ----------- .../bitget/mix/market_api.py | 176 ------------- bitget-python-sdk-api/bitget/mix/order_api.py | 137 ---------- bitget-python-sdk-api/bitget/mix/plan_api.py | 235 ------------------ .../bitget/mix/position_api.py | 36 --- bitget-python-sdk-api/bitget/mix/trace_api.py | 191 -------------- .../bitget/spot/account_api.py | 68 ----- .../bitget/spot/market_api.py | 80 ------ .../bitget/spot/order_api.py | 133 ---------- bitget-python-sdk-api/bitget/spot/plan_api.py | 69 ----- .../bitget/spot/public_api.py | 48 ---- .../bitget/spot/wallet_api.py | 126 ---------- bitget-python-sdk-api/bitget/utils.py | 19 +- .../bitget/{mix => v1}/__init__.py | 0 .../bitget/{spot => v1/mix}/__init__.py | 0 .../bitget/v1/mix/account_api.py | 32 +++ .../bitget/v1/mix/market_api.py | 26 ++ .../bitget/v1/mix/order_api.py | 59 +++++ .../bitget/v1/spot/__init__.py | 1 + .../bitget/v1/spot/account_api.py | 20 ++ .../bitget/v1/spot/market_api.py | 32 +++ .../bitget/v1/spot/order_api.py | 50 ++++ .../bitget/v1/spot/wallet_api.py | 23 ++ bitget-python-sdk-api/bitget/v2/__init__.py | 1 + .../bitget/v2/mix/__init__.py | 1 + .../bitget/v2/mix/account_api.py | 35 +++ .../bitget/v2/mix/market_api.py | 23 ++ .../bitget/v2/mix/order_api.py | 68 +++++ .../bitget/v2/spot/__init__.py | 1 + .../bitget/v2/spot/account_api.py | 20 ++ .../bitget/v2/spot/market_api.py | 26 ++ .../bitget/v2/spot/order_api.py | 53 ++++ .../bitget/v2/spot/wallet_api.py | 23 ++ .../bitget/ws/contract/private_channel.py | 32 +++ .../bitget/ws/contract/public_channel.py | 37 +++ .../bitget/ws/utils/ws_url.py | 47 ++++ .../bitget/ws/websocket_server.py | 106 ++++++++ bitget-python-sdk-api/example.py | 57 +++++ bitget-python-sdk-api/example_mix.py | 146 ----------- bitget-python-sdk-api/example_spot.py | 91 ------- bitget-python-sdk-api/example_wallet.py | 27 -- bitget-python-sdk-api/example_ws_contract.py | 36 ++- 50 files changed, 976 insertions(+), 2000 deletions(-) create mode 100644 bitget-python-sdk-api/bitget/bitget_api.py delete mode 100644 bitget-python-sdk-api/bitget/broker/account_api.py delete mode 100644 bitget-python-sdk-api/bitget/broker/manage_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/account_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/market_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/order_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/plan_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/position_api.py delete mode 100644 bitget-python-sdk-api/bitget/mix/trace_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/account_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/market_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/order_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/plan_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/public_api.py delete mode 100644 bitget-python-sdk-api/bitget/spot/wallet_api.py rename bitget-python-sdk-api/bitget/{mix => v1}/__init__.py (100%) rename bitget-python-sdk-api/bitget/{spot => v1/mix}/__init__.py (100%) create mode 100644 bitget-python-sdk-api/bitget/v1/mix/account_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/mix/market_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/mix/order_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/spot/__init__.py create mode 100644 bitget-python-sdk-api/bitget/v1/spot/account_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/spot/market_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/spot/order_api.py create mode 100644 bitget-python-sdk-api/bitget/v1/spot/wallet_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/__init__.py create mode 100644 bitget-python-sdk-api/bitget/v2/mix/__init__.py create mode 100644 bitget-python-sdk-api/bitget/v2/mix/account_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/mix/market_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/mix/order_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/spot/__init__.py create mode 100644 bitget-python-sdk-api/bitget/v2/spot/account_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/spot/market_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/spot/order_api.py create mode 100644 bitget-python-sdk-api/bitget/v2/spot/wallet_api.py create mode 100644 bitget-python-sdk-api/bitget/ws/contract/private_channel.py create mode 100644 bitget-python-sdk-api/bitget/ws/contract/public_channel.py create mode 100644 bitget-python-sdk-api/bitget/ws/utils/ws_url.py create mode 100644 bitget-python-sdk-api/bitget/ws/websocket_server.py create mode 100644 bitget-python-sdk-api/example.py delete mode 100644 bitget-python-sdk-api/example_mix.py delete mode 100644 bitget-python-sdk-api/example_spot.py delete mode 100644 bitget-python-sdk-api/example_wallet.py diff --git a/bitget-python-sdk-api/README.md b/bitget-python-sdk-api/README.md index 45c06f00..2c22aec9 100644 --- a/bitget-python-sdk-api/README.md +++ b/bitget-python-sdk-api/README.md @@ -1,23 +1,82 @@ +### 如何使用? -# bitget-python-sdk-api -A Python sdk for bitget exchange API +`python版本:3.6+` -

-English -

+`WebSocketAPI:建议websockets库版本为1.4.2+` -1. api文档地址: https://bitgetlimited.github.io/apidoc/zh/mix/ +#### 第一步:下载SDK,安装相关所需库 -2. 下载代码及版本要求 -- python版本3.6+ -- 依赖: requests +1.1 下载`python SDK` +* 将SDK目录`Clone`或者`Download`到本地,选择使用`bitget-python-sdk-api`即可 +1.2 安装所需库 +```python +pip install requests +pip install websockets +``` -3. -- Passphrase 口令,由用户自己设定,需要注意的是,Passphrase忘记之后是无法找回的,需要重新创建APIKey -- API Key的申请请参考网址: https://bitgetlimited.github.io/apidoc/zh/swap/#c1ae0a8486 -- 参数 use_server_time 值默认为false, 如果为true 时, 将使用服务器的时间 -- 参数 first 值默认为 false, 如果为true时, 每次请求将会打印 url, method, body, headers, status 等信息 +#### 第二步:配置个人信息 +2.1 如果还未有API,可[点击](https://www.bitget.com/zh-CN/account/newapi)前往官网进行申请 -PS:SDK仅为给予参考,降低开发门槛,相关客户端程序代码问题,还需本地调试解决,有帮助不到的地方,望多包涵。 \ No newline at end of file +2.2 将各项信息在`example_*.py(RestAPI)`和`example_ws_contract.py(WebSocketAPI)`中填写 +```python +api_key = "" +secret_key = "" +passphrase = "" +``` +#### 第三步:调用接口 + +* RestAPI + + * 运行`example.py` + + * 解开相应方法的注释传参调用各接口即可 + +* WebSocketAPI + + * 运行`example_ws_contract.py` + + * 根据个人/公共频道选择对应启动方法,解开相应频道的注释即可 + + ```python + # 公共数据 不需要登录(行情,K线,交易数据,资金费率,限价范围,深度数据,标记价格等频道) + client = BitgetWsClient(CONTRACT_WS_URL, need_login=False) \ + .api_key(api_key) \ + .api_secret_key(secret_key) \ + .passphrase(passphrase) \ + .error_listener(handel_error) \ + .build() + + channles = [SubscribeReq("mc", "ticker", "BTCUSD"), SubscribeReq("SP", "candle1W", "BTCUSDT")] + client.subscribe(channles,handle) + + # 个人数据 需要登录(用户账户,用户交易,用户持仓等频道) + client = BitgetWsClient(CONTRACT_WS_URL, need_login=True) \ + .api_key(api_key) \ + .api_secret_key(secret_key) \ + .passphrase(passphrase) \ + .error_listener(handel_error) \ + .build() + + channles = [SubscribeReq("umcbl", "order", "BTCUSDT")] + client.subscribe(channles,handle) + + ``` + +附言: + +* 如果对API尚不了解,建议参考`Bitget`官方[API文档](https://bitgetlimited.github.io/apidoc/zh/spot/) + +* 若使用`WebSocketAPI`遇到问题建议参考相关链接 + + * `asyncio`、`websockets`文档/`github`: + + https://docs.python.org/3/library/asyncio-dev.html + https://websockets.readthedocs.io/en/stable/intro.html + https://github.com/aaugustin/websockets + + * 关于`code=1006`: + + https://github.com/Rapptz/discord.py/issues/1996 + https://github.com/aaugustin/websockets/issues/587 \ No newline at end of file diff --git a/bitget-python-sdk-api/README_EN.md b/bitget-python-sdk-api/README_EN.md index b46dc4e7..7dc27faa 100644 --- a/bitget-python-sdk-api/README_EN.md +++ b/bitget-python-sdk-api/README_EN.md @@ -1,24 +1,70 @@ +### How to use Python SDK? -# bitget-python-sdk-api -A Python sdk for bitget exchange API +`python version:3.6+` -

-中文 -

+`WebSocketAPI:advice websockets library 1.4.2+` -1. api documents: https://bitgetlimited.github.io/apidoc/zh/mix/#25e54147de +#### First:Download SDK,install Library +1.1 Download `python SDK` +* Clone or Download the SDK directory locally and choose to use bitget-python-sdk-api -2. Download code and version requirements -- python verion 3.6+ -- Dependency: requests +1.2 Install required libraries +```python +pip install requests +pip install websockets +``` +#### Second:Configure Apikey information -3. -- Passphrase is set by the user. It should be noted that after the Passphrase is forgotten, it cannot be retrieved, and the APIKey needs to be recreated -- API Key application please refer to: https://bitgetlimited.github.io/apidoc/zh/swap/#c1ae0a8486 -- param use_server_time's value is False if is True will use server timestamp -- param first's value is False if is True will print (url,method,body,headers,status) +2.1 If there is no API yet, you can [click](https://www.bitget.com/zh-CN/account/newapi) to go to the official website to apply. +2.2 Put all information in`example_*.py(RestAPI)`and `example_ws_contract.py(WebSocketAPI)` +```python +api_key = "" +secret_key = "" +passphrase = "" +``` +#### Third:Use example + +* RestAPI + + * run`example.py` + + * Unlock the annotations of the corresponding methods, pass parameters, and call each interface. + +* WebSocketAPI + + * run `example_ws_contract.py` + + * Select the corresponding startup method according to the personal/public channel, and unlock the annotation of the corresponding channel. + + ```python + # Public channel does not require login (market, K-line, transaction data, depth data, mark price and other channels) + client = BitgetWsClient(CONTRACT_WS_URL, need_login=False) \ + .api_key(api_key) \ + .api_secret_key(secret_key) \ + .passphrase(passphrase) \ + .error_listener(handel_error) \ + .build() + + channles = [SubscribeReq("mc", "ticker", "BTCUSD"), SubscribeReq("SP", "candle1W", "BTCUSDT")] + client.subscribe(channles,handle) + + # private channel need login(account,orders,position channels) + client = BitgetWsClient(CONTRACT_WS_URL, need_login=True) \ + .api_key(api_key) \ + .api_secret_key(secret_key) \ + .passphrase(passphrase) \ + .error_listener(handel_error) \ + .build() + + channles = [SubscribeReq("umcbl", "order", "BTCUSDT")] + client.subscribe(channles,handle) + + ``` + +Tips: + +* If you don’t know the API yet, it is recommended to refer to the `Bitget` official [API document](https://bitgetlimited.github.io/apidoc/zh/spot/) -PS:The SDK is only for reference, to lower the development threshold, and the related client program code issues need to be debugged locally. \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/bitget_api.py b/bitget-python-sdk-api/bitget/bitget_api.py new file mode 100644 index 00000000..377576c1 --- /dev/null +++ b/bitget-python-sdk-api/bitget/bitget_api.py @@ -0,0 +1,14 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class BitgetApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def post(self, request_path, params): + return self._request_with_params(POST, request_path, params) + + def get(self, request_path, params): + return self._request_with_params(GET, request_path, params) diff --git a/bitget-python-sdk-api/bitget/broker/account_api.py b/bitget-python-sdk-api/bitget/broker/account_api.py deleted file mode 100644 index 9c70f231..00000000 --- a/bitget-python-sdk-api/bitget/broker/account_api.py +++ /dev/null @@ -1,136 +0,0 @@ -from ..client import Client -from ..consts import * - - -class AccountApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - get broker info - :return: - ''' - def info(self): - return self._request_without_params(GET, BROKER_ACCOUNT_V1_URL + '/info') - - ''' - broker create sub account - :return: - ''' - def sub_create(self, subName, remark): - params = {} - if subName: - params["subName"] = subName - params["remark"] = remark - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-create', params) - else: - return "pls check args " - - ''' - get sub info list - :return: - ''' - def sub_list(self, pageSize, lastEndId, status): - params = {} - params["pageSize"] = pageSize - params["lastEndId"] = lastEndId - params["status"] = status - return self._request_with_params(GET, BROKER_ACCOUNT_V1_URL + '/sub-list', params) - return "pls check args" - - ''' - modify sub info list - :return: - ''' - def sub_modify(self, subUid, perm, status): - params = {} - if subUid and perm and status: - params["subUid"] = subUid - params["perm"] = perm - params["status"] = status - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-modify', params) - else: - return "pls check args " - - ''' - modify sub email - :return: - ''' - def sub_modify_email(self, subUid, subEmail): - params = {} - if subUid and subEmail: - params["subUid"] = subUid - params["subEmail"] = subEmail - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-modify-email', params) - else: - return "pls check args " - - ''' - get sub spot assets - :return: - ''' - def sub_spot_assets(self, subUid): - params = {} - if subUid : - params["subUid"] = subUid - return self._request_with_params(GET, BROKER_ACCOUNT_V1_URL + '/sub-spot-assets', params) - else: - return "pls check args " - - ''' - get sub future assets - :return: - ''' - def sub_future_assets(self, subUid): - params = {} - if subUid: - params["subUid"] = subUid - return self._request_with_params(GET, BROKER_ACCOUNT_V1_URL + '/sub-future-assets', params) - else: - return "pls check args " - - ''' - get sub deposit address - :return: - ''' - def sub_address(self, subUid, subEmail): - params = {} - if subUid and subEmail: - params["subUid"] = subUid - params["subEmail"] = subEmail - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-address', params) - else: - return "pls check args " - - ''' - sub withdrawal - :return: - ''' - def sub_withdrawal(self, subUid, coin, chain, address, amount, tag, clientOid): - params = {} - if subUid and coin and chain and address and amount: - params["subUid"] = subUid - params["coin"] = coin - params["chain"] = chain - params["address"] = address - params["amount"] = amount - params["tag"] = tag - params["clientOid"] = clientOid - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-withdrawal', params) - else: - return "pls check args " - - ''' - sub auto transfer - deposit success auto transfer future - :return: - ''' - def sub_auto_transfer(self, subUid, coin, toAccountType): - params = {} - if subUid and coin and toAccountType: - params["subUid"] = subUid - params["coin"] = coin - params["toAccountType"] = toAccountType - return self._request_with_params(POST, BROKER_ACCOUNT_V1_URL + '/sub-auto-transfer', params) - else: - return "pls check args " \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/broker/manage_api.py b/bitget-python-sdk-api/bitget/broker/manage_api.py deleted file mode 100644 index 6bdbf8b8..00000000 --- a/bitget-python-sdk-api/bitget/broker/manage_api.py +++ /dev/null @@ -1,52 +0,0 @@ - -from ..client import Client -from ..consts import * - - -class ManageApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - broker create sub apikey - :return: - ''' - def sub_create_api(self, subUid, passphrase, remark, ip, perm): - params = {} - if subUid and passphrase and perm: - params["subUid"] = subUid - params["passphrase"] = passphrase - params["remark"] = remark - params["ip"] = ip - params["perm"] = perm - return self._request_with_params(POST, BROKER_MANAGE_V1_URL + '/sub-api-create', params) - else: - return "pls check args " - - ''' - get sub apikey list - :return: - ''' - def sub_list(self, subUid): - params = {} - if subUid: - params["subUid"] = subUid - return self._request_with_params(GET, BROKER_MANAGE_V1_URL + '/sub-api-list', params) - else: - return "pls check args" - - ''' - broker modify sub apikey - :return: - ''' - def sub_modify_api(self, subUid, apikey, remark, ip, perm): - params = {} - if subUid and apikey and perm: - params["subUid"] = subUid - params["apikey"] = apikey - params["remark"] = remark - params["ip"] = ip - params["perm"] = perm - return self._request_with_params(POST, BROKER_MANAGE_V1_URL + '/sub-api-modify', params) - else: - return "pls check args " \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/client.py b/bitget-python-sdk-api/bitget/client.py index 579c2013..24ae8735 100644 --- a/bitget-python-sdk-api/bitget/client.py +++ b/bitget-python-sdk-api/bitget/client.py @@ -19,12 +19,12 @@ def _request(self, method, request_path, params, cursor=False): # url url = c.API_URL + request_path - # Get local time + # 获取本地时间 timestamp = utils.get_timestamp() # sign & header if self.use_server_time: - # Get server time interface + # 获取服务器时间接口 timestamp = self._get_timestamp() body = json.dumps(params) if method == c.POST else "" @@ -63,8 +63,8 @@ def _request(self, method, request_path, params, cursor=False): if cursor: r = dict() try: - r['before'] = res_header['BEFORE'] - r['after'] = res_header['AFTER'] + r['before'] = res_header['OK-BEFORE'] + r['after'] = res_header['OK-AFTER'] except: pass return response.json(), r @@ -84,6 +84,6 @@ def _get_timestamp(self): url = c.API_URL + c.SERVER_TIMESTAMP_URL response = requests.get(url) if response.status_code == 200: - return response.json()['data'] + return response.json()['timestamp'] else: return "" diff --git a/bitget-python-sdk-api/bitget/consts.py b/bitget-python-sdk-api/bitget/consts.py index 85a30775..947efe2d 100644 --- a/bitget-python-sdk-api/bitget/consts.py +++ b/bitget-python-sdk-api/bitget/consts.py @@ -1,61 +1,20 @@ +# Base Url +API_URL = 'https://api.bitget.com' # http header CONTENT_TYPE = 'Content-Type' -ACCESS_KEY = 'ACCESS-KEY' -ACCESS_SIGN = 'ACCESS-SIGN' -ACCESS_TIMESTAMP = 'ACCESS-TIMESTAMP' -ACCESS_PASSPHRASE = 'ACCESS-PASSPHRASE' +OK_ACCESS_KEY = 'ACCESS-KEY' +OK_ACCESS_SIGN = 'ACCESS-SIGN' +OK_ACCESS_TIMESTAMP = 'ACCESS-TIMESTAMP' +OK_ACCESS_PASSPHRASE = 'ACCESS-PASSPHRASE' APPLICATION_JSON = 'application/json' # header key -ACEEPT = 'Accept' -COOKIE = 'Cookie' -LOCALE = 'locale=' +LOCALE = 'locale' # method GET = "GET" POST = "POST" DELETE = "DELETE" -# Base Url -API_URL = 'https://api.bitget.com' - -# ws Url -CONTRACT_WS_URL = 'wss://ws.bitget.com/mix/v1/stream' - - - -# ######################################## -# ##############【spot url】############### -# ######################################## - -SPOT_PUBLIC_V1_URL = '/api/spot/v1/public' -SPOT_MARKET_V1_URL = '/api/spot/v1/market' -SPOT_ACCOUNT_V1_URL = '/api/spot/v1/account' -SPOT_ORDER_V1_URL = '/api/spot/v1/trade' -SPOT_WALLET_V1_URL = '/api/spot/v1/wallet' -SPOT_PLAN_V1_URL = '/api/spot/v1/plan' - -# ######################################## -# ##############【mix url】################ -# ######################################## - -MIX_MARKET_V1_URL = '/api/mix/v1/market' -MIX_ACCOUNT_V1_URL = '/api/mix/v1/account' -MIX_POSITION_V1_URL = '/api/mix/v1/position' -MIX_ORDER_V1_URL = '/api/mix/v1/order' -MIX_PLAN_V1_URL = '/api/mix/v1/plan' -MIX_TRACE_V1_URL = '/api/mix/v1/trace' - - -BROKER_ACCOUNT_V1_URL = '/api/broker/v1/account' -BROKER_MANAGE_V1_URL = '/api/broker/v1/manage' - -SUBSCRIBE = 'subscribe' -UNSUBSCRIBE = 'unsubscribe' -LOGIN = 'login' - -GET = 'GET' -REQUEST_PATH = '/user/verify' - -SERVER_TIMESTAMP_URL='/api/spot/v1/public/time' \ No newline at end of file +REQUEST_PATH = '/user/verify' \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/exceptions.py b/bitget-python-sdk-api/bitget/exceptions.py index 94490959..f83a772b 100644 --- a/bitget-python-sdk-api/bitget/exceptions.py +++ b/bitget-python-sdk-api/bitget/exceptions.py @@ -14,7 +14,8 @@ def __init__(self, response): self.code = json_res['code'] self.message = json_res['msg'] else: - print(json_res) + self.code = 'Please wait a moment' + self.message = 'Maybe something is wrong' self.status_code = response.status_code self.response = response diff --git a/bitget-python-sdk-api/bitget/mix/account_api.py b/bitget-python-sdk-api/bitget/mix/account_api.py deleted file mode 100644 index fe7a6b48..00000000 --- a/bitget-python-sdk-api/bitget/mix/account_api.py +++ /dev/null @@ -1,148 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class AccountApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Obtain user account information - symbol: Contract transaction pair - marginCoin: Deposit currency - :return: - ''' - def account(self, symbol, marginCoin): - params = {} - if symbol and marginCoin: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - return self._request_with_params(GET, MIX_ACCOUNT_V1_URL + '/account', params) - else: - return "pls check args" - - ''' - Adjusting lever - symbol: Contract transaction pair - marginCoin: Deposit currency - leverage: Leverage ratio - holdSide: In the position direction, long multi position short short short positions can not be transferred in case of full positions - :return: - ''' - def leverage(self, symbol, marginCoin, leverage, holdSide=''): - params = {} - if symbol and marginCoin: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["leverage"] = leverage - params["holdSide"] = holdSide - return self._request_with_params(POST, MIX_ACCOUNT_V1_URL + '/setLeverage', params) - else: - return "pls check args" - - ''' - Adjustment margin - symbol: Contract transaction pair - marginCoin: Deposit currency - amount: Positive increase and negative decrease of deposit amount - holdSide: In the position direction, long multi position short short short positions can not be transferred in case of full positions - :return: - ''' - def margin(self, symbol, marginCoin, amount, holdSide=''): - params = {} - if symbol and marginCoin: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["amount"] = amount - params["holdSide"] = holdSide - return self._request_with_params(POST, MIX_ACCOUNT_V1_URL + '/setMargin', params) - else: - return "pls check args" - - ''' - Adjust margin mode - symbol: Contract transaction pair - marginCoin: Deposit currency - marginMode: Fixed warehouse by warehouse crossed full warehouse - :return: - ''' - def margin_mode(self, symbol, marginCoin, marginMode): - params = {} - if symbol and marginCoin: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["marginMode"] = marginMode - return self._request_with_params(POST, MIX_ACCOUNT_V1_URL + '/setMarginMode', params) - else: - return "pls check args" - - ''' - Set position mode - symbol: Contract transaction pair - marginCoin: Deposit currency - holdMode: Position mode single_ Hold single position double_ Hold Bidirectional Position Default Bidirectional Position - :return: - ''' - def position_mode(self, symbol, marginCoin, holdMode): - params = {} - if symbol and marginCoin and holdMode: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["holdMode"] = holdMode - return self._request_with_params(POST, MIX_ACCOUNT_V1_URL + '/setPositionMode', params) - else: - return "pls check args" - - ''' - Query the number of open sheets - symbol: Contract transaction pair - marginCoin: Deposit currency - openPrice: Opening price - openAmount: Opening limit - leverage: Default leverage 20 - :return: - ''' - def open_count(self, symbol, marginCoin, openPrice, openAmount, leverage=20): - params = {} - if symbol and marginCoin and openPrice and openAmount: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["openPrice"] = openPrice - params["openAmount"] = openAmount - params["leverage"] = leverage - return self._request_with_params(POST, MIX_ACCOUNT_V1_URL + '/open-count', params) - else: - return "pls check args" - - ''' - Get account information list - productType: Umcbl (USDT professional contract) dmcbl (mixed contract) sumcbl (USDT professional contract simulation disk) sdmcbl (mixed contract simulation disk) - :return: - ''' - def accounts(self, productType): - params = {} - if productType: - params['productType'] = productType - return self._request_with_params(GET, MIX_ACCOUNT_V1_URL + '/accounts', params) - else: - return "pls check args" - - ''' - Obtain the list of account flow information - :return: - ''' - def accountBill(self, symbol,marginCoin,startTime,endTime,lastEndId = '',pageSize=20,next=False): - params = {} - if symbol and marginCoin and startTime and endTime: - params['symbol'] = symbol - params['marginCoin'] = marginCoin - params['startTime'] = startTime - params['endTime'] = endTime - params['lastEndId'] = lastEndId - params['pageSize'] = pageSize - params['next'] = next - return self._request_with_params(GET, MIX_ACCOUNT_V1_URL + '/accountBill', params) - else: - return "pls check args" diff --git a/bitget-python-sdk-api/bitget/mix/market_api.py b/bitget-python-sdk-api/bitget/mix/market_api.py deleted file mode 100644 index 343a833d..00000000 --- a/bitget-python-sdk-api/bitget/mix/market_api.py +++ /dev/null @@ -1,176 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class MarketApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Get contract list - productType: Umcbl (USDT professional contract) dmcbl (mixed contract) sumcbl (USDT professional contract simulation disk) sdmcbl (mixed contract simulation disk) - :return: - ''' - def contracts(self, productType): - params = {} - if productType: - params['productType'] = productType - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/contracts', params) - - ''' - Get depth data - symbol:Contract transaction pair - :return: - ''' - def depth(self, symbol, limit='150'): - params = {} - if symbol and limit and type: - params["symbol"] = symbol - params["limit"] = limit - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/depth', params) - else: - return "pls check args" - - ''' - Get ticker information according to the currency pair - symbol:Contract transaction pair - :return: - ''' - def ticker(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/ticker', params) - else: - return "pls check args" - - ''' - Get all ticket information - productType: Umcbl (USDT professional contract) dmcbl (mixed contract) sumcbl (USDT professional contract simulation disk) sdmcbl (mixed contract simulation disk) - :return: - ''' - def tickers(self,productType): - params = {} - if productType: - params['productType'] = productType - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/tickers', params) - - ''' - Get real-time transaction - symbol:Contract transaction pair - :return: - ''' - def fills(self, symbol, limit=100): - params = {} - if symbol and limit: - params["symbol"] = symbol - params["limit"] = limit - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/fills', params) - else: - return "pls check args" - - ''' - Obtain K line information - params - period: 60, 300, 900, 1800, 3600,14400,43200, 86400, 604800 - startTime: start time - endTime: end time - :return: - ''' - def candles(self, symbol, granularity, startTime='', endTime='',limit=''): - params = {} - if symbol and granularity: - params["symbol"] = symbol - params["granularity"] = granularity - params["startTime"] = startTime - params["endTime"] = endTime - params["limit"] = limit - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/candles', params) - else: - return "pls check args" - - ''' - Currency index price - symbol:Contract transaction pair - :return: - ''' - def index(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/index', params) - else: - return "pls check args" - - ''' - Next settlement time - symbol:Contract transaction pair - :return: - ''' - def funding_time(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/funding-time', params) - else: - return "pls check args" - - ''' - Contract Mark Price - symbol:Contract transaction pair - :return: - ''' - def market_price(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/mark-price', params) - else: - return "pls check args" - - ''' - Historical fund rate - symbol:Contract transaction pair - pageSize: Number of queries - pageNo: Number of query pages - nextPage: Whether to query the next page - :return:F - ''' - def history_fund_rate(self, symbol, pageSize=20, pageNo=1, nextPage=False): - params = {} - if symbol: - params["symbol"] = symbol - params["pageSize"] = pageSize - params["pageNo"] = pageNo - params["nextPage"] = nextPage - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/history-fundRate', params) - else: - return "pls check args" - - ''' - Current fund rate - symbol:Contract transaction pair - :return:F - ''' - def current_fund_rate(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/current-fundRate', params) - else: - return "pls check args" - - ''' - Obtain the total position of the platform - symbol:Contract transaction pair - :return: - ''' - def open_interest(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_MARKET_V1_URL + '/open-interest', params) - else: - return "pls check args" diff --git a/bitget-python-sdk-api/bitget/mix/order_api.py b/bitget-python-sdk-api/bitget/mix/order_api.py deleted file mode 100644 index 68ed2764..00000000 --- a/bitget-python-sdk-api/bitget/mix/order_api.py +++ /dev/null @@ -1,137 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class OrderApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - place an order - price: Mandatory in case of price limit - marginCoin: Deposit currency - size: It is quantity when the price is limited. The market price is the limit. The sales is the quantity - side:open_long open_short close_long close_short - orderType: limit(fixed price) market(market price) - timeInForceValue: normal(Ordinary price limit order) postOnly(It is only a maker. The market price is not allowed to use this) ioc(Close immediately and cancel the remaining) fok(Complete transaction or immediate cancellation) - presetTakeProfitPrice: Default stop profit price - presetStopLossPrice:Preset stop loss price - :return: - ''' - def place_order(self, symbol, marginCoin, size, side, orderType, clientOrderId=None, price='', timeInForceValue='normal', presetTakeProfitPrice='', presetStopLossPrice=''): - params = {} - if symbol and marginCoin and side and orderType and marginCoin: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["price"] = price - params["size"] = size - params["side"] = side - params["orderType"] = orderType - params["timeInForceValue"] = timeInForceValue - params["clientOid"] = clientOrderId - params["presetTakeProfitPrice"] = presetTakeProfitPrice - params["presetStopLossPrice"] = presetStopLossPrice - return self._request_with_params(POST, MIX_ORDER_V1_URL + '/placeOrder', params) - else: - return "pls check args " - - ''' - Place orders in batches - price: Mandatory in case of price limit - marginCoin: Deposit currency - order_data: - size: It is quantity when the price is limited. The market price is the limit. The sales is the quantity - side:open_long open_short close_long close_short - orderType: limit(fixed price) market(market price) - timeInForceValue: normal(Ordinary price limit order) postOnly(It is only a maker. The market price is not allowed to use this) ioc(Close immediately and cancel the remaining) fok(Complete transaction or immediate cancellation) - presetTakeProfitPrice: Default stop profit price - presetStopLossPrice: Preset stop loss price - :return: - ''' - def batch_orders(self, symbol, marginCoin, order_data): - params = {'symbol': symbol, 'marginCoin': marginCoin, 'orderDataList': order_data} - return self._request_with_params(POST, MIX_ORDER_V1_URL + '/batch-orders', params) - - ''' - cancel the order - :return: - ''' - def cancel_orders(self, symbol, marginCoin, orderId): - params = {} - if symbol and orderId: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["orderId"] = orderId - return self._request_with_params(POST, MIX_ORDER_V1_URL + '/cancel-order', params) - else: - return "pls check args " - - ''' - Batch cancellation - orderIds: List - :return: - ''' - def cancel_batch_orders(self, symbol, marginCoin, orderIds): - if symbol and orderIds: - params = {'symbol': symbol, 'marginCoin':marginCoin, 'orderIds': orderIds} - return self._request_with_params(POST, MIX_ORDER_V1_URL + '/cancel-batch-orders', params) - else: - return "pls check args " - - ''' - Get order information - :return: - ''' - def detail(self, symbol, orderId): - params = {} - if symbol and orderId: - params["symbol"] = symbol - params["orderId"] = orderId - return self._request_with_params(GET, MIX_ORDER_V1_URL + '/detail', params) - else: - return "pls check args " - - ''' - Get the current order - :return: - ''' - def current(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, MIX_ORDER_V1_URL + '/current', params) - else: - return "pls check args " - - ''' - Get Historical Delegation - isPre: Whether to query the previous page - :return: - ''' - def history(self, symbol, startTime, endTime, pageSize, lastEndId='', isPre=False): - params = {} - if symbol: - params["symbol"] = symbol - params["startTime"] = startTime - params["endTime"] = endTime - params["pageSize"] = pageSize - params["lastEndId"] = lastEndId - params["isPre"] = isPre - return self._request_with_params(GET, MIX_ORDER_V1_URL + '/history', params) - else: - return "pls check args " - - ''' - Obtain transaction details - :return: - ''' - def fills(self, symbol='', orderId=''): - params = {} - if symbol and orderId: - params["symbol"] = symbol - params["orderId"] = orderId - return self._request_with_params(GET, MIX_ORDER_V1_URL + '/fills', params) - else: - return "pls check args " \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/mix/plan_api.py b/bitget-python-sdk-api/bitget/mix/plan_api.py deleted file mode 100644 index 3fae6d4b..00000000 --- a/bitget-python-sdk-api/bitget/mix/plan_api.py +++ /dev/null @@ -1,235 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class PlanApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Plan Entrusted Order - triggerPrice: Trigger Price - executePrice: Execution price - triggerType: Trigger Type fill_price market_price - marginCoin: Deposit currency - size: It is quantity when the price is limited. The market price is the limit. The sales is the quantity - side:open_long open_short close_long close_short - orderType: limit(fixed price) market(market price) - timeInForceValue: normal(Ordinary price limit order) postOnly(It is only a maker. The market price is not allowed to use this) ioc(Close immediately and cancel the remaining) fok(Complete transaction or immediate cancellation) - presetTakeProfitPrice: Default stop profit price - presetStopLossPrice: Preset stop loss price - :return: - ''' - - def place_plan(self, symbol, marginCoin, size, side, orderType, triggerPrice, triggerType, executePrice='', - clientOrderId='', timeInForceValue='normal', presetTakeProfitPrice=None, presetStopLossPrice=None): - params = {} - if symbol and marginCoin and side and orderType and triggerPrice and triggerType: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["triggerPrice"] = triggerPrice - params["executePrice"] = executePrice - params["triggerType"] = triggerType - params["size"] = size - params["side"] = side - params["orderType"] = orderType - params["timeInForceValue"] = timeInForceValue - params["clientOrderId"] = clientOrderId - params["presetTakeProfitPrice"] = presetTakeProfitPrice - params["presetStopLossPrice"] = presetStopLossPrice - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/placePlan', params) - else: - return "pls check args " - - ''' - Modify Plan Delegation - triggerPrice: Trigger Price - executePrice: Execution price - triggerType: Trigger Type fill_price market_price - marginCoin: Deposit currency - orderType: limit(fixed price) market(market price) - :return: - ''' - - def modify_plan(self, symbol, marginCoin, orderId, orderType, triggerPrice, triggerType, executePrice=''): - params = {} - if symbol and marginCoin and orderType and orderId and triggerType: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["orderId"] = orderId - params["triggerPrice"] = triggerPrice - params["executePrice"] = executePrice - params["triggerType"] = triggerType - params["orderType"] = orderType - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/modifyPlan', params) - else: - return "pls check args " - - ''' - Modify the preset profit and loss stop of plan entrustment - orderId:orderId - triggerType: Trigger Type - marginCoin: Deposit currency - planType: Plan delegation type normal_ Plan general plan_ Plan profit stop plan loss_ Plan stop loss plan - presetTakeProfitPrice: Default stop profit price - presetStopLossPrice: Preset stop loss price - :return: - ''' - - def modify_plan_preset(self, symbol, marginCoin, orderId, planType='normal_plan', presetTakeProfitPrice='', - presetStopLossPrice=''): - params = {} - if symbol and marginCoin and orderId and planType: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["planType"] = planType - params["orderId"] = orderId - params["presetTakeProfitPrice"] = presetTakeProfitPrice - params["presetStopLossPrice"] = presetStopLossPrice - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/modifyPlanPreset', params) - else: - return "pls check args " - - ''' - Modify the preset profit and loss stop of plan entrustment - orderId:orderId - triggerPrice: Trigger Price - marginCoin: Deposit currency - :return: - ''' - - def modify_tpsl_plan(self, symbol, marginCoin, orderId, triggerPrice): - params = {} - if symbol and marginCoin and orderId and triggerPrice: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["orderId"] = orderId - params["triggerPrice"] = triggerPrice - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/modifyTPSLPlan', params) - else: - return "pls check args " - - ''' - Stop profit and stop loss Order - At present, only the market price trigger type is transaction price when placing an order with profit stop and loss stop - symbol: Trading pair name - marginCoin: Deposit currency - orderId: orderId - planType: Order type prof it_ Plan profit stop plan loss_ Plan stop loss plan - holdSide: Long long short short short position in position direction - :return: - ''' - - def place_tpsl(self, symbol, marginCoin, triggerPrice, planType, holdSide): - params = {} - if symbol and marginCoin and planType and holdSide and triggerPrice: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["planType"] = planType - params["holdSide"] = holdSide - params["triggerPrice"] = triggerPrice - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/placeTPSL', params) - else: - return "pls check args " - - ''' - place trail stop order - symbol - marginCoin - triggerPrice - triggerType - side - size - rangeRate: - reduceOnly: only one-way mode - :return: - ''' - def place_trail_stop(self, params=None): - if params is None: - params = {} - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/placeTrailStop', params) - - ''' - place positions tpsl order - symbol - marginCoin - triggerPrice - triggerType - side - size - rangeRate: - reduceOnly: only one-way mode - :return: - ''' - def place_positions_tpsl(self, params=None): - if params is None: - params = {} - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/placePositionsTPSL', params) - - - ''' - cancel all trigger order - :return: - ''' - def cancel_all_plan(self, params=None): - if params is None: - params = {} - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/cancelAllPlan', params) - - ''' - Planned entrustment (profit and loss stop) cancellation - symbol: Trading pair name - marginCoin: Deposit currency - orderId: orderId - planType: Order type normal_ Plan plan entrustment prof it_ Plan profit stop plan loss_ Plan stop loss plan - :return: - ''' - - def cancel_plan(self, symbol, marginCoin, orderId, planType): - params = {} - if symbol and marginCoin and planType and orderId: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - params["planType"] = planType - params["orderId"] = orderId - return self._request_with_params(POST, MIX_PLAN_V1_URL + '/cancelPlan', params) - else: - return "pls check args " - - ''' - Get the current plan delegation - isPlan: Query plan delegation plan delegation profile_ Loss Stop Profit Stop Loss - :return: - ''' - - def current_plan(self, symbol, isPlan='plan'): - params = {} - if symbol: - params["symbol"] = symbol - params["isPlan"] = isPlan - return self._request_with_params(GET, MIX_PLAN_V1_URL + '/currentPlan', params) - else: - return "pls check args " - - ''' - Get historical plan delegation - isPre: Whether to query the previous page - isPlan: Query plan delegation plan delegation profile_ Loss Stop Profit Stop Loss - :return: - ''' - - def history_plan(self, symbol, startTime, endTime, pageSize, lastEndId='', isPre=False, isPlan='plan'): - params = {} - if symbol: - params["symbol"] = symbol - params["startTime"] = startTime - params["endTime"] = endTime - params["pageSize"] = pageSize - params["lastEndId"] = lastEndId - params["isPre"] = isPre - params["isPlan"] = isPlan - return self._request_with_params(GET, MIX_PLAN_V1_URL + '/historyPlan', params) - else: - return "pls check args " diff --git a/bitget-python-sdk-api/bitget/mix/position_api.py b/bitget-python-sdk-api/bitget/mix/position_api.py deleted file mode 100644 index d3d01b44..00000000 --- a/bitget-python-sdk-api/bitget/mix/position_api.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class PositionApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Obtain the user's single position information - :return: - ''' - def single_position(self, symbol, marginCoin): - params = {} - if symbol: - params["symbol"] = symbol - params["marginCoin"] = marginCoin - return self._request_with_params(GET, MIX_POSITION_V1_URL + '/singlePosition', params) - else: - return "pls check args" - - ''' - Obtain all position information of the user - productType: Umcbl (USDT professional contract) dmcbl (mixed contract) sumcbl (USDT professional contract simulation disk) sdmcbl (mixed contract simulation disk) - :return: - ''' - def all_position(self, productType, marginCoin): - params = {} - if productType: - params["productType"] = productType - params["marginCoin"] = marginCoin - return self._request_with_params(GET, MIX_POSITION_V1_URL + '/allPosition', params) - else: - return "pls check args" \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/mix/trace_api.py b/bitget-python-sdk-api/bitget/mix/trace_api.py deleted file mode 100644 index 57290704..00000000 --- a/bitget-python-sdk-api/bitget/mix/trace_api.py +++ /dev/null @@ -1,191 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class TraceApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Dealers close positions - symbol: Trading pair name - trackingNo: Tracking order No - :return: - ''' - - def close_track_order(self, symbol, trackingNo): - params = {} - if symbol and trackingNo: - params["symbol"] = symbol - params["trackingNo"] = trackingNo - return self._request_with_params(POST, MIX_TRACE_V1_URL + '/closeTrackOrder', params) - else: - return "pls check args " - - ''' - The trader obtains the current order - symbol: Trading pair name - productType: Umcbl (USDT professional contract) dmcbl (mixed contract) sumcbl (USDT professional contract simulation disk) sdmcbl (mixed contract simulation disk) - pageNo: Start at 1 - :return: - ''' - - def current_track(self, symbol, productType, pageSize=20, pageNo=1): - params = {} - if symbol: - params["symbol"] = symbol - params["productType"] = productType - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/currentTrack', params) - else: - return "pls check args " - - ''' - The trader obtains the current order - symbol: Trading pair name - startTime: start time - endTime: end time - pageSize: Number of queries - pageNo: Number of query pages - :return: - ''' - - def history_track(self, startTime, endTime, pageSize=100, pageNo=1): - params = {} - if startTime and endTime: - params["startTime"] = startTime - params["endTime"] = endTime - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/historyTrack', params) - else: - return "pls check args " - - ''' - Summary of traders' profit sharing - :return: - ''' - - def summary(self): - return self._request_without_params(GET, MIX_TRACE_V1_URL + '/summary') - - ''' - Summary of traders' profit sharing (by settlement currency) - :return: - ''' - - def profit_settle_margin_coin(self): - return self._request_without_params(GET, MIX_TRACE_V1_URL + '/profitSettleTokenIdGroup') - - ''' - Summary of traders' profit sharing (by date) - :return: - ''' - - def profit_date_group(self, pageSize, pageNo): - params = {} - if pageSize and pageNo: - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/profitDateGroupList', params) - else: - return "pls check args " - - ''' - Historical profit distribution details of traders - :return: - ''' - - def profit_date_detail(self, marginCoin, date, pageSize, pageNo): - params = {} - if marginCoin and date and pageSize and pageNo: - params["marginCoin"] = marginCoin - params["date"] = date - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/profitDateList', params) - else: - return "pls check args " - - ''' - Details of traders to be distributed - :return: - ''' - - def wait_profit_detail(self, pageSize, pageNo): - params = {} - if pageSize and pageNo: - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/waitProfitDateList', params) - else: - return "pls check args " - - ''' - Followers obtain information on opening and closing orders - :return: - ''' - - def follower_history_orders(self, page_size, page_no, start_time, end_time): - params = {} - if page_size and page_no: - params["pageSize"] = page_size - params["pageNo"] = page_no - - if start_time and end_time: - params["startTime"] = start_time - params["endTime"] = end_time - - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/followerHistoryOrders', params) - - ''' - get trader copytrader symbol - ''' - - def trader_symbols(self): - return self._request_without_params(GET, MIX_TRACE_V1_URL + '/traderSymbols') - - ''' - set trader copytrader symbol - ''' - - def set_trder_symbol(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(POST, MIX_TRACE_V1_URL + '/setUpCopySymbols', params) - else: - return "pls check args " - - ''' - trader modify tpsl order - ''' - - def trader_modify_tpsl_order(self, symbol, trackingNo, stopProfitPrice, stopLossPrice): - params = {} - if symbol and trackingNo: - params["symbol"] = symbol - params["trackingNo"] = trackingNo - params["stopProfitPrice"] = stopProfitPrice - params["stopLossPrice"] = stopLossPrice - return self._request_with_params(POST, MIX_TRACE_V1_URL + '/modifyTPSL', params) - else: - return "pls check args " - - ''' - followerOrder - ''' - - def followerOrder(self, symbol, productType, pageSize=100, pageNo=1): - params = {} - if symbol and productType: - params["symbol"] = symbol - params["productType"] = productType - params["pageSize"] = pageSize - params["pageNo"] = pageNo - return self._request_with_params(GET, MIX_TRACE_V1_URL + '/followerOrder', params) - else: - return "pls check args " diff --git a/bitget-python-sdk-api/bitget/spot/account_api.py b/bitget-python-sdk-api/bitget/spot/account_api.py deleted file mode 100644 index 29b2176d..00000000 --- a/bitget-python-sdk-api/bitget/spot/account_api.py +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class AccountApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Obtain all asset currency information of the user - :return: - ''' - def assets(self, coin=''): - params = {} - if coin: - params["coin"] = coin - return self._request_with_params(GET, SPOT_ACCOUNT_V1_URL + '/assets-lite', params) - - ''' - Obtain all asset currency information of the user - - groupType: Deposit, withdraw, transaction, transfer, other - bizType:Dispose, withdraw, buy, sell, transfer in, transfer out - after: Pass in billId, the data before this billId - before: Incoming billId data after this billId - :return: - ''' - def bills(self, coinId='', groupType='', bizType='', after='', before='', limit=100): - params = {} - - if coinId: - params["coinId"] = coinId - if groupType: - params["groupType"] = groupType - if bizType: - params["bizType"] = bizType - if after: - params["after"] = after - if before: - params["before"] = before - - - params["limit"] = limit - return self._request_with_params(POST, SPOT_ACCOUNT_V1_URL + '/bills', params) - - - - ''' - query transfer records - fromType: exchange(spot) USD_MIX(coin future) USDT_MIX(usdt future) - :return: - ''' - def transfer_records(self, coinId='', fromType='', after='', before='', limit=100): - params = {} - - if coinId: - params["coinId"] = coinId - if fromType: - params["fromType"] = fromType - if after: - params["after"] = after - if before: - params["before"] = before - - params["limit"] = limit - return self._request_with_params(GET, SPOT_ACCOUNT_V1_URL + '/transferRecords', params) \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/spot/market_api.py b/bitget-python-sdk-api/bitget/spot/market_api.py deleted file mode 100644 index 6e75b5d4..00000000 --- a/bitget-python-sdk-api/bitget/spot/market_api.py +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class MarketApi(Client): - - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Get real-time transaction - :return: - ''' - def fills(self, symbol, limit=100): - params = {} - if symbol and limit: - params["symbol"] = symbol - params["limit"] = limit - return self._request_with_params(GET, SPOT_MARKET_V1_URL + '/fills', params) - else: - return "pls check args" - - ''' - Get depth data - Depth Merge Type - type: step0(default) step1 step2 step3 step4 step5 - :return: - ''' - def depth(self, symbol, limit='150', type='step0'): - params = {} - if symbol and limit and type: - params["symbol"] = symbol - params["limit"] = limit - params["type"] = type - return self._request_with_params(GET, SPOT_MARKET_V1_URL + '/depth', params) - else: - return "pls check args" - - ''' - Get ticker information according to the currency pair - :return: - ''' - def ticker(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, SPOT_MARKET_V1_URL + '/ticker', params) - else: - return "pls check args" - - ''' - Get all transaction pair ticker information - :return: - ''' - def tickers(self): - - return self._request_without_params(GET, SPOT_MARKET_V1_URL + '/tickers') - - ''' - Obtain K line information - params - - period: 1min, 5min, 15min, 30min, 1h,4h,12h, 1day, 1week - after: time before - before: time after - :return: - ''' - def candles(self, symbol, period, after='', before='', limit=100): - params = {} - if symbol and period: - params["symbol"] = symbol - params["period"] = period - params["after"] = after - params["before"] = before - params["limit"] = limit - return self._request_with_params(GET, SPOT_MARKET_V1_URL + '/candles', params) - else: - return "pls check args" \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/spot/order_api.py b/bitget-python-sdk-api/bitget/spot/order_api.py deleted file mode 100644 index 445453dd..00000000 --- a/bitget-python-sdk-api/bitget/spot/order_api.py +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/python -from ..client import Client -from ..consts import * - - -class OrderApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - place an order - price: Mandatory in case of price limit - quantity: It is quantity when the price is limited. The market price is the limit. The sales is the quantity - side:buy sell - orderType: limit(fixed price) market(market price) - force:normal(Ordinary price limit order) postOnly(It is only a maker. The market price is not allowed to use this) ioc(Close immediately and cancel the remaining) fok(Complete transaction or immediate cancellation) - :return: - ''' - def orders(self, symbol, quantity, side, orderType, force, price='', clientOrderId=''): - params = {} - - if symbol and quantity and side and orderType and force: - params["symbol"] = symbol - params["price"] = price - params["quantity"] = quantity - params["side"] = side - params["orderType"] = orderType - params["force"] = force - params["clientOrderId"] = clientOrderId - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/orders', params) - else: - return "pls check args " - - ''' - Place orders in batches - ''' - def batch_orders(self, symbol, order_data): - params = {'symbol': symbol, 'orderList': order_data} - return self._request_with_params(POST, SPOT_ORDER_V1_URL + "/batch-orders", params) - - ''' - cancel the order - :return: - ''' - def cancel_orders(self, symbol, orderId): - params = {} - if symbol and orderId: - params["symbol"] = symbol - params["orderId"] = orderId - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/cancel-order', params) - else: - return "pls check args " - - ''' - Batch cancellation - orderIds: List - :return: - ''' - def cancel_batch_orders(self, symbol, orderIds): - if symbol and orderIds: - params = {'symbol': symbol, 'orderIds': orderIds} - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/cancel-batch-orders', params) - else: - return "pls check args " - - ''' - Get order information - :return: - ''' - def order_info(self, symbol, orderId='', clientOrderId=''): - params = {} - if clientOrderId: - params["clientOrderId"] = clientOrderId - if symbol: - params["symbol"] = symbol - - if orderId: - params["orderId"] = orderId - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/orderInfo', params) - else: - return "pls check args " - - ''' - Get the current order - :return: - ''' - def open_order(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/open-orders', params) - else: - return "pls check args " - - ''' - Get Historical Delegation - after: The orderId is passed in. The data before the orderId desc - before: Pass in the data after the orderId asc - :return: - ''' - def history(self, symbol, after='', before='', limit=100): - params = {} - if symbol: - params["symbol"] = symbol - params["after"] = after - params["before"] = before - params["limit"] = limit - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/history', params) - else: - return "pls check args " - - ''' - Obtain transaction details - after: Only the data before the fillId can be passed in - before: Only data passing in the fillId after this fillId is supported - :return: - ''' - def fills(self, symbol='', orderId='', after='', before='', limit=100): - params = {} - if symbol: - params["symbol"] = symbol - if orderId: - params["orderId"] = orderId - if after: - params["after"] = after - if before: - params["before"] = before - if limit: - params["limit"] = limit - - - print(params) - return self._request_with_params(POST, SPOT_ORDER_V1_URL + '/fills', params) \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/spot/plan_api.py b/bitget-python-sdk-api/bitget/spot/plan_api.py deleted file mode 100644 index 6e84f712..00000000 --- a/bitget-python-sdk-api/bitget/spot/plan_api.py +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/python -from ..client import Client -from ..consts import * - - -class PlanApi(Client): - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - def placePlan(self, symbol, size, executePrice, triggerPrice, side, orderType, triggerType, timeInForceValue, clientOid='', channelApiCode=''): - params = {} - if symbol and side and orderType and timeInForceValue: - params["symbol"] = symbol - params["size"] = size - params["executePrice"] = executePrice - params["triggerPrice"] = triggerPrice - params["side"] = side - params["orderType"] = orderType - params["triggerType"] = triggerType - params["timeInForceValue"] = timeInForceValue - params["clientOid"] = clientOid - params["channelApiCode"] = channelApiCode - return self._request_with_params(POST, SPOT_PLAN_V1_URL + '/placePlan', params) - else: - return "pls check args " - - def modifyPlan(self, orderId, size='', executePrice='', triggerPrice='', orderType=''): - params = {} - if orderId: - params["orderId"] = orderId - params["size"] = size - params["executePrice"] = executePrice - params["triggerPrice"] = triggerPrice - params["orderType"] = orderType - return self._request_with_params(POST, SPOT_PLAN_V1_URL + '/modifyPlan', params) - else: - return "pls check args " - - def cancelPlan(self, orderId): - params = {} - if orderId: - params["orderId"] = orderId - return self._request_with_params(POST, SPOT_PLAN_V1_URL + '/cancelPlan', params) - else: - return "pls check args " - - def currentPlan(self, symbol='', pageSize='', lastEndId=''): - params = {} - if symbol: - params["symbol"] = symbol - if pageSize: - params["pageSize"] = pageSize - if lastEndId: - params["lastEndId"] = lastEndId - return self._request_with_params(POST, SPOT_PLAN_V1_URL + '/currentPlan', params) - - def historyPlan(self, symbol='', pageSize='', lastEndId='', startTime='', endTime=''): - params = {} - if symbol: - params["symbol"] = symbol - if pageSize: - params["pageSize"] = pageSize - if lastEndId: - params["lastEndId"] = lastEndId - if startTime: - params["startTime"] = startTime - if endTime: - params["endTime"] = endTime - return self._request_with_params(POST, SPOT_PLAN_V1_URL + '/historyPlan', params) diff --git a/bitget-python-sdk-api/bitget/spot/public_api.py b/bitget-python-sdk-api/bitget/spot/public_api.py deleted file mode 100644 index 7411b641..00000000 --- a/bitget-python-sdk-api/bitget/spot/public_api.py +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class PublicApi(Client): - - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - Get Timestamp - :return: - ''' - def times(self): - return self._request_without_params(GET, SPOT_PUBLIC_V1_URL + '/time') - - ''' - Get all currencies - :return: - ''' - def currencies(self): - - return self._request_without_params(GET, SPOT_PUBLIC_V1_URL + '/currencies') - - ''' - Get all transaction pair information - :return: - ''' - def products(self): - - return self._request_without_params(GET, SPOT_PUBLIC_V1_URL+'/products') - - ''' - Obtain single currency pair information according to the transaction pair - :return: - ''' - def product(self, symbol): - params = {} - if symbol: - params["symbol"] = symbol - return self._request_with_params(GET, SPOT_PUBLIC_V1_URL+'/product', params) - else: - return "pls check args" - - - diff --git a/bitget-python-sdk-api/bitget/spot/wallet_api.py b/bitget-python-sdk-api/bitget/spot/wallet_api.py deleted file mode 100644 index e124c74c..00000000 --- a/bitget-python-sdk-api/bitget/spot/wallet_api.py +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/python - -from ..client import Client -from ..consts import * - - -class WalletApi(Client): - - def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): - Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) - - ''' - inner transfer - fromType: spot, mix_usdt, mix_usd - toType: spot, mix_usdt, mix_usd - amount: transfer amount - coin: crypto currency - :return: - ''' - def transfer(self, fromType, toType, amount, coin): - params = {} - if fromType and toType and amount and coin : - params["fromType"] = fromType - params["toType"] = toType - params["amount"] = amount - params["coin"] = coin - return self._request_with_params(POST, SPOT_WALLET_V1_URL + '/transfer', params) - else: - return "pls check args " - - ''' - GET deposit address - coin: btc usdt - chain: trc20 erc20 - :return: - ''' - def depositAddress(self, coin, chain): - params = {} - if coin: - params["coin"] = coin - params["chain"] = chain - return self._request_with_params(GET, SPOT_WALLET_V1_URL + '/deposit-address', params) - else: - return "pls check args " - - ''' - withdrawal - coin: btc usdt - address: withdrawal address - tag: exit? - chain: trc20 erc20 - amount: withdrawal amount - ip: required - remark: - clientOid: - :return: - ''' - def withdrawal(self, coin, address, chain, amount, remark, clientOid=None,tag=None): - params = {} - if coin: - params["coin"] = coin - params["address"] = address - - params["chain"] = chain - params["amount"] = amount - params["remark"] = remark - if tag: - params["tag"] = tag - if clientOid: - params["clientOid"] = clientOid - return self._request_with_params(POST, SPOT_WALLET_V1_URL + '/withdrawal', params) - else: - return "pls check args " - - ''' - withdrawalInner - coin: btc usdt - toUid: - amount: withdrawal amount - ip: required - clientOid: - :return: - ''' - def withdrawalInner(self, coin, toUid, amount, clientOid): - params = {} - if coin: - params["coin"] = coin - params["toUid"] = toUid - params["amount"] = amount - if clientOid: - params["clientOid"] = clientOid - return self._request_with_params(POST, SPOT_WALLET_V1_URL + '/withdrawal-inner', params) - else: - return "pls check args " - - ''' - withdrawal list - :return: - ''' - def withdrawalList(self, coin, startTime, endTime, pageNo='1', pageSize='20'): - params = {} - if coin: - params["coin"] = coin - params["startTime"] = startTime - params["endTime"] = endTime - params["pageNo"] = pageNo - params["pageSize"] = pageSize - return self._request_with_params(GET, SPOT_WALLET_V1_URL + '/withdrawal-list', params) - else: - return "pls check args " - - ''' - deposit list - :return: - ''' - def depositList(self, coin, startTime, endTime, pageNo='1', pageSize='20'): - params = {} - if coin: - params["coin"] = coin - params["startTime"] = startTime - params["endTime"] = endTime - params["pageNo"] = pageNo - params["pageSize"] = pageSize - return self._request_with_params(GET, SPOT_WALLET_V1_URL + '/deposit-list', params) - else: - return "pls check args " \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/utils.py b/bitget-python-sdk-api/bitget/utils.py index 527fe9f7..c23e4330 100644 --- a/bitget-python-sdk-api/bitget/utils.py +++ b/bitget-python-sdk-api/bitget/utils.py @@ -17,11 +17,11 @@ def pre_hash(timestamp, method, request_path, body): def get_header(api_key, sign, timestamp, passphrase): header = dict() header[c.CONTENT_TYPE] = c.APPLICATION_JSON - header[c.ACCESS_KEY] = api_key - header[c.ACCESS_SIGN] = sign - header[c.ACCESS_TIMESTAMP] = str(timestamp) - header[c.ACCESS_PASSPHRASE] = passphrase - # header[c.LOCALE] = 'zh-CN' + header[c.OK_ACCESS_KEY] = api_key + header[c.OK_ACCESS_SIGN] = sign + header[c.OK_ACCESS_TIMESTAMP] = str(timestamp) + header[c.OK_ACCESS_PASSPHRASE] = passphrase + header[c.LOCALE] = 'zh-CN' return header @@ -38,9 +38,6 @@ def get_timestamp(): return int(time.time() * 1000) - - - def signature(timestamp, method, request_path, body, secret_key): if str(body) == '{}' or str(body) == 'None': body = '' @@ -48,9 +45,3 @@ def signature(timestamp, method, request_path, body, secret_key): mac = hmac.new(bytes(secret_key, encoding='utf8'), bytes(message, encoding='utf-8'), digestmod='sha256') d = mac.digest() return base64.b64encode(d) - - - -if __name__ == '__main__': - signStr = sign(pre_hash('1659927638003', 'POST', '/api/spot/v1/trade/orders', str('{"symbol":"TRXUSDT_SPBL","side":"buy","orderType":"limit","force":"normal","price":"0.046317","quantity":"1212"}')), '') - print(signStr) \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/mix/__init__.py b/bitget-python-sdk-api/bitget/v1/__init__.py similarity index 100% rename from bitget-python-sdk-api/bitget/mix/__init__.py rename to bitget-python-sdk-api/bitget/v1/__init__.py diff --git a/bitget-python-sdk-api/bitget/spot/__init__.py b/bitget-python-sdk-api/bitget/v1/mix/__init__.py similarity index 100% rename from bitget-python-sdk-api/bitget/spot/__init__.py rename to bitget-python-sdk-api/bitget/v1/mix/__init__.py diff --git a/bitget-python-sdk-api/bitget/v1/mix/account_api.py b/bitget-python-sdk-api/bitget/v1/mix/account_api.py new file mode 100644 index 00000000..0b0abdaa --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/mix/account_api.py @@ -0,0 +1,32 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class AccountApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def account(self, params): + return self._request_with_params(GET, '/api/mix/v1/account/account', params) + + def accounts(self, params): + return self._request_with_params(GET, '/api/mix/v1/account/accounts', params) + + def setLeverage(self, params): + return self._request_with_params(POST, '/api/mix/v1/account/setLeverage', params) + + def setMargin(self, params): + return self._request_with_params(POST, '/api/mix/v1/account/setMargin', params) + + def setMarginMode(self, params): + return self._request_with_params(POST, '/api/mix/v1/account/setMarginMode', params) + + def setPositionMode(self, params): + return self._request_with_params(POST, '/api/mix/v1/account/setPositionMode', params) + + def singlePosition(self, params): + return self._request_with_params(GET, '/api/mix/v1/position/singlePosition', params) + + def allPosition(self, params): + return self._request_with_params(GET, '/api/mix/v1/position/allPosition', params) diff --git a/bitget-python-sdk-api/bitget/v1/mix/market_api.py b/bitget-python-sdk-api/bitget/v1/mix/market_api.py new file mode 100644 index 00000000..5a6453fc --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/mix/market_api.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET + + +class MarketApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def contracts(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/contracts', params) + + def orderbook(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/depth', params) + + def ticker(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/ticker', params) + + def tickers(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/tickers', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/fills', params) + + def candles(self, params): + return self._request_with_params(GET, '/api/mix/v1/market/candles', params) diff --git a/bitget-python-sdk-api/bitget/v1/mix/order_api.py b/bitget-python-sdk-api/bitget/v1/mix/order_api.py new file mode 100644 index 00000000..0f5ebf8c --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/mix/order_api.py @@ -0,0 +1,59 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class OrderApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def placeOrder(self, params): + return self._request_with_params(POST, '/api/mix/v1/order/placeOrder', params) + + def batchPlaceOrder(self, params): + return self._request_with_params(POST, '/api/mix/v1/order/batch-orders', params) + + def cancelOrder(self, params): + return self._request_with_params(POST, '/api/mix/v1/order/cancel-order', params) + + def batchCancelOrders(self, params): + return self._request_with_params(POST, '/api/mix/v1/order/cancel-batch-orders', params) + + def ordersHistory(self, params): + return self._request_with_params(GET, '/api/mix/v1/order/history', params) + + def ordersPending(self, params): + return self._request_with_params(GET, '/api/mix/v1/order/current', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/mix/v1/order/fills', params) + + def placePlanOrder(self, params): + return self._request_with_params(POST, '/api/mix/v1/plan/placePlan', params) + + def cancelPlan(self, params): + return self._request_with_params(POST, '/api/mix/v1/plan/cancelPlan', params) + + def currentPlan(self, params): + return self._request_with_params(GET, '/api/mix/v1/plan/currentPlan', params) + + def historyPlan(self, params): + return self._request_with_params(GET, '/api/mix/v1/plan/historyPlan', params) + + def traderCloseOrder(self, params): + return self._request_with_params(POST, '/api/mix/v1/trace/closeTrackOrder', params) + + def traderOrderCurrentTrack(self, params): + return self._request_with_params(GET, '/api/mix/v1/trace/currentTrack', params) + + def traderOrderHistoryTrack(self, params): + return self._request_with_params(GET, '/api/mix/v1/trace/historyTrack', params) + + def followerCloseByTrackingNo(self, params): + return self._request_with_params(POST, '/api/mix/v1/trace/followerCloseByTrackingNo', params) + + def followerQueryCurrentOrders(self, params): + return self._request_with_params(GET, '/api/mix/v1/trace/followerOrder', params) + + def followerQueryHistoryOrders(self, params): + return self._request_with_params(GET, '/api/mix/v1/trace/followerHistoryOrders', params) diff --git a/bitget-python-sdk-api/bitget/v1/spot/__init__.py b/bitget-python-sdk-api/bitget/v1/spot/__init__.py new file mode 100644 index 00000000..95102133 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/spot/__init__.py @@ -0,0 +1 @@ +#! /usr/bin/python \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/v1/spot/account_api.py b/bitget-python-sdk-api/bitget/v1/spot/account_api.py new file mode 100644 index 00000000..67c6740b --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/spot/account_api.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class AccountApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def getInfo(self, params): + return self._request_with_params(GET, '/api/spot/v1/account/getInfo', params) + + def assetsLite(self, params): + return self._request_with_params(GET, '/api/spot/v1/account/assets-lite', params) + + def bills(self, params): + return self._request_with_params(GET, '/api/spot/v1/account/bills', params) + + def transferRecords(self, params): + return self._request_with_params(GET, '/api/spot/v1/account/transferRecords', params) diff --git a/bitget-python-sdk-api/bitget/v1/spot/market_api.py b/bitget-python-sdk-api/bitget/v1/spot/market_api.py new file mode 100644 index 00000000..e379ee66 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/spot/market_api.py @@ -0,0 +1,32 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET + + +class MarketApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def currencies(self, params): + return self._request_with_params(GET, '/api/spot/v1/public/currencies', params) + + def products(self, params): + return self._request_with_params(GET, '/api/spot/v1/public/products', params) + + def product(self, params): + return self._request_with_params(GET, '/api/spot/v1/public/product', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/spot/v1/market/fills', params) + + def depth(self, params): + return self._request_with_params(GET, '/api/spot/v1/market/depth', params) + + def ticker(self, params): + return self._request_with_params(GET, '/api/spot/v1/market/ticker', params) + + def tickers(self, params): + return self._request_with_params(GET, '/api/spot/v1/market/tickers', params) + + def candles(self, params): + return self._request_with_params(GET, '/api/spot/v1/market/candles', params) diff --git a/bitget-python-sdk-api/bitget/v1/spot/order_api.py b/bitget-python-sdk-api/bitget/v1/spot/order_api.py new file mode 100644 index 00000000..a06f1400 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/spot/order_api.py @@ -0,0 +1,50 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class OrderApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def placeOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/trade/orders', params) + + def batchOrders(self, params): + return self._request_with_params(POST, '/api/spot/v1/trade/batch-orders', params) + + def cancelOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/trade/cancel-order', params) + + def batchCancelOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/trade/cancel-batch-orders', params) + + def openOrders(self, params): + return self._request_with_params(GET, '/api/spot/v1/trade/open-orders', params) + + def historyOrders(self, params): + return self._request_with_params(GET, '/api/spot/v1/trade/history', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/spot/v1/trade/fills', params) + + def placePlanOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/plan/placePlan', params) + + def cancelPlanOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/plan/cancelPlan', params) + + def currentPlanOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/plan/currentPlan', params) + + def historyPlanOrder(self, params): + return self._request_with_params(POST, '/api/spot/v1/plan/historyPlan', params) + + def traderOrderCloseTracking(self, params): + return self._request_with_params(POST, '/api/spot/v1/trace/order/closeTrackingOrder', params) + + def traderOrderCurrentTrack(self, params): + return self._request_with_params(POST, '/api/spot/v1/trace/order/orderCurrentList', params) + + def traderOrderHistoryTrack(self, params): + return self._request_with_params(GET, '/api/spot/v1/trace/order/orderHistoryList', params) diff --git a/bitget-python-sdk-api/bitget/v1/spot/wallet_api.py b/bitget-python-sdk-api/bitget/v1/spot/wallet_api.py new file mode 100644 index 00000000..055308cd --- /dev/null +++ b/bitget-python-sdk-api/bitget/v1/spot/wallet_api.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class WalletApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def transfer(self, params): + return self._request_with_params(POST, '/api/spot/v1/wallet/transfer', params) + + def depositAddress(self, params): + return self._request_with_params(GET, '/api/spot/v1/wallet/deposit-address', params) + + def withdrawal(self, params): + return self._request_with_params(POST, '/api/spot/v1/wallet/withdrawal', params) + + def withdrawalRecords(self, params): + return self._request_with_params(GET, '/api/spot/v1/wallet/withdrawal-list', params) + + def depositRecords(self, params): + return self._request_with_params(GET, '/api/spot/v1/wallet/deposit-list', params) diff --git a/bitget-python-sdk-api/bitget/v2/__init__.py b/bitget-python-sdk-api/bitget/v2/__init__.py new file mode 100644 index 00000000..95102133 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/__init__.py @@ -0,0 +1 @@ +#! /usr/bin/python \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/v2/mix/__init__.py b/bitget-python-sdk-api/bitget/v2/mix/__init__.py new file mode 100644 index 00000000..95102133 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/mix/__init__.py @@ -0,0 +1 @@ +#! /usr/bin/python \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/v2/mix/account_api.py b/bitget-python-sdk-api/bitget/v2/mix/account_api.py new file mode 100644 index 00000000..38beba77 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/mix/account_api.py @@ -0,0 +1,35 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class AccountApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def account(self, params): + return self._request_with_params(GET, '/api/v2/mix/account/account', params) + + def accounts(self, params): + return self._request_with_params(GET, '/api/v2/mix/account/accounts', params) + + def setLeverage(self, params): + return self._request_with_params(POST, '/api/v2/mix/account/set-leverage', params) + + def setMargin(self, params): + return self._request_with_params(POST, '/api/v2/mix/account/set-margin', params) + + def setMarginMode(self, params): + return self._request_with_params(POST, '/api/v2/mix/account/set-margin-mode', params) + + def setPositionMode(self, params): + return self._request_with_params(POST, '/api/v2/mix/account/set-position-mode', params) + + def openCount(self, params): + return self._request_with_params(GET, '/api/v2/mix/account/open-count', params) + + def singlePosition(self, params): + return self._request_with_params(GET, '/api/v2/mix/position/single-position', params) + + def allPosition(self, params): + return self._request_with_params(GET, '/api/v2/mix/position/all-position', params) diff --git a/bitget-python-sdk-api/bitget/v2/mix/market_api.py b/bitget-python-sdk-api/bitget/v2/mix/market_api.py new file mode 100644 index 00000000..29d55b48 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/mix/market_api.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET + + +class MarketApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def contracts(self, params): + return self._request_with_params(GET, '/api/v2/mix/market/contracts', params) + + def orderbook(self, params): + return self._request_with_params(GET, '/api/v2/mix/market/orderbook', params) + + def tickers(self, params): + return self._request_with_params(GET, '/api/v2/mix/market/tickers', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/v2/mix/market/fills', params) + + def candles(self, params): + return self._request_with_params(GET, '/api/v2/mix/market/candles', params) diff --git a/bitget-python-sdk-api/bitget/v2/mix/order_api.py b/bitget-python-sdk-api/bitget/v2/mix/order_api.py new file mode 100644 index 00000000..56bab6a7 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/mix/order_api.py @@ -0,0 +1,68 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class OrderApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def placeOrder(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/place-order', params) + + def clickBackhand(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/click-backhand', params) + + def batchPlaceOrder(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/batch-place-order', params) + + def cancelOrder(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/cancel-order', params) + + def batchCancelOrders(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/batch-cancel-orders', params) + + def closePositions(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/close-positions', params) + + def ordersHistory(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/orders-history', params) + + def ordersPending(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/orders-pending', params) + + def detail(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/detail', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/fills', params) + + def placePlanOrder(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/place-plan-order', params) + + def cancelPlanOrder(self, params): + return self._request_with_params(POST, '/api/v2/mix/order/cancel-plan-order', params) + + def ordersPlanPending(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/orders-plan-pending', params) + + def ordersPlanHistory(self, params): + return self._request_with_params(GET, '/api/v2/mix/order/orders-plan-history', params) + + def traderOrderClosePositions(self, params): + return self._request_with_params(POST, '/api/v2/copy/mix-trader/order-close-positions', params) + + def traderOrderCurrentTrack(self, params): + return self._request_with_params(GET, '/api/v2/copy/mix-trader/order-current-track', params) + + def traderOrderHistoryTrack(self, params): + return self._request_with_params(GET, '/api/v2/copy/mix-trader/order-history-track', params) + + def followerClosePositions(self, params): + return self._request_with_params(POST, '/api/v2/copy/mix-follower/close-positions', params) + + def followerQueryCurrentOrders(self, params): + return self._request_with_params(GET, '/api/v2/copy/mix-follower/query-current-orders', params) + + def followerQueryHistoryOrders(self, params): + return self._request_with_params(GET, '/api/v2/copy/mix-follower/query-history-orders', params) diff --git a/bitget-python-sdk-api/bitget/v2/spot/__init__.py b/bitget-python-sdk-api/bitget/v2/spot/__init__.py new file mode 100644 index 00000000..95102133 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/spot/__init__.py @@ -0,0 +1 @@ +#! /usr/bin/python \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/v2/spot/account_api.py b/bitget-python-sdk-api/bitget/v2/spot/account_api.py new file mode 100644 index 00000000..b6807400 --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/spot/account_api.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class AccountApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def info(self, params): + return self._request_with_params(GET, '/api/v2/spot/account/info', params) + + def assets(self, params): + return self._request_with_params(GET, '/api/v2/spot/account/assets', params) + + def bills(self, params): + return self._request_with_params(GET, '/api/v2/spot/account/bills', params) + + def transferRecords(self, params): + return self._request_with_params(GET, '/api/v2/spot/account/transferRecords', params) diff --git a/bitget-python-sdk-api/bitget/v2/spot/market_api.py b/bitget-python-sdk-api/bitget/v2/spot/market_api.py new file mode 100644 index 00000000..bfcb5afe --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/spot/market_api.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET + + +class MarketApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def coins(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/coins', params) + + def symbols(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/symbols', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/fills', params) + + def orderbook(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/orderbook', params) + + def tickers(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/tickers', params) + + def candles(self, params): + return self._request_with_params(GET, '/api/v2/spot/market/candles', params) diff --git a/bitget-python-sdk-api/bitget/v2/spot/order_api.py b/bitget-python-sdk-api/bitget/v2/spot/order_api.py new file mode 100644 index 00000000..35ed891a --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/spot/order_api.py @@ -0,0 +1,53 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class OrderApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def placeOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/place-order', params) + + def batchOrders(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/batch-orders', params) + + def cancelOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/cancel-order', params) + + def batchCancelOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/batch-cancel-order', params) + + def historyOrders(self, params): + return self._request_with_params(GET, '/api/v2/spot/trade/unfilled-orders', params) + + def historyOrders(self, params): + return self._request_with_params(GET, '/api/v2/spot/trade/history-orders', params) + + def fills(self, params): + return self._request_with_params(GET, '/api/v2/spot/trade/fills', params) + + def placePlanOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/place-plan-order', params) + + def modifyPlanOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/modify-plan-order', params) + + def cancelPlanOrder(self, params): + return self._request_with_params(POST, '/api/v2/spot/trade/cancel-plan-order', params) + + def currentPlanOrder(self, params): + return self._request_with_params(GET, '/api/v2/spot/trade/current-plan-order', params) + + def historyPlanOrder(self, params): + return self._request_with_params(GET, '/api/v2/spot/trade/history-plan-order', params) + + def traderOrderCloseTracking(self, params): + return self._request_with_params(POST, '/api/v2/copy/spot-trader/order-close-tracking', params) + + def traderOrderCurrentTrack(self, params): + return self._request_with_params(GET, '/api/v2/copy/spot-trader/order-current-track', params) + + def traderOrderHistoryTrack(self, params): + return self._request_with_params(GET, '/api/v2/copy/spot-trader/order-history-track', params) diff --git a/bitget-python-sdk-api/bitget/v2/spot/wallet_api.py b/bitget-python-sdk-api/bitget/v2/spot/wallet_api.py new file mode 100644 index 00000000..bbc4225d --- /dev/null +++ b/bitget-python-sdk-api/bitget/v2/spot/wallet_api.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +from bitget.client import Client +from bitget.consts import GET, POST + + +class WalletApi(Client): + def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): + Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) + + def transfer(self, params): + return self._request_with_params(POST, '/api/v2/spot/wallet/transfer', params) + + def depositAddress(self, params): + return self._request_with_params(GET, '/api/v2/spot/wallet/deposit-address', params) + + def withdrawal(self, params): + return self._request_with_params(POST, '/api/v2/spot/wallet/withdrawal', params) + + def withdrawalRecords(self, params): + return self._request_with_params(GET, '/api/v2/spot/wallet/withdrawal-records', params) + + def depositRecords(self, params): + return self._request_with_params(GET, '/api/v2/spot/wallet/deposit-records', params) diff --git a/bitget-python-sdk-api/bitget/ws/contract/private_channel.py b/bitget-python-sdk-api/bitget/ws/contract/private_channel.py new file mode 100644 index 00000000..66234237 --- /dev/null +++ b/bitget-python-sdk-api/bitget/ws/contract/private_channel.py @@ -0,0 +1,32 @@ +#!/usr/bin/python +from bitget.ws.websocket_server import WebsocketServer +import bitget.ws.utils.ws_url as ws_url +import bitget.ws.utils.sign_utils as utils +import time + + +class PrivateChannel(WebsocketServer): + def __init__(self, url, api_key, api_secret_key, passphrase): + super(PrivateChannel, self).__init__(url, api_key, api_secret_key, passphrase, isLogin=True) + self.api_key = api_key + self.passphrase = passphrase + self.api_secret_key = api_secret_key + + def login(self): + timestamp = int(round(time.time())) + sign = utils.sign(utils.pre_hash(timestamp, ws_url.GET, ws_url.REQUEST_PATH), self.api_secret_key) + args = [self.api_key, self.passphrase, str(timestamp), str(sign)] + super().set_login(ws_url.LOGIN, args) + + def account(self, symbol): + self.login() + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_ACCOUNT+":"+symbol]) + super().connect() + + def position(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_POSITION+":"+symbol]) + super().connect() + + def order(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_ORDER+":"+symbol]) + super().connect() \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/ws/contract/public_channel.py b/bitget-python-sdk-api/bitget/ws/contract/public_channel.py new file mode 100644 index 00000000..4098bfbe --- /dev/null +++ b/bitget-python-sdk-api/bitget/ws/contract/public_channel.py @@ -0,0 +1,37 @@ +#!/usr/bin/python +from bitget.ws.websocket_server import WebsocketServer +import bitget.ws.utils.ws_url as ws_url + + +class PublicChannel(WebsocketServer): + def __init__(self, url, api_key, api_secret_key, passphrase): + super(PublicChannel, self).__init__(url, api_key, api_secret_key, passphrase, isLogin=False) + + def ticker(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_TICKER+":"+symbol]) + super().connect() + + def candle(self, symbol, period): + super().set_args(ws_url.SUBSCRIBE, [period+":"+symbol]) + super().connect() + + def trade(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_TRADE+":"+symbol]) + super().connect() + + def depth(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_DEPTH+":"+symbol]) + super().connect() + + def funding_rate(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_FUNDING_RATE+":"+symbol]) + super().connect() + + def mark_price(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_MARK_PRICE+":"+symbol]) + super().connect() + + def price_range(self, symbol): + super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_PRICE_RANGE+":"+symbol]) + super().connect() + diff --git a/bitget-python-sdk-api/bitget/ws/utils/ws_url.py b/bitget-python-sdk-api/bitget/ws/utils/ws_url.py new file mode 100644 index 00000000..20648aa3 --- /dev/null +++ b/bitget-python-sdk-api/bitget/ws/utils/ws_url.py @@ -0,0 +1,47 @@ +#!/usr/bin/python + +# ws url +CONTRACT_WS_URL = ' wss://ws.bitget.com/spot/v1/stream' + +# 订阅类型 +SUBSCRIBE = 'subscribe' +UNSUBSCRIBE = 'unsubscribe' +LOGIN = 'login' + +# 合约 订阅频道 不需要登录 +# 行情 +SWAP_TICKER = 'swap/ticker' +# k线 +SWAP_CANDLES_1M = 'swap/candle60s' +SWAP_CANDLES_5M = 'swap/candle300s' +SWAP_CANDLES_15M = 'swap/candle900s' +SWAP_CANDLES_30M = 'swap/candle1800s' +SWAP_CANDLES_1H = 'swap/candle3600s' +SWAP_CANDLES_4H = 'swap/candle14400s' +SWAP_CANDLES_12H = 'swap/candle43200s' +SWAP_CANDLES_1D = 'swap/candle86400s' +SWAP_CANDLES_1W = 'swap/candle604800s' +# 交易信息频道 +SWAP_TRADE = 'swap/trade' +# 资金费率 +SWAP_FUNDING_RATE = 'swap/funding_rate' +# 限价范围频道 +SWAP_PRICE_RANGE = 'swap/price_range' +# 深度 +SWAP_DEPTH = 'swap/depth' +# 标记价格频道 +SWAP_MARK_PRICE = 'swap/mark_price' + +# 合约 订阅频道 需要登录 +# 账户信息 +SWAP_ACCOUNT = 'swap/account' +# 持仓信息 +SWAP_POSITION = 'swap/position' +# 订单信息 +SWAP_ORDER = 'swap/order' + + +# method 方式 +GET = 'GET' +REQUEST_PATH = '/user/verify' + diff --git a/bitget-python-sdk-api/bitget/ws/websocket_server.py b/bitget-python-sdk-api/bitget/ws/websocket_server.py new file mode 100644 index 00000000..d9ed0e63 --- /dev/null +++ b/bitget-python-sdk-api/bitget/ws/websocket_server.py @@ -0,0 +1,106 @@ +#!/usr/bin/python +import websocket +import threading +import json + +global ws_dict +ws_dict = dict() + + +def on_open(ws): + __connection = ws_dict[ws] + __connection.on_open(ws) + + +def on_close(ws): + __connection = ws_dict[ws] + __connection.on_close(ws) + + +def on_error(ws): + print("ws connect error, has been closed") + ws.close() + + +def on_message(ws, message): + __connection = ws_dict[ws] + __connection.on_message(message) + + +def ws_server(*args): + try: + # websocket.enableTrace(True) + websocket_server = args[0] + websocket_server.__connection = websocket.WebSocketApp(websocket_server.url, + on_open = on_open, + on_message = on_message, + on_error = on_error, + on_close = on_close) + ws_dict[websocket_server.__connection] = websocket_server + websocket_server.__connection.run_forever(ping_timeout=30) + except Exception as ex: + print(ex) + + +class WebsocketServer: + + def __init__(self, url, api_key, api_secret_key, passphrase, isLogin=False): + self.url = url + self.__api_key = api_key + self.__api_secret_key = api_secret_key + self.__passphrase = passphrase + self.__connection = None + self.__state_code = 0 + self.__isLogin = isLogin + + def connect(self): + self.__thread = threading.Thread(target=ws_server, args=[self]) + self.__thread.start() + + def on_open(self, __connection): + self.__connection = __connection + if self.__isLogin: + print(self.__isLogin) + args = self.get_login() + print(args) + self.__connection.send(args) + + args = self.get_args() + self.__connection.send(args) + print(args) + + def on_close(self, __connection): + self.__connection = __connection + self.__connection.close() + + def on_message(self, message): + mes_data = json.loads(message) + print(mes_data) + if self.__state_code == 200: + self.rev_message(mes_data) + else: + if 'action' in mes_data: + print("connect success") + self.__state_code = mes_data['code'] + + def rev_message(self, message): + if 'errorCode' in message: + print(message) + self.__connection.close() + else: + print(message['data']) + + def set_args(self, __op, __agrs): + self.__op = __op + self.__args = __agrs + + def get_args(self): + return json.dumps({"op": self.__op, "args": self.__args}) + + def set_login(self, __login_op, __login_args): + self.__login_op = __login_op + self.__login_args = __login_args + + def get_login(self): + return json.dumps({"op": self.__login_op, "args": self.__login_args}) + diff --git a/bitget-python-sdk-api/example.py b/bitget-python-sdk-api/example.py new file mode 100644 index 00000000..f0f52dcd --- /dev/null +++ b/bitget-python-sdk-api/example.py @@ -0,0 +1,57 @@ +import bitget.v1.mix.order_api as maxOrderApi +import bitget.bitget_api as baseApi + +from bitget.exceptions import BitgetAPIException + +if __name__ == '__main__': + apiKey = "your apiKey" + secretKey = "your secretKey" + passphrase = "your passphrase" + + # Demo 1:place order + maxOrderApi = maxOrderApi.OrderApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = maxOrderApi.placeOrder(params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 2:place order by post directly + baseApi = baseApi.BitgetApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = baseApi.post("/api/mix/v1/order/placeOrder", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 3:send get request + try: + params = {} + params["productType"] = "umcbl" + response = baseApi.get("/api/mix/v1/market/contracts", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 4:send get request with no params + try: + response = baseApi.get("/api/spot/v1/account/getInfo", {}) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) \ No newline at end of file diff --git a/bitget-python-sdk-api/example_mix.py b/bitget-python-sdk-api/example_mix.py deleted file mode 100644 index 4f10266b..00000000 --- a/bitget-python-sdk-api/example_mix.py +++ /dev/null @@ -1,146 +0,0 @@ - -import bitget.mix.market_api as market -import bitget.mix.account_api as accounts -import bitget.mix.position_api as position -import bitget.mix.order_api as order -import bitget.mix.plan_api as plan -import bitget.mix.trace_api as trace -import json - -if __name__ == '__main__': - api_key = "" - secret_key = "" - passphrase = "" # Password - - symbol = 'BTCUSDT_UMCBL' - - marketApi = market.MarketApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - # result = marketApi.contracts('umcbl') - # print(result) - - # result = marketApi.depth(symbol, limit=100) - # print(result) - - # result = marketApi.ticker(symbol) - # print(result) - - # result = marketApi.tickers('dmcbl') - # print(result) - - # result = marketApi.fills(symbol, limit=50) - # print(result) - - result = marketApi.candles(symbol, granularity='1m',startTime=1679103025000, endTime=1679104945000,limit=100) - print(result) - - # result = marketApi.index(symbol) - # print(result) - - # result = marketApi.funding_time(symbol) - # print(result) - - # result = marketApi.market_price(symbol) - # print(result) - - # result = marketApi.history_fund_rate(symbol,pageSize=20,pageNo=1, nextPage=False) - # print(result) - - # result = marketApi.current_fund_rate(symbol) - # print(result) - - # result = marketApi.open_interest(symbol) - # print(result) - - accountApi = accounts.AccountApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - - # result = accountApi.account(symbol, marginCoin='USDT') - # print(result) - - # result = accountApi.leverage(symbol, marginCoin='USDT', leverage=20, holdSide='long') - # print(result) - - # result = accountApi.margin(symbol, marginCoin='USDT', amount=20, holdSide='long') - # print(result) - - # result = accountApi.margin_mode(symbol, marginCoin='USDT', marginMode='crossed') - # print(result) - - # result = accountApi.position_mode(symbol, marginCoin='USDT', holdMode='double_hold') - # print(result) - - # result = accountApi.open_count(symbol, marginCoin='USDT', openPrice='3000', openAmount='500', leverage=20) - # print(result) - - # result = accountApi.accounts('umcbl') - # print(result) - - positionApi = position.PositionApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - - # result = positionApi.single_position(symbol, marginCoin='USDT') - # print(result) - - # result = positionApi.all_position(productType='mix_type') - # print(result) - - orderApi = order.OrderApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - # 804554549183000576 - # result = orderApi.place_order(symbol="TRXUSDT_UMCBL", marginCoin='USDT', size=555,side='open_long', orderType='limit', price='0.0333', timeInForceValue='normal') - # print(result) - - # order_data=[{"price":"0.0333","size":"666","side":"open_long","orderType":"limit","timeInForceValue":"normal",}] - # result = orderApi.batch_orders("TRXUSDT_UMCBL", marginCoin='USDT', order_data=order_data) - # print(result) - - # result = orderApi.cancel_orders(symbol, marginCoin='USDT', orderId='804554549183000576') - # print(result) - - # result = orderApi.cancel_batch_orders(symbol, marginCoin='USDT', orderIds=['804557496038076416','804557496121962497']) - # print(result) - - # result = orderApi.detail(symbol, orderId='804557496038076416') - # print(result) - - # result = orderApi.current(symbol) - # print(result) - - # result = orderApi.history(symbol, startTime='1627454102000', endTime='1627547623000', pageSize=20, lastEndId='',isPre=False) - # print(result) - - # result = orderApi.fills(symbol, orderId='804553570245029890') - # print(result) - - planApi = plan.PlanApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - - # result = planApi.place_plan(symbol, marginCoin='USDT', size='1', side='open_long', orderType='limit', triggerPrice='39782', executePrice='38982', triggerType='fill_price', timeInForceValue='normal') - # print(result) - - # result = planApi.modify_plan(symbol, marginCoin='USDT', orderId='804602672390836225', orderType='limit', triggerPrice='39782', executePrice='37222', triggerType='fill_price') - # print(result) - - # result = planApi.modify_plan_preset(symbol, marginCoin='USDT', orderId='804602672390836225', planType='normal_plan', presetTakeProfitPrice='45000', presetStopLossPrice='34678') - # print(result) - - # result = planApi.modify_tpsl_plan(symbol, marginCoin='USDT', orderId='804602672390836225', planType='normal_plan', triggerPrice='45000') - # print(result) - - # result = planApi.place_tpsl(symbol, marginCoin='USDT', planType='normal_plan', triggerPrice='45000', holdSide='open_long') - # print(result) - - # result = planApi.cancel_plan(symbol, marginCoin='USDT', orderId='804600814695845888', planType='normal_plan') - # print(result) - - # result = planApi.current_plan(symbol, isPlan='plan') - # print(result) - - # result = planApi.history_plan(symbol, startTime='1627454102000', endTime='1627558127000', pageSize=20, lastEndId='', isPlan='plan') - # print(result) - - traceApi = trace.TraceApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - - # traceApi.follower_history_orders('10', '1', '1635782400000', '1635852263953') - - # traceApi.wait_profit_detail("10","1") - - # traceApi.trader_symbols() - - # traceApi.set_trder_symbol("BTCUSDT_UMCBL") diff --git a/bitget-python-sdk-api/example_spot.py b/bitget-python-sdk-api/example_spot.py deleted file mode 100644 index 9bb49a84..00000000 --- a/bitget-python-sdk-api/example_spot.py +++ /dev/null @@ -1,91 +0,0 @@ -import bitget.spot.public_api as public -import bitget.spot.market_api as market -import bitget.spot.account_api as account -import bitget.spot.order_api as order -import bitget.spot.plan_api as plan -import json - -if __name__ == '__main__': - api_key = "" - secret_key = "" - passphrase = "" # Password - - symbol = 'btcusdt_spbl' - - # spot Get currency information - # publicApi = public.PublicApi(api_key, secret_key, passphrase, use_server_time=True, first=False); - # result = publicApi.currencies() - # print(result) - - # spot Obtain transaction pair information - # result = publicApi.products() - # print(result) - - # spot Get single transaction pair information - # result = publicApi.product('btcusdt_spbl') - # print(result) - - - - # marketApi = market.MarketApi(api_key, secret_key, passphrase, use_server_time=False, first=False); - # result = marketApi.fills(symbol, limit=50) - # print(result) - - # result = marketApi.depth(symbol, limit=50, type='step0') - # print(result) - - # result = marketApi.ticker(symbol) - # print(result) - - # result = marketApi.tickers() - # print(result) - - # result = marketApi.candles(symbol, period='1min', after='1624352586', before='1624356186', limit=100) - # print(result) - - # accountApi = account.AccountApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - - # result = accountApi.assets() - # print(result) - - # result = accountApi.bills() - # print(result) - - orderApi = order.OrderApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - # result = orderApi.orders(symbol='bftusdt_spbl', price='2.30222', quantity='1', side='buy', orderType='limit', force='normal', clientOrderId='spot#29028939ss') - # print(result) - - order_data=[{"price":"2.30222","quantity":"1","side":"buy","orderType":"limit","force":"normal","client_oid":"spot#jidhuu19399"}, {"price":"2.30111","quantity":"1","side":"buy","orderType":"limit","force":"normal","client_oid":"spot#akncnai8821"}] - result = orderApi.batch_orders(symbol='bftusdt_spbl', order_data=order_data) - print(result) - - # result = orderApi.cancel_orders(symbol='bftusdt_spbl', orderId='791171749756964864') - # print(result) - - # result = orderApi.cancel_batch_orders(symbol='bftusdt_spbl', orderId=['']) - # print(result) - - # result = orderApi.open_order(symbol='bftusdt_spbl') - # print(result) - - # result = orderApi.history(symbol='bftusdt_spbl') - # print(result) - - # result = orderApi.fills(symbol='bftusdt_spbl') - # print(result) - - planApi = plan.PlanApi(api_key, secret_key, passphrase, use_server_time=False, first=False) -# result = planApi.placePlan(symbol='BTCUSDT_SPBL', side='buy', triggerPrice='22031', executePrice='22031', size='50', triggerType='market_price', orderType='market', timeInForceValue='normal') -# print(result) - -# result = planApi.modifyPlan(orderId='987136018723487744', triggerPrice='22031', executePrice='22031', size='50', orderType='market') -# print(result) - -# result = planApi.cancelPlan(orderId='987136018723487744') -# print(result) - - # result = planApi.currentPlan(symbol='BTCUSDT_SPBL', pageSize='5') - # print(result) - # - # result = planApi.historyPlan(symbol='BTCUSDT_SPBL', pageSize='5', startTime='1671005531000', endTime='1671085652000') - # print(result) \ No newline at end of file diff --git a/bitget-python-sdk-api/example_wallet.py b/bitget-python-sdk-api/example_wallet.py deleted file mode 100644 index 7a39a82e..00000000 --- a/bitget-python-sdk-api/example_wallet.py +++ /dev/null @@ -1,27 +0,0 @@ -import bitget.spot.wallet_api as wallet -import json - -if __name__ == '__main__': - api_key = "" - secret_key = "" - passphrase = "" # Password - - walletApi = wallet.WalletApi(api_key, secret_key, passphrase, use_server_time=False, first=False) - -# result = walletApi.transfer(fromType='spot', toType='mix_usdt', amount='20', coin='USDT') -# print(result) - -# result = walletApi.depositAddress(coin='USDT', chain='TRC20') -# print(result) - -# result = walletApi.withdrawal(coin='USDT', address='xx', chain='TRC20', amount='20', remark='', clientOid='abc123',tag='tag or memo') -# print(result) - -# result = walletApi.withdrawalInner(coin='USDT', toUid='another uid', amount='20', clientOid='abc123') -# print(result) - -# result = walletApi.withdrawalList(coin='USDT', startTime='1', endTime='2', pageNo='1', pageSize='20') -# print(result) - - result = walletApi.depositList(coin='USDT', startTime='1653998947000', endTime='1685534947908', pageNo='1', pageSize='20') - print(result) diff --git a/bitget-python-sdk-api/example_ws_contract.py b/bitget-python-sdk-api/example_ws_contract.py index c89ff0ec..972ecd00 100644 --- a/bitget-python-sdk-api/example_ws_contract.py +++ b/bitget-python-sdk-api/example_ws_contract.py @@ -1,6 +1,9 @@ #!/usr/bin/python -from bitget.consts import CONTRACT_WS_URL +import bitget.ws.contract.public_channel as public_ws +import bitget.ws.contract.private_channel as private_ws +import bitget.ws.utils as ws_url from bitget.ws.bitget_ws_client import BitgetWsClient, SubscribeReq +from bitget.ws.utils.ws_url import CONTRACT_WS_URL def handle(message): @@ -18,7 +21,7 @@ def handel_btcusd(message): if __name__ == '__main__': api_key = "" secret_key = "" - passphrase = "" + passphrase = "" # 口令 symbol = 'btcusd' client = BitgetWsClient(CONTRACT_WS_URL, need_login=True) \ @@ -33,3 +36,32 @@ def handel_btcusd(message): channles = [SubscribeReq("mc", "ticker", "ETHUSD")] client.subscribe(channles, handel_btcusd) + +# channle2 = ["swap/ticker:btcusd"]; + # client.subscribe(channle,handel_btcusd) + # publicWs = public_ws.PublicChannel(ws_url.CONTRACT_WS_URL, api_key, secret_key, passphrase) + # + # publicWs.ticker(symbol) + + # publicWs.candle(symbol,ws_url.SWAP_CANDLES_1M ) + + # publicWs.trade(symbol) + + # publicWs.depth(symbol) + + # publicWs.mark_price(symbol) + + # publicWs.funding_rate(symbol) + + # publicWs.price_range(symbol) + + # 私有订阅 + # privateWs = private_ws.PrivateChannel(ws_url.CONTRACT_WS_URL, api_key, secret_key, passphrase) + + # privateWs.login() + + # privateWs.account(symbol) + + # privateWs.position(symbol) + + # privateWs.order(symbol) From e0d342df8dde8c7c1cc71ef404f3c268f905da6a Mon Sep 17 00:00:00 2001 From: jidening Date: Mon, 16 Oct 2023 17:22:06 +0800 Subject: [PATCH 05/25] nodeJs --- bitget-node-sdk-api/__test__/api.spec.ts | 53 ++ bitget-node-sdk-api/__test__/mixapi.spec.ts | 681 ------------------ bitget-node-sdk-api/__test__/spotapi.spec.ts | 334 --------- .../__test__/websocketTest.spec.ts | 3 +- bitget-node-sdk-api/src/index.ts | 95 +-- bitget-node-sdk-api/src/lib/BaseApi.ts | 11 +- bitget-node-sdk-api/src/lib/BitgetApi.ts | 15 + bitget-node-sdk-api/src/lib/config.ts | 10 +- .../src/lib/fiat/FiatExchangeRateApi.ts | 24 - .../src/lib/mix/MixAccountApi.ts | 85 --- .../src/lib/mix/MixMarketApi.ts | 134 ---- .../src/lib/mix/MixOrderApi.ts | 93 --- bitget-node-sdk-api/src/lib/mix/MixPlanApi.ts | 101 --- .../src/lib/mix/MixPositionApi.ts | 27 - .../src/lib/mix/MixTraceApi.ts | 147 ---- .../src/lib/model/mix/account/OpenCountReq.ts | 63 -- .../lib/model/mix/account/SetLeverageReq.ts | 52 -- .../lib/model/mix/account/SetMarginModeReq.ts | 38 - .../src/lib/model/mix/account/SetMarginReq.ts | 50 -- .../model/mix/account/SetPositionModeReq.ts | 41 -- .../src/lib/model/mix/order/BatchOrdersReq.ts | 40 - .../model/mix/order/CancelBatchOrderReq.ts | 39 - .../src/lib/model/mix/order/CancelOrderReq.ts | 39 - .../model/mix/order/PlaceOrderBaseParam.ts | 73 -- .../src/lib/model/mix/order/PlaceOrderReq.ts | 123 ---- .../src/lib/model/mix/plan/CancelPlanReq.ts | 51 -- .../lib/model/mix/plan/ModifyPlanPresetReq.ts | 75 -- .../src/lib/model/mix/plan/ModifyPlanReq.ts | 87 --- .../lib/model/mix/plan/ModifyTPSLPlanReq.ts | 63 -- .../src/lib/model/mix/plan/PlacePlanReq.ts | 146 ---- .../src/lib/model/mix/plan/PlaceTPSLReq.ts | 65 -- .../lib/model/mix/plan/PlaceTrailStopReq.ts | 110 --- .../lib/model/mix/trace/CloseTrackOrderReq.ts | 27 - .../model/mix/trace/MixTraceUpdateTPSLReq.ts | 53 -- .../lib/model/mix/trace/TraderSetSymbolReq.ts | 27 - .../lib/model/spot/account/SpotBillsReq.ts | 78 -- .../model/spot/order/SpotBatchOrdersReq.ts | 29 - .../spot/order/SpotCancelBatchOrderReq.ts | 27 - .../model/spot/order/SpotCancelOrderReq.ts | 27 - .../src/lib/model/spot/order/SpotFillsReq.ts | 63 -- .../lib/model/spot/order/SpotHistoryReq.ts | 51 -- .../lib/model/spot/order/SpotOpenOrdersReq.ts | 15 - .../lib/model/spot/order/SpotOrderInfoReq.ts | 39 - .../src/lib/model/spot/order/SpotOrdersReq.ts | 92 --- .../lib/model/spot/plan/SpotCancelPlanReq.ts | 14 - .../lib/model/spot/plan/SpotModifyPlanReq.ts | 62 -- .../src/lib/model/spot/plan/SpotPlanReq.ts | 116 --- .../lib/model/spot/plan/SpotQueryPlanReq.ts | 62 -- .../lib/model/spot/wallet/WithdrawalReq.ts | 92 --- .../src/lib/model/ws/BookInfo.ts | 113 --- .../src/lib/model/ws/SubscribeReq.ts | 4 +- .../src/lib/spot/SpotAccountApi.ts | 39 - .../src/lib/spot/SpotMarketApi.ts | 61 -- .../src/lib/spot/SpotOrderApi.ts | 86 --- .../src/lib/spot/SpotPlanApi.ts | 39 - .../src/lib/spot/SpotPublicApi.ts | 39 - .../src/lib/spot/SpotWalletApi.ts | 17 - bitget-node-sdk-api/src/lib/util.ts | 8 +- .../src/lib/v1/MixAccountApi.ts | 53 ++ .../src/lib/v1/MixMarketApi.ts | 40 + bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts | 106 +++ .../src/lib/v1/SpotAccountApi.ts | 29 + .../src/lib/v1/SpotMarketApi.ts | 51 ++ .../src/lib/v1/SpotOrderApi.ts | 88 +++ .../src/lib/v1/SpotWalletApi.ts | 34 + .../src/lib/v2/MixAccountApi.ts | 53 ++ .../src/lib/v2/MixMarketApi.ts | 40 + bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts | 106 +++ .../src/lib/v2/SpotAccountApi.ts | 28 + .../src/lib/v2/SpotMarketApi.ts | 39 + .../src/lib/v2/SpotOrderApi.ts | 94 +++ .../src/lib/v2/SpotWalletApi.ts | 34 + .../src/lib/ws/BitgetWsClient.ts | 69 +- 73 files changed, 902 insertions(+), 4210 deletions(-) create mode 100644 bitget-node-sdk-api/__test__/api.spec.ts delete mode 100644 bitget-node-sdk-api/__test__/mixapi.spec.ts delete mode 100644 bitget-node-sdk-api/__test__/spotapi.spec.ts create mode 100644 bitget-node-sdk-api/src/lib/BitgetApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/fiat/FiatExchangeRateApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixAccountApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixMarketApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixOrderApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixPlanApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixPositionApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/mix/MixTraceApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/account/OpenCountReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/account/SetLeverageReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/account/SetMarginModeReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/account/SetMarginReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/account/SetPositionModeReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/order/BatchOrdersReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/order/CancelBatchOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/order/CancelOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderBaseParam.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/CancelPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanPresetReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/ModifyTPSLPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/PlacePlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTPSLReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTrailStopReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/trace/CloseTrackOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/trace/MixTraceUpdateTPSLReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/mix/trace/TraderSetSymbolReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/account/SpotBillsReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotBatchOrdersReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelBatchOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelOrderReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotFillsReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotHistoryReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotOpenOrdersReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotOrderInfoReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/order/SpotOrdersReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/plan/SpotCancelPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/plan/SpotModifyPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/plan/SpotPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/plan/SpotQueryPlanReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/spot/wallet/WithdrawalReq.ts delete mode 100644 bitget-node-sdk-api/src/lib/model/ws/BookInfo.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotAccountApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotMarketApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotOrderApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotPlanApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotPublicApi.ts delete mode 100644 bitget-node-sdk-api/src/lib/spot/SpotWalletApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/SpotMarketApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/SpotOrderApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts create mode 100644 bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts diff --git a/bitget-node-sdk-api/__test__/api.spec.ts b/bitget-node-sdk-api/__test__/api.spec.ts new file mode 100644 index 00000000..707ecf07 --- /dev/null +++ b/bitget-node-sdk-api/__test__/api.spec.ts @@ -0,0 +1,53 @@ +import BitgetResetApi from '../src'; +import Console from 'console'; +import {describe, test} from '@jest/globals' +import {toJsonString} from '../src/lib/util'; +import {MixOrderApi} from '../src/lib/v2/MixOrderApi'; + +const apiKey = 'your apiKey'; +const secretKey = 'your secretKey'; +const passphrase = 'your passphrase'; + +describe('ApiTest', () => { + const mixOrderApi = new BitgetResetApi.MixOrderApi(apiKey, secretKey, passphrase); + const mixOrderV2Api = new MixOrderApi(apiKey, secretKey, passphrase); + const bitgetApi = new BitgetResetApi.BitgetApi(apiKey, secretKey, passphrase); + + test('place order', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return mixOrderApi.placeOrder(qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send post request directly If the interface is not defined in the sdk', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return bitgetApi.post("/api/mix/v1/order/placeOrder", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'symbol': 'btcusdt_spbl'}; + return bitgetApi.get("/api/spot/v1/market/depth", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) +}); + diff --git a/bitget-node-sdk-api/__test__/mixapi.spec.ts b/bitget-node-sdk-api/__test__/mixapi.spec.ts deleted file mode 100644 index d60f754b..00000000 --- a/bitget-node-sdk-api/__test__/mixapi.spec.ts +++ /dev/null @@ -1,681 +0,0 @@ -import * as BitgetApi from '../src'; -import { describe, test, expect } from '@jest/globals'; - -import {toJsonString} from '../src/lib/util'; - -import * as Console from 'console'; -import {LOCAL} from "../src/lib/config"; -import {MixTraceUpdateTPSLReq, TraderSetSymbolReq} from "../src"; - - - -const apiKey = ''; -const secretKey = ''; -const passphrase = ''; -const locale = LOCAL.ZH_CH; -describe('MixAccountApiTest', () => { - - - const mixAccountApi = new BitgetApi.MixAccountApi(apiKey,secretKey,passphrase,locale); - /** - * Get account information - * @param symbol - * @param marginCoin - */ - test('account', () => { - return mixAccountApi.account('BTCUSDT_UMCBL','USDT').then((data) => { - Console.info(toJsonString(data)); - }); - }); - /** - * Get account information list - * @param productType - */ - test('accounts', () => { - return mixAccountApi.accounts('umcbl').then((data) => { - Console.info(toJsonString(data)); - }); - }); - /** - * set lever - * @param mixChangeLeverageReq - */ - test('setLeverage', () => { - const setLeverageReq = new BitgetApi.SetLeverageReq(); - setLeverageReq.symbol = 'BTCUSDT_UMCBL'; - setLeverageReq.marginCoin = 'USDT'; - setLeverageReq.leverage = '25'; - setLeverageReq.holdSide = 'long'; - return mixAccountApi.setLeverage(setLeverageReq).then((data) => { - Console.info(toJsonString(data)); - }); - }); - /** - * Adjustment margin - * @param mixAdjustMarginFixReq - */ - test('setMargin', () => { - const setMarginReq = new BitgetApi.SetMarginReq(); - setMarginReq.symbol = 'BTCUSDT_UMCBL'; - setMarginReq.marginCoin = 'USDT'; - setMarginReq.amount = '10'; - setMarginReq.holdSide = 'long'; - return mixAccountApi.setMargin(setMarginReq).then((data) => { - Console.info(toJsonString(data)); - }) - }) - /** - * Adjust margin mode - * @param adjustMarginModeReq - */ - test('setMarginMode', () => { - const setMarginModeReq = new BitgetApi.SetMarginModeReq(); - setMarginModeReq.symbol = 'BTCUSDT_UMCBL'; - setMarginModeReq.marginCoin = 'USDT'; - setMarginModeReq.marginMode = 'fixed'; - return mixAccountApi.setMarginMode(setMarginModeReq).then((data) => { - // tslint:disable-next-line:no-console - Console.info(toJsonString(data)); - }) - }) - /** - * Adjust hold mode - * @param adjustHoldModeReq - */ - test('setPositionMode', () => { - const setPositionModeReq = new BitgetApi.SetPositionModeReq(); - setPositionModeReq.symbol = 'BTCUSDT_UMCBL'; - setPositionModeReq.marginCoin = 'USDT'; - setPositionModeReq.holdMode = 'double_hold'; - return mixAccountApi.setPositionMode(setPositionModeReq).then((data) => { - Console.info(toJsonString(data)); - }) - }) - /** - * Get the openable quantity - * @param mixOpenCountReq - */ - test('openCount', () => { - const openCountReq = new BitgetApi.OpenCountReq(); - openCountReq.symbol = 'BTCUSDT_UMCBL'; - openCountReq.marginCoin = 'USDT'; - openCountReq.openPrice = '30000'; - openCountReq.leverage = '20'; - openCountReq.openAmount = '99999'; - return mixAccountApi.openCount(openCountReq).then((data) => { - Console.info(toJsonString(data)); - }) - }) -}); - -describe('MixMarketApiTest', () => { - const mixMarketApi = new BitgetApi.MixMarketApi(apiKey,secretKey,passphrase,locale); - /** - * Contract information - * @param productType - */ - test('contracts',()=>{ - return mixMarketApi.contracts('sdmcbl').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Deep market - * @param symbol - * @param limit - */ - test('depth',()=>{ - return mixMarketApi.depth('BTCUSDT_UMCBL','50').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Deep market - * @param symbol - */ - test('ticker',()=>{ - return mixMarketApi.ticker('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Acquisition of single ticker market - * @param productType - */ - test('tickers',()=>{ - return mixMarketApi.tickers('umcbl').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain transaction details - * @param symbol - * @param limit - */ - test('fills',()=>{ - return mixMarketApi.fills('BTCUSDT_UMCBL','50').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - */ - test('candles',()=>{ - return mixMarketApi.candles('BTCUSDT_UMCBL','60','1629177891000','1629181491000').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * Get currency index - * @param symbol - */ - test('index',()=>{ - return mixMarketApi.index('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }, 30000) - /** - * Get the next settlement time of the contract - * @param symbol - */ - test('fundingTime',()=>{ - return mixMarketApi.index('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - */ - test('historyFundRate',()=>{ - return mixMarketApi.historyFundRate('BTCUSDT_UMCBL','20','1',false).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get the current fund rate - * @param symbol - */ - test('currentFundRate',()=>{ - return mixMarketApi.currentFundRate('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain the total position of the platform - * @param symbol - */ - test('openInterest',()=>{ - return mixMarketApi.openInterest('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get contract tag price - * @param symbol - */ - test('markPrice',()=>{ - return mixMarketApi.markPrice('BTCUSDT_UMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - -describe('MixOrderApiTest', () => { - const mixOrderApi = new BitgetApi.MixOrderApi(apiKey,secretKey,passphrase,locale); - /** - * place an order - * @param placeOrderReq - */ - test('placeOrder',()=>{ - const placeOrderReq = new BitgetApi.PlaceOrderReq(); - placeOrderReq.clientOid='RFIut#'+Date.now(); - placeOrderReq.symbol = 'SBTCSUSDT_SUMCBL'; - placeOrderReq.price = '44067'; - placeOrderReq.size = '1'; - placeOrderReq.marginCoin = 'SUSDT'; - placeOrderReq.side = 'open_long'; - placeOrderReq.timeInForceValue = 'normal'; - placeOrderReq.orderType = 'limit'; - return mixOrderApi.placeOrder(placeOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Place orders in batches - * @param batchOrdersReq - */ - test('batchOrders',()=>{ - const batchOrdersReq = new BitgetApi.BatchOrdersReq(); - batchOrdersReq.symbol = 'SBTCSUSDT_SUMCBL'; - batchOrdersReq.marginCoin = 'SUSDT'; - - const placeOrderBaseParamOne = new BitgetApi.PlaceOrderBaseParam(); - placeOrderBaseParamOne.clientOid='RFIut#'+Date.now(); - placeOrderBaseParamOne.price = '23789.3'; - placeOrderBaseParamOne.size = '1'; - placeOrderBaseParamOne.side = 'open_long'; - placeOrderBaseParamOne.timeInForceValue = 'normal'; - placeOrderBaseParamOne.orderType = 'limit'; - - const placeOrderBaseParamTow = new BitgetApi.PlaceOrderBaseParam(); - placeOrderBaseParamTow.clientOid='RFIut#'+Date.now(); - placeOrderBaseParamTow.price = '23888.3'; - placeOrderBaseParamTow.size = '1'; - placeOrderBaseParamTow.side = 'open_long'; - placeOrderBaseParamTow.timeInForceValue = 'normal'; - placeOrderBaseParamTow.orderType = 'limit'; - - const orderDataList = new Array(); - orderDataList.push(placeOrderBaseParamOne); - orderDataList.push(placeOrderBaseParamTow); - - batchOrdersReq.orderDataList = orderDataList; - return mixOrderApi.batchOrders(batchOrdersReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * cancel the order - * @param cancelOrderReq - */ - test('cancelOrder',()=>{ - const cancelOrderReq = new BitgetApi.CancelOrderReq(); - cancelOrderReq.symbol = 'SBTCSUSDT_SUMCBL'; - cancelOrderReq.marginCoin = 'SUSDT'; - cancelOrderReq.orderId = '811489712408248322'; - return mixOrderApi.cancelOrder(cancelOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Batch cancellation - * @param cancelBatchOrderReq - */ - test('cancelBatchOrder',()=>{ - const cancelBatchOrderReq = new BitgetApi.CancelBatchOrderReq(); - cancelBatchOrderReq.symbol = 'SBTCSUSDT_SUMCBL'; - cancelBatchOrderReq.marginCoin = 'SUSDT'; - const orderIds = new Array(); - orderIds.push('802382049422487552'); - orderIds.push('811489712408248322'); - cancelBatchOrderReq.orderIds = orderIds; - return mixOrderApi.cancelBatchOrder(cancelBatchOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - */ - test('history',()=>{ - - return mixOrderApi.history('SBTCSUSDT_SUMCBL','1629113823000','1629513368000',50,'',false).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get the current delegate - * @param symbol - */ - test('current',()=>{ - - return mixOrderApi.current('SBTCSUSDT_SUMCBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get order details - * @param symbol - * @param orderId - */ - test('detail',()=>{ - - return mixOrderApi.detail('SBTCSUSDT_SUMCBL','811489712408248322').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Query transaction details - * @param symbol - * @param orderId - */ - test('fills',()=>{ - - return mixOrderApi.fills('SBTCSUSDT_SUMCBL','811489712408248322').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - -describe('MixPlanApiTest', () => { - const mixPlanApi = new BitgetApi.MixPlanApi(apiKey,secretKey,passphrase,locale); - /** - * Plan Entrusted Order - * @param placePlanReq - */ - test('placePlan',()=>{ - const placePlanReq = new BitgetApi.PlacePlanReq(); - placePlanReq.clientOid = '#'+Date.now(); - placePlanReq.symbol = 'BTCUSDT_UMCBL'; - placePlanReq.triggerPrice = '45000.3'; - placePlanReq.executePrice = '38923.1'; - placePlanReq.size = '1'; - placePlanReq.marginCoin = 'USDT'; - placePlanReq.side = 'open_long'; - placePlanReq.orderType = 'limit'; - placePlanReq.triggerType = 'fill_price'; - return mixPlanApi.placePlan(placePlanReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Modify Plan Delegation - * @param modifyPlanReq - */ - test('modifyPlan',()=>{ - const modifyPlanReq = new BitgetApi.ModifyPlanReq(); - modifyPlanReq.orderId = '833883177497890816'; - modifyPlanReq.symbol = 'BTCUSDT_UMCBL'; - modifyPlanReq.triggerPrice = '45012.1'; - modifyPlanReq.executePrice = '39423.1'; - modifyPlanReq.marginCoin = 'USDT'; - modifyPlanReq.triggerType = 'fill_price'; - modifyPlanReq.orderType = 'limit'; - return mixPlanApi.modifyPlan(modifyPlanReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Modify the preset profit and loss stop of plan entrustment - * @param modifyPlanPresetReq - * @return ResponseResult - */ - test('modifyPlanPreset',()=>{ - const modifyPlanPresetReq = new BitgetApi.ModifyPlanPresetReq(); - modifyPlanPresetReq.orderId = '833883177497890816'; - modifyPlanPresetReq.symbol = 'BTCUSDT_UMCBL'; - modifyPlanPresetReq.marginCoin = 'USDT'; - modifyPlanPresetReq.presetTakeProfitPrice = '55012.1'; - return mixPlanApi.modifyPlanPreset(modifyPlanPresetReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Stop profit and stop loss Order - * @param placeTPSLReq - */ - test('placeTPSL',()=>{ - const placeTPSLReq = new BitgetApi.PlaceTPSLReq(); - placeTPSLReq.symbol = 'BTCUSDT_UMCBL'; - placeTPSLReq.marginCoin = 'USDT'; - placeTPSLReq.planType = 'profit_plan'; - placeTPSLReq.triggerPrice = '36888.0'; - placeTPSLReq.holdSide = 'short'; - return mixPlanApi.placeTPSL(placeTPSLReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - - test('placeTrailStop',()=>{ - const placeTrailStopReq = new BitgetApi.PlaceTrailStopReq(); - placeTrailStopReq.symbol = 'BTCUSDT_UMCBL'; - placeTrailStopReq.triggerPrice = '45000.3'; - placeTrailStopReq.size = '1'; - placeTrailStopReq.marginCoin = 'USDT'; - placeTrailStopReq.side = 'open_long'; - placeTrailStopReq.triggerType = 'fill_price'; - return mixPlanApi.placeTrailStop(placeTrailStopReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Modify profit and loss stop - * @param modifyTPSLPlanReq - */ - test('modifyTPSLPlan',()=>{ - const modifyTPSLPlanReq = new BitgetApi.ModifyTPSLPlanReq(); - modifyTPSLPlanReq.symbol = 'BTCUSDT_UMCBL'; - modifyTPSLPlanReq.marginCoin = 'USDT'; - modifyTPSLPlanReq.planType = 'profit_plan'; - modifyTPSLPlanReq.triggerPrice = '36888.0'; - modifyTPSLPlanReq.orderId = '833883177497890816'; - return mixPlanApi.modifyTPSLPlan(modifyTPSLPlanReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Planned entrustment (profit and loss stop) cancellation - * @param cancelPlanReq - */ - test('cancelPlan',()=>{ - const cancelPlanReq = new BitgetApi.CancelPlanReq(); - cancelPlanReq.symbol = 'BTCUSDT_UMCBL'; - cancelPlanReq.marginCoin = 'USDT'; - cancelPlanReq.planType = 'profit_plan'; - cancelPlanReq.orderId = '833883177497890816'; - return mixPlanApi.cancelPlan(cancelPlanReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - */ - test('currentPlan',()=>{ - - return mixPlanApi.currentPlan('BTCUSDT_UMCBL','plan').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - */ - test('historyPlan',()=>{ - - return mixPlanApi.historyPlan('BTCUSDT_UMCBL','1627210955000','1627383755000','100',false,'').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - -}); - -describe('MixPositionApiTest', () => { - const mixPositionApi = new BitgetApi.MixPositionApi(apiKey,secretKey,passphrase,locale); - /** - * Obtain single contract position information - * @param symbol - * @param marginCoin - */ - test('singlePosition',()=>{ - return mixPositionApi.singlePosition('BTCUSDT_UMCBL','USDT').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain all contract position information - * @param productType - * @param marginCoin - */ - test('allPosition',()=>{ - return mixPositionApi.allPosition('umcbl','USDT').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - -describe('MixTraceApiTest', () => { - const mixTraceApi = new BitgetApi.MixTraceApi(apiKey,secretKey,passphrase,locale); - /** - * Dealer closing interface - * @param mixCloseTrackOrderReq - */ - test('closeTraceOrder',()=>{ - const closeTrackOrderReq = new BitgetApi.CloseTrackOrderReq(); - closeTrackOrderReq.symbol = 'BTCUSDT_UMCBL'; - closeTrackOrderReq.trackingNo = '0'; - return mixTraceApi.closeTrackOrder(closeTrackOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - */ - test('currentTrack',()=>{ - - return mixTraceApi.currentTrack('BTCUSDT_UMCBL','umcbl','50','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - */ - test('historyTrack',()=>{ - - return mixTraceApi.historyTrack('','','50','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Summary of traders' profit sharing - */ - test('summary',()=>{ - - return mixTraceApi.summary().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Historical profit sharing summary of traders (by settlement currency) - */ - test('profitSettleTokenIdGroup',()=>{ - - return mixTraceApi.profitSettleTokenIdGroup().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - */ - test('profitDateGroupList',()=>{ - - return mixTraceApi.profitDateGroupList('20','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - */ - test('profitDateList',()=>{ - - return mixTraceApi.profitDateList('USDT','1636532513987','10','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - */ - test('waitProfitDateList',()=>{ - - return mixTraceApi.waitProfitDateList('10','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - */ - test('followerHistoryOrders',()=>{ - - return mixTraceApi.followerHistoryOrders('10','1','1635782400000','1635852263953').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * trader get copyTrade symbol - */ - test('traderSymbols',()=>{ - - return mixTraceApi.traderSymbols().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * trader set copyTrade symbol - */ - test('setUpCopySymbols',()=>{ - const traderSetSymbolReq = new BitgetApi.TraderSetSymbolReq(); - traderSetSymbolReq.symbol = 'BTCUSDT_UMCBL'; - return mixTraceApi.setUpCopySymbols(traderSetSymbolReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * trader modify tpsl order - */ - test('modifyTPSL',()=>{ - const mixTraceUpdateTPSLReq = new BitgetApi.MixTraceUpdateTPSLReq(); - mixTraceUpdateTPSLReq.symbol = 'BTCUSDT_UMCBL'; - mixTraceUpdateTPSLReq.trackingNo = '804641389214179330'; - return mixTraceApi.modifyTPSL(mixTraceUpdateTPSLReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * trader get copytrade symbol - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - */ - test('followerOrder',()=>{ - - return mixTraceApi.followerOrder('BTCUSDT_UMCBL','umcbl','100','1').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); \ No newline at end of file diff --git a/bitget-node-sdk-api/__test__/spotapi.spec.ts b/bitget-node-sdk-api/__test__/spotapi.spec.ts deleted file mode 100644 index 063e89e2..00000000 --- a/bitget-node-sdk-api/__test__/spotapi.spec.ts +++ /dev/null @@ -1,334 +0,0 @@ -import * as BitgetApi from '../src'; -import Console from 'console'; -import { describe, test, expect } from '@jest/globals' -import {toJsonString} from '../src/lib/util'; -import {SpotBillsReq} from '../src'; -import {SpotOrdersReq} from '../src'; -import {SpotBatchOrdersReq} from '../src'; -import {SpotCancelOrderReq} from '../src'; -import {SpotCancelBatchOrderReq} from '../src'; -import {SpotOrderInfoReq} from '../src'; -import {SpotOpenOrdersReq} from '../src'; -import {SpotHistoryReq} from '../src'; -import {SpotFillsReq} from '../src'; -import {LOCAL} from '../src/lib/config'; - -const apiKey = ''; -const secretKey = ''; -const passphrase = ''; -const locale = LOCAL.ZH_CH; -describe('SpotMarketApiTest', () => { - const spotMarketApi = new BitgetApi.SpotMarketApi(apiKey,secretKey,passphrase,locale); - /** - * Obtain transaction data - * @param symbol - * @param limit - */ - test('fills',()=>{ - return spotMarketApi.fills('btcusdt_spbl','50').then((data)=>{ - Console.info(toJsonString(data)); - }); - },30000) - /** - * Get depth data - * @param symbol - * @param limit - * @param type - */ - test('depth',()=>{ - return spotMarketApi.depth('umcbl','USDT','step0').then((data)=>{ - Console.info(toJsonString(data)); - }); - },30000) - /** - * Get a Ticker Information - * @param symbol - */ - test('ticker',()=>{ - return spotMarketApi.ticker('btcusdt_spbl').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get all Ticker information - */ - test('tickers',()=>{ - return spotMarketApi.tickers().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - */ - test('candles',()=>{ - return spotMarketApi.candles('btcusdt_spbl','1min','1624929806000','1624933406000','50').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - - -describe('SpotPublicApiTest', () => { - const spotPublicApi = new BitgetApi.SpotPublicApi(apiKey,secretKey,passphrase,locale); - /** - * Get server time - */ - test('time',()=>{ - return spotPublicApi.time().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Basic information of currency - */ - test('currencies',()=>{ - return spotPublicApi.currencies().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get all product information - */ - test('products',()=>{ - return spotPublicApi.products().then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get single product information - * @param symbol - */ - test('product',()=>{ - return spotPublicApi.product('ETHUSDT_SPBL').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - - -describe('SpotAccountApiTest', () => { - const spotAccountApi = new BitgetApi.SpotAccountApi(apiKey,secretKey,passphrase,locale); - /** - * Obtain account assets - */ - test('assets',()=>{ - return spotAccountApi.assets("").then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - /** - * Get the bill flow - * @param spotBillQueryReq - */ - test('bills',()=>{ - const billsReq = new SpotBillsReq(); - return spotAccountApi.bills(billsReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - */ - test('transferRecords',()=>{ - return spotAccountApi.transferRecords('2','USDT_MIX','10','','').then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - -describe('SpotOrderApiTest', () => { - const spotOrderApi = new BitgetApi.SpotOrderApi(apiKey,secretKey,passphrase,locale); - /** - * place an order - * @param ordersReq - */ - test('orders',()=>{ - const ordersReq = new SpotOrdersReq(); - ordersReq.symbol = 'bftusdt_spbl'; - ordersReq.price = '2.68222'; - ordersReq.quantity = '10'; - ordersReq.side = 'buy'; - ordersReq.orderType = 'limit'; - ordersReq.force = 'normal'; - return spotOrderApi.orders(ordersReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Place orders in batches - * @param batchOrdersReq - */ - test('batchOrders',()=>{ - const batchOrdersReq = new SpotBatchOrdersReq(); - const orderReqOne = new SpotOrdersReq(); - orderReqOne.price = '2.68111'; - orderReqOne.quantity = '10'; - orderReqOne.side = 'buy'; - orderReqOne.orderType = 'limit'; - orderReqOne.force = 'normal'; - orderReqOne.clientOrderId = Date.now()+''; - - const orderReqTow = new SpotOrdersReq(); - orderReqTow.price = '2.68222'; - orderReqTow.quantity = '10'; - orderReqTow.side = 'buy'; - orderReqTow.orderType = 'limit'; - orderReqTow.force = 'normal'; - orderReqTow.clientOrderId = Date.now()+''; - - - const orderList = new Array(); - orderList.push(orderReqOne); - orderList.push(orderReqTow); - - batchOrdersReq.symbol = 'bftusdt_spbl'; - batchOrdersReq.orderList = orderList; - return spotOrderApi.batchOrders(batchOrdersReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * cancel the order - * @param cancelOrderReq - */ - test('cancelOrder',()=>{ - const cancelOrderReq = new SpotCancelOrderReq(); - cancelOrderReq.orderId = ''; - cancelOrderReq.symbol = 'bftusdt_spbl'; - return spotOrderApi.cancelOrder(cancelOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Batch cancellation - * @param cancelBatchOrderReq - */ - test('cancelBatchOrder',()=>{ - const cancelBatchOrderReq = new SpotCancelBatchOrderReq(); - cancelBatchOrderReq.symbol = 'bftusdt_spbl'; - const orderIds = new Array(); - orderIds.push(''); - orderIds.push(''); - cancelBatchOrderReq.orderIds = orderIds; - return spotOrderApi.cancelBatchOrder(cancelBatchOrderReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get order details - * @param orderInfoReq - */ - test('orderInfo',()=>{ - const orderInfoReq = new SpotOrderInfoReq(); - orderInfoReq.orderId = '123456'; - return spotOrderApi.orderInfo(orderInfoReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param openOrdersReq - */ - test('openOrders',()=>{ - const openOrdersReq = new SpotOpenOrdersReq(); - openOrdersReq.symbol = 'bftusdt_spbl'; - return spotOrderApi.openOrders(openOrdersReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Get historical delegation list - * @param historyReq - */ - test('history',()=>{ - const historyReq = new SpotHistoryReq(); - historyReq.symbol = 'bftusdt_spbl'; - return spotOrderApi.history(historyReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - /** - * Obtain transaction details - * @param fillsReq - */ - test('fills',()=>{ - const fillsReq = new SpotFillsReq(); - fillsReq.symbol = 'bftusdt_spbl'; - fillsReq.orderId = '791113184589549568'; - return spotOrderApi.fills(fillsReq).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) -}); - - -describe('SpotPlanApiTest', () => { - const spotPlanApi = new BitgetResetApi.SpotPlanApi(apiKey,secretKey,passphrase); - - test('placePlan',()=>{ - const req = new SpotPlanReq(); - req.symbol = 'BTCUSDT_SPBL'; - req.side = 'buy'; - req.triggerPrice = '22031'; - req.executePrice = '22031'; - req.size = '100'; - req.triggerType = 'market_price'; - req.orderType = 'market'; - req.timeInForceValue = 'normal'; - return spotPlanApi.placePlan(req).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - test('modifyPlan',()=>{ - const req = new SpotModifyPlanReq(); - req.orderId = '987136018723487744'; - req.triggerPrice = '16000'; - req.executePrice = '16000'; - req.size = '50'; - req.orderType = 'market'; - return spotPlanApi.modifyPlan(req).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - test('cancelPlan',()=>{ - const req = new SpotCancelPlanReq(); - req.orderId = '987136018723487744'; - return spotPlanApi.cancelPlan(req).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - test('currentPlan',()=>{ - const req = new SpotQueryPlanReq(); - req.symbol = 'BTCUSDT_SPBL'; - req.pageSize = '10'; - return spotPlanApi.currentPlan(req).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - - test('historyPlan',()=>{ - const req = new SpotQueryPlanReq(); - req.symbol = 'BTCUSDT_SPBL'; - req.pageSize = '10'; - req.startTime = '1671005531000'; - req.endTime = '1671085652000'; - return spotPlanApi.historyPlan(req).then((data)=>{ - Console.info(toJsonString(data)); - }); - }) - -}); \ No newline at end of file diff --git a/bitget-node-sdk-api/__test__/websocketTest.spec.ts b/bitget-node-sdk-api/__test__/websocketTest.spec.ts index b393fcf9..4261481b 100644 --- a/bitget-node-sdk-api/__test__/websocketTest.spec.ts +++ b/bitget-node-sdk-api/__test__/websocketTest.spec.ts @@ -1,6 +1,7 @@ import {describe, test} from '@jest/globals'; -import {BitgetWsClient, Listenner,SubscribeReq} from '../src'; +import {BitgetWsClient, Listenner} from '../src/lib/ws/BitgetWsClient'; import * as Console from 'console'; +import {SubscribeReq} from '../src/lib/model/ws/SubscribeReq'; const apiKey = ''; diff --git a/bitget-node-sdk-api/src/index.ts b/bitget-node-sdk-api/src/index.ts index 7703d937..08b8ed42 100644 --- a/bitget-node-sdk-api/src/index.ts +++ b/bitget-node-sdk-api/src/index.ts @@ -1,92 +1,19 @@ -import {MixAccountApi} from './lib/mix/MixAccountApi'; -import {MixMarketApi} from './lib/mix/MixMarketApi'; -import {MixOrderApi} from './lib/mix/MixOrderApi'; -import {MixPlanApi} from './lib/mix/MixPlanApi'; -import {MixPositionApi} from './lib/mix/MixPositionApi'; -import {MixTraceApi} from './lib/mix/MixTraceApi'; -import {SpotMarketApi} from './lib/spot/SpotMarketApi'; -import {SpotPublicApi} from './lib/spot/SpotPublicApi'; -import {SpotOrderApi} from './lib/spot/SpotOrderApi'; -import {SpotAccountApi} from './lib/spot/SpotAccountApi'; -import {BitgetWsClient, Listenner} from './lib/ws/BitgetWsClient'; +import {MixAccountApi} from './lib/v1/MixAccountApi'; +import {MixMarketApi} from './lib/v1/MixMarketApi'; +import {MixOrderApi} from './lib/v1/MixOrderApi'; +import {SpotMarketApi} from './lib/v1/SpotMarketApi'; +import {SpotOrderApi} from './lib/v1/SpotOrderApi'; +import {SpotAccountApi} from './lib/v1/SpotAccountApi'; +import {SpotWalletApi} from './lib/v1/SpotWalletApi'; +import {BitgetApi} from './lib/BitgetApi'; -import {OpenCountReq} from './lib/model/mix/account/OpenCountReq'; -import {SetLeverageReq} from './lib/model/mix/account/SetLeverageReq'; -import {SetMarginModeReq} from './lib/model/mix/account/SetMarginModeReq'; -import {SetMarginReq} from './lib/model/mix/account/SetMarginReq'; -import {SetPositionModeReq} from './lib/model/mix/account/SetPositionModeReq'; -import {BatchOrdersReq} from './lib/model/mix/order/BatchOrdersReq'; -import {CancelBatchOrderReq} from './lib/model/mix/order/CancelBatchOrderReq'; -import {CancelOrderReq} from './lib/model/mix/order/CancelOrderReq'; -import {PlaceOrderBaseParam} from './lib/model/mix/order/PlaceOrderBaseParam'; -import {PlaceOrderReq} from './lib/model/mix/order/PlaceOrderReq'; -import {CancelPlanReq} from './lib/model/mix/plan/CancelPlanReq'; -import {ModifyPlanPresetReq} from './lib/model/mix/plan/ModifyPlanPresetReq'; -import {ModifyPlanReq} from './lib/model/mix/plan/ModifyPlanReq'; -import {ModifyTPSLPlanReq} from './lib/model/mix/plan/ModifyTPSLPlanReq'; -import {PlacePlanReq} from './lib/model/mix/plan/PlacePlanReq'; -import {PlaceTPSLReq} from './lib/model/mix/plan/PlaceTPSLReq'; -import {PlaceTrailStopReq} from './lib/model/mix/plan/PlaceTrailStopReq'; -import {CloseTrackOrderReq} from './lib/model/mix/trace/CloseTrackOrderReq'; -import {TraderSetSymbolReq} from './lib/model/mix/trace/TraderSetSymbolReq'; -import {MixTraceUpdateTPSLReq} from './lib/model/mix/trace/MixTraceUpdateTPSLReq'; - -import {SpotBillsReq} from './lib/model/spot/account/SpotBillsReq'; -import {SpotBatchOrdersReq} from './lib/model/spot/order/SpotBatchOrdersReq'; -import {SpotCancelBatchOrderReq} from './lib/model/spot/order/SpotCancelBatchOrderReq'; -import {SpotCancelOrderReq} from './lib/model/spot/order/SpotCancelOrderReq'; -import {SpotFillsReq} from './lib/model/spot/order/SpotFillsReq'; -import {SpotHistoryReq} from './lib/model/spot/order/SpotHistoryReq'; -import {SpotOpenOrdersReq} from './lib/model/spot/order/SpotOpenOrdersReq'; -import {SpotOrderInfoReq} from './lib/model/spot/order/SpotOrderInfoReq'; -import {SpotOrdersReq} from './lib/model/spot/order/SpotOrdersReq'; - -import {SubscribeReq} from './lib/model/ws/SubscribeReq'; - - -export { +export default { MixAccountApi, MixMarketApi, MixOrderApi, - MixPlanApi, - MixPositionApi, - MixTraceApi, SpotMarketApi, - SpotPublicApi, SpotOrderApi, SpotAccountApi, - BitgetWsClient, - Listenner, - SubscribeReq, - OpenCountReq, - SetLeverageReq, - SetMarginModeReq, - SetMarginReq, - SetPositionModeReq, - BatchOrdersReq, - CancelBatchOrderReq, - CancelOrderReq, - PlaceOrderBaseParam, - PlaceOrderReq, - CancelPlanReq, - ModifyPlanPresetReq, - ModifyPlanReq, - ModifyTPSLPlanReq, - PlacePlanReq, - PlaceTPSLReq, - CloseTrackOrderReq, - SpotBillsReq, - SpotBatchOrdersReq, - SpotCancelBatchOrderReq, - SpotCancelOrderReq, - SpotFillsReq, - SpotHistoryReq, - SpotOpenOrdersReq, - SpotOrderInfoReq, - SpotOrdersReq, - PlaceTrailStopReq, - TraderSetSymbolReq, - MixTraceUpdateTPSLReq + SpotWalletApi, + BitgetApi, } - - diff --git a/bitget-node-sdk-api/src/lib/BaseApi.ts b/bitget-node-sdk-api/src/lib/BaseApi.ts index 88a48138..d5ec7ee5 100644 --- a/bitget-node-sdk-api/src/lib/BaseApi.ts +++ b/bitget-node-sdk-api/src/lib/BaseApi.ts @@ -3,7 +3,7 @@ import {API_CONFIG} from './config'; import axios, {AxiosInstance, AxiosRequestConfig} from 'axios'; import * as Console from 'console'; -export class BaseApi { +export class BaseApi{ protected signer: ( httpMethod: string, url: string, @@ -16,18 +16,17 @@ export class BaseApi { apiKey: string, secretKey: string, passphrase: string, - locale?: string, - httpConfig: AxiosRequestConfig = {timeout: 10000} + httpConfig: AxiosRequestConfig = {timeout: 3000} ) { this.axiosInstance = axios.create({ baseURL: API_CONFIG.API_URL, ...httpConfig }) this.axiosInstance.interceptors.request.use((data) => { - if (data.data) { + if(data.data){ data.data = toJsonString(data.data); } - Console.log('request:', data.data || data.params) + Console.log('request:',data.data || data.params) return data; }) @@ -41,7 +40,7 @@ export class BaseApi { return err.response.data; } ) - this.signer = getSigner(apiKey, secretKey, passphrase, locale) + this.signer = getSigner(apiKey, secretKey ,passphrase) } axiosInstance: AxiosInstance diff --git a/bitget-node-sdk-api/src/lib/BitgetApi.ts b/bitget-node-sdk-api/src/lib/BitgetApi.ts new file mode 100644 index 00000000..d331e42d --- /dev/null +++ b/bitget-node-sdk-api/src/lib/BitgetApi.ts @@ -0,0 +1,15 @@ +import {BaseApi} from './BaseApi'; + +export class BitgetApi extends BaseApi { + + get(url: string, qsOrBody: object) { + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + post(url: string, qsOrBody: object) { + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/config.ts b/bitget-node-sdk-api/src/lib/config.ts index ca862cf8..7f8cf7c3 100644 --- a/bitget-node-sdk-api/src/lib/config.ts +++ b/bitget-node-sdk-api/src/lib/config.ts @@ -1,5 +1,5 @@ export let API_CONFIG = { - WS_URL: 'wss://ws.bitgetapi.com/spot/v1/stream', + WS_URL: 'wss://ws.bitget.com/spot/v1/stream', API_URL: 'https://api.bitget.com' } @@ -12,19 +12,13 @@ export let MIX_URL = { MIX_TRACE: '/api/mix/v1/trace', } -export let LOCAL = { - ZH_CH:'zh-CN', - EN_US:'en-US', -} - export let SPOT_URL = { SPOT_ACCOUNT: '/api/spot/v1/account', SPOT_MARKET: '/api/spot/v1/market', SPOT_ORDER: '/api/spot/v1/trade', SPOT_PUBLIC: '/api/spot/v1/public', SPOT_PLAN: '/api/spot/v1/plan', - SPOT_WALLET: '/api/spot/v1/wallet', } export let FIAT_URL = { FIAT_MARKET: '/api/fiat/v1/market' -} +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/fiat/FiatExchangeRateApi.ts b/bitget-node-sdk-api/src/lib/fiat/FiatExchangeRateApi.ts deleted file mode 100644 index 96ff4730..00000000 --- a/bitget-node-sdk-api/src/lib/fiat/FiatExchangeRateApi.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {FIAT_URL, MIX_URL} from '../config'; -import {SetLeverageReq} from '../model/mix/account/SetLeverageReq'; -import {SetMarginReq} from '../model/mix/account/SetMarginReq'; -import {SetMarginModeReq} from '../model/mix/account/SetMarginModeReq'; -import {SetPositionModeReq} from '../model/mix/account/SetPositionModeReq'; -import {OpenCountReq} from '../model/mix/account/OpenCountReq'; -import {BaseApi} from '../BaseApi'; - -export class FiatExchangeRateApi extends BaseApi{ - - account(symbol: string) { - const url = FIAT_URL.FIAT_MARKET + '/exchange-rate'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} - - - - - - - diff --git a/bitget-node-sdk-api/src/lib/mix/MixAccountApi.ts b/bitget-node-sdk-api/src/lib/mix/MixAccountApi.ts deleted file mode 100644 index 89d0a153..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixAccountApi.ts +++ /dev/null @@ -1,85 +0,0 @@ -import {MIX_URL} from '../config'; -import {SetLeverageReq} from '../model/mix/account/SetLeverageReq'; -import {SetMarginReq} from '../model/mix/account/SetMarginReq'; -import {SetMarginModeReq} from '../model/mix/account/SetMarginModeReq'; -import {SetPositionModeReq} from '../model/mix/account/SetPositionModeReq'; -import {OpenCountReq} from '../model/mix/account/OpenCountReq'; -import {BaseApi} from '../BaseApi'; - -export class MixAccountApi extends BaseApi{ - - /** - * Get account information - * @param symbol - * @param marginCoin - */ - account(symbol: string, marginCoin: string) { - const url = MIX_URL.MIX_ACCOUNT + '/account'; - const qsOrBody = {symbol, marginCoin}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get account information list - * @param productType - */ - accounts(productType: string) { - const url = MIX_URL.MIX_ACCOUNT + '/accounts'; - const qsOrBody = {productType}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * set lever - * @param leverageReq - */ - setLeverage(leverageReq: SetLeverageReq) { - const url = MIX_URL.MIX_ACCOUNT + '/setLeverage'; - const headers = this.signer('POST', url, leverageReq) - return this.axiosInstance.post(url, leverageReq, {headers}) - } - /** - * Adjustment margin - * @param setMarginReq - */ - setMargin(setMarginReq: SetMarginReq) { - const url = MIX_URL.MIX_ACCOUNT + '/setMargin'; - const headers = this.signer('POST', url, setMarginReq) - return this.axiosInstance.post(url, setMarginReq, {headers}) - } - /** - * Adjust margin mode - * @param setMarginModeReq - */ - setMarginMode(setMarginModeReq: SetMarginModeReq) { - const url = MIX_URL.MIX_ACCOUNT + '/setMarginMode'; - const headers = this.signer('POST', url, setMarginModeReq) - return this.axiosInstance.post(url, setMarginModeReq, {headers}) - } - - /** - * Adjust hold mode - * @param setPositionModeReq - */ - setPositionMode(setPositionModeReq: SetPositionModeReq) { - const url = MIX_URL.MIX_ACCOUNT + '/setPositionMode'; - const headers = this.signer('POST', url, setPositionModeReq) - return this.axiosInstance.post(url, setPositionModeReq, {headers}) - } - /** - * Get the openable quantity - * @param openCountReq - */ - openCount(openCountReq: OpenCountReq) { - const url = MIX_URL.MIX_ACCOUNT + '/open-count'; - const headers = this.signer('POST', url, openCountReq) - return this.axiosInstance.post(url, openCountReq, {headers}) - } -} - - - - - - - diff --git a/bitget-node-sdk-api/src/lib/mix/MixMarketApi.ts b/bitget-node-sdk-api/src/lib/mix/MixMarketApi.ts deleted file mode 100644 index ae8c802b..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixMarketApi.ts +++ /dev/null @@ -1,134 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {MIX_URL} from '../config'; - -export class MixMarketApi extends BaseApi { - /** - * Contract information - * @param productType - */ - contracts(productType: string) { - const url = MIX_URL.MIX_MARKET + '/contracts'; - const qsOrBody = {productType}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Deep market - * @param symbol - * @param limit - */ - depth(symbol: string, limit: string) { - const url = MIX_URL.MIX_MARKET + '/depth'; - const qsOrBody = {symbol, limit}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Deep market - * @param symbol - */ - ticker(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/ticker'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Acquisition of single ticker market - * @param productType - */ - tickers(productType: string) { - const url = MIX_URL.MIX_MARKET + '/tickers'; - const qsOrBody = {productType}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Obtain transaction details - * @param symbol - * @param limit - */ - fills(symbol: string, limit: string) { - const url = MIX_URL.MIX_MARKET + '/fills'; - const qsOrBody = {symbol,limit}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - */ - candles(symbol: string, granularity: string,startTime: string,endTime: string) { - const url = MIX_URL.MIX_MARKET + '/candles'; - const qsOrBody = {symbol,granularity,startTime,endTime}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get currency index - * @param symbol - */ - index(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/index'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get the next settlement time of the contract - * @param symbol - */ - fundingTime(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/funding-time'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - */ - historyFundRate(symbol: string,pageSize: string,pageNo: string,nextPage: boolean) { - const url = MIX_URL.MIX_MARKET + '/history-fundRate'; - const qsOrBody = {symbol,pageSize,pageNo,nextPage}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - - /** - * Get the current fund rate - * @param symbol - */ - currentFundRate(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/current-fundRate'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Obtain the total position of the platform - * @param symbol - */ - openInterest(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/open-interest'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get contract tag price - * @param symbol - */ - markPrice(symbol: string) { - const url = MIX_URL.MIX_MARKET + '/mark-price'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/mix/MixOrderApi.ts b/bitget-node-sdk-api/src/lib/mix/MixOrderApi.ts deleted file mode 100644 index 2fe559b9..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixOrderApi.ts +++ /dev/null @@ -1,93 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {PlaceOrderReq} from '../model/mix/order/PlaceOrderReq'; -import {MIX_URL} from '../config'; -import {BatchOrdersReq} from '../model/mix/order/BatchOrdersReq'; -import {CancelOrderReq} from '../model/mix/order/CancelOrderReq'; -import {CancelBatchOrderReq} from '../model/mix/order/CancelBatchOrderReq'; - -export class MixOrderApi extends BaseApi { - /** - * place an order - * @param placeOrderReq - */ - placeOrder(placeOrderReq: PlaceOrderReq) { - const url = MIX_URL.MIX_ORDER + '/placeOrder'; - const headers = this.signer('POST', url, placeOrderReq) - return this.axiosInstance.post(url, placeOrderReq, {headers}) - } - /** - * Place orders in batches - * @param batchOrdersReq - */ - batchOrders(batchOrdersReq: BatchOrdersReq) { - const url = MIX_URL.MIX_ORDER + '/batch-orders'; - const headers = this.signer('POST', url, batchOrdersReq) - return this.axiosInstance.post(url, batchOrdersReq, {headers}) - } - - /** - * cancel the order - * @param cancelOrderReq - */ - cancelOrder(cancelOrderReq: CancelOrderReq) { - const url = MIX_URL.MIX_ORDER + '/cancel-order'; - const headers = this.signer('POST', url, cancelOrderReq) - return this.axiosInstance.post(url, cancelOrderReq, {headers}) - } - /** - * Batch cancellation - * @param cancelBatchOrderReq - */ - cancelBatchOrder(cancelBatchOrderReq: CancelBatchOrderReq) { - const url = MIX_URL.MIX_ORDER + '/cancel-batch-orders'; - const headers = this.signer('POST', url, cancelBatchOrderReq) - return this.axiosInstance.post(url, cancelBatchOrderReq, {headers}) - } - /** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - */ - history(symbol: string, startTime: string, endTime: string, pageSize: number, lastEndId: string, isPre: boolean) { - const url = MIX_URL.MIX_ORDER + '/history'; - const qsOrBody = {symbol, startTime, endTime, pageSize, lastEndId, isPre}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get the current delegate - * @param symbol - */ - current(symbol: string) { - const url = MIX_URL.MIX_ORDER + '/current'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get order details - * @param symbol - * @param orderId - */ - detail(symbol: string,orderId:string) { - const url = MIX_URL.MIX_ORDER + '/detail'; - const qsOrBody = {symbol,orderId}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Query transaction details - * @param symbol - * @param orderId - */ - fills(symbol: string,orderId:string) { - const url = MIX_URL.MIX_ORDER + '/fills'; - const qsOrBody = {symbol,orderId}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/mix/MixPlanApi.ts b/bitget-node-sdk-api/src/lib/mix/MixPlanApi.ts deleted file mode 100644 index 1cb1d8db..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixPlanApi.ts +++ /dev/null @@ -1,101 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {PlacePlanReq} from '../model/mix/plan/PlacePlanReq'; -import {MIX_URL} from '../config'; -import {ModifyPlanReq} from '../model/mix/plan/ModifyPlanReq'; -import {ModifyPlanPresetReq} from '../model/mix/plan/ModifyPlanPresetReq'; -import {ModifyTPSLPlanReq} from '../model/mix/plan/ModifyTPSLPlanReq'; -import {PlaceTPSLReq} from '../model/mix/plan/PlaceTPSLReq'; -import {CancelPlanReq} from '../model/mix/plan/CancelPlanReq'; -import {PlaceTrailStopReq} from '../model/mix/plan/PlaceTrailStopReq'; - -export class MixPlanApi extends BaseApi{ - - /** - * Plan Entrusted Order - * @param placePlanReq - */ - placePlan(placePlanReq: PlacePlanReq) { - const url = MIX_URL.MIX_PLAN + '/placePlan'; - const headers = this.signer('POST', url, placePlanReq) - return this.axiosInstance.post(url, placePlanReq, {headers}) - } - - /** - * Modify Plan Delegation - * @param modifyPlanReq - */ - modifyPlan(modifyPlanReq: ModifyPlanReq) { - const url = MIX_URL.MIX_PLAN + '/modifyPlan'; - const headers = this.signer('POST', url, modifyPlanReq) - return this.axiosInstance.post(url, modifyPlanReq, {headers}) - } - /** - * Modify the preset profit and loss stop of plan entrustment - * @param modifyPlanPresetReq - * @return ResponseResult - */ - modifyPlanPreset(modifyPlanPresetReq: ModifyPlanPresetReq) { - const url = MIX_URL.MIX_PLAN + '/modifyPlanPreset'; - const headers = this.signer('POST', url, modifyPlanPresetReq) - return this.axiosInstance.post(url, modifyPlanPresetReq, {headers}) - } - /** - * Modify profit and loss stop - * @param modifyTPSLPlanReq - */ - modifyTPSLPlan(modifyTPSLPlanReq: ModifyTPSLPlanReq) { - const url = MIX_URL.MIX_PLAN + '/modifyTPSLPlan'; - const headers = this.signer('POST', url, modifyTPSLPlanReq) - return this.axiosInstance.post(url, modifyTPSLPlanReq, {headers}) - } - /** - * Stop profit and stop loss Order - * @param placeTPSLReq - */ - placeTPSL(placeTPSLReq: PlaceTPSLReq) { - const url = MIX_URL.MIX_PLAN + '/placeTPSL'; - const headers = this.signer('POST', url, placeTPSLReq) - return this.axiosInstance.post(url, placeTPSLReq, {headers}) - } - - placeTrailStop(placeTrailStopReq: PlaceTrailStopReq) { - const url = MIX_URL.MIX_PLAN + '/placeTrailStop'; - const headers = this.signer('POST', url, placeTrailStopReq) - return this.axiosInstance.post(url, placeTrailStopReq, {headers}) - } - /** - * Planned entrustment (profit and loss stop) cancellation - * @param cancelPlanReq - */ - cancelPlan(cancelPlanReq: CancelPlanReq) { - const url = MIX_URL.MIX_PLAN + '/cancelPlan'; - const headers = this.signer('POST', url, cancelPlanReq) - return this.axiosInstance.post(url, cancelPlanReq, {headers}) - } - /** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - */ - currentPlan(symbol: string,isPlan:string) { - const url = MIX_URL.MIX_PLAN + '/currentPlan'; - const qsOrBody = {symbol,isPlan}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - */ - historyPlan(symbol: string,startTime:string,endTime:string,pageSize:string,isPre:boolean,isPlan:string) { - const url = MIX_URL.MIX_PLAN + '/historyPlan'; - const qsOrBody = {symbol,startTime,endTime,pageSize,isPre,isPlan}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/mix/MixPositionApi.ts b/bitget-node-sdk-api/src/lib/mix/MixPositionApi.ts deleted file mode 100644 index 93f46db9..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixPositionApi.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {MIX_URL} from '../config'; - -export class MixPositionApi extends BaseApi{ - /** - * Obtain single contract position information - * @param symbol - * @param marginCoin - */ - singlePosition(symbol: string,marginCoin:string) { - const url = MIX_URL.MIX_POSITION + '/singlePosition'; - const qsOrBody = {symbol,marginCoin}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Obtain all contract position information - * @param productType - * @param marginCoin - */ - allPosition(productType: string,marginCoin:string) { - const url = MIX_URL.MIX_POSITION + '/allPosition'; - const qsOrBody = {productType,marginCoin}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/mix/MixTraceApi.ts b/bitget-node-sdk-api/src/lib/mix/MixTraceApi.ts deleted file mode 100644 index eac45cca..00000000 --- a/bitget-node-sdk-api/src/lib/mix/MixTraceApi.ts +++ /dev/null @@ -1,147 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {CloseTrackOrderReq} from '../model/mix/trace/CloseTrackOrderReq'; -import {TraderSetSymbolReq} from '../model/mix/trace/TraderSetSymbolReq'; -import {MixTraceUpdateTPSLReq} from '../model/mix/trace/MixTraceUpdateTPSLReq'; -import {MIX_URL} from '../config'; - -export class MixTraceApi extends BaseApi{ - /** - * Dealer closing interface - * @param mixCloseTrackOrderReq - */ - closeTrackOrder(closeTrackOrderReq: CloseTrackOrderReq) { - const url = MIX_URL.MIX_TRACE + '/closeTrackOrder'; - const headers = this.signer('POST', url, closeTrackOrderReq) - return this.axiosInstance.post(url, closeTrackOrderReq, {headers}) - } - /** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - */ - currentTrack(symbol: string,productType:string,pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/currentTrack'; - const qsOrBody = {symbol,productType,pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - - /** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - */ - historyTrack(startTime: string,endTime:string,pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/historyTrack'; - const qsOrBody = {startTime,endTime,pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Summary of traders' profit sharing - */ - summary() { - const url = MIX_URL.MIX_TRACE + '/summary'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Historical profit sharing summary of traders (by settlement currency) - */ - profitSettleTokenIdGroup() { - const url = MIX_URL.MIX_TRACE + '/profitSettleTokenIdGroup'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - */ - profitDateGroupList(pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/profitSettleTokenIdGroup'; - const qsOrBody = {pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } - /** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - */ - profitDateList(marginCoin:string,date:string,pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/profitDateList'; - const qsOrBody = {marginCoin,date,pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } - /** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - */ - waitProfitDateList(pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/waitProfitDateList'; - const qsOrBody = {pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } - /** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - */ - followerHistoryOrders(pageSize:string,pageNo:string,startTime:string,endTime:string) { - const url = MIX_URL.MIX_TRACE + '/followerHistoryOrders'; - const qsOrBody = {pageSize,pageNo,startTime,endTime}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } - - /** - * trader get copyTrade symbol - */ - traderSymbols() { - const url = MIX_URL.MIX_TRACE + '/traderSymbols'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - - - /** - * trader set copyTrade symbol - */ - setUpCopySymbols(traderSetSymbolReq: TraderSetSymbolReq) { - const url = MIX_URL.MIX_TRACE + '/setUpCopySymbols'; - - const headers = this.signer('POST', url, traderSetSymbolReq) - return this.axiosInstance.post(url,traderSetSymbolReq, {headers}) - } - - /** - * trader modify tpsl order - */ - modifyTPSL(mixTraceUpdateTPSLReq: MixTraceUpdateTPSLReq) { - const url = MIX_URL.MIX_TRACE + '/modifyTPSL'; - const headers = this.signer('POST', url, mixTraceUpdateTPSLReq) - return this.axiosInstance.post(url, mixTraceUpdateTPSLReq,{headers}) - } - - /** - * trader get copytrade symbol - */ - followerOrder(symbol:string,productType:string,pageSize:string,pageNo:string) { - const url = MIX_URL.MIX_TRACE + '/followerOrder'; - const qsOrBody = {symbol,productType,pageSize,pageNo}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/account/OpenCountReq.ts b/bitget-node-sdk-api/src/lib/model/mix/account/OpenCountReq.ts deleted file mode 100644 index e0e2618c..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/account/OpenCountReq.ts +++ /dev/null @@ -1,63 +0,0 @@ -export class OpenCountReq { - /** - * Currency pair - */ - public _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * open price - */ - private _openPrice!:string; - /** - * open amount - */ - private _openAmount!:string; - /** - * Default leverage 20 - */ - private _leverage!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get openPrice(): string { - return this._openPrice; - } - - set openPrice(value: string) { - this._openPrice = value; - } - - get openAmount(): string { - return this._openAmount; - } - - set openAmount(value: string) { - this._openAmount = value; - } - - get leverage(): string { - return this._leverage; - } - - set leverage(value: string) { - this._leverage = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/account/SetLeverageReq.ts b/bitget-node-sdk-api/src/lib/model/mix/account/SetLeverageReq.ts deleted file mode 100644 index 109c7b5f..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/account/SetLeverageReq.ts +++ /dev/null @@ -1,52 +0,0 @@ -export class SetLeverageReq { - /** - * Currency pair - */ - private _symbol!: string; - /** - * Deposit currency - */ - private _marginCoin!: string; - /** - * Leverage ratio - */ - private _leverage!: string; - /** - * The whole warehouse lever can not transfer this parameter - * Position direction: long multi position short short position, - * MixHoldSideEnum - */ - private _holdSide!: string; - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get leverage(): string { - return this._leverage; - } - - set leverage(value: string) { - this._leverage = value; - } - - get holdSide(): string { - return this._holdSide; - } - - set holdSide(value: string) { - this._holdSide = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginModeReq.ts b/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginModeReq.ts deleted file mode 100644 index c0f97b15..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginModeReq.ts +++ /dev/null @@ -1,38 +0,0 @@ -export class SetMarginModeReq { - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Currency pair - */ - private _symbol!:string; - /** - * Margin mode - */ - private _marginMode!:string; - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginMode(): string { - return this._marginMode; - } - - set marginMode(value: string) { - this._marginMode = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginReq.ts b/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginReq.ts deleted file mode 100644 index ca696ca4..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/account/SetMarginReq.ts +++ /dev/null @@ -1,50 +0,0 @@ -export class SetMarginReq { - /** - * Currency pair - */ - private _symbol!: string; - /** - * Deposit currency - */ - private _marginCoin!: string; - /** - * Position direction (all positions are not transferred) - */ - private _holdSide!: string; - /** - * Amount greater than 0 increases less than 0 decreases - */ - private _amount!: string; - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get holdSide(): string { - return this._holdSide; - } - - set holdSide(value: string) { - this._holdSide = value; - } - - get amount(): string { - return this._amount; - } - - set amount(value: string) { - this._amount = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/account/SetPositionModeReq.ts b/bitget-node-sdk-api/src/lib/model/mix/account/SetPositionModeReq.ts deleted file mode 100644 index 71cfcbe2..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/account/SetPositionModeReq.ts +++ /dev/null @@ -1,41 +0,0 @@ -export class SetPositionModeReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Position mode - * 1 One way position - * 2 Two way position - */ - private _holdMode!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get holdMode(): string { - return this._holdMode; - } - - set holdMode(value: string) { - this._holdMode = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/order/BatchOrdersReq.ts b/bitget-node-sdk-api/src/lib/model/mix/order/BatchOrdersReq.ts deleted file mode 100644 index 24ffee79..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/order/BatchOrdersReq.ts +++ /dev/null @@ -1,40 +0,0 @@ -import {PlaceOrderBaseParam} from './PlaceOrderBaseParam'; - -export class BatchOrdersReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Order data list - */ - private _orderDataList!:PlaceOrderBaseParam[] - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get orderDataList(): PlaceOrderBaseParam[] { - return this._orderDataList; - } - - set orderDataList(value: PlaceOrderBaseParam[]) { - this._orderDataList = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/order/CancelBatchOrderReq.ts b/bitget-node-sdk-api/src/lib/model/mix/order/CancelBatchOrderReq.ts deleted file mode 100644 index 0c37ec05..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/order/CancelBatchOrderReq.ts +++ /dev/null @@ -1,39 +0,0 @@ -export class CancelBatchOrderReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Order Id list - */ - private _orderIds!:string[]; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get orderIds(): string[] { - return this._orderIds; - } - - set orderIds(value: string[]) { - this._orderIds = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/order/CancelOrderReq.ts b/bitget-node-sdk-api/src/lib/model/mix/order/CancelOrderReq.ts deleted file mode 100644 index d1aa1c07..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/order/CancelOrderReq.ts +++ /dev/null @@ -1,39 +0,0 @@ -export class CancelOrderReq { - /** - * Order Id - */ - private _orderId!: string; - /** - * Currency pair - */ - private _symbol!: string; - /** - * Deposit currency - */ - private _marginCoin!: string; - - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderBaseParam.ts b/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderBaseParam.ts deleted file mode 100644 index a441202b..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderBaseParam.ts +++ /dev/null @@ -1,73 +0,0 @@ -export class PlaceOrderBaseParam{ - /** - * Client ID - */ - private _clientOid!:string; - /** - * Amount of currency placed - */ - private _size!:string; - /** - * 1: Kaiduo 2: Kaikong 3: Pingduo 4: Pingkong - */ - private _side!:string; - /** - * Order Type - */ - private _orderType!:string; - /** - * Entrusted price - */ - private _price!:string; - - private _timeInForceValue!:string; - - - get clientOid(): string { - return this._clientOid; - } - - set clientOid(value: string) { - this._clientOid = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } - - get price(): string { - return this._price; - } - - set price(value: string) { - this._price = value; - } - - get timeInForceValue(): string { - return this._timeInForceValue; - } - - set timeInForceValue(value: string) { - this._timeInForceValue = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderReq.ts b/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderReq.ts deleted file mode 100644 index 0ff6820c..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/order/PlaceOrderReq.ts +++ /dev/null @@ -1,123 +0,0 @@ -export class PlaceOrderReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Client ID - */ - private _clientOid!:string; - /** - * Amount of currency placed - */ - private _size!:string; - /** - * Open more, open more, empty more, empty more - */ - private _side!:string; - /** - * Order Type Market Price Limit - */ - private _orderType!:string; - /** - * Entrusted price - */ - private _price!:string; - /** - * Order validity - */ - private _timeInForceValue!:string; - /** - * Default stop profit price - */ - private _presetTakeProfitPrice!:string; - /** - * Preset stop loss price - */ - private _presetStopLossPrice!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get clientOid(): string { - return this._clientOid; - } - - set clientOid(value: string) { - this._clientOid = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } - - get price(): string { - return this._price; - } - - set price(value: string) { - this._price = value; - } - - get timeInForceValue(): string { - return this._timeInForceValue; - } - - set timeInForceValue(value: string) { - this._timeInForceValue = value; - } - - get presetTakeProfitPrice(): string { - return this._presetTakeProfitPrice; - } - - set presetTakeProfitPrice(value: string) { - this._presetTakeProfitPrice = value; - } - - get presetStopLossPrice(): string { - return this._presetStopLossPrice; - } - - set presetStopLossPrice(value: string) { - this._presetStopLossPrice = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/CancelPlanReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/CancelPlanReq.ts deleted file mode 100644 index 5d82a325..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/CancelPlanReq.ts +++ /dev/null @@ -1,51 +0,0 @@ -export class CancelPlanReq{ - /** - * Order Id - */ - private _orderId!:string; - /** - * Currency pair - */ - private _symbol!:string; - /** - * Plan type - */ - private _planType!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get planType(): string { - return this._planType; - } - - set planType(value: string) { - this._planType = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanPresetReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanPresetReq.ts deleted file mode 100644 index d4726d7e..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanPresetReq.ts +++ /dev/null @@ -1,75 +0,0 @@ -export class ModifyPlanPresetReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * If the profit stop price is blank, cancel the profit stop - */ - private _presetTakeProfitPrice!:string; - /** - * If the stop loss price is blank, cancel the stop loss - */ - private _presetStopLossPrice!:string; - /** - * order id - */ - private _orderId!:string; - /** - * plan type - */ - private _planType!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get presetTakeProfitPrice(): string { - return this._presetTakeProfitPrice; - } - - set presetTakeProfitPrice(value: string) { - this._presetTakeProfitPrice = value; - } - - get presetStopLossPrice(): string { - return this._presetStopLossPrice; - } - - set presetStopLossPrice(value: string) { - this._presetStopLossPrice = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get planType(): string { - return this._planType; - } - - set planType(value: string) { - this._planType = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanReq.ts deleted file mode 100644 index 81dac6af..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyPlanReq.ts +++ /dev/null @@ -1,87 +0,0 @@ -export class ModifyPlanReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Planned entrusted order No - */ - private _orderId!:string; - /** - * Execution price - */ - private _executePrice!:string; - /** - * Trigger Price - */ - private _triggerPrice!:string; - /** - * Trigger Type - */ - private _triggerType!:string; - /** - * Order Type - */ - private _orderType!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get executePrice(): string { - return this._executePrice; - } - - set executePrice(value: string) { - this._executePrice = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get triggerType(): string { - return this._triggerType; - } - - set triggerType(value: string) { - this._triggerType = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyTPSLPlanReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyTPSLPlanReq.ts deleted file mode 100644 index 2a91e95f..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/ModifyTPSLPlanReq.ts +++ /dev/null @@ -1,63 +0,0 @@ -export class ModifyTPSLPlanReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Order id - */ - private _orderId!:string; - /** - * Trigger price - */ - private _triggerPrice!:string; - /** - * Plan type - */ - private _planType!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get planType(): string { - return this._planType; - } - - set planType(value: string) { - this._planType = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/PlacePlanReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/PlacePlanReq.ts deleted file mode 100644 index d201a683..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/PlacePlanReq.ts +++ /dev/null @@ -1,146 +0,0 @@ -export class PlacePlanReq{ - - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Amount of currency placed - */ - private _size!:string; - /** - * Entrusted price - */ - private _executePrice!:string; - /** - * Trigger Price - */ - private _triggerPrice!:string; - /** - * Entrusting direction - */ - private _side!:string; - /** - * Transaction Type - */ - private _orderType!:string; - /** - * Trigger Type Transaction Price Trigger Flag Price Trigger - */ - private _triggerType!:string; - /** - * Client ID - */ - private _clientOid!:string; - /** - * Default stop profit price - */ - private _presetTakeProfitPrice!:string; - /** - * Preset stop loss price - */ - private _presetStopLossPrice!:string; - - private _reduceOnly!:boolean; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - get executePrice(): string { - return this._executePrice; - } - - set executePrice(value: string) { - this._executePrice = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } - - get triggerType(): string { - return this._triggerType; - } - - set triggerType(value: string) { - this._triggerType = value; - } - - get clientOid(): string { - return this._clientOid; - } - - set clientOid(value: string) { - this._clientOid = value; - } - - get presetTakeProfitPrice(): string { - return this._presetTakeProfitPrice; - } - - set presetTakeProfitPrice(value: string) { - this._presetTakeProfitPrice = value; - } - - get presetStopLossPrice(): string { - return this._presetStopLossPrice; - } - - set presetStopLossPrice(value: string) { - this._presetStopLossPrice = value; - } - - get reduceOnly():boolean{ - return this._reduceOnly; - } - - set reduceOnly(value:boolean){ - this._reduceOnly = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTPSLReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTPSLReq.ts deleted file mode 100644 index 23c78d38..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTPSLReq.ts +++ /dev/null @@ -1,65 +0,0 @@ -export class PlaceTPSLReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * Deposit currency - */ - private _marginCoin!:string; - /** - * Plan type - */ - private _planType!:string; - /** - * Trigger price - */ - private _triggerPrice!:string; - /** - * Is this position long or short - */ - private _holdSide!:string; - - private _rangeRate!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get planType(): string { - return this._planType; - } - - set planType(value: string) { - this._planType = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get holdSide(): string { - return this._holdSide; - } - - set holdSide(value: string) { - this._holdSide = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTrailStopReq.ts b/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTrailStopReq.ts deleted file mode 100644 index c82de80a..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/plan/PlaceTrailStopReq.ts +++ /dev/null @@ -1,110 +0,0 @@ -export class PlaceTrailStopReq { - /** - * 合约交易对 - */ - private _symbol!: string; - /** - * 保证金币种 - */ - private _marginCoin!: string; - - private _side!: string; - - private _size!: string; - - private _presetTakeProfitPrice!: string; - - private _presetStopLossPrice!: string; - - private _triggerPrice!: string; - - private _triggerType!: string; - - private _rangeRate!: string; - - private _reduceOnly!: boolean; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get marginCoin(): string { - return this._marginCoin; - } - - set marginCoin(value: string) { - this._marginCoin = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get triggerType(): string { - return this._triggerType; - } - - set triggerType(value: string) { - this._triggerType = value; - } - - - get presetTakeProfitPrice(): string { - return this._presetTakeProfitPrice; - } - - set presetTakeProfitPrice(value: string) { - this._presetTakeProfitPrice = value; - } - - get presetStopLossPrice(): string { - return this._presetStopLossPrice; - } - - set presetStopLossPrice(value: string) { - this._presetStopLossPrice = value; - } - - get rangeRate(): string { - return this._rangeRate; - } - - set rangeRate(value: string) { - this._rangeRate = value; - } - - get reduceOnly(): boolean { - return this._reduceOnly; - } - - set reduceOnly(value: boolean) { - this._reduceOnly = value; - } - -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/trace/CloseTrackOrderReq.ts b/bitget-node-sdk-api/src/lib/model/mix/trace/CloseTrackOrderReq.ts deleted file mode 100644 index 4c832165..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/trace/CloseTrackOrderReq.ts +++ /dev/null @@ -1,27 +0,0 @@ -export class CloseTrackOrderReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * The tracking order number comes from the trackingNo of the current interface with the order - */ - private _trackingNo!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get trackingNo(): string { - return this._trackingNo; - } - - set trackingNo(value: string) { - this._trackingNo = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/trace/MixTraceUpdateTPSLReq.ts b/bitget-node-sdk-api/src/lib/model/mix/trace/MixTraceUpdateTPSLReq.ts deleted file mode 100644 index 5bf9a8aa..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/trace/MixTraceUpdateTPSLReq.ts +++ /dev/null @@ -1,53 +0,0 @@ -export class MixTraceUpdateTPSLReq{ - /** - * Currency pair - */ - private _symbol!:string; - - private _trackingNo!:string; - - private _stopProfitPrice!:string; - - private _stopLossPrice!:string; - - private _clientOid!: string; - - get symbol(): string { - return this._symbol; - } - set symbol(value: string) { - this._symbol = value; - } - - set trackingNo(value: string) { - this._trackingNo = value; - } - - get trackingNo(): string { - return this._trackingNo; - } - - get stopProfitPrice(): string { - return this._stopProfitPrice; - } - - set stopProfitPrice(value: string) { - this._stopProfitPrice = value; - } - - get stopLossPrice(): string { - return this._stopLossPrice; - } - - set stopLossPrice(value:string){ - this._stopLossPrice = value; - } - - get clientOid():string{ - return this._clientOid; - } - - set clientOid(value:string){ - this._clientOid = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/mix/trace/TraderSetSymbolReq.ts b/bitget-node-sdk-api/src/lib/model/mix/trace/TraderSetSymbolReq.ts deleted file mode 100644 index 8c588924..00000000 --- a/bitget-node-sdk-api/src/lib/model/mix/trace/TraderSetSymbolReq.ts +++ /dev/null @@ -1,27 +0,0 @@ -export class TraderSetSymbolReq{ - /** - * Currency pair - */ - private _symbol!:string; - /** - * The tracking order number comes from the trackingNo of the current interface with the order - */ - private _operation!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get operation(): string { - return this._operation; - } - - set operation(value: string) { - this._operation = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/account/SpotBillsReq.ts b/bitget-node-sdk-api/src/lib/model/spot/account/SpotBillsReq.ts deleted file mode 100644 index a4c78af2..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/account/SpotBillsReq.ts +++ /dev/null @@ -1,78 +0,0 @@ -export class SpotBillsReq { - /** - * Currency ID - */ - private _coinId!:string; - - /** - * Group Type - */ - private _groupType!:string; - - /** - * Business Type - */ - private _bizType!:string; - - /** - * Pass in billId to query previous data - */ - private _after!:string; - - /** - * Pass in billId to check the subsequent data - */ - private _before!:string; - /** - * Default 100, maximum 500 - */ - private _limit!:string; - - get coinId(): string { - return this._coinId; - } - - set coinId(value: string) { - this._coinId = value; - } - - get groupType(): string { - return this._groupType; - } - - set groupType(value: string) { - this._groupType = value; - } - - get bizType(): string { - return this._bizType; - } - - set bizType(value: string) { - this._bizType = value; - } - - get after(): string { - return this._after; - } - - set after(value: string) { - this._after = value; - } - - get before(): string { - return this._before; - } - - set before(value: string) { - this._before = value; - } - - get limit(): string { - return this._limit; - } - - set limit(value: string) { - this._limit = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotBatchOrdersReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotBatchOrdersReq.ts deleted file mode 100644 index e8d08e5d..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotBatchOrdersReq.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {SpotOrdersReq} from './SpotOrdersReq'; - -export class SpotBatchOrdersReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * order list - */ - private _orderList!:SpotOrdersReq[]; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get orderList(): SpotOrdersReq[] { - return this._orderList; - } - - set orderList(value: SpotOrdersReq[]) { - this._orderList = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelBatchOrderReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelBatchOrderReq.ts deleted file mode 100644 index c080ac25..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelBatchOrderReq.ts +++ /dev/null @@ -1,27 +0,0 @@ -export class SpotCancelBatchOrderReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Order ids - */ - private _orderIds!:string[]; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get orderIds(): string[] { - return this._orderIds; - } - - set orderIds(value: string[]) { - this._orderIds = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelOrderReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelOrderReq.ts deleted file mode 100644 index 9d689d92..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotCancelOrderReq.ts +++ /dev/null @@ -1,27 +0,0 @@ -export class SpotCancelOrderReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Order Id - */ - private _orderId!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotFillsReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotFillsReq.ts deleted file mode 100644 index 679c11e3..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotFillsReq.ts +++ /dev/null @@ -1,63 +0,0 @@ -export class SpotFillsReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Order Id - */ - private _orderId!:string; - /** - * The orderId is passed in. The data before the orderId desc - */ - private _after!:string; - /** - * Pass in the data after the orderId asc - */ - private _before!:string; - /** - * Number of returned results Default 100, maximum 500 - */ - private _limit!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get after(): string { - return this._after; - } - - set after(value: string) { - this._after = value; - } - - get before(): string { - return this._before; - } - - set before(value: string) { - this._before = value; - } - - get limit(): string { - return this._limit; - } - - set limit(value: string) { - this._limit = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotHistoryReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotHistoryReq.ts deleted file mode 100644 index 2cc02704..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotHistoryReq.ts +++ /dev/null @@ -1,51 +0,0 @@ -export class SpotHistoryReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * The orderId is passed in. The data before the orderId desc - */ - private _after!:string; - /** - * Pass in the data after the orderId asc - */ - private _before!:string; - /** - * Number of returned results Default 100, maximum 500 - */ - private _limit!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get after(): string { - return this._after; - } - - set after(value: string) { - this._after = value; - } - - get before(): string { - return this._before; - } - - set before(value: string) { - this._before = value; - } - - get limit(): string { - return this._limit; - } - - set limit(value: string) { - this._limit = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOpenOrdersReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotOpenOrdersReq.ts deleted file mode 100644 index 182b2487..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOpenOrdersReq.ts +++ /dev/null @@ -1,15 +0,0 @@ -export class SpotOpenOrdersReq { - /** - * Currency pair - */ - private _symbol!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrderInfoReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrderInfoReq.ts deleted file mode 100644 index bdba06e1..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrderInfoReq.ts +++ /dev/null @@ -1,39 +0,0 @@ -export class SpotOrderInfoReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Order Id - */ - private _orderId!:string; - /** - * Client Order Id - */ - private _clientOrderId!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get clientOrderId(): string { - return this._clientOrderId; - } - - set clientOrderId(value: string) { - this._clientOrderId = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrdersReq.ts b/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrdersReq.ts deleted file mode 100644 index e097aa62..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/order/SpotOrdersReq.ts +++ /dev/null @@ -1,92 +0,0 @@ -export class SpotOrdersReq { - /** - * Currency pair - */ - private _symbol!:string; - /** - * Order direction - */ - private _side!:string; - - /** - * Order type - */ - private _orderType!:string; - - /** - * Order Control Type - */ - private _force!:string; - - /** - * Entrusted price, only applicable to price limit order - */ - private _price!:string; - - /** - * quantity - */ - private _quantity!:string; - - /** - * Client order ID - */ - private _clientOrderId!:string; - - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } - - get force(): string { - return this._force; - } - - set force(value: string) { - this._force = value; - } - - get price(): string { - return this._price; - } - - set price(value: string) { - this._price = value; - } - - get quantity(): string { - return this._quantity; - } - - set quantity(value: string) { - this._quantity = value; - } - - get clientOrderId(): string { - return this._clientOrderId; - } - - set clientOrderId(value: string) { - this._clientOrderId = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotCancelPlanReq.ts b/bitget-node-sdk-api/src/lib/model/spot/plan/SpotCancelPlanReq.ts deleted file mode 100644 index 0a2f251e..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotCancelPlanReq.ts +++ /dev/null @@ -1,14 +0,0 @@ -export class SpotCancelPlanReq{ - /** - * 订单Id - */ - private _orderId!:string; - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotModifyPlanReq.ts b/bitget-node-sdk-api/src/lib/model/spot/plan/SpotModifyPlanReq.ts deleted file mode 100644 index 9c48f58f..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotModifyPlanReq.ts +++ /dev/null @@ -1,62 +0,0 @@ -export class SpotModifyPlanReq{ - /** - * 订单Id - */ - private _orderId!:string; - /** - * 下单数量 - */ - private _size!:string; - /** - * 委托价格 - */ - private _executePrice!:string; - /** - * 触发价格 - */ - private _triggerPrice!:string; - /** - * 交易类型 - */ - private _orderType!:string; - - get orderId(): string { - return this._orderId; - } - - set orderId(value: string) { - this._orderId = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - get executePrice(): string { - return this._executePrice; - } - - set executePrice(value: string) { - this._executePrice = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotPlanReq.ts b/bitget-node-sdk-api/src/lib/model/spot/plan/SpotPlanReq.ts deleted file mode 100644 index d77ac138..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotPlanReq.ts +++ /dev/null @@ -1,116 +0,0 @@ -export class SpotPlanReq{ - /** - * 合约交易对 - */ - private _symbol!:string; - /** - * 下单数量 - */ - private _size!:string; - /** - * 委托价格 - */ - private _executePrice!:string; - /** - * 触发价格 - */ - private _triggerPrice!:string; - /** - * 委托方向 - */ - private _side!:string; - /** - * 交易类型 - */ - private _orderType!:string; - /** - * 触发类型 成交价触发 标记价触发 - */ - private _triggerType!:string; - - private _timeInForceValue!:string; - - private _clientOid!:string; - - private _channelApiCode!:string; - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get size(): string { - return this._size; - } - - set size(value: string) { - this._size = value; - } - - get executePrice(): string { - return this._executePrice; - } - - set executePrice(value: string) { - this._executePrice = value; - } - - get triggerPrice(): string { - return this._triggerPrice; - } - - set triggerPrice(value: string) { - this._triggerPrice = value; - } - - get side(): string { - return this._side; - } - - set side(value: string) { - this._side = value; - } - - get orderType(): string { - return this._orderType; - } - - set orderType(value: string) { - this._orderType = value; - } - - get triggerType(): string { - return this._triggerType; - } - - set triggerType(value: string) { - this._triggerType = value; - } - - get timeInForceValue(): string { - return this._timeInForceValue; - } - - set timeInForceValue(value: string) { - this._timeInForceValue = value; - } - - get clientOid(): string { - return this._clientOid; - } - - set clientOid(value: string) { - this._clientOid = value; - } - - get channelApiCode(): string { - return this._channelApiCode; - } - - set channelApiCode(value: string) { - this._channelApiCode = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotQueryPlanReq.ts b/bitget-node-sdk-api/src/lib/model/spot/plan/SpotQueryPlanReq.ts deleted file mode 100644 index dcaa3343..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/plan/SpotQueryPlanReq.ts +++ /dev/null @@ -1,62 +0,0 @@ -export class SpotQueryPlanReq{ - - private _symbol!:string; - - private _startTime!:string; - - private _endTime!:string; - - private _pageSize!:string; - - private _lastEndId!:string; - - private _isPre!:string; - - get symbol(): string { - return this._symbol; - } - - set symbol(value: string) { - this._symbol = value; - } - - get startTime(): string { - return this._startTime; - } - - set startTime(value: string) { - this._startTime = value; - } - - get endTime(): string { - return this._endTime; - } - - set endTime(value: string) { - this._endTime = value; - } - - get pageSize(): string { - return this._pageSize; - } - - set pageSize(value: string) { - this._pageSize = value; - } - - get lastEndId(): string { - return this._lastEndId; - } - - set lastEndId(value: string) { - this._lastEndId = value; - } - - get isPre(): string { - return this._isPre; - } - - set isPre(value: string) { - this._isPre = value; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/spot/wallet/WithdrawalReq.ts b/bitget-node-sdk-api/src/lib/model/spot/wallet/WithdrawalReq.ts deleted file mode 100644 index 07dae803..00000000 --- a/bitget-node-sdk-api/src/lib/model/spot/wallet/WithdrawalReq.ts +++ /dev/null @@ -1,92 +0,0 @@ -export class WithdrawalReq { - /** - * coin - */ - private _coin!:string; - - /** - * address - */ - private _address!:string; - - /** - * chain - */ - private _chain!:string; - - /** - * tag - */ - private _tag!:string; - - /** - * amount - */ - private _amount!:string; - /** - * remark - */ - private _remark!:string; - /** - * clientOid - */ - private _clientOid!:string; - - get coin(): string { - return this.coin; - } - - set coin(value: string) { - this._coin = value; - } - - get address(): string { - return this._address; - } - - set address(value: string) { - this._address = value; - } - - - get chain(): string { - return this._chain; - } - - set chain(value: string) { - this._chain = value; - } - - get tag(): string { - return this._tag; - } - - set tag(value: string) { - this._tag = value; - } - - get amount(): string { - return this._amount; - } - - set amount(value: string) { - this._amount = value; - } - - get remark(): string { - return this._remark; - } - - set remark(value: string) { - this._remark = value; - } - - get clientOid(): string { - return this._clientOid; - } - - set clientOid(value: string) { - this._clientOid = value; - } - -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/ws/BookInfo.ts b/bitget-node-sdk-api/src/lib/model/ws/BookInfo.ts deleted file mode 100644 index b09f5fa0..00000000 --- a/bitget-node-sdk-api/src/lib/model/ws/BookInfo.ts +++ /dev/null @@ -1,113 +0,0 @@ -import {compact} from 'typedoc/dist/lib/output/helpers/compact'; -import Console from 'console'; -import crc32 from 'crc-32'; - -export class BookInfo { - private _asks!: any[][]; - private _bids!: any[][]; - private _checksum!: string; - private _ts!: string; - - - constructor(asks: [][], bids: [][], checksum: string, ts: string) { - this._asks = asks; - this._bids = bids; - this._checksum = checksum; - this._ts = ts; - } - - - get asks(): any[][] { - return this._asks; - } - - set asks(value: any[][]) { - this._asks = value; - } - - get bids(): any[][] { - return this._bids; - } - - set bids(value: any[][]) { - this._bids = value; - } - - get checksum(): string { - return this._checksum; - } - - set checksum(value: string) { - this._checksum = value; - } - - get ts(): string { - return this._ts; - } - - set ts(value: string) { - this._ts = value; - } - - merge(bookInfo: BookInfo): BookInfo { - - // @ts-ignore - this._asks = this.innerMerge(this.asks, bookInfo.asks, false); - // Console.info(this.asks); - // @ts-ignore - this._bids = this.innerMerge(this.bids, bookInfo.bids, true); - // Console.info(this.bids); - return this; - } - - private innerMerge(allList: any[][], updateList: any[][], isReverse: boolean): any[][] { - const priceAndValue = new Map(); - const result = new Array(); - allList.forEach((val, idx, array) => { - priceAndValue.set(val[0], val); - }); - // tslint:disable-next-line:forin - for (const val in updateList) { - if (updateList[val][1] === '0') { - priceAndValue.delete(updateList[val][0]); - continue; - } - priceAndValue.set(updateList[val][0], updateList[val]); - } - for (const value of priceAndValue.values()) { - result.push(value); - } - if (isReverse) { - result.sort((a, b) => parseFloat(b[0]) - parseFloat(a[0])); - } else { - result.sort((a, b) => parseFloat(a[0]) - parseFloat(b[0])); - } - return result; - } - - checkSum(checkSum: number): boolean { - let result = ''; - for (let i = 0; i < 25; i++) { - if (this._bids[i]) { - result = result + this._bids[i][0] + ':' + this._bids[i][1] + ':'; - } - if (this._asks[i]) { - result = result + this._asks[i][0] + ':' + this._asks[i][1] + ':'; - } - } - result = result.substr(0, result.length - 1); - - const newCheckSum = crc32.str(result); - - Console.info('mergeVal:' + this.getSignedInt(newCheckSum) + ',checkSum:' + checkSum); - return checkSum === this.getSignedInt(newCheckSum); - } - - getSignedInt(checksum: number) { - const intMax = (2 ** 31) - 1; - if (checksum > intMax) { - return checksum - intMax * 2 - 2; - } - return checksum; - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts b/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts index 18d41ac4..a89da157 100644 --- a/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts +++ b/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts @@ -9,9 +9,7 @@ export class SubscribeReq{ this._channel = channel; this._instId = instId; } - get toString(): string{ - return this._instType+','+this._channel+','+this._instId; - } + get instType(): string { return this._instType; } diff --git a/bitget-node-sdk-api/src/lib/spot/SpotAccountApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotAccountApi.ts deleted file mode 100644 index e1bbfbb3..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotAccountApi.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; -import {SpotBillsReq} from '../model/spot/account/SpotBillsReq'; - -export class SpotAccountApi extends BaseApi{ - /** - * Obtain account assets - */ - assets(coin:string,) { - const url = SPOT_URL.SPOT_ACCOUNT + '/assets-lite'; - const qsOrBody = {coin}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params: qsOrBody}) - } - - /** - * Get the bill flow - * @param spotBillQueryReq - */ - bills(billsReq:SpotBillsReq) { - const url = SPOT_URL.SPOT_ACCOUNT + '/bills'; - const headers = this.signer('POST', url, billsReq) - return this.axiosInstance.post(url, billsReq, {headers}) - } - /** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - */ - transferRecords(coinId:string,fromType:string,limit:string,after:string,before:string){ - const url = SPOT_URL.SPOT_ACCOUNT + '/transferRecords'; - const qsOrBody = {coinId, fromType,limit,after,before}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/spot/SpotMarketApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotMarketApi.ts deleted file mode 100644 index 4bd5c831..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotMarketApi.ts +++ /dev/null @@ -1,61 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; - -export class SpotMarketApi extends BaseApi{ - /** - * Obtain transaction data - * @param symbol - * @param limit - */ - fills(symbol:string,limit:string){ - const url = SPOT_URL.SPOT_MARKET + '/fills'; - const qsOrBody = {symbol, limit}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get depth data - * @param symbol - * @param limit - * @param type - */ - depth(symbol:string,limit:string,type:string){ - const url = SPOT_URL.SPOT_MARKET + '/depth'; - const qsOrBody = {symbol, limit,type}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - - /** - * Get a Ticker Information - * @param symbol - */ - ticker(symbol:string){ - const url = SPOT_URL.SPOT_MARKET + '/ticker'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } - /** - * Get all Ticker information - */ - tickers(){ - const url = SPOT_URL.SPOT_MARKET + '/tickers'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - */ - candles(symbol:string,period:string,after:string,before:string,limit:string){ - const url = SPOT_URL.SPOT_MARKET + '/candles'; - const qsOrBody = {symbol,period,after,before,limit}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers,params:qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/spot/SpotOrderApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotOrderApi.ts deleted file mode 100644 index 66dee024..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotOrderApi.ts +++ /dev/null @@ -1,86 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; -import {SpotOrdersReq} from '../model/spot/order/SpotOrdersReq'; -import {SpotBatchOrdersReq} from '../model/spot/order/SpotBatchOrdersReq'; -import {SpotCancelOrderReq} from '../model/spot/order/SpotCancelOrderReq'; -import {SpotCancelBatchOrderReq} from '../model/spot/order/SpotCancelBatchOrderReq'; -import {SpotOrderInfoReq} from '../model/spot/order/SpotOrderInfoReq'; -import {SpotOpenOrdersReq} from '../model/spot/order/SpotOpenOrdersReq'; -import {SpotHistoryReq} from '../model/spot/order/SpotHistoryReq'; -import {SpotFillsReq} from '../model/spot/order/SpotFillsReq'; - -export class SpotOrderApi extends BaseApi{ - /** - * place an order - * @param ordersReq - */ - orders(ordersReq:SpotOrdersReq) { - const url = SPOT_URL.SPOT_ORDER + '/orders'; - const headers = this.signer('POST', url, ordersReq) - return this.axiosInstance.post(url, ordersReq, {headers}) - } - /** - * Place orders in batches - * @param batchOrdersReq - */ - batchOrders(batchOrdersReq:SpotBatchOrdersReq) { - const url = SPOT_URL.SPOT_ORDER + '/batch-orders'; - const headers = this.signer('POST', url, batchOrdersReq) - return this.axiosInstance.post(url, batchOrdersReq, {headers}) - } - /** - * cancel the order - * @param cancelOrderReq - */ - cancelOrder(cancelOrderReq:SpotCancelOrderReq) { - const url = SPOT_URL.SPOT_ORDER + '/cancel-order'; - const headers = this.signer('POST', url, cancelOrderReq) - return this.axiosInstance.post(url, cancelOrderReq, {headers}) - } - /** - * Batch cancellation - * @param cancelBatchOrderReq - */ - cancelBatchOrder(cancelBatchOrderReq:SpotCancelBatchOrderReq) { - const url = SPOT_URL.SPOT_ORDER + '/cancel-batch-orders'; - const headers = this.signer('POST', url, cancelBatchOrderReq) - return this.axiosInstance.post(url, cancelBatchOrderReq, {headers}) - } - /** - * Get order details - * @param orderInfoReq - */ - orderInfo(orderInfoReq:SpotOrderInfoReq) { - const url = SPOT_URL.SPOT_ORDER + '/orderInfo'; - const headers = this.signer('POST', url, orderInfoReq) - return this.axiosInstance.post(url, orderInfoReq, {headers}) - } - /** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param openOrdersReq - */ - openOrders(openOrdersReq:SpotOpenOrdersReq) { - const url = SPOT_URL.SPOT_ORDER + '/open-orders'; - const headers = this.signer('POST', url, openOrdersReq) - return this.axiosInstance.post(url, openOrdersReq, {headers}) - } - /** - * Get historical delegation list - * @param historyReq - */ - history(historyReq:SpotHistoryReq) { - const url = SPOT_URL.SPOT_ORDER + '/history'; - const headers = this.signer('POST', url, historyReq) - return this.axiosInstance.post(url, historyReq, {headers}) - } - - /** - * Obtain transaction details - * @param fillsReq - */ - fills(fillsReq:SpotFillsReq) { - const url = SPOT_URL.SPOT_ORDER + '/fills'; - const headers = this.signer('POST', url, fillsReq) - return this.axiosInstance.post(url, fillsReq, {headers}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/spot/SpotPlanApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotPlanApi.ts deleted file mode 100644 index a3719a80..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotPlanApi.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; -import {SpotPlanReq} from '../model/spot/plan/SpotPlanReq'; -import {SpotModifyPlanReq} from '../model/spot/plan/SpotModifyPlanReq'; -import {SpotCancelPlanReq} from '../model/spot/plan/SpotCancelPlanReq'; -import {SpotQueryPlanReq} from '../model/spot/plan/SpotQueryPlanReq'; - -export class SpotPlanApi extends BaseApi{ - - placePlan(req:SpotPlanReq) { - const url = SPOT_URL.SPOT_PLAN + '/placePlan'; - const headers = this.signer('POST', url, req) - return this.axiosInstance.post(url, req, {headers}) - } - - modifyPlan(req:SpotModifyPlanReq) { - const url = SPOT_URL.SPOT_PLAN + '/modifyPlan'; - const headers = this.signer('POST', url, req) - return this.axiosInstance.post(url, req, {headers}) - } - - cancelPlan(req:SpotCancelPlanReq) { - const url = SPOT_URL.SPOT_PLAN + '/cancelPlan'; - const headers = this.signer('POST', url, req) - return this.axiosInstance.post(url, req, {headers}) - } - - currentPlan(req:SpotQueryPlanReq) { - const url = SPOT_URL.SPOT_PLAN + '/currentPlan'; - const headers = this.signer('POST', url, req) - return this.axiosInstance.post(url, req, {headers}) - } - - historyPlan(req:SpotQueryPlanReq) { - const url = SPOT_URL.SPOT_PLAN + '/historyPlan'; - const headers = this.signer('POST', url, req) - return this.axiosInstance.post(url, req, {headers}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/spot/SpotPublicApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotPublicApi.ts deleted file mode 100644 index 7caf2cd5..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotPublicApi.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; - -export class SpotPublicApi extends BaseApi{ - /** - * Get server time - */ - time(){ - const url = SPOT_URL.SPOT_PUBLIC + '/time'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Basic information of currency - */ - currencies(){ - const url = SPOT_URL.SPOT_PUBLIC + '/currencies'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Get all product information - */ - products(){ - const url = SPOT_URL.SPOT_PUBLIC + '/products'; - const headers = this.signer('GET', url, null) - return this.axiosInstance.get(url, {headers}) - } - /** - * Get single product information - * @param symbol - */ - product(symbol:string){ - const url = SPOT_URL.SPOT_PUBLIC + '/product'; - const qsOrBody = {symbol}; - const headers = this.signer('GET', url, qsOrBody) - return this.axiosInstance.get(url, {headers, params: qsOrBody}) - } -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/spot/SpotWalletApi.ts b/bitget-node-sdk-api/src/lib/spot/SpotWalletApi.ts deleted file mode 100644 index de026a31..00000000 --- a/bitget-node-sdk-api/src/lib/spot/SpotWalletApi.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {BaseApi} from '../BaseApi'; -import {SPOT_URL} from '../config'; -import {WithdrawalReq} from '../model/spot/wallet/WithdrawalReq'; - -export class SpotWalletApi extends BaseApi{ - - /** - * Get the bill flow - * @param spotBillQueryReq - */ - withdrawal(withdrawalReq:WithdrawalReq) { - const url = SPOT_URL.SPOT_WALLET + '/withdrawal'; - const headers = this.signer('POST', url, withdrawalReq) - return this.axiosInstance.post(url, withdrawalReq, {headers}) - } - -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/util.ts b/bitget-node-sdk-api/src/lib/util.ts index 5734bc68..0496bb44 100644 --- a/bitget-node-sdk-api/src/lib/util.ts +++ b/bitget-node-sdk-api/src/lib/util.ts @@ -1,7 +1,6 @@ import {stringify} from 'querystring' import {createHmac} from 'crypto' import * as Console from 'console'; -import {LOCAL} from './config'; export interface BitgetApiHeader { 'ACCESS-SIGN': string @@ -17,17 +16,16 @@ export interface BitgetApiHeader { * 获取签名器 * @param apiKey * @param secretKey + * @param timestamp * @param passphrase - * @param locale */ export default function getSigner( apiKey: string = '', secretKey: string = '', - passphrase: string = '', - locale: string = LOCAL.EN_US + passphrase: string = '' ) { - return (httpMethod: string, url: string, qsOrBody: NodeJS.Dict | null) => { + return (httpMethod: string, url: string, qsOrBody: NodeJS.Dict | null, locale = 'zh-CN') => { const timestamp = Date.now(); const signString = encrypt(httpMethod, url, qsOrBody, timestamp,secretKey) diff --git a/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts b/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts new file mode 100644 index 00000000..d29af581 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts @@ -0,0 +1,53 @@ +import {BaseApi} from '../BaseApi'; + +export class MixAccountApi extends BaseApi { + + account(qsOrBody: object) { + const url = '/api/mix/v1/account/account'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + accounts(qsOrBody: object) { + const url = '/api/mix/v1/account/accounts'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + setLeverage(qsOrBody: object) { + const url = '/api/mix/v1/account/setLeverage'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setMargin(qsOrBody: object) { + const url = '/api/mix/v1/account/setMargin'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setMarginMode(qsOrBody: object) { + const url = '/api/mix/v1/account/setMarginMode'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setPositionMode(qsOrBody: object) { + const url = '/api/mix/v1/account/setPositionMode'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + singlePosition(qsOrBody: object) { + const url = '/api/mix/v1/position/singlePosition'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + allPosition(qsOrBody: object) { + const url = '/api/mix/v1/position/allPosition'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts b/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts new file mode 100644 index 00000000..0537a09d --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts @@ -0,0 +1,40 @@ +import {BaseApi} from '../BaseApi'; + +export class MixMarketApi extends BaseApi { + + contracts(qsOrBody: object) { + const url = '/api/mix/v1/market/contracts'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + depth(qsOrBody: object) { + const url = '/api/mix/v1/market/depth'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ticker() { + const url = '/api/mix/v1/market/ticker'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + tickers() { + const url = '/api/mix/v1/market/tickers'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + fills(qsOrBody: object) { + const url = '/api/mix/v1/market/fills'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + candles(qsOrBody: object) { + const url = '/api/mix/v1/market/candles'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts b/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts new file mode 100644 index 00000000..88dc367e --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts @@ -0,0 +1,106 @@ +import {BaseApi} from '../BaseApi'; + +export class MixOrderApi extends BaseApi { + + placeOrder(qsOrBody: object) { + const url = '/api/mix/v1/order/placeOrder'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchPlaceOrder(qsOrBody: object) { + const url = '/api/mix/v1/order/batch-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelOrder(qsOrBody: object) { + const url = '/api/mix/v1/order/cancel-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchCancelOrders(qsOrBody: object) { + const url = '/api/mix/v1/order/cancel-batch-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + ordersPending(qsOrBody: object) { + const url = '/api/mix/v1/order/current'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ordersHistory(qsOrBody: object) { + const url = '/api/mix/v1/order/history'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + fills(qsOrBody: object) { + const url = '/api/mix/v1/order/fills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + placePlanOrder(qsOrBody: object) { + const url = '/api/mix/v1/plan/placePlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelPlanOrder(qsOrBody: object) { + const url = '/api/mix/v1/plan/cancelPlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + ordersPlanPending(qsOrBody: object) { + const url = '/api/mix/v1/plan/currentPlan'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ordersPlanHistory(qsOrBody: object) { + const url = '/api/mix/v1/plan/historyPlan'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderCloseOrder(qsOrBody: object) { + const url = '/api/mix/v1/trace/closeTrackOrder'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderCurrentOrders(qsOrBody: object) { + const url = '/apiapi/mix/v1/trace/currentTrack'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderHistoryTrack(qsOrBody: object) { + const url = '/api/mix/v1/trace/historyTrack'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + followerCloseByTrackingNo(qsOrBody: object) { + const url = '/api/mix/v1/trace/followerCloseByTrackingNo'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + followerQueryCurrentOrders(qsOrBody: object) { + const url = '/api/mix/v1/trace/followerOrder'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + followerQueryHistoryOrders(qsOrBody: object) { + const url = '/api/mix/v1/trace/followerHistoryOrders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts new file mode 100644 index 00000000..41caa937 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts @@ -0,0 +1,29 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotAccountApi extends BaseApi { + + getInfo() { + const url = '/api/spot/v1/account/getInfo'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + assetsLite(qsOrBody: object) { + const url = '/api/spot/v1/account/assets-lite'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + bills(qsOrBody: object) { + const url = '/api/spot/v1/account/bills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + transferRecords(qsOrBody: object) { + const url = '/api/spot/v1/account/transferRecords'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/SpotMarketApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotMarketApi.ts new file mode 100644 index 00000000..07d6b3b9 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/SpotMarketApi.ts @@ -0,0 +1,51 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotMarketApi extends BaseApi { + currencies() { + const url = '/api/spot/v1/public/currencies'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + products() { + const url = '/api/spot/v1/public/products'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + product(qsOrBody: object) { + const url = '/api/spot/v1/public/product'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + fills(qsOrBody: object) { + const url = '/api/spot/v1/market/fills'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + depth(qsOrBody: object) { + const url = '/api/spot/v1/market/depth'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ticker(qsOrBody: object) { + const url = '/api/spot/v1/market/ticker'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + tickers() { + const url = '/api/spot/v1/market/tickers'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + candles(qsOrBody: object) { + const url = '/api/spot/v1/market/candles'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/SpotOrderApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotOrderApi.ts new file mode 100644 index 00000000..bb63063f --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/SpotOrderApi.ts @@ -0,0 +1,88 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotOrderApi extends BaseApi { + + orders(qsOrBody: object) { + const url = '/api/spot/v1/trade/orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchOrders(qsOrBody: object) { + const url = '/api/spot/v1/trade/batch-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelOrder(qsOrBody: object) { + const url = '/api/spot/v1/trade/cancel-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelBatchOrder(qsOrBody: object) { + const url = '/api/spot/v1/trade/cancel-batch-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + openOrders(qsOrBody: object) { + const url = '/api/spot/v1/trade/open-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + history(qsOrBody: object) { + const url = '/api/spot/v1/trade/history'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + fills(qsOrBody: object) { + const url = '/api/spot/v1/trade/fills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + placePlanOrder(qsOrBody: object) { + const url = '/api/spot/v1/plan/placePlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelPlanOrder(qsOrBody: object) { + const url = '/api/spot/v1/plan/cancelPlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + currentPlanOrder(qsOrBody: object) { + const url = '/api/spot/v1/plan/currentPlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + historyPlanOrder(qsOrBody: object) { + const url = '/api/spot/v1/plan/historyPlan'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderOrderCloseTracking(qsOrBody: object) { + const url = '/api/spot/v1/trace/order/closeTrackingOrder'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderOrderCurrentTrack(qsOrBody: object) { + const url = '/api/spot/v1/trace/order/orderCurrentList'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderOrderHistoryTrack(qsOrBody: object) { + const url = '/api/spot/v1/trace/order/orderHistoryList'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts new file mode 100644 index 00000000..13e3bd3a --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts @@ -0,0 +1,34 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotWalletApi extends BaseApi { + + transfer(qsOrBody: object) { + const url = '/api/spot/v1/wallet/transfer'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + depositAddress(qsOrBody: object) { + const url = '/api/spot/v1/wallet/deposit-address'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + withdrawal(qsOrBody: object) { + const url = '/api/spot/v1/wallet/withdrawal'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + withdrawalRecords(qsOrBody: object) { + const url = '/api/spot/v1/wallet/withdrawal-list'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + depositRecords(qsOrBody: object) { + const url = '/api/spot/v1/wallet/deposit-list'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts b/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts new file mode 100644 index 00000000..5718e9c2 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts @@ -0,0 +1,53 @@ +import {BaseApi} from '../BaseApi'; + +export class MixAccountApi extends BaseApi { + + account(qsOrBody: object) { + const url = '/api/v2/mix/account/account'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + accounts(qsOrBody: object) { + const url = '/api/v2/mix/account/accounts'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + setLeverage(qsOrBody: object) { + const url = '/api/v2/mix/account/set-leverage'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setMargin(qsOrBody: object) { + const url = '/api/v2/mix/account/set-margin'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setMarginMode(qsOrBody: object) { + const url = '/api/v2/mix/account/set-margin-mode'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + setPositionMode(qsOrBody: object) { + const url = '/api/v2/mix/account/set-position-mode'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + singlePosition(qsOrBody: object) { + const url = '/api/v2/mix/position/single-position'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + allPosition(qsOrBody: object) { + const url = '/api/v2/mix/position/all-position'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts b/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts new file mode 100644 index 00000000..9ce7716e --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts @@ -0,0 +1,40 @@ +import {BaseApi} from '../BaseApi'; + +export class MixMarketApi extends BaseApi { + + contracts(qsOrBody: object) { + const url = '/api/v2/mix/market/contracts'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + orderbook(qsOrBody: object) { + const url = '/api/v2/mix/market/orderbook'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ticker() { + const url = '/api/v2/mix/market/ticker'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + tickers() { + const url = '/api/v2/mix/market/tickers'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + fills(qsOrBody: object) { + const url = '/api/v2/mix/market/fills'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + candles(qsOrBody: object) { + const url = '/api/v2/mix/market/candles'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts b/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts new file mode 100644 index 00000000..619e61e3 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts @@ -0,0 +1,106 @@ +import {BaseApi} from '../BaseApi'; + +export class MixOrderApi extends BaseApi { + + placeOrder(qsOrBody: object) { + const url = '/api/v2/mix/order/place-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchPlaceOrder(qsOrBody: object) { + const url = '/api/v2/mix/order/batch-place-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelOrder(qsOrBody: object) { + const url = '/api/v2/mix/order/cancel-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchCancelOrders(qsOrBody: object) { + const url = '/api/v2/mix/order/batch-cancel-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + ordersPending(qsOrBody: object) { + const url = '/api/v2/mix/order/orders-pending'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ordersHistory(qsOrBody: object) { + const url = '/api/v2/mix/order/orders-history'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + fills(qsOrBody: object) { + const url = '/api/v2/mix/order/fills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + placePlanOrder(qsOrBody: object) { + const url = '/api/v2/mix/order/place-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelPlanOrder(qsOrBody: object) { + const url = '/api/v2/mix/order/cancel-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + ordersPlanPending(qsOrBody: object) { + const url = '/api/v2/mix/order/orders-plan-pending'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + ordersPlanHistory(qsOrBody: object) { + const url = '/api/v2/mix/order/orders-plan-history'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderOrderClosePositions(qsOrBody: object) { + const url = '/api/v2/copy/mix-trader/order-close-positions'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderOrderCurrentTrack(qsOrBody: object) { + const url = '/api/v2/copy/mix-trader/order-current-track'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderOrderHistoryTrack(qsOrBody: object) { + const url = '/api/v2/copy/mix-trader/order-history-track'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + followerClosePositions(qsOrBody: object) { + const url = '/api/v2/copy/mix-follower/close-positions'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + followerQueryCurrentOrders(qsOrBody: object) { + const url = '/api/v2/copy/mix-follower/query-current-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + followerQueryHistoryOrders(qsOrBody: object) { + const url = '/api/v2/copy/mix-follower/query-history-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts new file mode 100644 index 00000000..5740e62a --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts @@ -0,0 +1,28 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotAccountApi extends BaseApi { + + info() { + const url = '/api/v2/spot/account/info'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + assets(qsOrBody: object) { + const url = '/api/v2/spot/account/assets'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + bills(qsOrBody: object) { + const url = '/api/v2/spot/account/bills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + transferRecords(qsOrBody: object) { + const url = '/api/v2/spot/account/transferRecords'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts new file mode 100644 index 00000000..c663d097 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts @@ -0,0 +1,39 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotMarketApi extends BaseApi { + coins(qsOrBody: object) { + const url = '/api/v2/spot/public/coins'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + symbols(qsOrBody: object) { + const url = '/api/v2/spot/public/symbols'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + fills(qsOrBody: object) { + const url = '/api/v2/spot/market/fills'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + orderbook(qsOrBody: object) { + const url = '/api/v2/spot/market/orderbook'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + tickers() { + const url = '/api/v2/spot/market/tickers'; + const headers = this.signer('GET', url, null) + return this.axiosInstance.get(url, {headers}) + } + + candles(qsOrBody: object) { + const url = '/api/v2/spot/market/candles'; + const headers = this.signer('GET', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts new file mode 100644 index 00000000..721b65c2 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts @@ -0,0 +1,94 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotOrderApi extends BaseApi { + + placeOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/place-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchOrders(qsOrBody: object) { + const url = '/api/v2/spot/trade/batch-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/cancel-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + batchCancelOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/batch-cancel-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + orderInfo(qsOrBody: object) { + const url = '/api/v2/spot/trade/orderInfo'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + unfilledOrders(qsOrBody: object) { + const url = '/api/v2/spot/trade/unfilled-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + historyOrders(qsOrBody: object) { + const url = '/api/v2/spot/trade/history-orders'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + fills(qsOrBody: object) { + const url = '/api/v2/spot/trade/fills'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + placePlanOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/place-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + cancelPlanOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/cancel-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + currentPlanOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/current-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + historyPlanOrder(qsOrBody: object) { + const url = '/api/v2/spot/trade/history-plan-order'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderOrderCloseTracking(qsOrBody: object) { + const url = '/api/v2/copy/spot-trader/order-close-tracking'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + traderOrderCurrentTrack(qsOrBody: object) { + const url = '/api/v2/copy/spot-trader/order-current-track'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + traderOrderHistoryTrack(qsOrBody: object) { + const url = '/api/v2/copy/spot-trader/order-history-track'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts new file mode 100644 index 00000000..5d9e8c54 --- /dev/null +++ b/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts @@ -0,0 +1,34 @@ +import {BaseApi} from '../BaseApi'; + +export class SpotWalletApi extends BaseApi { + + transfer(qsOrBody: object) { + const url = '/api/v2/spot/wallet/transfer'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + depositAddress(qsOrBody: object) { + const url = '/api/v2/spot/wallet/deposit-address'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + withdrawal(qsOrBody: object) { + const url = '/api/v2/spot/wallet/withdrawal'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.post(url, qsOrBody, {headers}) + } + + withdrawalRecords(qsOrBody: object) { + const url = '/api/v2/spot/wallet/withdrawal-records'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } + + depositRecords(qsOrBody: object) { + const url = '/api/v2/spot/wallet/deposit-records'; + const headers = this.signer('POST', url, qsOrBody) + return this.axiosInstance.get(url, {headers, params: qsOrBody}) + } +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts index b12dc95c..76239c13 100644 --- a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts +++ b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts @@ -1,15 +1,14 @@ import {EventEmitter} from 'events'; -import {encrypt, toJsonString} from '../util'; +import {encrypt,toJsonString} from '../util'; import {API_CONFIG} from '../config'; import WebSocket from 'ws'; import * as Console from 'console'; import {WsLoginReq} from '../model/ws/WsLoginReq'; import {WsBaseReq} from '../model/ws/WsBaseReq'; import {SubscribeReq} from '../model/ws/SubscribeReq'; -import {BookInfo} from '../model/ws/BookInfo'; -export abstract class Listenner { - abstract reveice(message: string): void; +export abstract class Listenner{ + abstract reveice(message:string):void; } @@ -19,12 +18,11 @@ export class BitgetWsClient extends EventEmitter { private interval?: NodeJS.Timeout | null; private isOpen?: boolean; private callBack?: Listenner; - private apiKey!: string; - private apiSecret!: string; - private passphrase!: string; - private allBooks!: Map; + private apiKey!:string; + private apiSecret!:string; + private passphrase!:string; - constructor(callBack: Listenner, apiKey: string, apiSecret: string, passphrase: string) { + constructor(callBack:Listenner,apiKey: string, apiSecret: string, passphrase: string) { super(); this.websocketUri = API_CONFIG.WS_URL; this.callBack = callBack; @@ -32,7 +30,7 @@ export class BitgetWsClient extends EventEmitter { this.apiKey = apiKey; this.apiSecret = apiSecret; this.passphrase = passphrase; - this.allBooks = new Map(); + this.socket.on('open', () => this.onOpen()); this.socket.on('close', (code, reason) => this.onClose(code, reason)); this.socket.on('message', data => this.onMessage(data)); @@ -41,22 +39,22 @@ export class BitgetWsClient extends EventEmitter { login() { const timestamp = Math.floor(Date.now() / 1000); - const sign = encrypt('GET', '/user/verify', null, timestamp, this.apiSecret); - const wsLoginReq = new WsLoginReq(this.apiKey, this.passphrase, timestamp.toString(), sign); + const sign = encrypt('GET','/user/verify',null,timestamp,this.apiSecret); + const wsLoginReq = new WsLoginReq(this.apiKey,this.passphrase,timestamp.toString(),sign); const args = new Array(); args.push(wsLoginReq); - const request = new WsBaseReq('login', args); + const request = new WsBaseReq('login',args); this.send(request); } subscribe(args: SubscribeReq[]) { - const request = new WsBaseReq('subscribe', args); + const request = new WsBaseReq('subscribe',args); this.send(request); } unsubscribe(args: SubscribeReq[]) { - const request = new WsBaseReq('unsubscribe', args); + const request = new WsBaseReq('unsubscribe',args); this.send(request); } @@ -65,13 +63,13 @@ export class BitgetWsClient extends EventEmitter { const that = this; if (!this.socket) throw Error('socket is not open'); const jsonStr = toJsonString(messageObject); - Console.info('sendInfo:' + jsonStr) + Console.info('sendInfo:'+jsonStr) setInterval(() => { if (that.isOpen) { this.socket?.send(jsonStr); } - }, 10000); + }, 1000); } @@ -92,47 +90,10 @@ export class BitgetWsClient extends EventEmitter { private onMessage(data: WebSocket.Data) { if (typeof data === 'string') { - if (data === 'pong') { - return; - } - if (!this.checkSum(data)) { - return; - } this.callBack?.reveice(data); } } - private checkSum(data: string): boolean { - const json = JSON.parse(data); - if (!json.hasOwnProperty('arg') || !json.hasOwnProperty('action')) { - return true; - } - const req = new SubscribeReq(json.arg.instType, json.arg.channel, json.arg.instId) - - if (json.arg.channel !== 'books') { - return true; - } - - const bookInfo = new BookInfo(json.data[0].asks, json.data[0].bids, json.data[0].checksum, json.data[0].ts); - - if (json.action === 'snapshot') { - this.allBooks.set(req.toString, bookInfo); - return true; - } - if (json.action === 'update') { - const allbooksInfo = this.allBooks.get(req.toString); - if (!allbooksInfo) { - return true; - } - // tslint:disable-next-line:radix - return allbooksInfo.merge(bookInfo).checkSum(parseInt(bookInfo.checksum)); - - } - - return true; - } - - private onClose(code: number, reason: string) { Console.log(`Websocket connection is closed.code=${code},reason=${reason}`); this.socket = undefined; From 8a1d0d91e03804508ae882b3448f44a806b58b53 Mon Sep 17 00:00:00 2001 From: jidening Date: Thu, 19 Oct 2023 14:16:47 +0800 Subject: [PATCH 06/25] go sdk --- bitget-golang-sdk-api/README_EN.md | 166 ++++++++++ .../pkg/client/BitgetApiclient.go | 29 ++ .../pkg/client/broker/brokeraccountclient.go | 225 ------------- .../pkg/client/mix/mixaccountclient.go | 133 -------- .../pkg/client/mix/mixaccountclient_test.go | 71 ---- .../pkg/client/mix/mixmarketclient.go | 241 -------------- .../pkg/client/mix/mixmarketclient_test.go | 131 -------- .../pkg/client/mix/mixorderclient.go | 188 ----------- .../pkg/client/mix/mixorderclient_test.go | 133 -------- .../pkg/client/mix/mixplanclient.go | 244 -------------- .../pkg/client/mix/mixplanclient_test.go | 133 -------- .../pkg/client/mix/mixpostitionclient.go | 56 ---- .../pkg/client/mix/mixpostitionclient_test.go | 26 -- .../pkg/client/mix/mixtraceclient.go | 304 ------------------ .../pkg/client/mix/mixtraceclient_test.go | 117 ------- .../pkg/client/spot/spotaccountclient.go | 91 ------ .../pkg/client/spot/spotaccountclient_test.go | 42 --- .../pkg/client/spot/spotmarketclient.go | 125 ------- .../pkg/client/spot/spotmarketclient_test.go | 61 ---- .../pkg/client/spot/spotorderclient.go | 195 ----------- .../pkg/client/spot/spotorderclient_test.go | 150 --------- .../pkg/client/spot/spotplanclient.go | 72 ----- .../pkg/client/spot/spotplanclient_test.go | 92 ------ .../pkg/client/spot/spotpublicclient.go | 77 ----- .../pkg/client/spot/spotpublicclient_test.go | 46 --- .../pkg/client/spot/spotwalletclient.go | 37 --- .../pkg/client/v1/mixaccountclient.go | 72 +++++ .../pkg/client/v1/mixmarketclient.go | 44 +++ .../pkg/client/v1/mixorderclient.go | 135 ++++++++ .../pkg/client/v1/spotaccountclient.go | 36 +++ .../pkg/client/v1/spotmarketclient.go | 56 ++++ .../pkg/client/v1/spotorderclient.go | 132 ++++++++ .../pkg/client/v1/spotwalletclient.go | 43 +++ .../pkg/client/v2/mixaccountclient.go | 72 +++++ .../pkg/client/v2/mixmarketclient.go | 39 +++ .../pkg/client/v2/mixorderclient.go | 135 ++++++++ .../pkg/client/v2/spotaccountclient.go | 36 +++ .../pkg/client/v2/spotmarketclient.go | 46 +++ .../pkg/client/v2/spotorderclient.go | 116 +++++++ .../pkg/client/v2/spotwalletclient.go | 43 +++ .../pkg/model/broker/subaddressreq.go | 19 -- .../pkg/model/broker/subautotransferreq.go | 19 -- .../pkg/model/broker/subcreatereq.go | 17 - .../pkg/model/broker/submodifyemailreq.go | 16 - .../pkg/model/broker/submodifyreq.go | 33 -- .../pkg/model/broker/subwithdrawalreq.go | 27 -- .../pkg/model/mix/account/opencountreq.go | 29 -- .../pkg/model/mix/account/setleveragereq.go | 27 -- .../pkg/model/mix/account/setmarginmodereq.go | 21 -- .../pkg/model/mix/account/setmarginreq.go | 25 -- .../model/mix/account/setpositionmodereq.go | 7 - .../model/mix/market/HistoryFundRateReq.go | 8 - .../pkg/model/mix/order/batchordersreq.go | 44 --- .../model/mix/order/cancelbatchordersreq.go | 21 -- .../pkg/model/mix/order/cancelorderreq.go | 21 -- .../pkg/model/mix/order/placeorderreq.go | 49 --- .../pkg/model/mix/plan/cancelallplanreq.go | 15 - .../pkg/model/mix/plan/cancelplanreq.go | 25 -- .../pkg/model/mix/plan/modifyplanpresetreq.go | 33 -- .../pkg/model/mix/plan/modifyplanreq.go | 37 --- .../pkg/model/mix/plan/modifytpslplanreq.go | 29 -- .../pkg/model/mix/plan/placeplanreq.go | 55 ---- .../pkg/model/mix/plan/placetpslreq.go | 29 -- .../pkg/model/mix/plan/placetrailstopreq.go | 44 --- .../pkg/model/mix/trace/closetrackorderreq.go | 17 - .../model/mix/trace/tracesetupsymbolreq.go | 17 - .../mix/trace/tradermodifytpslorderreq.go | 19 -- .../pkg/model/spot/account/billsreq.go | 33 -- .../pkg/model/spot/order/batchordersreq.go | 44 --- .../model/spot/order/cancelbatchordersreq.go | 18 -- .../pkg/model/spot/order/cancelorderreq.go | 17 - .../pkg/model/spot/order/changedepthreq.go | 15 - .../pkg/model/spot/order/fillsreq.go | 29 -- .../pkg/model/spot/order/historyreq.go | 25 -- .../pkg/model/spot/order/openordersreq.go | 14 - .../pkg/model/spot/order/orderinforeq.go | 21 -- .../pkg/model/spot/order/ordersreq.go | 37 --- .../pkg/model/spot/plan/spotcancelplanreq.go | 5 - .../pkg/model/spot/plan/spotmodifyplanreq.go | 9 - .../pkg/model/spot/plan/spotplanreq.go | 14 - .../pkg/model/spot/plan/spotqueryplanreq.go | 10 - .../pkg/model/spot/wallet/withdrawal.go | 37 --- .../pkg/test/apiclient_test.go | 72 +++++ .../ws => test}/bitgetwsclient_test.go | 9 +- bitget-node-sdk-api/README_EN.md | 81 +++++ 85 files changed, 1358 insertions(+), 4025 deletions(-) create mode 100644 bitget-golang-sdk-api/README_EN.md create mode 100644 bitget-golang-sdk-api/pkg/client/BitgetApiclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/broker/brokeraccountclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixaccountclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixaccountclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixmarketclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixmarketclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixorderclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixorderclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixplanclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixplanclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixtraceclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/mix/mixtraceclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotaccountclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotaccountclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotmarketclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotmarketclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotorderclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotorderclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotplanclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotplanclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotpublicclient.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotpublicclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/client/spot/spotwalletclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/mixaccountclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/mixmarketclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/mixorderclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/spotaccountclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/spotmarketclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/spotorderclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v1/spotwalletclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/mixaccountclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/mixmarketclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/mixorderclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/spotaccountclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/spotmarketclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/spotorderclient.go create mode 100644 bitget-golang-sdk-api/pkg/client/v2/spotwalletclient.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/subaddressreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/subautotransferreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/subcreatereq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/submodifyemailreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/submodifyreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/broker/subwithdrawalreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/account/opencountreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/account/setleveragereq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/account/setmarginmodereq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/account/setmarginreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/account/setpositionmodereq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/market/HistoryFundRateReq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/order/batchordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/order/cancelbatchordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/order/cancelorderreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/order/placeorderreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/cancelallplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/cancelplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanpresetreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/modifytpslplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/placeplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/placetpslreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/plan/placetrailstopreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/trace/closetrackorderreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/trace/tracesetupsymbolreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/mix/trace/tradermodifytpslorderreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/account/billsreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/batchordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/cancelbatchordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/cancelorderreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/changedepthreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/fillsreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/historyreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/openordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/orderinforeq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/order/ordersreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/plan/spotcancelplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/plan/spotmodifyplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/plan/spotplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/plan/spotqueryplanreq.go delete mode 100644 bitget-golang-sdk-api/pkg/model/spot/wallet/withdrawal.go create mode 100644 bitget-golang-sdk-api/pkg/test/apiclient_test.go rename bitget-golang-sdk-api/pkg/{client/ws => test}/bitgetwsclient_test.go (77%) create mode 100644 bitget-node-sdk-api/README_EN.md diff --git a/bitget-golang-sdk-api/README_EN.md b/bitget-golang-sdk-api/README_EN.md new file mode 100644 index 00000000..0ff70e7c --- /dev/null +++ b/bitget-golang-sdk-api/README_EN.md @@ -0,0 +1,166 @@ +# Bitget Go + +This is a lightweight library that works as a connector to [Bitget API](https://bitgetlimited.github.io/apidoc/en/mix/) + +## Supported API Endpoints: +- pkg/v1: `*client.go` +- pkg/v2: `*client.go` +- pkg/ws: `bitgetwsclient.go` + + +## Installation +```shell +git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git +``` + +## REST API + +Create an order example + +```go +package test + +import ( + "bitget/internal" + "bitget/pkg/client" + "bitget/pkg/client/v1" + "fmt" + "testing" +) + +func Test_PlaceOrder(t *testing.T) { + client := new(v1.MixOrderClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.PlaceOrder(params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} +``` + +Please find more examples for each supported endpoint in the `test` folder. + +## Websocket Stream + + +```go +package test + +import ( + "bitget/internal/model" + "bitget/pkg/client/ws" + "fmt" + "testing" +) + +func TestBitgetWsClient_New(t *testing.T) { + + client := new(ws.BitgetWsClient).Init(true, func(message string) { + fmt.Println("default error:" + message) + }, func(message string) { + fmt.Println("default error:" + message) + }) + + var channelsDef []model.SubscribeReq + subReqDef1 := model.SubscribeReq{ + InstType: "UMCBL", + Channel: "account", + InstId: "default", + } + channelsDef = append(channelsDef, subReqDef1) + client.SubscribeDef(channelsDef) + + var channels []model.SubscribeReq + subReq1 := model.SubscribeReq{ + InstType: "UMCBL", + Channel: "account", + InstId: "default", + } + channels = append(channels, subReq1) + client.Subscribe(channels, func(message string) { + fmt.Println("appoint:" + message) + }) + client.Connect() + +} + +``` + +Combined Diff. Depth Stream Example + +```go +package main + +import ( + "fmt" + "time" + + binance_connector "github.com/binance/binance-connector-go" +) + +func main() { + // Set isCombined parameter to true as we are using Combined Depth Stream + websocketStreamClient := binance_connector.NewWebsocketStreamClient(true) + + wsCombinedDepthHandler := func(event *binance_connector.WsDepthEvent) { + fmt.Println(binance_connector.PrettyPrint(event)) + } + errHandler := func(err error) { + fmt.Println(err) + } + // Use WsCombinedDepthServe to subscribe to multiple streams + doneCh, stopCh, err := websocketStreamClient.WsCombinedDepthServe([]string{"LTCBTC", "BTCUSDT", "MATICUSDT"}, wsCombinedDepthHandler, errHandler) + if err != nil { + fmt.Println(err) + return + } + go func() { + time.Sleep(5 * time.Second) + stopCh <- struct{}{} + }() + <-doneCh +} +``` + +## Websocket API + +```go +func OCOHistoryExample() { + // Initialise Websocket API Client + client := binance_connector.NewWebsocketAPIClient("api_key", "secret_key") + // Connect to Websocket API + err := client.Connect() + if err != nil { + log.Printf("Error: %v", err) + return + } + defer client.Close() + + // Send request to Websocket API + response, err := client.NewAccountOCOHistoryService().Do(context.Background()) + if err != nil { + log.Printf("Error: %v", err) + return + } + + // Print the response + fmt.Println(binance_connector.PrettyPrint(response)) + + client.WaitForCloseSignal() +} +``` + +## Base URL +- Binance provides alternative Production URLs in case of performance issues: + - https://api.bitget.com + diff --git a/bitget-golang-sdk-api/pkg/client/BitgetApiclient.go b/bitget-golang-sdk-api/pkg/client/BitgetApiclient.go new file mode 100644 index 00000000..8906d5ce --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/BitgetApiclient.go @@ -0,0 +1,29 @@ +package client + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type BitgetApiClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *BitgetApiClient) Init() *BitgetApiClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *BitgetApiClient) Post(url string, params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost(url, postBody) + return resp, err +} + +func (p *BitgetApiClient) Get(url string, params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet(url, params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/broker/brokeraccountclient.go b/bitget-golang-sdk-api/pkg/client/broker/brokeraccountclient.go deleted file mode 100644 index 17d3b401..00000000 --- a/bitget-golang-sdk-api/pkg/client/broker/brokeraccountclient.go +++ /dev/null @@ -1,225 +0,0 @@ -package broker - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/broker" -) - -type BrokerAccountClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *BrokerAccountClient) Init() *BrokerAccountClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Get broker information - * @return ResponseResult - */ -func (p *BrokerAccountClient) info() (string, error) { - - params := internal.NewParams() - - uri := constants.BrokerAccount + "/account" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get broker information - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubCreate(params broker.SubCreateReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-create" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Get sub list - * @param symbol - * @param marginCoin - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubList(pageSize string, lastEndId string, status string) (string, error) { - - params := internal.NewParams() - params["pageSize"] = pageSize - params["lastEndId"] = lastEndId - params["status"] = status - - uri := constants.BrokerAccount + "/sub-list" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * broker modify sub info - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubModify(params broker.SubModifyReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-modify" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * broker modify sub email - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubModifyEmail(params broker.SubModifyEmailReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-modify-email" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Get sub email - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubEmail(subUid string) (string, error) { - - params := internal.NewParams() - params["subUid"] = subUid - - uri := constants.BrokerAccount + "/sub-email" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get sub spot assets - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubSpotAssets(subUid string) (string, error) { - - params := internal.NewParams() - params["subUid"] = subUid - - uri := constants.BrokerAccount + "/sub-spot-assets" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get sub spot assets - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubFutureAssets(subUid string) (string, error) { - - params := internal.NewParams() - params["subUid"] = subUid - - uri := constants.BrokerAccount + "/sub-future-assets" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * broker modify sub email - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubAddress(params broker.SubAddressReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-address" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * broker sub withdrawal - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubWithdrawal(params broker.SubWithdrawalReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-withdrawal" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * broker sub auto transfer - * @return ResponseResult - */ -func (p *BrokerAccountClient) SubAutoTransfer(params broker.SubAutoTransferReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.BrokerAccount + "/sub-auto-transfer" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient.go deleted file mode 100644 index 1f082438..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient.go +++ /dev/null @@ -1,133 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/mix/account" -) - -type MixAccountClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixAccountClient) Init() *MixAccountClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Get account information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ -func (p *MixAccountClient) Account(symbol string, marginCoin string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["marginCoin"] = marginCoin - - uri := constants.MixAccount + "/account" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get account information list - * @param productType - * @return ResponseResult - */ -func (p *MixAccountClient) Accounts(productType string) (string, error) { - - params := internal.NewParams() - params["productType"] = productType - - uri := constants.MixAccount + "/accounts" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * set lever - * @param SetLeveragerReq - * @return ResponseResult - */ -func (p *MixAccountClient) SetLeverage(params account.SetLeveragerReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixAccount + "/setLeverage" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Adjustment margin - * @param SetMarginReq - * @return ResponseResult - */ -func (p *MixAccountClient) SetMargin(params account.SetMarginReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixAccount + "/setMargin" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Adjust margin mode - * @param SetMarginModeReq - * @return ResponseResult - */ -func (p *MixAccountClient) SetMarginMode(params account.SetMarginModeReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixAccount + "/setMarginMode" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Get the openable quantity - * @param OpenCountReq - * @return ResponseResult - */ -func (p *MixAccountClient) OpenCount(params account.OpenCountReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixAccount + "/open-count" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient_test.go deleted file mode 100644 index feb4c462..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixaccountclient_test.go +++ /dev/null @@ -1,71 +0,0 @@ -package mix - -import ( - "bitget/pkg/model/mix/account" - "fmt" - "testing" -) - -func TestMixAccountClient_GetAccount(t *testing.T) { - client := new(MixAccountClient).Init() - resp, err := client.Account("BTCUSDT_UMCBL", "USDT") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixAccountClient_GetAccounts(t *testing.T) { - client := new(MixAccountClient).Init() - resp, err := client.Accounts("umcbl") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} -func TestMixAccountClient_SetLeverage(t *testing.T) { - client := new(MixAccountClient).Init() - req := account.SetLeveragerReq{Symbol: "BTCUSDT_UMCBL", MarginCoin: "USDT", Leverage: "10"} - - resp, err := client.SetLeverage(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixAccountClient_SetMargin(t *testing.T) { - client := new(MixAccountClient).Init() - req := account.SetMarginReq{Symbol: "BTCUSDT_UMCBL", MarginCoin: "USDT", HoldSide: "long", Amount: "10"} - - resp, err := client.SetMargin(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} -func TestMixAccountClient_SetMarginMode(t *testing.T) { - client := new(MixAccountClient).Init() - req := account.SetMarginModeReq{Symbol: "BTCUSDT_UMCBL", MarginCoin: "USDT", MarginMode: "fixed"} - - resp, err := client.SetMarginMode(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixAccountClient_OpenCount(t *testing.T) { - client := new(MixAccountClient).Init() - req := account.OpenCountReq{Symbol: "BTCUSDT_UMCBL", MarginCoin: "USDT", OpenPrice: "3000", OpenAmount: "99999", Leverage: "20"} - - resp, err := client.OpenCount(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient.go deleted file mode 100644 index 7e9c7ee0..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient.go +++ /dev/null @@ -1,241 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" -) - -type MixMarketClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixMarketClient) Init() *MixMarketClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Contract information - * @param productType - * @return ResponseResult - */ -func (p *MixMarketClient) Contracts(productType string) (string, error) { - - params := internal.NewParams() - params["productType"] = productType - - uri := constants.MixMarket + "/contracts" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Deep market - * @param symbol - * @param limit - * @return ResponseResult - */ -func (p *MixMarketClient) Depth(symbol string, limit string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["limit"] = limit - - uri := constants.MixMarket + "/depth" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Acquisition of single ticker market - * @param productType - * @return ResponseResult - */ -func (p *MixMarketClient) Tickers(productType string) (string, error) { - - params := internal.NewParams() - params["productType"] = productType - - uri := constants.MixMarket + "/tickers" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Deep market - * @param symbol - * @return ResponseResult - */ -func (p *MixMarketClient) Ticker(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/ticker" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Obtain transaction details - * @param symbol - * @param limit - * @return ResponseResult - */ -func (p *MixMarketClient) Fills(symbol string, limit string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["limit"] = limit - - uri := constants.MixMarket + "/fills" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Obtain K line data - * @param symbol - * @param granularity (Category of k line) - * @param startTime - * @param endTime - * @return ResponseResult - */ -func (p *MixMarketClient) Candles(symbol string, granularity string, startTime string, endTime string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["granularity"] = granularity - params["startTime"] = startTime - params["endTime"] = endTime - - uri := constants.MixMarket + "/candles" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** -获取币种指数。 -*/ -func (p *MixMarketClient) Index(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/index" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get the next settlement time of the contract - * @param symbol - * @return ResponseResult - */ -func (p *MixMarketClient) FundingTime(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/funding-time" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get contract tag price - * @param symbol - * @return ResponseResult - */ -func (p *MixMarketClient) MarkPrice(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/mark-price" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get historical fund rate - * @param symbol - * @param pageSize - * @param pageNo - * @param nextPage - * @return ResponseResult - */ -func (p *MixMarketClient) HistoryFundRate(symbol string, pageSize string, pageNo string, nextPage string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - if len(nextPage) > 0 { - params["nextPage"] = nextPage - } - - uri := constants.MixMarket + "/history-fundRate" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get the current fund rate - * @param symbol - * @return ResponseResult - */ -func (p *MixMarketClient) CurrentFundRate(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/current-fundRate" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Obtain the total position of the platform - * @param symbol - * @return ResponseResult - */ -func (p *MixMarketClient) OpenInterest(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixMarket + "/open-interest" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient_test.go deleted file mode 100644 index ca0820d9..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixmarketclient_test.go +++ /dev/null @@ -1,131 +0,0 @@ -package mix - -import ( - "fmt" - "testing" -) - -func TestMixMarketClient_Contracts(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Contracts("sdmcbl") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Depth(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Depth("BTCUSDT_UMCBL", "20") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Ticker(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Ticker("BTCUSDT_UMCBL") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Tickers(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Tickers("sdmcbl") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Fills(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Fills("BTCUSDT_UMCBL", "20") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Candles(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Candles("BTCUSDT_UMCBL", "60", "1629177891000", "1629181491000") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_Index(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.Index("BTCUSDT_UMCBL") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_FundingTime(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.FundingTime("BTCUSDT_UMCBL") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_HistoryFundRate(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.HistoryFundRate("BTCUSDT_UMCBL", "10", "1", "true") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_CurrentFundRate(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.CurrentFundRate("BTCUSDT_UMCBL") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_OpenInterest(t *testing.T) { - client := new(MixMarketClient).Init() - - resp, err := client.OpenInterest("BTCUSDT_UMCBL") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixMarketClient_MarkPrice(t *testing.T) { - -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixorderclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixorderclient.go deleted file mode 100644 index f82117ab..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixorderclient.go +++ /dev/null @@ -1,188 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/mix/order" -) - -type MixOrderClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixOrderClient) Init() *MixOrderClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * place an order - * @param PlaceOrderReq - * @return ResponseResult - */ -func (p *MixOrderClient) PlaceOrder(params order.PlaceOrderReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixOrder + "/placeOrder" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Place orders in batches - * @param BatchOrdersReq - * @return ResponseResult - */ -func (p *MixOrderClient) BatchOrders(params order.BatchOrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixOrder + "/batch-orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * cancel the order - * @param CancelOrderReq - * @return ResponseResult - */ -func (p *MixOrderClient) CancelOrder(params order.CancelOrderReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixOrder + "/cancel-order" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Batch cancellation - * @param CancelBatchOrdersReq - * @return ResponseResult - */ -func (p *MixOrderClient) CancelBatchOrders(params order.CancelBatchOrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixOrder + "/cancel-batch-orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Get Historical Delegation - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param lastEndId - * @param isPre - * @return ResponseResult - */ -func (p *MixOrderClient) History(symbol string, startTime string, endTime string, pageSize string, lastEndId string, isPre string) (string, error) { - params := internal.NewParams() - params["symbol"] = symbol - params["startTime"] = startTime - params["endTime"] = endTime - params["pageSize"] = pageSize - - if len(lastEndId) > 0 { - params["lastEndId"] = lastEndId - } - if len(isPre) > 0 { - params["isPre"] = isPre - } - - uri := constants.MixOrder + "/history" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get the current delegate - * @param symbol - * @return ResponseResult - */ -func (p *MixOrderClient) Current(symbol string) (string, error) { - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.MixOrder + "/current" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get order details - * @param symbol - * @param orderId - * @return ResponseResult - */ -func (p *MixOrderClient) Detail(symbol string, orderId string) (string, error) { - params := internal.NewParams() - params["symbol"] = symbol - params["orderId"] = orderId - - uri := constants.MixOrder + "/detail" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Query transaction details - * @param symbol - * @param orderId - * @return ResponseResult - */ -func (p *MixOrderClient) Fills(symbol string, orderId string) (string, error) { - params := internal.NewParams() - params["symbol"] = symbol - params["orderId"] = orderId - - uri := constants.MixOrder + "/fills" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixorderclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixorderclient_test.go deleted file mode 100644 index e3247820..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixorderclient_test.go +++ /dev/null @@ -1,133 +0,0 @@ -package mix - -import ( - "bitget/internal" - "bitget/pkg/model/mix/order" - "fmt" - "testing" -) - -func TestMixOrderClient_PlaceOrder(t *testing.T) { - client := new(MixOrderClient).Init() - - req := order.PlaceOrderReq{ - ClientOid: internal.TimesStamp(), - Symbol: "SBTCSUSDT_SUMCBL", - Price: "44067.0", - Size: "1", - MarginCoin: "SUSDT", - Side: "open_long", - TimeInForceValue: "normal", - OrderType: "limit", - } - - resp, err := client.PlaceOrder(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_BatchOrders(t *testing.T) { - client := new(MixOrderClient).Init() - - oneOrder := order.PlaceOrderBaseParam{ - ClientOid: internal.TimesStamp(), - Size: "1", - Side: "open_long", - OrderType: "limit", - Price: "23789.30", - TimeInForceValue: "normal", - } - - towOrder := order.PlaceOrderBaseParam{ - ClientOid: internal.TimesStamp(), - Size: "1", - Side: "open_long", - OrderType: "limit", - Price: "23888.30", - TimeInForceValue: "normal", - } - - var params []order.PlaceOrderBaseParam - params = append(params, oneOrder) - params = append(params, towOrder) - - req := order.BatchOrdersReq{ - OrderDataList: params, - Symbol: "SBTCSUSDT_SUMCBL", - MarginCoin: "SUSDT", - } - - resp, err := client.BatchOrders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_CancelOrder(t *testing.T) { - client := new(MixOrderClient).Init() - - req := order.CancelOrderReq{ - Symbol: "SBTCSUSDT_SUMCBL", - MarginCoin: "SUSDT", - OrderId: "811489712408248322", - } - resp, err := client.CancelOrder(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_CancelBatchOrders(t *testing.T) { - client := new(MixOrderClient).Init() - - req := order.CancelBatchOrdersReq{ - Symbol: "SBTCSUSDT_SUMCBL", - MarginCoin: "SUSDT", - OrderIds: []string{"811489712408248322"}, - } - resp, err := client.CancelBatchOrders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_History(t *testing.T) { - client := new(MixOrderClient).Init() - resp, err := client.History("SBTCSUSDT_SUMCBL", "1629113823000", "1629513368000", "20", "", "false") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_Current(t *testing.T) { - client := new(MixOrderClient).Init() - resp, err := client.Current("SBTCSUSDT_SUMCBL") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_Detail(t *testing.T) { - client := new(MixOrderClient).Init() - resp, err := client.Detail("SBTCSUSDT_SUMCBL", "811489712408248322") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixOrderClient_Fills(t *testing.T) { - client := new(MixOrderClient).Init() - resp, err := client.Fills("SBTCSUSDT_SUMCBL", "811489712408248322") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixplanclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixplanclient.go deleted file mode 100644 index 7a4a15f8..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixplanclient.go +++ /dev/null @@ -1,244 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/mix/plan" -) - -type MixPlanClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixPlanClient) Init() *MixPlanClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Plan Entrusted Order - * @param PlacePlanReq - * @return ResponseResult - */ -func (p *MixPlanClient) PlacePlan(params plan.PlacePlanReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/placePlan" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Modify Plan Delegation - * @param ModifyPlanReq - * @return ResponseResult - */ -func (p *MixPlanClient) ModifyPlan(params plan.ModifyPlanReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/modifyPlan" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Modify the preset profit and loss stop of plan entrustment - * @param ModifyPlanPresetReq - * @return ResponseResult - */ -func (p *MixPlanClient) ModifyPlanPreset(params plan.ModifyPlanPresetReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/modifyPlanPreset" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Modify profit and loss stop - * @param ModifyTPSLPlanReq - * @return ResponseResult - */ -func (p *MixPlanClient) ModifyTPSLPlan(params plan.ModifyTPSLPlanReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/modifyTPSLPlan" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Stop profit and stop loss Order - * @param PlaceTPSLReq - * @return ResponseResult - */ -func (p *MixPlanClient) PlaceTPSL(params plan.PlaceTPSLReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/placeTPSL" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Stop profit and stop loss Order - * @param PlaceTPSLReq - * @return ResponseResult - */ -func (p *MixPlanClient) PlaceTrailStop(params plan.PlaceTPSLReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/placeTrailStop" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Planned entrustment (profit and loss stop) cancellation - * @param CancelPlanReq - * @return ResponseResult - */ -func (p *MixPlanClient) CancelPlan(params plan.CancelPlanReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/cancelPlan" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Planned entrustment (profit and loss stop) cancellation - * @param CancelPlanReq - * @return ResponseResult - */ -func (p *MixPlanClient) CancelAllPlan(params plan.CancelAllPlanReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixPlan + "/cancelAllPlan" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * Get the current plan commission (profit stop and loss stop) list - * @param symbol - * @param isPlan - * @return ResponseResult - */ -func (p *MixPlanClient) CurrentPlan(symbol string, isPlan string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - if len(isPlan) > 0 { - params["isPlan"] = isPlan - } - - uri := constants.MixPlan + "/currentPlan" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param symbol - * @param startTime - * @param endTime - * @param pageSize - * @param isPre - * @param isPlan - * @return ResponseResult - */ -func (p *MixPlanClient) HistoryPlan(symbol string, startTime string, endTime string, pageSize string, isPre string, isPlan string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["startTime"] = startTime - params["endTime"] = endTime - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - - if len(isPre) > 0 { - params["isPre"] = isPre - } - if len(isPre) > 0 { - params["isPlan"] = isPlan - } - - uri := constants.MixPlan + "/historyPlan" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixplanclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixplanclient_test.go deleted file mode 100644 index 2807ba27..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixplanclient_test.go +++ /dev/null @@ -1,133 +0,0 @@ -package mix - -import ( - "bitget/internal" - "bitget/pkg/model/mix/plan" - "fmt" - "testing" -) - -func TestMixPlanClient_PlacePlan(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.PlacePlanReq{ - Symbol: "BTCUSDT_UMCBL", - MarginCoin: "USDT", - ClientOid: internal.TimesStamp(), - TriggerPrice: "45000.3", - ExecutePrice: "38923.1", - Size: "1", - Side: "open_long", - OrderType: "limit", - TriggerType: "fill_price", - } - resp, err := client.PlacePlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_ModifyPlan(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.ModifyPlanReq{ - OrderId: "826353122748112896", - Symbol: "BTCUSDT_UMCBL", - TriggerPrice: "55000.0", - ExecutePrice: "38923.1", - MarginCoin: "USDT", - TriggerType: "fill_price", - OrderType: "limit", - } - resp, err := client.ModifyPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_ModifyPlanPreset(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.ModifyPlanPresetReq{ - OrderId: "826353122748112896", - Symbol: "BTCUSDT_UMCBL", - MarginCoin: "USDT", - PresetStopLossPrice: "66000.01", - } - resp, err := client.ModifyPlanPreset(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_PlaceTPSL(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.PlaceTPSLReq{ - Symbol: "BTCUSDT_UMCBL", - MarginCoin: "USDT", - PlanType: "profit_plan", - TriggerPrice: "30000.01", - HoldSide: "short", - } - resp, err := client.PlaceTPSL(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_ModifyTPSLPlan(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.ModifyTPSLPlanReq{ - Symbol: "BTCUSDT_UMCBL", - MarginCoin: "USDT", - TriggerPrice: "30000.01", - OrderId: "826353122748112896", - } - resp, err := client.ModifyTPSLPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_CancelPlan(t *testing.T) { - client := new(MixPlanClient).Init() - - req := plan.CancelPlanReq{ - Symbol: "BTCUSDT_UMCBL", - MarginCoin: "USDT", - OrderId: "826353122748112896", - PlanType: "normal_plan", - } - resp, err := client.CancelPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_CurrentPlan(t *testing.T) { - client := new(MixPlanClient).Init() - - resp, err := client.CurrentPlan("BTCUSDT_UMCBL", "plan") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPlanClient_HistoryPlan(t *testing.T) { - client := new(MixPlanClient).Init() - - resp, err := client.HistoryPlan("BTCUSDT_UMCBL", "1627210955000", "1627383755000", "100", "false", "plan") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient.go deleted file mode 100644 index c9a72d1a..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient.go +++ /dev/null @@ -1,56 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" -) - -type MixPositionClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixPositionClient) Init() *MixPositionClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Obtain single contract position information - * @param symbol - * @param marginCoin - * @return ResponseResult - */ -func (p *MixPositionClient) SinglePosition(symbol string, marginCoin string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["marginCoin"] = marginCoin - - uri := constants.MixPosition + "/singlePosition" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Obtain all contract position information - * @param productType - * @param marginCoin - * @return ResponseResult - */ -func (p *MixPositionClient) AllPosition(productType string, marginCoin string) (string, error) { - - params := internal.NewParams() - params["productType"] = productType - params["marginCoin"] = marginCoin - - uri := constants.MixPosition + "/allPosition" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient_test.go deleted file mode 100644 index 9e2caf17..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixpostitionclient_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package mix - -import ( - "fmt" - "testing" -) - -func TestMixPositionClient_SinglePosition(t *testing.T) { - client := new(MixPositionClient).Init() - - resp, err := client.SinglePosition("BTCUSDT_UMCBL", "USDT") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixPositionClient_AllPosition(t *testing.T) { - client := new(MixPositionClient).Init() - - resp, err := client.AllPosition("umcbl", "USDT") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient.go b/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient.go deleted file mode 100644 index 343ac845..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient.go +++ /dev/null @@ -1,304 +0,0 @@ -package mix - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/mix/trace" -) - -type MixTraceClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *MixTraceClient) Init() *MixTraceClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Dealer closing interface - * @param CloseTrackOrderReq - * @return ResponseResult - */ -func (p *MixTraceClient) CloseTrackOrder(params trace.CloseTrackOrderReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixTrace + "/closeTrackOrder" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err - -} - -/** - * The trader obtains the current order - * @param symbol - * @param productType - * @param pageSize - * @param pageNo - * @return ResponseResult - */ -func (p *MixTraceClient) CurrentTrack(symbol string, productType string, pageSize string, pageNo string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["productType"] = productType - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - - uri := constants.MixTrace + "/currentTrack" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * The trader obtains the historical order - * @param startTime - * @param endTime - * @param pageSize - * @param pageNo - * @return ResponseResult - */ -func (p *MixTraceClient) HistoryTrack(startTime string, endTime string, pageSize string, pageNo string) (string, error) { - - params := internal.NewParams() - params["startTime"] = startTime - params["endTime"] = endTime - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - - uri := constants.MixTrace + "/historyTrack" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Summary of traders' profit sharing - * @return ResponseResult - */ -func (p *MixTraceClient) Summary() (string, error) { - - params := internal.NewParams() - - uri := constants.MixTrace + "/summary" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Historical profit sharing summary of traders (by settlement currency) - * @return ResponseResult - */ -func (p *MixTraceClient) ProfitSettleTokenIdGroup() (string, error) { - - params := internal.NewParams() - - uri := constants.MixTrace + "/profitSettleTokenIdGroup" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param pageSize - * @param pageNo - * @return ResponseResult - */ -func (p *MixTraceClient) ProfitDateGroupList(pageSize string, pageNo string) (string, error) { - - params := internal.NewParams() - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - - uri := constants.MixTrace + "/profitDateGroupList" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Historical profit distribution details of traders - * @param marginCoin - * @param date - * @param pageSize - * @param pageNo - * @return ResponseResult - */ -func (p *MixTraceClient) ProfitDateList(marginCoin string, date string, pageSize string, pageNo string) (string, error) { - - params := internal.NewParams() - params["marginCoin"] = marginCoin - params["date"] = date - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - - uri := constants.MixTrace + "/profitDateList" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Details of traders to be distributed - * @param pageSize - * @param pageNo - * @return ResponseResult - */ -func (p *MixTraceClient) WaitProfitDateList(pageSize string, pageNo string) (string, error) { - - params := internal.NewParams() - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - - uri := constants.MixTrace + "/waitProfitDateList" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Followers obtain documentary information - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - * @return ResponseResult - */ -func (p *MixTraceClient) FollowerHistoryOrders(pageSize string, pageNo string, startTime string, endTime string) (string, error) { - params := internal.NewParams() - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - if len(startTime) > 0 { - params["startTime"] = startTime - } - if len(endTime) > 0 { - params["endTime"] = endTime - } - uri := constants.MixTrace + "/followerHistoryOrders" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Trader get copyTader symbol - * @return ResponseResult - */ -func (p *MixTraceClient) TraderSymbols() (string, error) { - params := internal.NewParams() - - uri := constants.MixTrace + "/traderSymbols" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Trader set copyTader symbol - * @return ResponseResult - */ -func (p *MixTraceClient) SetUpCopySymbols(params trace.CloseTrackOrderReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixTrace + "/setUpCopySymbols" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Trader modify tpsl order - * @return ResponseResult - */ -func (p *MixTraceClient) ModifyTPSL(params trace.TraderModifyTPSLOrderReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.MixTrace + "/modifyTPSL" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * trader get copytrade symbol - * @param pageSize - * @param pageNo - * @param startTime - * @param endTime - * @return ResponseResult - */ -func (p *MixTraceClient) followerOrder(symbol string, productType string, pageSize string, pageNo string) (string, error) { - params := internal.NewParams() - - if len(pageSize) > 0 { - params["pageSize"] = pageSize - } - if len(pageNo) > 0 { - params["pageNo"] = pageNo - } - params["symbol"] = symbol - params["productType"] = productType - uri := constants.MixTrace + "/followerOrder" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient_test.go b/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient_test.go deleted file mode 100644 index d4f294e2..00000000 --- a/bitget-golang-sdk-api/pkg/client/mix/mixtraceclient_test.go +++ /dev/null @@ -1,117 +0,0 @@ -package mix - -import ( - "bitget/pkg/model/mix/trace" - "bytes" - "fmt" - "hash/crc32" - "testing" -) - -func TestMixTraceClient_CloseTrackOrder(t *testing.T) { - client := new(MixTraceClient).Init() - req := trace.CloseTrackOrderReq{Symbol: "BTCUSDT_UMCBL", TrackingNo: "0"} - - resp, err := client.CloseTrackOrder(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_CurrentTrack(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.CurrentTrack("BTCUSDT_UMCBL", "umcbl", "10", "1") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_HistoryTrack(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.HistoryTrack("", "", "10", "1") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_Summary(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.Summary() - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_ProfitSettleTokenIdGroup(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.ProfitSettleTokenIdGroup() - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_ProfitDateGroupList(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.ProfitDateGroupList("", "") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_ProfitDateList(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.ProfitDateList("USDT", "", "10", "1") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_WaitProfitDateList(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.WaitProfitDateList("10", "1") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestMixTraceClient_FollowerHistoryOrders(t *testing.T) { - crc32BaseBuffer := bytes.Buffer{} - crc32BaseBuffer.WriteString("63249.5:15.499:63251.5:0.594:63248.5:0.811:63252.5:1.249:63246.5:4.255:63255.5:0.519:63245.5:5.336:63256.5:3.283:63243.5:10.800:63257.5:16.313:63242.5:2.443:63260.0:0.527:63241.5:1.067:63261.0:0.511:63240.5:0.519:63261.5:0.529:63239.5:1.044:63262.5:0.509:63238.5:0.548:63263.0:0.543:63237.5:48.015:63264.5:1.275:63237.0:0.534:63265.5:0.512:63236.5:0.002:63266.5:1.080:63236.0:0.516:63268.5:0.528:63235.5:5.945:63269.0:1.431:63234.0:7.138:63269.5:0.951:63233.5:0.036:63270.0:0.511:63232.5:4.898:63270.5:0.772:63231.5:1.620:63271.0:7.414:63230.0:8.888:63271.5:0.522:63229.5:2.527:63272.5:13.025:63228.5:0.502:63273.0:0.713:63227.5:0.521:63273.5:10.173:63226.5:6.480:63274.0:0.540:63225.0:0.545:63274.5:0.643") - - i := int32(crc32.ChecksumIEEE(crc32BaseBuffer.Bytes())) - fmt.Println(i) -} - -func TestMixTraceClient_followerOrder(t *testing.T) { - client := new(MixTraceClient).Init() - - resp, err := client.followerOrder("BTCUSDT_UMCBL", "umcbl", "10", "1") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient.go deleted file mode 100644 index aaaf30ab..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient.go +++ /dev/null @@ -1,91 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/spot/account" -) - -type SpotAccountClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotAccountClient) Init() *SpotAccountClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Obtain account assets - * @return ResponseResult - */ -func (p *SpotAccountClient) Assets(coin string) (string, error) { - - params := internal.NewParams() - if len(coin) > 0 { - params["coin"] = coin - } - uri := constants.SpotAccount + "/assets-lite" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Obtain transfer records - * @param coinId - * @param fromType - * @param limit - * @param after - * @param before - * @return ResponseResult - */ -func (p *SpotAccountClient) TransferRecords(coinId string, fromType string, limit string, after string, before string) (string, error) { - - params := internal.NewParams() - if len(coinId) > 0 { - params["coinId"] = coinId - } - if len(fromType) > 0 { - params["fromType"] = fromType - } - if len(limit) > 0 { - params["limit"] = limit - } - if len(after) > 0 { - params["after"] = after - } - if len(before) > 0 { - params["before"] = before - } - - uri := constants.SpotAccount + "/transferRecords" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get the bill flow - * @param BillsReq - * @return ResponseResult - */ -func (p *SpotAccountClient) Bills(params account.BillsReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotAccount + "/bills" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient_test.go b/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient_test.go deleted file mode 100644 index d9946e28..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotaccountclient_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package spot - -import ( - "bitget/pkg/model/spot/account" - "fmt" - "testing" -) - -func TestSpotAccountClient_Assets(t *testing.T) { - client := new(SpotAccountClient).Init() - - resp, err := client.Assets("") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotAccountClient_Bills(t *testing.T) { - client := new(SpotAccountClient).Init() - - req := account.BillsReq{CoinId: "1", Before: "777031099461570560"} - - resp, err := client.Bills(req) - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotAccountClient_TransferRecords(t *testing.T) { - client := new(SpotAccountClient).Init() - - resp, err := client.TransferRecords("2", "USDT_MIX", "10", "", "") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient.go deleted file mode 100644 index 48f1171e..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient.go +++ /dev/null @@ -1,125 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" -) - -type SpotMarketClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotMarketClient) Init() *SpotMarketClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Obtain transaction data - * @param symbol - * @param limit - * @return ResponseResult - */ -func (p *SpotMarketClient) Fills(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - uri := constants.SpotMarket + "/fills" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get depth data - * @param symbol - * @param limit - * @param tp - * @return ResponseResult - */ -func (p *SpotMarketClient) Depth(symbol string, limit string, tp string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - if len(limit) > 0 { - params["limit"] = limit - } - if len(tp) > 0 { - params["type"] = tp - } - - uri := constants.SpotMarket + "/depth" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get a Ticker Information - * @param symbol - * @return ResponseResult - */ -func (p *SpotMarketClient) Ticker(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - - uri := constants.SpotMarket + "/ticker" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Get all Ticker information - * @return ResponseResult - */ -func (p *SpotMarketClient) Tickers() (string, error) { - - params := internal.NewParams() - - uri := constants.SpotMarket + "/tickers" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} - -/** - * Obtain K line data - * @param symbol - * @param period (Time unit and granularity of K line (refer to the following list for values)) - * @param after - * @param before - * @param limit - * @return ResponseResult - */ -func (p *SpotMarketClient) Candles(symbol string, period string, after string, before string, limit string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - params["period"] = period - if len(after) > 0 { - params["after"] = after - } - if len(before) > 0 { - params["before"] = before - } - if len(limit) > 0 { - params["limit"] = limit - } - uri := constants.SpotMarket + "/candles" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err - -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient_test.go b/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient_test.go deleted file mode 100644 index 39de96aa..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotmarketclient_test.go +++ /dev/null @@ -1,61 +0,0 @@ -package spot - -import ( - "fmt" - "testing" -) - -func TestSpotMarketClient_Fills(t *testing.T) { - client := new(SpotMarketClient).Init() - - resp, err := client.Fills("btcusdt_spbl") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotMarketClient_Depth(t *testing.T) { - client := new(SpotMarketClient).Init() - - resp, err := client.Depth("btcusdt_spbl", "10", "") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotMarketClient_Ticker(t *testing.T) { - client := new(SpotMarketClient).Init() - - resp, err := client.Ticker("btcusdt_spbl") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotMarketClient_Tickers(t *testing.T) { - client := new(SpotMarketClient).Init() - - resp, err := client.Tickers() - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotMarketClient_Candles(t *testing.T) { - client := new(SpotMarketClient).Init() - - resp, err := client.Candles("btcusdt_spbl", "1min", "1624929806000", "1624933406000", "50") - - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotorderclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotorderclient.go deleted file mode 100644 index febc9dc1..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotorderclient.go +++ /dev/null @@ -1,195 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/spot/order" -) - -type SpotOrderClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotOrderClient) Init() *SpotOrderClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * place an order - * @param OrdersReq - * @return ResponseResult - */ -func (p *SpotOrderClient) Orders(params order.OrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Place orders in batches - * @param BatchOrdersReq - * @return ResponseResult - */ -func (p *SpotOrderClient) BatchOrders(params order.BatchOrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/batch-orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * cancel the order - * @param CancelOrderReq - * @return ResponseResult - */ -func (p *SpotOrderClient) CancelOrder(params order.CancelOrderReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/cancel-order" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Batch cancellation - * @param CancelBatchOrdersReq - * @return ResponseResult - */ -func (p *SpotOrderClient) CancelBatchOrders(params order.CancelBatchOrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/cancel-batch-orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Get order details - * @param OrderInfoReq - * @return ResponseResult - */ -func (p *SpotOrderClient) OrderInfo(params order.OrderInfoReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/orderInfo" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Obtain orders that have not been closed or partially closed but not cancelled - * @param OpenOrdersReq - * @return ResponseResult - */ -func (p *SpotOrderClient) OpenOrders(params order.OpenOrdersReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/open-orders" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Get historical delegation list - * @param HistoryReq - * @return ResponseResult - */ -func (p *SpotOrderClient) History(params order.HistoryReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/history" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** - * Obtain transaction details - * @param FillsReq - * @return ResponseResult - */ -func (p *SpotOrderClient) Fills(params order.FillsReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/fills" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} - -/** -获取账单流水 -*/ -/*func (p *SpotOrderClient) ChangeDepth(params order.ChangeDepthReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotTrade + "/changeDepth" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -}*/ diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotorderclient_test.go b/bitget-golang-sdk-api/pkg/client/spot/spotorderclient_test.go deleted file mode 100644 index f2fc79b3..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotorderclient_test.go +++ /dev/null @@ -1,150 +0,0 @@ -package spot - -import ( - "bitget/pkg/model/spot/order" - "fmt" - "testing" -) - -func TestSpotOrderClient_Orders(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.OrdersReq{ - Symbol: "bftusdt_spbl", - Price: "2.68111", - Quantity: "10", - Side: "buy", - OrderType: "limit", - Force: "normal", - } - - resp, err := client.Orders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_BatchOrders(t *testing.T) { - client := new(SpotOrderClient).Init() - - oneOrder := order.SpotOrdersReq{ - Price: "2.60222", - Quantity: "1", - Side: "buy", - OrderType: "limit", - Force: "normal", - ClientOrderId: "spot#1625039618000", - } - - towOrder := order.SpotOrdersReq{ - Price: "2.60111", - Quantity: "1", - Side: "buy", - OrderType: "limit", - Force: "normal", - ClientOrderId: "spot#1625039618122", - } - - var params []order.SpotOrdersReq - params = append(params, oneOrder) - params = append(params, towOrder) - - req := order.BatchOrdersReq{ - OrderList: params, - Symbol: "BTCUSDT_SPBL", - } - - resp, err := client.BatchOrders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_CancelOrder(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.CancelOrderReq{ - Symbol: "bftusdt_spbl", - OrderId: "213123", - } - - resp, err := client.CancelOrder(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_CancelBatchOrders(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.CancelBatchOrdersReq{ - Symbol: "bftusdt_spbl", - OrderIds: []string{"213123", "213123"}, - } - - resp, err := client.CancelBatchOrders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_OrderInfo(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.OrderInfoReq{ - OrderId: "123", - } - - resp, err := client.OrderInfo(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_OpenOrders(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.OpenOrdersReq{ - Symbol: "bftusdt_spbl", - } - - resp, err := client.OpenOrders(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_History(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.HistoryReq{ - Symbol: "bftusdt_spbl", - Limit: "100", - } - - resp, err := client.History(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotOrderClient_Fills(t *testing.T) { - client := new(SpotOrderClient).Init() - - req := order.FillsReq{ - Symbol: "bftusdt_spbl", - } - - resp, err := client.Fills(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotplanclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotplanclient.go deleted file mode 100644 index ac615337..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotplanclient.go +++ /dev/null @@ -1,72 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/spot/plan" -) - -type SpotPlanClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotPlanClient) Init() *SpotPlanClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -func (p *SpotPlanClient) PlacePlan(params plan.SpotPlanReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotPlan + "/placePlan" - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - return resp, err -} - -func (p *SpotPlanClient) ModifyPlan(params plan.SpotModifyPlanReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotPlan + "/modifyPlan" - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - return resp, err -} - -func (p *SpotPlanClient) CancelPlan(params plan.SpotCancelPlanReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotPlan + "/cancelPlan" - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - return resp, err -} - -func (p *SpotPlanClient) CurrentPlan(params plan.SpotQueryPlanReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotPlan + "/currentPlan" - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - return resp, err -} - -func (p *SpotPlanClient) HistoryPlan(params plan.SpotQueryPlanReq) (string, error) { - postBody, jsonErr := internal.ToJson(params) - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotPlan + "/historyPlan" - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotplanclient_test.go b/bitget-golang-sdk-api/pkg/client/spot/spotplanclient_test.go deleted file mode 100644 index 7c55cf2e..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotplanclient_test.go +++ /dev/null @@ -1,92 +0,0 @@ -package spot - -import ( - "bitget/pkg/model/spot/plan" - "fmt" - "testing" -) - -func TestSpotPlanClient_PlacePlan(t *testing.T) { - client := new(SpotPlanClient).Init() - - req := plan.SpotPlanReq{ - Symbol: "BTCUSDT_SPBL", - Side: "buy", - TriggerPrice: "22031", - ExecutePrice: "22031", - Size: "100", - TriggerType: "market_price", - OrderType: "market", - TimeInForceValue: "normal", - } - - resp, err := client.PlacePlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPlanClient_ModifyPlan(t *testing.T) { - client := new(SpotPlanClient).Init() - - req := plan.SpotModifyPlanReq{ - OrderId: "987136018723487744", - TriggerPrice: "16000", - ExecutePrice: "16000", - Size: "50", - OrderType: "market", - } - - resp, err := client.ModifyPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPlanClient_CancelPlan(t *testing.T) { - client := new(SpotPlanClient).Init() - - req := plan.SpotCancelPlanReq{ - OrderId: "987136018723487744", - } - - resp, err := client.CancelPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPlanClient_CurrentPlan(t *testing.T) { - client := new(SpotPlanClient).Init() - - req := plan.SpotQueryPlanReq{ - Symbol: "BTCUSDT_SPBL", - PageSize: "5", - } - - resp, err := client.CurrentPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPlanClient_HistoryPlan(t *testing.T) { - client := new(SpotPlanClient).Init() - - req := plan.SpotQueryPlanReq{ - Symbol: "BTCUSDT_SPBL", - PageSize: "5", - StartTime: "1671005531000", - EndTime: "16710856520005", - } - - resp, err := client.HistoryPlan(req) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient.go deleted file mode 100644 index ef231a8a..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient.go +++ /dev/null @@ -1,77 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" -) - -type SpotPublicClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotPublicClient) Init() *SpotPublicClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * Get server time - * @return ResponseResult - */ -func (p *SpotPublicClient) Time() (string, error) { - - params := internal.NewParams() - - uri := constants.SpotPublic + "/time" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Basic information of currency - * @return ResponseResult - */ -func (p *SpotPublicClient) Currencies() (string, error) { - - params := internal.NewParams() - - uri := constants.SpotPublic + "/currencies" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get all product information - * @return ResponseResult - */ -func (p *SpotPublicClient) Products() (string, error) { - - params := internal.NewParams() - - uri := constants.SpotPublic + "/products" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} - -/** - * Get single product information - * @param symbol - * @return ResponseResult - */ -func (p *SpotPublicClient) Product(symbol string) (string, error) { - - params := internal.NewParams() - params["symbol"] = symbol - uri := constants.SpotPublic + "/product" - - resp, err := p.BitgetRestClient.DoGet(uri, params) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient_test.go b/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient_test.go deleted file mode 100644 index 8657679d..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotpublicclient_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package spot - -import ( - "fmt" - "testing" -) - -func TestSpotPublicClient_Time(t *testing.T) { - client := new(SpotPublicClient).Init() - - resp, err := client.Time() - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPublicClient_Currencies(t *testing.T) { - client := new(SpotPublicClient).Init() - - resp, err := client.Currencies() - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPublicClient_Product(t *testing.T) { - client := new(SpotPublicClient).Init() - - resp, err := client.Product("ETHUSDT_SPBL") - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func TestSpotPublicClient_Products(t *testing.T) { - client := new(SpotPublicClient).Init() - - resp, err := client.Products() - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/client/spot/spotwalletclient.go b/bitget-golang-sdk-api/pkg/client/spot/spotwalletclient.go deleted file mode 100644 index d4f9943d..00000000 --- a/bitget-golang-sdk-api/pkg/client/spot/spotwalletclient.go +++ /dev/null @@ -1,37 +0,0 @@ -package spot - -import ( - "bitget/constants" - "bitget/internal" - "bitget/internal/common" - "bitget/pkg/model/spot/wallet" -) - -type SpotWalletClient struct { - BitgetRestClient *common.BitgetRestClient -} - -func (p *SpotWalletClient) Init() *SpotWalletClient { - p.BitgetRestClient = new(common.BitgetRestClient).Init() - return p -} - -/** - * withdrawal - * @param BillsReq - * @return ResponseResult - */ -func (p *SpotWalletClient) withdrawal(params wallet.WithdrawalReq) (string, error) { - - postBody, jsonErr := internal.ToJson(params) - - if jsonErr != nil { - return "", jsonErr - } - - uri := constants.SpotWallet + "/withdrawal" - - resp, err := p.BitgetRestClient.DoPost(uri, postBody) - - return resp, err -} diff --git a/bitget-golang-sdk-api/pkg/client/v1/mixaccountclient.go b/bitget-golang-sdk-api/pkg/client/v1/mixaccountclient.go new file mode 100644 index 00000000..cc933647 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/mixaccountclient.go @@ -0,0 +1,72 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type MixAccountClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixAccountClient) Init() *MixAccountClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *MixAccountClient) Account(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/account/account", params) + return resp, err +} + +func (p *MixAccountClient) Accounts(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/account/accounts", params) + return resp, err +} + +func (p *MixAccountClient) SetLeverage(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/account/setLeverage", postBody) + return resp, err +} + +func (p *MixAccountClient) SetMargin(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/account/setMargin", postBody) + return resp, err +} + +func (p *MixAccountClient) SetMarginMode(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/account/setMarginMode", postBody) + return resp, err +} + +func (p *MixAccountClient) SetPositionMode(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/account/setPositionMode", postBody) + return resp, err +} + +// position +func (p *MixAccountClient) SinglePosition(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/position/singlePosition", params) + return resp, err +} + +func (p *MixAccountClient) AllPosition(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/position/allPosition", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/mixmarketclient.go b/bitget-golang-sdk-api/pkg/client/v1/mixmarketclient.go new file mode 100644 index 00000000..51c87b1f --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/mixmarketclient.go @@ -0,0 +1,44 @@ +package v1 + +import ( + "bitget/internal/common" +) + +type MixMarketClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixMarketClient) Init() *MixMarketClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *MixMarketClient) Contracts(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/contracts", params) + return resp, err +} + +func (p *MixMarketClient) Depth(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/depth", params) + return resp, err +} + +func (p *MixMarketClient) Ticker(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/ticker", params) + return resp, err +} + +func (p *MixMarketClient) Tickers(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/tickers", params) + return resp, err +} + +func (p *MixMarketClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/fills", params) + return resp, err +} + +func (p *MixMarketClient) Candles(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/market/candles", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/mixorderclient.go b/bitget-golang-sdk-api/pkg/client/v1/mixorderclient.go new file mode 100644 index 00000000..d73533a2 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/mixorderclient.go @@ -0,0 +1,135 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type MixOrderClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixOrderClient) Init() *MixOrderClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +// normal order +func (p *MixOrderClient) PlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/order/placeOrder", postBody) + return resp, err +} + +func (p *MixOrderClient) BatchPlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/order/batch-orders", postBody) + return resp, err +} + +func (p *MixOrderClient) CancelOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/order/cancel-order", postBody) + return resp, err +} + +func (p *MixOrderClient) BatchCancelOrders(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/order/cancel-batch-orders", postBody) + return resp, err +} + +func (p *MixOrderClient) OrdersHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/order/history", params) + return resp, err +} + +func (p *MixOrderClient) OrdersPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/order/current", params) + return resp, err +} + +func (p *MixOrderClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/fills", params) + return resp, err +} + +// plan +func (p *MixOrderClient) PlacePlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/plan/placePlan", postBody) + return resp, err +} + +func (p *MixOrderClient) CancelPlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/plan/cancelPlan", postBody) + return resp, err +} + +func (p *MixOrderClient) OrdersPlanPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/plan/currentPlan", params) + return resp, err +} + +func (p *MixOrderClient) OrdersPlanHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/plan/historyPlan", params) + return resp, err +} + +// trader +func (p *MixOrderClient) TraderOrderClosePositions(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/trace/closeTrackOrder", postBody) + return resp, err +} + +func (p *MixOrderClient) TraderOrderCurrentTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/trace/currentTrack", params) + return resp, err +} + +func (p *MixOrderClient) TraderOrderHistoryTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/trace/historyTrack", params) + return resp, err +} + +func (p *MixOrderClient) FollowerClosePositions(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/mix/v1/trace/followerCloseByTrackingNo", postBody) + return resp, err +} + +func (p *MixOrderClient) FollowerQueryCurrentOrders(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/trace/followerOrder", params) + return resp, err +} + +func (p *MixOrderClient) FollowerQueryHistoryOrders(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/mix/v1/trace/followerHistoryOrders", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/spotaccountclient.go b/bitget-golang-sdk-api/pkg/client/v1/spotaccountclient.go new file mode 100644 index 00000000..5e05aa92 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/spotaccountclient.go @@ -0,0 +1,36 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotAccountClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotAccountClient) Init() *SpotAccountClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *SpotAccountClient) Info() (string, error) { + params := internal.NewParams() + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/getInfo", params) + return resp, err +} + +func (p *SpotAccountClient) Assets(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/assets-lite", params) + return resp, err +} + +func (p *SpotAccountClient) Bills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/bills", params) + return resp, err +} + +func (p *SpotAccountClient) TransferRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/transferRecords", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/spotmarketclient.go b/bitget-golang-sdk-api/pkg/client/v1/spotmarketclient.go new file mode 100644 index 00000000..e986f2ab --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/spotmarketclient.go @@ -0,0 +1,56 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotMarketClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotMarketClient) Init() *SpotMarketClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *SpotMarketClient) Currencies() (string, error) { + params := internal.NewParams() + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/currencies", params) + return resp, err +} + +func (p *SpotMarketClient) Products(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/products", params) + return resp, err +} + +func (p *SpotMarketClient) Product(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/product", params) + return resp, err +} + +func (p *SpotMarketClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/fills", params) + return resp, err +} + +func (p *SpotMarketClient) Depth(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/depth", params) + return resp, err +} + +func (p *SpotMarketClient) Tickers(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/tickers", params) + return resp, err +} + +func (p *SpotMarketClient) Ticker(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/ticker", params) + return resp, err +} + +func (p *SpotMarketClient) Candles(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/candles", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/spotorderclient.go b/bitget-golang-sdk-api/pkg/client/v1/spotorderclient.go new file mode 100644 index 00000000..1ab9b5e0 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/spotorderclient.go @@ -0,0 +1,132 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotOrderClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotOrderClient) Init() *SpotOrderClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +// normal order +func (p *SpotOrderClient) PlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trade/orders", postBody) + return resp, err +} + +func (p *SpotOrderClient) BatchPlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trade/batch-orders", postBody) + return resp, err +} + +func (p *SpotOrderClient) CancelOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trade/cancel-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) BatchCancelOrders(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trade/cancel-batch-orders", postBody) + return resp, err +} + +func (p *SpotOrderClient) OrdersHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/trade/history", params) + return resp, err +} + +func (p *SpotOrderClient) OrdersPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/trade/open-orders", params) + return resp, err +} + +func (p *SpotOrderClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/trade/fills", params) + return resp, err +} + +// plan +func (p *SpotOrderClient) PlacePlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/plan/placePlan", postBody) + return resp, err +} + +func (p *SpotOrderClient) CancelPlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/plan/cancelPlan", postBody) + return resp, err +} + +func (p *SpotOrderClient) OrdersPlanPending(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/plan/currentPlan", postBody) + return resp, err +} + +func (p *SpotOrderClient) OrdersPlanHistory(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/plan/historyPlan", postBody) + return resp, err +} + +// trader +func (p *SpotOrderClient) TraderOrderCloseTracking(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trace/order/closeTrackingOrder", postBody) + return resp, err +} + +func (p *SpotOrderClient) TraderOrderCurrentTrack(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trace/order/orderCurrentList", postBody) + return resp, err +} + +func (p *SpotOrderClient) TraderOrderHistoryTrack(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/spot/v1/trace/order/orderHistoryList", postBody) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v1/spotwalletclient.go b/bitget-golang-sdk-api/pkg/client/v1/spotwalletclient.go new file mode 100644 index 00000000..77bccb53 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v1/spotwalletclient.go @@ -0,0 +1,43 @@ +package v1 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotWalletApi struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotWalletApi) Transfer(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/transfer", postBody) + return resp, err +} + +func (p *SpotWalletApi) DepositAddress(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-address", params) + return resp, err +} + +func (p *SpotWalletApi) Withdrawal(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/withdrawal", postBody) + return resp, err +} + +func (p *SpotWalletApi) WithdrawalRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/withdrawal-records", params) + return resp, err +} + +func (p *SpotWalletApi) DepositRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-records", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/mixaccountclient.go b/bitget-golang-sdk-api/pkg/client/v2/mixaccountclient.go new file mode 100644 index 00000000..e37cc3d2 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/mixaccountclient.go @@ -0,0 +1,72 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type MixAccountClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixAccountClient) Init() *MixAccountClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *MixAccountClient) Account(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/account/account", params) + return resp, err +} + +func (p *MixAccountClient) Accounts(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/account/accounts", params) + return resp, err +} + +func (p *MixAccountClient) SetLeverage(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/account/set-leverage", postBody) + return resp, err +} + +func (p *MixAccountClient) SetMargin(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/account/set-margin", postBody) + return resp, err +} + +func (p *MixAccountClient) SetMarginMode(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/account/set-margin-mode", postBody) + return resp, err +} + +// position +func (p *MixAccountClient) SetPositionMode(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/account/set-position-mode", postBody) + return resp, err +} + +func (p *MixAccountClient) SinglePosition(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/position/single-position", params) + return resp, err +} + +func (p *MixAccountClient) AllPosition(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/position/all-position", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/mixmarketclient.go b/bitget-golang-sdk-api/pkg/client/v2/mixmarketclient.go new file mode 100644 index 00000000..4e3850d5 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/mixmarketclient.go @@ -0,0 +1,39 @@ +package v2 + +import ( + "bitget/internal/common" +) + +type MixMarketClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixMarketClient) Init() *MixMarketClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *MixMarketClient) Contracts(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/market/contracts", params) + return resp, err +} + +func (p *MixMarketClient) Orderbook(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/market/orderbook", params) + return resp, err +} + +func (p *MixMarketClient) Ticker(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/market/ticker", params) + return resp, err +} + +func (p *MixMarketClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/market/fills", params) + return resp, err +} + +func (p *MixMarketClient) Candles(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/market/candles", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/mixorderclient.go b/bitget-golang-sdk-api/pkg/client/v2/mixorderclient.go new file mode 100644 index 00000000..8d339539 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/mixorderclient.go @@ -0,0 +1,135 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type MixOrderClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *MixOrderClient) Init() *MixOrderClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +// normal order +func (p *MixOrderClient) PlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/place-order", postBody) + return resp, err +} + +func (p *MixOrderClient) BatchPlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/batch-place-order", postBody) + return resp, err +} + +func (p *MixOrderClient) CancelOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/cancel-order", postBody) + return resp, err +} + +func (p *MixOrderClient) BatchCancelOrders(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/batch-cancel-orders", postBody) + return resp, err +} + +func (p *MixOrderClient) OrdersHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/orders-history", params) + return resp, err +} + +func (p *MixOrderClient) OrdersPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/orders-pending", params) + return resp, err +} + +func (p *MixOrderClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/fills", params) + return resp, err +} + +// plan +func (p *MixOrderClient) PlacePlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/place-plan-order", postBody) + return resp, err +} + +func (p *MixOrderClient) CancelPlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/mix/order/cancel-plan-order", postBody) + return resp, err +} + +func (p *MixOrderClient) OrdersPlanPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/orders-plan-pending", params) + return resp, err +} + +func (p *MixOrderClient) OrdersPlanHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/mix/order/orders-plan-history", params) + return resp, err +} + +// trader +func (p *MixOrderClient) TraderOrderClosePositions(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/copy/mix-trader/order-close-positions", postBody) + return resp, err +} + +func (p *MixOrderClient) TraderOrderCurrentTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/mix-trader/order-current-track", params) + return resp, err +} + +func (p *MixOrderClient) TraderOrderHistoryTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/mix-trader/order-history-track", params) + return resp, err +} + +func (p *MixOrderClient) FollowerClosePositions(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/copy/mix-follower/close-positions", postBody) + return resp, err +} + +func (p *MixOrderClient) FollowerQueryCurrentOrders(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/mix-follower/query-current-orders", params) + return resp, err +} + +func (p *MixOrderClient) FollowerQueryHistoryOrders(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/mix-follower/query-history-orders", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/spotaccountclient.go b/bitget-golang-sdk-api/pkg/client/v2/spotaccountclient.go new file mode 100644 index 00000000..828b4a22 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/spotaccountclient.go @@ -0,0 +1,36 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotAccountClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotAccountClient) Init() *SpotAccountClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *SpotAccountClient) Info() (string, error) { + params := internal.NewParams() + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/account/info", params) + return resp, err +} + +func (p *SpotAccountClient) Assets(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/account/assets", params) + return resp, err +} + +func (p *SpotAccountClient) Bills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/account/bills", params) + return resp, err +} + +func (p *SpotAccountClient) TransferRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/account/transferRecords", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/spotmarketclient.go b/bitget-golang-sdk-api/pkg/client/v2/spotmarketclient.go new file mode 100644 index 00000000..c076090b --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/spotmarketclient.go @@ -0,0 +1,46 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotMarketClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotMarketClient) Init() *SpotMarketClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +func (p *SpotMarketClient) Coins() (string, error) { + params := internal.NewParams() + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/public/coins", params) + return resp, err +} + +func (p *SpotMarketClient) Symbols(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/public/symbols", params) + return resp, err +} + +func (p *SpotMarketClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/fills", params) + return resp, err +} + +func (p *SpotMarketClient) Orderbook(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/orderbook", params) + return resp, err +} + +func (p *SpotMarketClient) Tickers(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/tickers", params) + return resp, err +} + +func (p *SpotMarketClient) Candles(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/candles", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/spotorderclient.go b/bitget-golang-sdk-api/pkg/client/v2/spotorderclient.go new file mode 100644 index 00000000..1e71c8b7 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/spotorderclient.go @@ -0,0 +1,116 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotOrderClient struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotOrderClient) Init() *SpotOrderClient { + p.BitgetRestClient = new(common.BitgetRestClient).Init() + return p +} + +// normal order +func (p *SpotOrderClient) PlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/place-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) BatchPlaceOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/batch-orders", postBody) + return resp, err +} + +func (p *SpotOrderClient) CancelOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/cancel-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) BatchCancelOrders(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/batch-cancel-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) OrdersHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/trade/history-orders", params) + return resp, err +} + +func (p *SpotOrderClient) OrdersPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/trade/unfilled-orders", params) + return resp, err +} + +func (p *SpotOrderClient) Fills(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/trade/fills", params) + return resp, err +} + +// plan +func (p *SpotOrderClient) PlacePlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/place-plan-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) CancelPlanOrder(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/trade/cancel-plan-order", postBody) + return resp, err +} + +func (p *SpotOrderClient) OrdersPlanPending(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/trade/current-plan-order", params) + return resp, err +} + +func (p *SpotOrderClient) OrdersPlanHistory(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/trade/history-plan-order", params) + return resp, err +} + +// trader +func (p *SpotOrderClient) TraderOrderCloseTracking(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/copy/spot-trader/order-close-tracking", postBody) + return resp, err +} + +func (p *SpotOrderClient) TraderOrderCurrentTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/spot-trader/order-current-track", params) + return resp, err +} + +func (p *SpotOrderClient) TraderOrderHistoryTrack(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/copy/spot-trader/order-history-track", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/client/v2/spotwalletclient.go b/bitget-golang-sdk-api/pkg/client/v2/spotwalletclient.go new file mode 100644 index 00000000..09ab32a2 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/client/v2/spotwalletclient.go @@ -0,0 +1,43 @@ +package v2 + +import ( + "bitget/internal" + "bitget/internal/common" +) + +type SpotWalletApi struct { + BitgetRestClient *common.BitgetRestClient +} + +func (p *SpotWalletApi) Transfer(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/transfer", postBody) + return resp, err +} + +func (p *SpotWalletApi) DepositAddress(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-address", params) + return resp, err +} + +func (p *SpotWalletApi) Withdrawal(params map[string]string) (string, error) { + postBody, jsonErr := internal.ToJson(params) + if jsonErr != nil { + return "", jsonErr + } + resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/withdrawal", postBody) + return resp, err +} + +func (p *SpotWalletApi) WithdrawalRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/withdrawal-records", params) + return resp, err +} + +func (p *SpotWalletApi) DepositRecords(params map[string]string) (string, error) { + resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-records", params) + return resp, err +} diff --git a/bitget-golang-sdk-api/pkg/model/broker/subaddressreq.go b/bitget-golang-sdk-api/pkg/model/broker/subaddressreq.go deleted file mode 100644 index 5e824c34..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/subaddressreq.go +++ /dev/null @@ -1,19 +0,0 @@ -package broker - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type SubAddressReq struct { - /** - * subName - */ - SubUid string `json:"subUid"` - /** - * remark - */ - Coin string `json:"coin"` - - Chain string `json:"chain"` -} diff --git a/bitget-golang-sdk-api/pkg/model/broker/subautotransferreq.go b/bitget-golang-sdk-api/pkg/model/broker/subautotransferreq.go deleted file mode 100644 index 87e2f17e..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/subautotransferreq.go +++ /dev/null @@ -1,19 +0,0 @@ -package broker - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type SubAutoTransferReq struct { - /** - * subName - */ - SubUid string `json:"subUid"` - /** - * remark - */ - Coin string `json:"coin"` - - ToAccountType string `json:"toAccountType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/broker/subcreatereq.go b/bitget-golang-sdk-api/pkg/model/broker/subcreatereq.go deleted file mode 100644 index 649e6ead..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/subcreatereq.go +++ /dev/null @@ -1,17 +0,0 @@ -package broker - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type SubCreateReq struct { - /** - * subName - */ - SubName string `json:"subName"` - /** - * remark - */ - Remark string `json:"remark"` -} diff --git a/bitget-golang-sdk-api/pkg/model/broker/submodifyemailreq.go b/bitget-golang-sdk-api/pkg/model/broker/submodifyemailreq.go deleted file mode 100644 index a3765831..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/submodifyemailreq.go +++ /dev/null @@ -1,16 +0,0 @@ -package broker - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type SubModifyEmailReq struct { - /** - * subName - */ - SubUid string `json:"subUid"` - /** - */ - Email string `json:"email"` -} diff --git a/bitget-golang-sdk-api/pkg/model/broker/submodifyreq.go b/bitget-golang-sdk-api/pkg/model/broker/submodifyreq.go deleted file mode 100644 index 9dc65f97..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/submodifyreq.go +++ /dev/null @@ -1,33 +0,0 @@ -package broker - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type SubModifyReq struct { - /** - * subName - */ - SubUid string `json:"subUid"` - /** - * - withdraw 提币权限 - transfer 划转 - spot_trade 只能现货交易 - contract_trade 只能合约交易 - readonly 只读权限 - - eg: - readonly,spot_trade,withdraw - */ - Perm string `json:"perm"` - - /** - status - normal 正常 - freeze 冻结 - del 删除 - */ - Status string `json:"status"` -} diff --git a/bitget-golang-sdk-api/pkg/model/broker/subwithdrawalreq.go b/bitget-golang-sdk-api/pkg/model/broker/subwithdrawalreq.go deleted file mode 100644 index b79dbb4f..00000000 --- a/bitget-golang-sdk-api/pkg/model/broker/subwithdrawalreq.go +++ /dev/null @@ -1,27 +0,0 @@ -package broker - -/* -* @Author: bitget-sdk-team -* @Date: 2022-09-30 10:46 -* @DES: place an order request - */ -type SubWithdrawalReq struct { - /** - * subName - */ - SubUid string `json:"subUid"` - /** - * remark - */ - Coin string `json:"coin"` - - Chain string `json:"chain"` - - Address string `json:"address"` - - Amount string `json:"amount"` - - Tag string `json:"tag"` - - ClientOid string `json:"clientOid"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/account/opencountreq.go b/bitget-golang-sdk-api/pkg/model/mix/account/opencountreq.go deleted file mode 100644 index 2ce620f2..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/account/opencountreq.go +++ /dev/null @@ -1,29 +0,0 @@ -package account - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get the openable request - */ -type OpenCountReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * open price - */ - OpenPrice string `json:"openPrice"` - /** - * open amount - */ - OpenAmount string `json:"openAmount"` - /** - * Default leverage 20 - */ - Leverage string `json:"leverage"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/account/setleveragereq.go b/bitget-golang-sdk-api/pkg/model/mix/account/setleveragereq.go deleted file mode 100644 index 7cfe576f..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/account/setleveragereq.go +++ /dev/null @@ -1,27 +0,0 @@ -package account - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: set lever request - */ -type SetLeveragerReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Leverage ratio - */ - Leverage string `json:"leverage"` - /** - * The whole warehouse lever can not transfer this parameter - * Position direction: long multi position short short position, - * MixHoldSideEnum - */ - HoldSide string `json:"holdSide"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/account/setmarginmodereq.go b/bitget-golang-sdk-api/pkg/model/mix/account/setmarginmodereq.go deleted file mode 100644 index 6018bf8a..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/account/setmarginmodereq.go +++ /dev/null @@ -1,21 +0,0 @@ -package account - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Adjust margin mode request - */ -type SetMarginModeReq struct { - /** - * Margin mode - */ - MarginMode string `json:"marginMode"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/account/setmarginreq.go b/bitget-golang-sdk-api/pkg/model/mix/account/setmarginreq.go deleted file mode 100644 index a50e93bc..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/account/setmarginreq.go +++ /dev/null @@ -1,25 +0,0 @@ -package account - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Adjustment margin request - */ -type SetMarginReq struct { - /** - * Position direction (all positions are not transferred) - */ - HoldSide string `json:"holdSide"` - /** - * Amount greater than 0 increases less than 0 decreases - */ - Amount string `json:"amount"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/account/setpositionmodereq.go b/bitget-golang-sdk-api/pkg/model/mix/account/setpositionmodereq.go deleted file mode 100644 index 3a45366e..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/account/setpositionmodereq.go +++ /dev/null @@ -1,7 +0,0 @@ -package account - -type SetPositionModeReq struct { - HoldMode string `json:"holdMode"` - Symbol string `json:"symbol"` - MarginCoin string `json:"marginCoin"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/market/HistoryFundRateReq.go b/bitget-golang-sdk-api/pkg/model/mix/market/HistoryFundRateReq.go deleted file mode 100644 index b3211744..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/market/HistoryFundRateReq.go +++ /dev/null @@ -1,8 +0,0 @@ -package market - -type HistoryFundRate struct { - symbol string - pageSize string - pageNo string - nextPage string -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/order/batchordersreq.go b/bitget-golang-sdk-api/pkg/model/mix/order/batchordersreq.go deleted file mode 100644 index 3b0ca057..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/order/batchordersreq.go +++ /dev/null @@ -1,44 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place batch order request - */ -type BatchOrdersReq struct { - /** - * Order data list - */ - OrderDataList []PlaceOrderBaseParam `json:"orderDataList"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` -} -type PlaceOrderBaseParam struct { - /** - * Client ID - */ - ClientOid string `json:"clientOid"` - /** - * Amount of currency placed - */ - Size string `json:"size"` - /** - * 1: Kaiduo 2: Kaikong 3: Pingduo 4: Pingkong - */ - Side string `json:"side"` - /** - * Order Type - */ - OrderType string `json:"orderType"` - /** - * Entrusted price - */ - Price string `json:"price"` - TimeInForceValue string `json:"timeInForceValue"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/order/cancelbatchordersreq.go b/bitget-golang-sdk-api/pkg/model/mix/order/cancelbatchordersreq.go deleted file mode 100644 index 3031db14..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/order/cancelbatchordersreq.go +++ /dev/null @@ -1,21 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Batch cancellation request - */ -type CancelBatchOrdersReq struct { - /** - * Order Id list - */ - OrderIds []string `json:"orderIds"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/order/cancelorderreq.go b/bitget-golang-sdk-api/pkg/model/mix/order/cancelorderreq.go deleted file mode 100644 index 9b27fa7e..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/order/cancelorderreq.go +++ /dev/null @@ -1,21 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel the order request - */ -type CancelOrderReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Order Id - */ - OrderId string `json:"orderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/order/placeorderreq.go b/bitget-golang-sdk-api/pkg/model/mix/order/placeorderreq.go deleted file mode 100644 index 71274f3b..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/order/placeorderreq.go +++ /dev/null @@ -1,49 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type PlaceOrderReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Open more, open more, empty more, empty more - */ - Side string `json:"side"` - /** - * Client ID - */ - ClientOid string `json:"clientOid"` - /** - * Amount of currency placed - */ - Size string `json:"size"` - /** - * Order Type Market Price Limit - */ - OrderType string `json:"orderType"` - /** - * Entrusted price - */ - Price string `json:"price"` - /** - * Order validity - */ - TimeInForceValue string `json:"timeInForceValue"` - /** - * Default stop profit price - */ - PresetTakeProfitPrice string `json:"presetTakeProfitPrice"` - /** - * Preset stop loss price - */ - PresetStopLossPrice string `json:"presetStopLossPrice"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/cancelallplanreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/cancelallplanreq.go deleted file mode 100644 index 3b001181..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/cancelallplanreq.go +++ /dev/null @@ -1,15 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel plan request - */ -type CancelAllPlanReq struct { - /** - * Plan type - */ - PlanType string `json:"planType"` - - ProductType string `json:"productType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/cancelplanreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/cancelplanreq.go deleted file mode 100644 index d56e6b1a..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/cancelplanreq.go +++ /dev/null @@ -1,25 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel plan request - */ -type CancelPlanReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Order Id - */ - OrderId string `json:"orderId"` - /** - * Plan type - */ - PlanType string `json:"planType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanpresetreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanpresetreq.go deleted file mode 100644 index 77d385cd..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanpresetreq.go +++ /dev/null @@ -1,33 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -type ModifyPlanPresetReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * If the profit stop price is blank, cancel the profit stop - */ - PresetTakeProfitPrice string `json:"presetTakeProfitPrice"` - /** - * If the stop loss price is blank, cancel the stop loss - */ - PresetStopLossPrice string `json:"presetStopLossPrice"` - /** - * order id - */ - OrderId string `json:"orderId"` - /** - * plan type - */ - PlanType string `json:"planType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanreq.go deleted file mode 100644 index 8b874ce7..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/modifyplanreq.go +++ /dev/null @@ -1,37 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: placePlan request - */ -type ModifyPlanReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Planned entrusted order No - */ - OrderId string `json:"orderId"` - /** - * Execution price - */ - ExecutePrice string `json:"executePrice"` - /** - * Trigger Price - */ - TriggerPrice string `json:"triggerPrice"` - /** - * Trigger Type - */ - TriggerType string `json:"triggerType"` - /** - * Order Type - */ - OrderType string `json:"orderType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/modifytpslplanreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/modifytpslplanreq.go deleted file mode 100644 index 367c782c..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/modifytpslplanreq.go +++ /dev/null @@ -1,29 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -type ModifyTPSLPlanReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Order id - */ - OrderId string `json:"orderId"` - /** - * Trigger price - */ - TriggerPrice string `json:"triggerPrice"` - /** - * plan type - */ - PlanType string `json:"planType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/placeplanreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/placeplanreq.go deleted file mode 100644 index 7c981f63..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/placeplanreq.go +++ /dev/null @@ -1,55 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: placePlan request - */ -type PlacePlanReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Amount of currency placed - */ - Size string `json:"size"` - /** - * Entrusted price - */ - ExecutePrice string `json:"executePrice"` - /** - * Trigger Price - */ - TriggerPrice string `json:"triggerPrice"` - /** - * Entrusting direction - */ - Side string `json:"side"` - /** - * Transaction Type - */ - OrderType string `json:"orderType"` - /** - * Trigger Type Transaction Price Trigger Flag Price Trigger - */ - TriggerType string `json:"triggerType"` - /** - * Client ID - */ - ClientOid string `json:"clientOid"` - /** - * Default stop profit price - */ - PresetTakeProfitPrice string `json:"presetTakeProfitPrice"` - /** - * Preset stop loss price - */ - PresetStopLossPrice string `json:"presetStopLossPrice"` - - ReduceOnly bool `json:"reduceOnly"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/placetpslreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/placetpslreq.go deleted file mode 100644 index 659200f1..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/placetpslreq.go +++ /dev/null @@ -1,29 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -type PlaceTPSLReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Plan type - */ - PlanType string `json:"planType"` - /** - * Trigger price - */ - TriggerPrice string `json:"triggerPrice"` - /** - * Is this position long or short - */ - HoldSide string `json:"holdSide"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/plan/placetrailstopreq.go b/bitget-golang-sdk-api/pkg/model/mix/plan/placetrailstopreq.go deleted file mode 100644 index d57875bd..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/plan/placetrailstopreq.go +++ /dev/null @@ -1,44 +0,0 @@ -package plan - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: modify plan request - */ -type PlaceTrailStopReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Deposit currency - */ - MarginCoin string `json:"marginCoin"` - /** - * Plan type - */ - PlanType string `json:"planType"` - /** - * Trigger price - */ - TriggerPrice string `json:"triggerPrice"` - - /** - * Trigger price - */ - TriggerType string `json:"triggerType"` - /** - * Is this position long or short - */ - Side string `json:"side"` - - Size string `json:"size"` - - RangeRate string `json:"rangeRate"` - - PresetTakeProfitPrice string `json:"presetTakeProfitPrice"` - - PresetStopLossPrice string `json:"presetStopLossPrice"` - - ReduceOnly string `json:"reduceOnly"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/trace/closetrackorderreq.go b/bitget-golang-sdk-api/pkg/model/mix/trace/closetrackorderreq.go deleted file mode 100644 index 2d8c0225..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/trace/closetrackorderreq.go +++ /dev/null @@ -1,17 +0,0 @@ -package trace - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Dealer closing request - */ -type CloseTrackOrderReq struct { - /** - * The tracking order number comes from the trackingNo of the current interface with the order - */ - TrackingNo string `json:"trackingNo"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/trace/tracesetupsymbolreq.go b/bitget-golang-sdk-api/pkg/model/mix/trace/tracesetupsymbolreq.go deleted file mode 100644 index 518edaf6..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/trace/tracesetupsymbolreq.go +++ /dev/null @@ -1,17 +0,0 @@ -package trace - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Dealer closing request - */ -type TraceSetUpSymbolReq struct { - /** - * add/del - */ - Operation string `json:"operation"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} diff --git a/bitget-golang-sdk-api/pkg/model/mix/trace/tradermodifytpslorderreq.go b/bitget-golang-sdk-api/pkg/model/mix/trace/tradermodifytpslorderreq.go deleted file mode 100644 index b85cc0bc..00000000 --- a/bitget-golang-sdk-api/pkg/model/mix/trace/tradermodifytpslorderreq.go +++ /dev/null @@ -1,19 +0,0 @@ -package trace - -type TraderModifyTPSLOrderReq struct { - - /** - * The tracking order number comes from the trackingNo of the current interface with the order - */ - TrackingNo string `json:"trackingNo"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` - - StopProfitPrice string `json:"stopProfitPrice"` - - StopLossPrice string `json:"stopLossPrice"` - - ClientOid string `json:"clientOid"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/account/billsreq.go b/bitget-golang-sdk-api/pkg/model/spot/account/billsreq.go deleted file mode 100644 index 5bd8a007..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/account/billsreq.go +++ /dev/null @@ -1,33 +0,0 @@ -package account - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot bill request - */ -type BillsReq struct { - /** - * Currency ID - */ - CoinId string `json:"coinId"` - /** - * Group Type - */ - GroupType string `json:"groupType"` - /** - * Business Type - */ - BizType string `json:"bizType"` - /** - * Pass in billId to query previous data - */ - After string `json:"after"` - /** - * Pass in billId to check the subsequent data - */ - Before string `json:"before"` - /** - * Default 100, maximum 500 - */ - Limit string `json:"limit"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/batchordersreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/batchordersreq.go deleted file mode 100644 index 317c6706..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/batchordersreq.go +++ /dev/null @@ -1,44 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot batch order request - */ -type BatchOrdersReq struct { - - /** - * order list - */ - OrderList []SpotOrdersReq `json:"orderList"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} -type SpotOrdersReq struct { - /** - * Order direction - */ - Side string `json:"side"` - /** - * Order type - */ - OrderType string `json:"orderType"` - /** - * Order Control Type - */ - Force string `json:"force"` - /** - * Entrusted price, only applicable to price limit order - */ - Price string `json:"price"` - /** - * quantity - */ - Quantity string `json:"quantity"` - /** - * Client order ID - */ - ClientOrderId string `json:"clientOrderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/cancelbatchordersreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/cancelbatchordersreq.go deleted file mode 100644 index 863e6a6e..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/cancelbatchordersreq.go +++ /dev/null @@ -1,18 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Batch cancellation request - */ -type CancelBatchOrdersReq struct { - - /** - * Order ids - */ - OrderIds []string `json:"orderIds"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/cancelorderreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/cancelorderreq.go deleted file mode 100644 index 4e00aa3e..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/cancelorderreq.go +++ /dev/null @@ -1,17 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: cancel the order request - */ -type CancelOrderReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Order Id - */ - OrderId string `json:"orderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/changedepthreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/changedepthreq.go deleted file mode 100644 index 978c1ecf..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/changedepthreq.go +++ /dev/null @@ -1,15 +0,0 @@ -package order - -type ChangeDepthReq struct { - SymbolId string `json:"symbolId"` - BusinessLine string `json:"businessLine"` - SecondBusinessLine string `json:"secondBusinessLine"` - RequestTime string `json:"requestTime"` - CycleId string `json:"cycleId"` - AskTolerateValue string `json:"askTolerateValue"` - AskNegativeTolerateValue string `json:"askNegativeTolerateValue"` - BidTolerateValue string `json:"bidTolerateValue"` - BidNegativeTolerateValue string `json:"bidNegativeTolerateValue"` - Asks string `json:"asks"` - Bids string `json:"bids"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/fillsreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/fillsreq.go deleted file mode 100644 index f22fe8ba..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/fillsreq.go +++ /dev/null @@ -1,29 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Obtain transaction details request - */ -type FillsReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Order Id - */ - OrderId string `json:"orderId"` - /** - * The orderId is passed in. The data before the orderId desc - */ - After string `json:"after"` - /** - * Pass in the data after the orderId asc - */ - Before string `json:"before"` - /** - * Number of returned results Default 100, maximum 500 - */ - Limit string `json:"limit"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/historyreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/historyreq.go deleted file mode 100644 index 93631150..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/historyreq.go +++ /dev/null @@ -1,25 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get historical delegation list request - */ -type HistoryReq struct { - /** - * The orderId is passed in. The data before the orderId desc - */ - After string `json:"after"` - /** - * Pass in the data after the orderId asc - */ - Before string `json:"before"` - /** - * Number of returned results Default 100, maximum 500 - */ - Limit string `json:"limit"` - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/openordersreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/openordersreq.go deleted file mode 100644 index 0f669275..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/openordersreq.go +++ /dev/null @@ -1,14 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Obtain orders that have not been closed or partially closed but not cancelled request - */ -type OpenOrdersReq struct { - - /** - * Currency pair - */ - Symbol string `json:"symbol"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/orderinforeq.go b/bitget-golang-sdk-api/pkg/model/spot/order/orderinforeq.go deleted file mode 100644 index 43cea628..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/orderinforeq.go +++ /dev/null @@ -1,21 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: Get order details request - */ -type OrderInfoReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Order Id - */ - OrderId string `json:"orderId"` - /** - * Client Order Id - */ - ClientOrderId string `json:"clientOrderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/order/ordersreq.go b/bitget-golang-sdk-api/pkg/model/spot/order/ordersreq.go deleted file mode 100644 index 0494ad8d..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/order/ordersreq.go +++ /dev/null @@ -1,37 +0,0 @@ -package order - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: place an order request - */ -type OrdersReq struct { - /** - * Currency pair - */ - Symbol string `json:"symbol"` - /** - * Order direction - */ - Side string `json:"side"` - /** - * Order type - */ - OrderType string `json:"orderType"` - /** - * Order Control Type - */ - Force string `json:"force"` - /** - * Entrusted price, only applicable to price limit order - */ - Price string `json:"price"` - /** - * quantity - */ - Quantity string `json:"quantity"` - /** - * Client order ID - */ - ClientOrderId string `json:"clientOrderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/plan/spotcancelplanreq.go b/bitget-golang-sdk-api/pkg/model/spot/plan/spotcancelplanreq.go deleted file mode 100644 index f45167af..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/plan/spotcancelplanreq.go +++ /dev/null @@ -1,5 +0,0 @@ -package plan - -type SpotCancelPlanReq struct { - OrderId string `json:"orderId"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/plan/spotmodifyplanreq.go b/bitget-golang-sdk-api/pkg/model/spot/plan/spotmodifyplanreq.go deleted file mode 100644 index 5e9517e5..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/plan/spotmodifyplanreq.go +++ /dev/null @@ -1,9 +0,0 @@ -package plan - -type SpotModifyPlanReq struct { - OrderId string `json:"orderId"` - Size string `json:"size"` - ExecutePrice string `json:"executePrice"` - TriggerPrice string `json:"triggerPrice"` - OrderType string `json:"orderType"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/plan/spotplanreq.go b/bitget-golang-sdk-api/pkg/model/spot/plan/spotplanreq.go deleted file mode 100644 index 89a58bcf..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/plan/spotplanreq.go +++ /dev/null @@ -1,14 +0,0 @@ -package plan - -type SpotPlanReq struct { - Symbol string `json:"symbol"` - Size string `json:"size"` - ExecutePrice string `json:"executePrice"` - TriggerPrice string `json:"triggerPrice"` - Side string `json:"side"` - OrderType string `json:"orderType"` - TriggerType string `json:"triggerType"` - TimeInForceValue string `json:"timeInForceValue"` - ClientOid string `json:"clientOid"` - ChannelApiCode string `json:"channelApiCode"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/plan/spotqueryplanreq.go b/bitget-golang-sdk-api/pkg/model/spot/plan/spotqueryplanreq.go deleted file mode 100644 index 3fa4bac8..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/plan/spotqueryplanreq.go +++ /dev/null @@ -1,10 +0,0 @@ -package plan - -type SpotQueryPlanReq struct { - Symbol string `json:"symbol"` - StartTime string `json:"startTime"` - EndTime string `json:"endTime"` - PageSize string `json:"pageSize"` - LastEndId string `json:"lastEndId"` - IsPre string `json:"isPre"` -} diff --git a/bitget-golang-sdk-api/pkg/model/spot/wallet/withdrawal.go b/bitget-golang-sdk-api/pkg/model/spot/wallet/withdrawal.go deleted file mode 100644 index 752bd770..00000000 --- a/bitget-golang-sdk-api/pkg/model/spot/wallet/withdrawal.go +++ /dev/null @@ -1,37 +0,0 @@ -package wallet - -/** - * @Author: bitget-sdk-team - * @Date: 2022-09-30 10:46 - * @DES: spot withdrawal request - */ -type WithdrawalReq struct { - /** - * coin - */ - Coin string `json:"coin"` - /** - * address - */ - Address string `json:"address"` - /** - * chain - */ - Chain string `json:"chain"` - /** - * tag - */ - Tag string `json:"tag"` - /** - * amount - */ - Amount string `json:"amount"` - /** - * remark - */ - Remark string `json:"remark"` - /** - * clientOid - */ - ClientOid string `json:"clientOid"` -} diff --git a/bitget-golang-sdk-api/pkg/test/apiclient_test.go b/bitget-golang-sdk-api/pkg/test/apiclient_test.go new file mode 100644 index 00000000..ecec5e75 --- /dev/null +++ b/bitget-golang-sdk-api/pkg/test/apiclient_test.go @@ -0,0 +1,72 @@ +package test + +import ( + "bitget/internal" + "bitget/pkg/client" + "bitget/pkg/client/v1" + "fmt" + "testing" +) + +func Test_PlaceOrder(t *testing.T) { + client := new(v1.MixOrderClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.PlaceOrder(params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_post(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.Post("/api/mix/v1/order/placeOrder", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["productType"] = "umcbl" + + resp, err := client.Get("/api/mix/v1/account/accounts", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get_with_params(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + + resp, err := client.Get("/api/spot/v1/account/getInfo", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} diff --git a/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient_test.go b/bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go similarity index 77% rename from bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient_test.go rename to bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go index 86d40876..ebb2b03c 100644 --- a/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient_test.go +++ b/bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go @@ -1,17 +1,18 @@ -package ws +package test import ( "bitget/internal/model" + "bitget/pkg/client/ws" "fmt" "testing" ) func TestBitgetWsClient_New(t *testing.T) { - client := new(BitgetWsClient).Init(false, func(message string) { - fmt.Println("success:" + message) + client := new(ws.BitgetWsClient).Init(true, func(message string) { + fmt.Println("default error:" + message) }, func(message string) { - fmt.Println("error:" + message) + fmt.Println("default error:" + message) }) var channelsDef []model.SubscribeReq diff --git a/bitget-node-sdk-api/README_EN.md b/bitget-node-sdk-api/README_EN.md new file mode 100644 index 00000000..7b7e9d88 --- /dev/null +++ b/bitget-node-sdk-api/README_EN.md @@ -0,0 +1,81 @@ +# Instructions for use + +## Install + +```bash +npm i bitget-api-node-sdk +``` + +## Run + +```bash +git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git +cd v3-bitget-api-sdk/bitget-node-sdk-api +npm run install +npm run build +``` + +## Test + +| File name | Description | +| :-----------------------------: | :------------- -----: | +| \_\_test\_\_/api.spec.ts | Spot/contract related test cases | +| \_\_test\_\_/websocketTest.spec.ts | Message push related test cases | + + +##Example + +```javascript +const bitgetApi = require('bitget-openapi'); +const { test, describe, expect } = require('@jest/globals') +const Console = require('console') + +const apiKey = ''; +const secretKey = ''; +const passphrase = ''; +describe('test order', () => { + test('order', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return mixOrderApi.placeOrder(qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) +}) +``` + +## websocket example + +```javascript +var bitgetApi = require("bitget-openapi") +var Console = require("console") + +const apiKey = ''; +const secretKey = ''; +const passphrase = ''; +//Implementation class for processing messages +class ListennerObj extends bitgetApi.Listenner{ + reveice(message){ + Console.info('>>>>'+message); + } +} + +const listenner = new ListennerObj(); +const bitgetWsClient = new bitgetApi.BitgetWsClient(listenner,apiKey,secretKey,passphrase); +const subArr = new Array(); + +const subscribeOne = new bitgetApi.SubscribeReq('mc','ticker','BTCUSD'); +const subscribeTow = new bitgetApi.SubscribeReq('SP','candle1W','BTCUSDT'); + +subArr.push(subscribeOne); +subArr.push(subscribeTow); + +bitgetWsClient.subscribe(subArr) +``` \ No newline at end of file From d2db1562b01c8cbbfcb9187f108d7390c5958089 Mon Sep 17 00:00:00 2001 From: jidening Date: Thu, 19 Oct 2023 14:20:41 +0800 Subject: [PATCH 07/25] readme --- bitget-golang-sdk-api/README.md | 166 ++++++++++++++++++++++++++++ bitget-java-sdk-api/README.md | 164 +++++++++++++++++++++------ bitget-java-sdk-api/README_EN.md | 183 ++++++++++++++++++++++--------- 3 files changed, 427 insertions(+), 86 deletions(-) create mode 100644 bitget-golang-sdk-api/README.md diff --git a/bitget-golang-sdk-api/README.md b/bitget-golang-sdk-api/README.md new file mode 100644 index 00000000..db8fc4c0 --- /dev/null +++ b/bitget-golang-sdk-api/README.md @@ -0,0 +1,166 @@ +# Bitget Go + +使用此sdk前请阅读api文档 [Bitget API](https://bitgetlimited.github.io/apidoc/en/mix/) + +## Supported API Endpoints: +- pkg/v1: `*client.go` +- pkg/v2: `*client.go` +- pkg/ws: `bitgetwsclient.go` + + +## 下载 +```shell +git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git +``` + +## REST API + +Create an order example + +```go +package test + +import ( + "bitget/internal" + "bitget/pkg/client" + "bitget/pkg/client/v1" + "fmt" + "testing" +) + +func Test_PlaceOrder(t *testing.T) { + client := new(v1.MixOrderClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.PlaceOrder(params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} +``` + +Please find more examples for each supported endpoint in the `test` folder. + +## Websocket Stream + + +```go +package test + +import ( + "bitget/internal/model" + "bitget/pkg/client/ws" + "fmt" + "testing" +) + +func TestBitgetWsClient_New(t *testing.T) { + + client := new(ws.BitgetWsClient).Init(true, func(message string) { + fmt.Println("default error:" + message) + }, func(message string) { + fmt.Println("default error:" + message) + }) + + var channelsDef []model.SubscribeReq + subReqDef1 := model.SubscribeReq{ + InstType: "UMCBL", + Channel: "account", + InstId: "default", + } + channelsDef = append(channelsDef, subReqDef1) + client.SubscribeDef(channelsDef) + + var channels []model.SubscribeReq + subReq1 := model.SubscribeReq{ + InstType: "UMCBL", + Channel: "account", + InstId: "default", + } + channels = append(channels, subReq1) + client.Subscribe(channels, func(message string) { + fmt.Println("appoint:" + message) + }) + client.Connect() + +} + +``` + +Combined Diff. Depth Stream Example + +```go +package main + +import ( + "fmt" + "time" + + binance_connector "github.com/binance/binance-connector-go" +) + +func main() { + // Set isCombined parameter to true as we are using Combined Depth Stream + websocketStreamClient := binance_connector.NewWebsocketStreamClient(true) + + wsCombinedDepthHandler := func(event *binance_connector.WsDepthEvent) { + fmt.Println(binance_connector.PrettyPrint(event)) + } + errHandler := func(err error) { + fmt.Println(err) + } + // Use WsCombinedDepthServe to subscribe to multiple streams + doneCh, stopCh, err := websocketStreamClient.WsCombinedDepthServe([]string{"LTCBTC", "BTCUSDT", "MATICUSDT"}, wsCombinedDepthHandler, errHandler) + if err != nil { + fmt.Println(err) + return + } + go func() { + time.Sleep(5 * time.Second) + stopCh <- struct{}{} + }() + <-doneCh +} +``` + +## Websocket API + +```go +func OCOHistoryExample() { + // Initialise Websocket API Client + client := binance_connector.NewWebsocketAPIClient("api_key", "secret_key") + // Connect to Websocket API + err := client.Connect() + if err != nil { + log.Printf("Error: %v", err) + return + } + defer client.Close() + + // Send request to Websocket API + response, err := client.NewAccountOCOHistoryService().Do(context.Background()) + if err != nil { + log.Printf("Error: %v", err) + return + } + + // Print the response + fmt.Println(binance_connector.PrettyPrint(response)) + + client.WaitForCloseSignal() +} +``` + +## 域名 +- Binance provides alternative Production URLs in case of performance issues: + - https://api.bitget.com + diff --git a/bitget-java-sdk-api/README.md b/bitget-java-sdk-api/README.md index dd53dfc9..fa5e2142 100755 --- a/bitget-java-sdk-api/README.md +++ b/bitget-java-sdk-api/README.md @@ -1,56 +1,152 @@ # bitget-java-sdk-api A Java sdk for bitget exchange API -# api sdk 使用说明 -1. 请自行下载源代码,并在JDK8环境下运行以下命令: -```shell -#jdk8 -cd v3-bitget-api-sdk/bitget-java-sdk-api -mvn clean install -``` -将打包后的代码导入项目中使用 - +- Supported APIs: + - /api/spot/v1/* + - /api/mix/v1/* + - Supports custom expansion of any URL +# Installation +- git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git +- mvn clean +- mvn install +- add sdk dependency to your project +```xml + + com.bitget.openapi + bitget-java-sdk-api + ${you install version} + +``` -2. 创建 BitgetRestClient +# SDK Run Example +Before running the examples, set up your apiKey、 secretKey and passphrase.
+This configuration file is only used for examples.
+## Add Config ```java +@Configuration +@EnableAsync +public class SdkConfig { - /** - * 用户 apiKey,需用户填写,在 https://www.bitget.com 中创建apikey - */ - String apiKey = ""; - /** - * 用户 secretKey,需用户填写,在 https://www.bitget.com/user api 中获取 - */ - String secretKey = ""; - /** - * 口令,需用户填写,在 https://www.bitget.com/user api 中获取(创建时由用户设定) - */ - String passphrase = ""; - /** - * open api 根路径 - */ - String baseUrl = "http://127.0.0.1:8081/api/swap/v3/"; + private final String apiKey = "your apiKey"; + private final String secretKey = "your secretKey"; + private final String passphrase = "your passphrase"; + private final String baseUrl = "https://api.bitget.com"; + @Bean + public BitgetRestClient bitgetRestClient() throws Exception { ClientParameter parameter = ClientParameter.builder() .apiKey(apiKey) .secretKey(secretKey) .passphrase(passphrase) .baseUrl(baseUrl) - .build(); + .locale(SupportedLocaleEnum.ZH_CN.getName()).build(); + return BitgetRestClient.builder().configuration(parameter).build(); + } +} +``` - bitgetRestClient bitgetClient = bitgetRestClient.builder() - .configuration(parameter) - .build(); +## Add dependencies +```java +@Resource +private BitgetRestClient bitgetRestClient; +``` +## Demo 1: place order +```java +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("marginCoin", "USDT"); +paramMap.put("side", "open_long"); +paramMap.put("orderType", "limit"); +paramMap.put("price", "27012.1"); +paramMap.put("size", "0.01"); +paramMap.put("timInForceValue", "normal"); +ResponseResult result = bitgetRestClient.bitget().v1().mixOrder().placeOrder(paramMap); +System.out.println(JSON.toJSONString(result)); ``` -3. 接口调用 -- 创建 bitgetClient 后便可以调用服务接口,以获取币对信息为例 + +## Demo 2: send post request directly If the interface is not defined in the sdk +```java +Map paramMap = Maps.newHashMap(); +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("marginCoin", "USDT"); +paramMap.put("side", "open_long"); +paramMap.put("orderType", "limit"); +paramMap.put("price", "27012.1"); +paramMap.put("size", "0.01"); +paramMap.put("timInForceValue", "normal"); +ResponseResult result = bitgetRestClient.bitget().v1().request().post("/api/mix/v1/order/placeOrder", paramMap); +System.out.println(JSON.toJSONString(result)); +``` + +## Demo 3: send get request directly If the interface is not defined in the sdk ```java +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("startTime", "1695632659703"); +paramMap.put("endTime", "1695635659703"); +ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/order/history", paramMap); +System.out.println(JSON.toJSONString(result)); +``` + +## Other things to note + +## Base URL +It's recommended to pass in the `baseUrl` parameter.
+If not provided, the default baseUrl is `https://api.bitget.com`
-ServerTime serverTime = this.bitgetClient.contract().market().getTime() +## Optional parameters + +All parameters are read from a `HashMap` object where `String` is the name of the parameter and `String` is the value of the parameter. +The parameters should follow their exact naming as in the API documentation.
+```java +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol","BTCUSDT_UMCBL"); +paramMap.put("marginCoin","USDT"); +paramMap.put("side","open_long"); +paramMap.put("orderType","limit"); +paramMap.put("price","27012.1"); +paramMap.put("size","0.01"); +paramMap.put("timInForceValue","normal"); ``` -- 其他接口调用参照测试用例,另外由于bitget-java-sdk-api使用了lombok,请在编译器中安装lombok插件 + + +# Websocket Run Example + +## Demo 1: +```java +public class BitgetWsClientTest { + public static final String PUSH_URL = "wss://ws.bitget.com/spot/v1/stream"; // or wss://ws.bitget.com/mix/v1/stream + public static final String API_KEY = ""; + public static final String SECRET_KEY = ""; + public static final String PASS_PHRASE = ""; + + public static void main(String[] args) { + BitgetWsClient client = BitgetWsHandle.builder() + .pushUrl(PUSH_URL) + .apiKey(API_KEY) + .secretKey(SECRET_KEY) + .passPhrase(PASS_PHRASE) + .isLogin(true) + //默认监听处理,如订阅时指定监听,默认不再接收该channel订阅信息 + .listener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("def:" + json); + //失败消息的逻辑处理,如:订阅失败 + }).errorListener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("error:" + json); + }).build(); + + List list = new ArrayList() {{ + add(SubscribeReq.builder().instType("SP").channel("candle1W").instId("BTCUSDT").build()); + }}; + client.subscribe(list); + } +} +``` \ No newline at end of file diff --git a/bitget-java-sdk-api/README_EN.md b/bitget-java-sdk-api/README_EN.md index 0563645c..fa5e2142 100755 --- a/bitget-java-sdk-api/README_EN.md +++ b/bitget-java-sdk-api/README_EN.md @@ -1,73 +1,152 @@ # bitget-java-sdk-api - A Java sdk for bitget exchange API -

-中文 -

- -## api sdk Instructions +- Supported APIs: + - /api/spot/v1/* + - /api/mix/v1/* + - Supports custom expansion of any URL + +# Installation +- git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git +- mvn clean +- mvn install +- add sdk dependency to your project +```xml + + com.bitget.openapi + bitget-java-sdk-api + ${you install version} + +``` -1. Download the java project, then run below command with JDK8 +# SDK Run Example -```shell -#jdk8 -cd v3-bitget-api-sdk/bitget-java-sdk-api -mvn clean install +Before running the examples, set up your apiKey、 secretKey and passphrase.
+This configuration file is only used for examples.
+## Add Config +```java +@Configuration +@EnableAsync +public class SdkConfig { + + private final String apiKey = "your apiKey"; + private final String secretKey = "your secretKey"; + private final String passphrase = "your passphrase"; + private final String baseUrl = "https://api.bitget.com"; + + @Bean + public BitgetRestClient bitgetRestClient() throws Exception { + ClientParameter parameter = ClientParameter.builder() + .apiKey(apiKey) + .secretKey(secretKey) + .passphrase(passphrase) + .baseUrl(baseUrl) + .locale(SupportedLocaleEnum.ZH_CN.getName()).build(); + return BitgetRestClient.builder().configuration(parameter).build(); + } +} ``` -Import the output jar into your project - +## Add dependencies +```java +@Resource +private BitgetRestClient bitgetRestClient; +``` +## Demo 1: place order +```java +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("marginCoin", "USDT"); +paramMap.put("side", "open_long"); +paramMap.put("orderType", "limit"); +paramMap.put("price", "27012.1"); +paramMap.put("size", "0.01"); +paramMap.put("timInForceValue", "normal"); +ResponseResult result = bitgetRestClient.bitget().v1().mixOrder().placeOrder(paramMap); +System.out.println(JSON.toJSONString(result)); +``` -2. Create BitgetRestClient +## Demo 2: send post request directly If the interface is not defined in the sdk +```java +Map paramMap = Maps.newHashMap(); +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("marginCoin", "USDT"); +paramMap.put("side", "open_long"); +paramMap.put("orderType", "limit"); +paramMap.put("price", "27012.1"); +paramMap.put("size", "0.01"); +paramMap.put("timInForceValue", "normal"); +ResponseResult result = bitgetRestClient.bitget().v1().request().post("/api/mix/v1/order/placeOrder", paramMap); +System.out.println(JSON.toJSONString(result)); +``` +## Demo 3: send get request directly If the interface is not defined in the sdk ```java -  /** -     * User apiKey, which needs to be filled in by the user, -     * create apikey in https://www.bitget.com -     */ -    String apiKey = ""; - -    /** -     * User secretKey, which needs to be filled in by the user, -     * and can be obtained from https://www.bitget.com/user api part -     */ -    String secretKey = ""; - -    /** -     * Passwphrase, which needs to be filled in by the user, obtained from - * https://www.bitget.com/user api part(set by the user when created) -     */ -    String passphrase = ""; - -    /** -     * open api Root path -     */ -    String baseUrl = "http://127.0.0.1:8081/api/swap/v3/"; - -    ClientParameter parameter = ClientParameter.builder() -            .apiKey(apiKey) -            .secretKey(secretKey) -            .passphrase(passphrase) -            .baseUrl(baseUrl) -            .build(); - -    bitgetRestClient bitgetClient = bitgetRestClient.builder() -                .configuration(parameter) -                .build(); +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol", "BTCUSDT_UMCBL"); +paramMap.put("startTime", "1695632659703"); +paramMap.put("endTime", "1695635659703"); +ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/order/history", paramMap); +System.out.println(JSON.toJSONString(result)); ``` +## Other things to note +## Base URL +It's recommended to pass in the `baseUrl` parameter.
+If not provided, the default baseUrl is `https://api.bitget.com`
-3. Interface call -- After creating bitgetClient, you can call the service interface to obtain trading pair information as an example +## Optional parameters +All parameters are read from a `HashMap` object where `String` is the name of the parameter and `String` is the value of the parameter. +The parameters should follow their exact naming as in the API documentation.
```java -ServerTime serverTime = this.bitgetClient.contract().market().getTime() +Map paramMap = Maps.newHashMap(); +paramMap.put("symbol","BTCUSDT_UMCBL"); +paramMap.put("marginCoin","USDT"); +paramMap.put("side","open_long"); +paramMap.put("orderType","limit"); +paramMap.put("price","27012.1"); +paramMap.put("size","0.01"); +paramMap.put("timInForceValue","normal"); ``` -- Refer to the test case for other interface calls. In addition, because bitget-java-sdk-api uses lombok, please install the lombok plug-in in the compiler -  + +# Websocket Run Example + +## Demo 1: +```java +public class BitgetWsClientTest { + public static final String PUSH_URL = "wss://ws.bitget.com/spot/v1/stream"; // or wss://ws.bitget.com/mix/v1/stream + public static final String API_KEY = ""; + public static final String SECRET_KEY = ""; + public static final String PASS_PHRASE = ""; + + public static void main(String[] args) { + BitgetWsClient client = BitgetWsHandle.builder() + .pushUrl(PUSH_URL) + .apiKey(API_KEY) + .secretKey(SECRET_KEY) + .passPhrase(PASS_PHRASE) + .isLogin(true) + //默认监听处理,如订阅时指定监听,默认不再接收该channel订阅信息 + .listener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("def:" + json); + //失败消息的逻辑处理,如:订阅失败 + }).errorListener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("error:" + json); + }).build(); + + List list = new ArrayList() {{ + add(SubscribeReq.builder().instType("SP").channel("candle1W").instId("BTCUSDT").build()); + }}; + client.subscribe(list); + } +} +``` \ No newline at end of file From ec5445efb8ce14621372e0f9b4cac233e0c92a6e Mon Sep 17 00:00:00 2001 From: jidening Date: Thu, 19 Oct 2023 14:26:53 +0800 Subject: [PATCH 08/25] php sdk --- bitget-php-sdk-api/src/api/BitgetApi.php | 27 ++ .../src/api/broker/BrokerAccountApi.php | 140 ----------- .../src/api/broker/BrokerManageApi.php | 55 ----- .../src/api/fiat/FiatMarketApi.php | 26 -- .../src/api/mix/MixAccountApi.php | 94 ------- .../src/api/mix/MixMarketApi.php | 147 ----------- .../src/api/mix/MixOrderApi.php | 109 --------- bitget-php-sdk-api/src/api/mix/MixPlanApi.php | 106 -------- .../src/api/mix/MixPositionApi.php | 42 ---- .../src/api/mix/MixTraceApi.php | 170 ------------- .../src/api/spot/SpotAccountApi.php | 53 ---- .../src/api/spot/SpotMarketApi.php | 75 ------ .../src/api/spot/SpotOrderApi.php | 72 ------ .../src/api/spot/SpotPlanApi.php | 49 ---- .../src/api/spot/SpotPublicApi.php | 58 ----- .../src/api/spot/SpotWalletApi.php | 29 --- .../src/api/v1/MixAccountApi.php | 59 +++++ .../src/api/v1/MixMarketApi.php | 47 ++++ bitget-php-sdk-api/src/api/v1/MixOrderApi.php | 93 +++++++ .../src/api/v1/SpotAccountApi.php | 38 +++ .../src/api/v1/SpotMarketApi.php | 57 +++++ .../src/api/v1/SpotOrderApi.php | 93 +++++++ .../src/api/v1/SpotWalletApi.php | 43 ++++ .../src/api/v2/MixAccountApi.php | 59 +++++ .../src/api/v2/MixMarketApi.php | 47 ++++ bitget-php-sdk-api/src/api/v2/MixOrderApi.php | 108 ++++++++ .../src/api/v2/SpotAccountApi.php | 38 +++ .../src/api/v2/SpotMarketApi.php | 47 ++++ .../src/api/v2/SpotOrderApi.php | 93 +++++++ .../src/api/v2/SpotWalletApi.php | 43 ++++ .../src/internal/BitgetMixClient.php | 43 ---- .../src/internal/BitgetMixV1Client.php | 28 +++ .../src/internal/BitgetMixV2Client.php | 28 +++ .../src/internal/BitgetRestClient.php | 30 ++- .../src/internal/BitgetSpotClient.php | 36 --- .../src/internal/BitgetSpotV1Client.php | 34 +++ .../src/internal/BitgetSpotV2Client.php | 34 +++ .../src/internal/BitgetWsClient.php | 2 - .../src/internal/BitgetWsHandle.php | 68 +----- bitget-php-sdk-api/src/internal/Listener.php | 1 - bitget-php-sdk-api/src/internal/Utils.php | 1 - .../model/broker/BrokerCreateSubApiReq.php | 22 -- .../src/model/broker/BrokerCreateSubReq.php | 16 -- .../src/model/broker/BrokerModifyEmailReq.php | 18 -- .../model/broker/BrokerModifySubApiReq.php | 22 -- .../src/model/broker/BrokerModifySubReq.php | 19 -- .../broker/BrokerSubDepositAddressReq.php | 20 -- .../src/model/broker/BrokerSubTransferReq.php | 19 -- .../src/model/broker/BrokerSubWithdrawReq.php | 29 --- .../src/model/mix/account/OpenCountReq.php | 112 --------- .../src/model/mix/account/SetLeverageReq.php | 93 ------- .../model/mix/account/SetMarginModeReq.php | 71 ------ .../src/model/mix/account/SetMarginReq.php | 92 ------- .../model/mix/account/SetPositionModeReq.php | 73 ------ .../src/model/mix/order/BatchOrdersReq.php | 71 ------ .../model/mix/order/CancelBatchOrderReq.php | 71 ------ .../src/model/mix/order/CancelOrderReq.php | 70 ------ .../model/mix/order/PlaceOrderBaseParam.php | 129 ---------- .../src/model/mix/order/PlaceOrderReq.php | 213 ---------------- .../src/model/mix/plan/CancelPlanReq.php | 92 ------- .../model/mix/plan/ModifyPlanPresetReq.php | 130 ---------- .../src/model/mix/plan/ModifyPlanReq.php | 151 ------------ .../src/model/mix/plan/ModifyTPSLPlanReq.php | 109 --------- .../src/model/mix/plan/PlacePlanReq.php | 231 ------------------ .../src/model/mix/plan/PlaceTPSLReq.php | 111 --------- .../src/model/mix/plan/SpotCancelPlanReq.php | 21 -- .../src/model/mix/plan/SpotModifyPlanReq.php | 69 ------ .../src/model/mix/plan/SpotPlanReq.php | 129 ---------- .../src/model/mix/plan/SpotQueryPlanReq.php | 81 ------ .../model/mix/trace/CloseTrackOrderReq.php | 51 ---- .../mix/trace/MixTraceModifyTPSLOrderReq.php | 51 ---- .../trace/MixTraceSetCopyTradeSymbolReq.php | 51 ---- .../src/model/spot/account/BillsReq.php | 136 ----------- .../src/model/spot/order/BatchOrdersReq.php | 53 ---- .../model/spot/order/CancelBatchOrderReq.php | 52 ---- .../src/model/spot/order/CancelOrderReq.php | 52 ---- .../src/model/spot/order/FillsReq.php | 111 --------- .../src/model/spot/order/HistoryReq.php | 91 ------- .../src/model/spot/order/OpenOrdersReq.php | 31 --- .../src/model/spot/order/OrderInfoReq.php | 71 ------ .../src/model/spot/order/OrdersReq.php | 156 ------------ .../src/model/spot/order/SpotOrdersReq.php | 136 ----------- .../src/model/spot/wallet/WithdrawalReq.php | 157 ------------ bitget-php-sdk-api/src/model/ws/Websocket.php | 159 ++++++++++++ bitget-php-sdk-api/test/api/MixOrderTest.php | 59 +++++ .../test/mix/MixAccountTest.php | 87 ------- bitget-php-sdk-api/test/mix/MixMarketTest.php | 70 ------ bitget-php-sdk-api/test/mix/MixOrderTest.php | 114 --------- bitget-php-sdk-api/test/mix/MixPlanTest.php | 115 --------- .../test/mix/MixPositionTest.php | 35 --- bitget-php-sdk-api/test/mix/MixTraceTest.php | 98 -------- .../test/spot/SpotAccountTest.php | 45 ---- .../test/spot/SpotMarketTest.php | 46 ---- .../test/spot/SpotOrderTest.php | 123 ---------- bitget-php-sdk-api/test/spot/SpotPlanTest.php | 74 ------ .../test/spot/SpotPublicTest.php | 41 ---- 96 files changed, 1271 insertions(+), 5700 deletions(-) create mode 100644 bitget-php-sdk-api/src/api/BitgetApi.php delete mode 100644 bitget-php-sdk-api/src/api/broker/BrokerAccountApi.php delete mode 100644 bitget-php-sdk-api/src/api/broker/BrokerManageApi.php delete mode 100644 bitget-php-sdk-api/src/api/fiat/FiatMarketApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixAccountApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixMarketApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixOrderApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixPlanApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixPositionApi.php delete mode 100644 bitget-php-sdk-api/src/api/mix/MixTraceApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotAccountApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotMarketApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotOrderApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotPlanApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotPublicApi.php delete mode 100644 bitget-php-sdk-api/src/api/spot/SpotWalletApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/MixAccountApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/MixMarketApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/MixOrderApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/SpotAccountApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/SpotMarketApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/SpotOrderApi.php create mode 100644 bitget-php-sdk-api/src/api/v1/SpotWalletApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/MixAccountApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/MixMarketApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/MixOrderApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/SpotAccountApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/SpotMarketApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/SpotOrderApi.php create mode 100644 bitget-php-sdk-api/src/api/v2/SpotWalletApi.php delete mode 100644 bitget-php-sdk-api/src/internal/BitgetMixClient.php create mode 100644 bitget-php-sdk-api/src/internal/BitgetMixV1Client.php create mode 100644 bitget-php-sdk-api/src/internal/BitgetMixV2Client.php delete mode 100644 bitget-php-sdk-api/src/internal/BitgetSpotClient.php create mode 100644 bitget-php-sdk-api/src/internal/BitgetSpotV1Client.php create mode 100644 bitget-php-sdk-api/src/internal/BitgetSpotV2Client.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerCreateSubApiReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerCreateSubReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerModifyEmailReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerModifySubApiReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerModifySubReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerSubDepositAddressReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerSubTransferReq.php delete mode 100644 bitget-php-sdk-api/src/model/broker/BrokerSubWithdrawReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/account/OpenCountReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/account/SetLeverageReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/account/SetMarginModeReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/account/SetMarginReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/account/SetPositionModeReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/order/BatchOrdersReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/order/CancelBatchOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/order/CancelOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/order/PlaceOrderBaseParam.php delete mode 100644 bitget-php-sdk-api/src/model/mix/order/PlaceOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/CancelPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/ModifyPlanPresetReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/ModifyPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/ModifyTPSLPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/PlacePlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/PlaceTPSLReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/SpotCancelPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/SpotModifyPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/SpotPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/plan/SpotQueryPlanReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/trace/CloseTrackOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/trace/MixTraceModifyTPSLOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/mix/trace/MixTraceSetCopyTradeSymbolReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/account/BillsReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/BatchOrdersReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/CancelBatchOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/CancelOrderReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/FillsReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/HistoryReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/OpenOrdersReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/OrderInfoReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/OrdersReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/order/SpotOrdersReq.php delete mode 100644 bitget-php-sdk-api/src/model/spot/wallet/WithdrawalReq.php create mode 100644 bitget-php-sdk-api/src/model/ws/Websocket.php create mode 100644 bitget-php-sdk-api/test/api/MixOrderTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixAccountTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixMarketTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixOrderTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixPlanTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixPositionTest.php delete mode 100644 bitget-php-sdk-api/test/mix/MixTraceTest.php delete mode 100644 bitget-php-sdk-api/test/spot/SpotAccountTest.php delete mode 100644 bitget-php-sdk-api/test/spot/SpotMarketTest.php delete mode 100644 bitget-php-sdk-api/test/spot/SpotOrderTest.php delete mode 100644 bitget-php-sdk-api/test/spot/SpotPlanTest.php delete mode 100644 bitget-php-sdk-api/test/spot/SpotPublicTest.php diff --git a/bitget-php-sdk-api/src/api/BitgetApi.php b/bitget-php-sdk-api/src/api/BitgetApi.php new file mode 100644 index 00000000..b0b2faf6 --- /dev/null +++ b/bitget-php-sdk-api/src/api/BitgetApi.php @@ -0,0 +1,27 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function get($url, $params): string + { + return $this->BitgetApiClient->doGet($url, $params); + } + + public function post($url, $params): string + { + return $this->BitgetApiClient->doPost($url, $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/broker/BrokerAccountApi.php b/bitget-php-sdk-api/src/api/broker/BrokerAccountApi.php deleted file mode 100644 index 8376f56c..00000000 --- a/bitget-php-sdk-api/src/api/broker/BrokerAccountApi.php +++ /dev/null @@ -1,140 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - - /** - * Get broker account information - * @return string - */ - public function account(): string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/info"); - } - - - /** - * broker create sub - * @param $brokerCreateSubReq - * @return string - */ - public function createSub(BrokerCreateSubReq $brokerCreateSubReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-create", $brokerCreateSubReq); - } - - - /** - * Get sub list - * @param $symbol - * @param $marginCoin - * @return string - */ - public function getSubList(string $pageSize, string $lastEndId, string $status): string - { - $params = array("pageSize" => $pageSize, "lastEndId" => $lastEndId, "status"=>$status); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/sub-list", $params); - } - - /** - * broker modify sub - * @param $brokerModifySubReq - * @return string - */ - public function subModify(BrokerModifySubReq $brokerModifySubReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-modify", $brokerModifySubReq); - } - - /** - * broker modify sub - * @param $brokerModifyEmailReq - * @return string - */ - public function subModifyEmail(BrokerModifyEmailReq $brokerModifyEmailReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-modify-email", $brokerModifyEmailReq); - } - - /** - * Get sub email - * @return string - */ - public function getSubEmail(string $subUid): string - { - $params = array("subUid" => $subUid); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/sub-email", $params); - } - - - /** - * Get sub spot assets list - * @return string - */ - public function getSubSpotAssets(string $subUid): string - { - $params = array("subUid" => $subUid); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/sub-spot-assets", $params); - } - - /** - * Get sub future assets list - * @return string - */ - public function getSubFutureAssets(string $subUid): string - { - $params = array("subUid" => $subUid); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/sub-future-assets", $params); - } - - - /** - * broker get sub deposit address - * @param $brokerModifyEmailReq - * @return string - */ - public function subDepositAddress(BrokerSubDepositAddressReq $brokerSubDepositAddressReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-address", $brokerSubDepositAddressReq); - } - - /** - * broker sub withdraw - * @param $brokerModifyEmailReq - * @return string - */ - public function subWithdraw(BrokerSubWithdrawReq $brokerSubWithdrawReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-withdrawal", $brokerSubWithdrawReq); - } - - /** - * broker auto transfer - * @param $brokerModifyEmailReq - * @return string - */ - public function subAutoTransfer(BrokerSubTransferReq $brokerSubTransferReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-auto-transfer", $brokerSubTransferReq); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/broker/BrokerManageApi.php b/bitget-php-sdk-api/src/api/broker/BrokerManageApi.php deleted file mode 100644 index c6bc502f..00000000 --- a/bitget-php-sdk-api/src/api/broker/BrokerManageApi.php +++ /dev/null @@ -1,55 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - - - /** - * broker create sub apikey - * @param $brokerCreateSubReq - * @return string - */ - public function createSubApi(BrokerCreateSubApiReq $brokerCreateSubApiReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-api-create", $brokerCreateSubApiReq); - } - - /** - * Get sub apikey list - * @return string - */ - public function getSubApiKeyList(string $subUid): string - { - $params = array("subUid" => $subUid); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/sub-api-list", $params); - } - - /** - * broker modify sub apikey - * @param $brokerModifySubApiReq - * @return string - */ - public function modifySubApi(BrokerModifySubApiReq $brokerModifySubApiReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/sub-api-create", $brokerModifySubApiReq); - } - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/fiat/FiatMarketApi.php b/bitget-php-sdk-api/src/api/fiat/FiatMarketApi.php deleted file mode 100644 index 6f4a01fc..00000000 --- a/bitget-php-sdk-api/src/api/fiat/FiatMarketApi.php +++ /dev/null @@ -1,26 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - public function fiatCurrencyRate(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/exchange-rate", $params); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixAccountApi.php b/bitget-php-sdk-api/src/api/mix/MixAccountApi.php deleted file mode 100644 index 8fdd0af4..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixAccountApi.php +++ /dev/null @@ -1,94 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - /** - * Get account information - * @param $symbol - * @param $marginCoin - * @return string - */ - public function account(string $symbol, string $marginCoin): string - { - $params = array("symbol" => $symbol, "marginCoin" => $marginCoin); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/account", $params); - } - /** - * Get account information list - * @param $productType - * @return string - */ - public function accounts(string $productType): string - { - $params = array("productType" => $productType); - - return $this->BitgetApiClient->doGet(self::BASE_URL . "/accounts", $params); - } - /** - * set lever - * @param $setLeverageReq - * @return string - */ - public function setLeverage(SetLeverageReq $setLeverageReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/setLeverage", $setLeverageReq); - } - /** - * Adjustment margin - * @param $setMarginReq - * @return string - */ - public function setMargin(SetMarginReq $setMarginReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/setMargin", $setMarginReq); - } - /** - * Adjust margin mode - * @param $setMarginModeReq - * @return string - */ - public function setMarginMode(SetMarginModeReq $setMarginModeReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/setMarginMode", $setMarginModeReq); - } - /** - * Adjust hold mode - * @param $setPositionModeReq - * @return string - */ - public function setPositionMode(SetPositionModeReq $setPositionModeReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/setPositionMode", $setPositionModeReq); - } - /** - * Get the openable quantity - * @param $openCountReq - * @return string - */ - public function openCount(OpenCountReq $openCountReq) - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/open-count", $openCountReq); - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixMarketApi.php b/bitget-php-sdk-api/src/api/mix/MixMarketApi.php deleted file mode 100644 index f8621534..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixMarketApi.php +++ /dev/null @@ -1,147 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Contract information - * @param $productType - * @return string - */ - public function contracts(string $productType): string - { - $params = array("productType" => $productType); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/contracts", $params); - } - /** - * Deep market - * @param $symbol - * @param $limit - * @return string - */ - public function depth(string $symbol, string $limit): string - { - $params = array("symbol" => $symbol, "limit" => $limit); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/depth", $params); - } - /** - * Deep market - * @param $symbol - * @return string - */ - public function ticker(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/ticker", $params); - } - /** - * Acquisition of single ticker market - * @param $productType - * @return string - */ - public function tickers(string $productType): string - { - $params = array("productType" => $productType); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/tickers", $params); - } - /** - * Obtain transaction details - * @param $symbol - * @param $limit - * @return string - */ - public function fills(string $symbol, string $limit): string - { - $params = array("symbol" => $symbol, "limit" => $limit); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/fills", $params); - } - /** - * Obtain K line data - * @param $symbol - * @param $granularity (Category of k line) - * @param $startTime - * @param $endTime - * @return string - */ - public function candles(string $symbol, string $granularity, string $startTime, string $endTime): string - { - $params = array("symbol" => $symbol, "granularity" => $granularity, "startTime" => $startTime, "endTime" => $endTime); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/candles", $params); - } - /** - * Get currency index - * @param $symbol - * @return string - */ - public function index(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/index", $params); - } - /** - * Get the next settlement time of the contract - * @param $symbol - * @return string - */ - public function fundingTime(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/funding-time", $params); - } - /** - * Get historical fund rate - * @param $symbol - * @param $pageSize - * @param $pageNo - * @param $nextPage - * @return string - */ - public function historyFundRate(string $symbol, string $pageSize, string $pageNo, string $nextPage): string - { - $params = array("symbol" => $symbol, "pageSize" => $pageSize, "pageNo" => $pageNo, "nextPage" => $nextPage); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/history-fundRate", $params); - } - /** - * Get the current fund rate - * @param $symbol - * @return string - */ - public function currentFundRate(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/current-fundRate", $params); - } - /** - * Obtain the total position of the platform - * @param $symbol - * @return string - */ - public function openInterest(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/open-interest", $params); - } - /** - * Get contract tag price - * @param $symbol - * @return string - */ - public function markPrice(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/mark-price", $params); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixOrderApi.php b/bitget-php-sdk-api/src/api/mix/MixOrderApi.php deleted file mode 100644 index c4a5b333..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixOrderApi.php +++ /dev/null @@ -1,109 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * place an order - * @param $placeOrderReq - * @return string - */ - public function placeOrder(PlaceOrderReq $placeOrderReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/placeOrder", $placeOrderReq); - } - /** - * Place orders in batches - * @param $batchOrdersReq - * @return string - */ - public function batchOrders(BatchOrdersReq $batchOrdersReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/batch-orders", $batchOrdersReq); - } - /** - * cancel the order - * @param $cancelOrderReq - * @return string - */ - public function cancelOrder(CancelOrderReq $cancelOrderReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancel-order", $cancelOrderReq); - } - /** - * Batch cancellation - * @param $cancelBatchOrderReq - * @return string - */ - public function cancelBatchOrder(CancelBatchOrderReq $cancelBatchOrderReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancel-batch-orders", $cancelBatchOrderReq); - } - /** - * Get Historical Delegation - * @param $symbol - * @param $startTime - * @param $endTime - * @param $pageSize - * @param $lastEndId - * @param $isPre - * @return string - */ - public function history(string $symbol, string $startTime, string $endTime, string $pageSize, string $lastEndId, string $isPre): string - { - $params = array("symbol" => $symbol, "startTime" => $startTime, "endTime" => $endTime, "pageSize" => $pageSize, "lastEndId" => $lastEndId, "isPre" => $isPre); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/history", $params); - } - - /** - * Get the current delegate - * @param $symbol - * @return string - */ - public function current(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/current", $params); - } - /** - * Get order details - * @param $symbol - * @param $orderId - * @return string - */ - public function detail(string $symbol, string $orderId): string - { - $params = array("symbol" => $symbol, "orderId" => $orderId); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/detail", $params); - } - /** - * Query transaction details - * @param $symbol - * @param $orderId - * @return string - */ - public function fills(string $symbol, string $orderId): string - { - $params = array("symbol" => $symbol, "orderId" => $orderId); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/fills", $params); - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixPlanApi.php b/bitget-php-sdk-api/src/api/mix/MixPlanApi.php deleted file mode 100644 index 11fe7b8c..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixPlanApi.php +++ /dev/null @@ -1,106 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Plan Entrusted Order - * @param $placePlanReq - * @return string - */ - public function placePlan(PlacePlanReq $placePlanReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/placePlan", $placePlanReq); - } - /** - * Modify Plan Delegation - * @param $modifyPlanReq - * @return string - */ - public function modifyPlan(ModifyPlanReq $modifyPlanReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/modifyPlan", $modifyPlanReq); - } - /** - * Modify the preset profit and loss stop of plan entrustment - * @param $modifyPlanPresetReq - * @return string - */ - public function modifyPlanPreset(ModifyPlanPresetReq $modifyPlanPresetReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/modifyPlanPreset", $modifyPlanPresetReq); - } - /** - * Modify profit and loss stop - * @param $modifyTPSLPlanReq - * @return string - */ - public function modifyTPSLPlan(ModifyTPSLPlanReq $modifyTPSLPlanReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/modifyTPSLPlan", $modifyTPSLPlanReq); - } - /** - * Stop profit and stop loss Order - * @param $placeTPSLReq - * @return string - */ - public function placeTPSL(PlaceTPSLReq $placeTPSLReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/placeTPSL", $placeTPSLReq); - } - /** - * Planned entrustment (profit and loss stop) cancellation - * @param $cancelPlanReq - * @return string - */ - public function cancelPlan(CancelPlanReq $cancelPlanReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancelPlan", $cancelPlanReq); - } - /** - * Get the current plan commission (profit stop and loss stop) list - * @param $symbol - * @param $isPlan - * @return string - */ - public function currentPlan(string $symbol, string $isPlan): string - { - $params = array("symbol" => $symbol, "isPlan" => $isPlan); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/currentPlan", $params); - } - /** - * Obtain the list of historical plan commissions (profit and loss stop) - * @param $symbol - * @param $startTime - * @param $endTime - * @param $pageSize - * @param $isPre - * @param $isPlan - * @return string - */ - public function historyPlan(string $symbol, string $startTime, string $endTime, string $pageSize, string $isPre, string $isPlan): string - { - $params = array("symbol" => $symbol, "startTime" => $startTime, "endTime" => $endTime, "pageSize" => $pageSize, "isPre" => $isPre, "isPlan" => $isPlan); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/currentPlan", $params); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixPositionApi.php b/bitget-php-sdk-api/src/api/mix/MixPositionApi.php deleted file mode 100644 index 547cec63..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixPositionApi.php +++ /dev/null @@ -1,42 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Obtain single contract position information - * @param $symbol - * @param $marginCoin - * @return string - */ - public function singlePosition(string $symbol,string $marginCoin):string - { - $params = array("symbol" => $symbol, "marginCoin" => $marginCoin); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/singlePosition", $params); - } - /** - * Obtain all contract position information - * @param $productType - * @param $marginCoin - * @return string - */ - public function allPosition(string $productType,string $marginCoin):string - { - $params = array("productType" => $productType, "marginCoin" => $marginCoin); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/allPosition", $params); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/mix/MixTraceApi.php b/bitget-php-sdk-api/src/api/mix/MixTraceApi.php deleted file mode 100644 index 8ea121b1..00000000 --- a/bitget-php-sdk-api/src/api/mix/MixTraceApi.php +++ /dev/null @@ -1,170 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Dealer closing interface - * @param $closeTrackOrderReq - * @return string - */ - public function closeTraceOrder(CloseTrackOrderReq $closeTrackOrderReq):string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/closeTrackOrder", $closeTrackOrderReq); - } - /** - * The trader obtains the current order - * @param $symbol - * @param $productType - * @param $pageSize - * @param $pageNo - * @return string - */ - public function currentTrack(string $symbol,string $productType,string $pageSize,string $pageNo):string - { - $params = array("symbol" => $symbol, "productType" => $productType, "pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/currentTrack", $params); - } - - /** - * The trader obtains the historical order - * @param $startTime - * @param $endTime - * @param $pageSize - * @param $pageNo - * @return string - */ - public function historyTrack(string $startTime,string $endTime,string $pageSize,string $pageNo):string - { - $params = array("startTime" => $startTime, "endTime" => $endTime, "pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/historyTrack", $params); - } - /** - * Summary of traders' profit sharing - * @return string - */ - public function summary():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/summary", null); - } - /** - * Historical profit sharing summary of traders (by settlement currency) - * @return string - */ - public function profitSettleTokenIdGroup():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/profitSettleTokenIdGroup", null); - } - /** - * Historical profit sharing summary of traders (by settlement currency and date) - * @param $pageSize - * @param $pageNo - * @return string - */ - public function profitDateGroupList(string $pageSize,string $pageNo):string - { - $params = array("pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/profitDateGroupList", $params); - } - /** - * Historical profit distribution details of traders - * @param $marginCoin - * @param $date - * @param $pageSize - * @param $pageNo - * @return string - */ - public function profitDateList(string $marginCoin,string $date,string $pageSize,string $pageNo):string - { - $params = array("marginCoin" => $marginCoin, "date" => $date, "pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/profitDateList", $params); - } - /** - * Details of traders to be distributed - * @param $pageSize - * @param $pageNo - * @return string - */ - public function waitProfitDateList(string $pageSize,string $pageNo):string - { - $params = array("pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/waitProfitDateList", $params); - } - - /** - * Followers obtain documentary information - * @param $pageSize - * @param $pageNo - * @param $startTime - * @param $endTime - * @return string - */ - public function followerHistoryOrders(string $pageSize,string $pageNo,string $startTime,string $endTime):string - { - $params = array("pageSize" => $pageSize, "pageNo" => $pageNo,"startTime"=>$startTime,"endTime"=>$endTime); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/followerHistoryOrders", $params); - } - - - /** - * trader get copytrade symbol - * @return string - */ - public function traderSymbols():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/traderSymbols", null); - } - - - /** - * trader set copytrade symbol - * @param $mixTraceSetCopyTradeSymbolReq - * @return string - */ - public function setUpCopySymbols(MixTraceSetCopyTradeSymbolReq $mixTraceSetCopyTradeSymbolReq):string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/setUpCopySymbols", $mixTraceSetCopyTradeSymbolReq); - } - - /** - * trader modify tpsl order - * @param $mixTraceModifyTPSLOrderReq - * @return string - */ - public function modifyTPSL(MixTraceModifyTPSLOrderReq $mixTraceModifyTPSLOrderReq):string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/modifyTPSL", $mixTraceModifyTPSLOrderReq); - } - - /** - * trader get copytrade symbol - * @param $symbol - * @param $productType - * @param $pageSize - * @param $pageNo - * @return string - */ - public function followerOrder(string $symbol,string $productType,string $pageSize,string $pageNo):string - { - $params = array("symbol" => $symbol, "productType" => $productType, "pageSize" => $pageSize, "pageNo" => $pageNo); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/followerOrder", $params); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotAccountApi.php b/bitget-php-sdk-api/src/api/spot/SpotAccountApi.php deleted file mode 100644 index 14b380ce..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotAccountApi.php +++ /dev/null @@ -1,53 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Obtain account assets - * @return string - */ - public function assets(): string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/assets", null); - } - /** - * Get the bill flow - * @param $billsReq - * @return string - */ - public function bills(BillsReq $billsReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/bills", $billsReq); - } - /** - * Obtain transfer records - * @param $coinId - * @param $fromType - * @param $limit - * @param $after - * @param $before - * @return string - */ - public function transferRecords(string $coinId, string $fromType,string $limit,string $after,string $before): string - { - $params = array("coinId" => $coinId, "fromType" => $fromType, "limit" => $limit, "after" => $after, "before" => $before); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/transferRecords", $params); - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotMarketApi.php b/bitget-php-sdk-api/src/api/spot/SpotMarketApi.php deleted file mode 100644 index 7b8f8848..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotMarketApi.php +++ /dev/null @@ -1,75 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * Obtain transaction data - * @param $symbol - * @param $limit - * @return string - */ - public function fills(string $symbol, string $limit): string - { - $params = array("symbol" => $symbol, "limit" => $limit); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/fills", $params); - } - /** - * Get depth data - * @param $symbol - * @param $limit - * @param $type - * @return string - */ - public function depth(string $symbol, string $limit, string $type): string - { - $params = array("symbol" => $symbol, "limit" => $limit, "type" => $type); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/depth", $params); - } - /** - * Get a Ticker Information - * @param $symbol - * @return string - */ - public function ticker(string $symbol): string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/ticker", $params); - } - /** - * Get all Ticker information - * @return string - */ - public function tickers(): string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/tickers", null); - } - /** - * Obtain K line data - * @param $symbol - * @param $period (Time unit and granularity of K line (refer to the following list for values)) - * @param $after - * @param $before - * @param $limit - * @return string - */ - public function candles(string $symbol, string $period, string $after, string $before, string $limit): string - { - $params = array("symbol" => $symbol, "period" => $period, "after" => $after, "before" => $before, "limit" => $limit); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/candles", $params); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotOrderApi.php b/bitget-php-sdk-api/src/api/spot/SpotOrderApi.php deleted file mode 100644 index b6c44b93..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotOrderApi.php +++ /dev/null @@ -1,72 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * place an order - * @param $ordersReq - * @return string - */ - public function orders(OrdersReq $ordersReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/orders", $ordersReq); - } - - public function batchOrders(BatchOrdersReq $batchOrdersReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/batch-orders", $batchOrdersReq); - } - - public function cancelOrder(CancelOrderReq $cancelOrderReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancel-order", $cancelOrderReq); - } - - public function cancelBatchOrder(CancelBatchOrderReq $cancelBatchOrderReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancel-batch-orders", $cancelBatchOrderReq); - } - - public function orderInfo(OrderInfoReq $orderInfoReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/orderInfo", $orderInfoReq); - } - - public function openOrders(OpenOrdersReq $openOrdersReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/open-orders", $openOrdersReq); - } - - public function history(HistoryReq $historyReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/history", $historyReq); - } - - public function fills(FillsReq $fillsReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/fills", $fillsReq); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotPlanApi.php b/bitget-php-sdk-api/src/api/spot/SpotPlanApi.php deleted file mode 100644 index 4be151f7..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotPlanApi.php +++ /dev/null @@ -1,49 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - public function placePlan(SpotPlanReq $req): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/placePlan", $req); - } - - public function modifyPlan(SpotModifyPlanReq $req): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/modifyPlan", $req); - } - - public function cancelPlan(SpotCancelPlanReq $req): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/cancelPlan", $req); - } - - public function currentPlan(SpotQueryPlanReq $req): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/currentPlan", $req); - } - - public function historyPlan(SpotQueryPlanReq $req): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/historyPlan", $req); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotPublicApi.php b/bitget-php-sdk-api/src/api/spot/SpotPublicApi.php deleted file mode 100644 index 11f72546..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotPublicApi.php +++ /dev/null @@ -1,58 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - - /** - * Get server time - * @return string - */ - public function time():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/time", null); - } - - /** - * Basic information of currency - * @return string - */ - public function currencies():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/currencies", null); - } - - /** - * Get all product information - * @return string - */ - public function products():string - { - return $this->BitgetApiClient->doGet(self::BASE_URL . "/products", null); - } - - /** - * Get single product information - * @param $symbol - * @return string - */ - public function product(string $symbol):string - { - $params = array("symbol" => $symbol); - return $this->BitgetApiClient->doGet(self::BASE_URL . "/product", $params); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/spot/SpotWalletApi.php b/bitget-php-sdk-api/src/api/spot/SpotWalletApi.php deleted file mode 100644 index 19321cc3..00000000 --- a/bitget-php-sdk-api/src/api/spot/SpotWalletApi.php +++ /dev/null @@ -1,29 +0,0 @@ -BitgetApiClient = $BitgetApiClient; - } - /** - * withdrawal - * @param $withdrawalReq - * @return string - */ - public function withdrawal(WithdrawalReq $withdrawalReq): string - { - return $this->BitgetApiClient->doPost(self::BASE_URL . "/withdrawal", $withdrawalReq); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/MixAccountApi.php b/bitget-php-sdk-api/src/api/v1/MixAccountApi.php new file mode 100644 index 00000000..aa0585d0 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/MixAccountApi.php @@ -0,0 +1,59 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function account($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/account/account", $params); + } + + public function accounts($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/account/accounts", $params); + } + + public function setLeverage($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/account/setLeverage", $params); + } + + public function setMargin($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/account/setMargin", $params); + } + + public function setMarginMode($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/account/setMarginMode", $params); + } + + public function setPositionMode($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/account/setPositionMode", $params); + } + + + // position + public function singlePosition($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/position/singlePosition", $params); + } + + public function allPosition($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/position/allPosition", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/MixMarketApi.php b/bitget-php-sdk-api/src/api/v1/MixMarketApi.php new file mode 100644 index 00000000..6df28d84 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/MixMarketApi.php @@ -0,0 +1,47 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function contracts($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/contracts", $params); + } + + public function depth($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/depth", $params); + } + + public function ticker($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/ticker", $params); + } + + public function tickers($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/tickers", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/fills", $params); + } + + public function candles($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/market/candles", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/MixOrderApi.php b/bitget-php-sdk-api/src/api/v1/MixOrderApi.php new file mode 100644 index 00000000..f7a3f059 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/MixOrderApi.php @@ -0,0 +1,93 @@ +BitgetApiClient = $BitgetApiClient; + } + + // normal order + public function placeOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/order/placeOrder", $params); + } + + public function batchPlaceOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/order/batch-orders", $params); + } + + public function cancelOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/order/cancel-order", $params); + } + + public function batchCancelOrders($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/order/cancel-batch-orders", $params); + } + + public function ordersHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/order/history", $params); + } + + public function ordersPending($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/order/current", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/order/fills", $params); + } + + + // plan + public function placePlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/plan/placePlan", $params); + } + + public function cancelPlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/plan/cancelPlan", $params); + } + + public function ordersPlanPending($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/plan/currentPlan", $params); + } + + public function ordersPlanHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/plan/historyPlan", $params); + } + + + // trader + public function traderOrderClosePositions($params): string + { + return $this->BitgetApiClient->doPost("/api/mix/v1/trace/closeTrackOrder", $params); + } + + public function traderOrderCurrentTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/trace/currentTrack", $params); + } + + public function traderOrderHistoryTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/mix/v1/trace/historyTrack", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/SpotAccountApi.php b/bitget-php-sdk-api/src/api/v1/SpotAccountApi.php new file mode 100644 index 00000000..147c4e3d --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/SpotAccountApi.php @@ -0,0 +1,38 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function info($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/account/getInfo", $params); + } + + public function assets($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/account/assets-lite", $params); + } + + public function bills($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/account/bills", $params); + } + + public function transferRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/account/transferRecords", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/SpotMarketApi.php b/bitget-php-sdk-api/src/api/v1/SpotMarketApi.php new file mode 100644 index 00000000..c3eb881c --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/SpotMarketApi.php @@ -0,0 +1,57 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function currencies($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/public/currencies", $params); + } + + public function products($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/public/products", $params); + } + + public function product($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/public/product", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/market/fills", $params); + } + + public function depth($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/market/depth", $params); + } + + public function ticker($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/market/ticker", $params); + } + + public function tickers($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/market/tickers", $params); + } + + public function candles($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/market/candles", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/SpotOrderApi.php b/bitget-php-sdk-api/src/api/v1/SpotOrderApi.php new file mode 100644 index 00000000..5e3163da --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/SpotOrderApi.php @@ -0,0 +1,93 @@ +BitgetApiClient = $BitgetApiClient; + } + + // normal order + public function placeOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trade/orders", $params); + } + + public function batchPlaceOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trade/batch-orders", $params); + } + + public function cancelOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trade/cancel-order", $params); + } + + public function batchCancelOrders($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trade/cancel-batch-orders", $params); + } + + public function ordersHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/trade/history", $params); + } + + public function ordersPending($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/trade/open-orders", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/trade/fills", $params); + } + + + // plan + public function placePlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/plan/placePlan", $params); + } + + public function cancelPlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/plan/cancelPlan", $params); + } + + public function ordersPlanPending($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/plan/currentPlan", $params); + } + + public function ordersPlanHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/plan/historyPlan", $params); + } + + + // trader + public function traderOrderCloseTracking($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trace/order/closeTrackingOrder", $params); + } + + public function traderOrderCurrentTrack($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trace/order/orderCurrentList", $params); + } + + public function traderOrderHistoryTrack($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/trace/order/orderHistoryList", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v1/SpotWalletApi.php b/bitget-php-sdk-api/src/api/v1/SpotWalletApi.php new file mode 100644 index 00000000..e3ed5556 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v1/SpotWalletApi.php @@ -0,0 +1,43 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function transfer($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/wallet/transfer", $params); + } + + public function depositAddress($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/wallet/deposit-address", $params); + } + + public function withdrawal($params): string + { + return $this->BitgetApiClient->doPost("/api/spot/v1/wallet/withdrawal", $params); + } + + public function withdrawalRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/wallet/withdrawal-list", $params); + } + + public function depositRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/spot/v1/wallet/deposit-list", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/MixAccountApi.php b/bitget-php-sdk-api/src/api/v2/MixAccountApi.php new file mode 100644 index 00000000..2e1968c6 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/MixAccountApi.php @@ -0,0 +1,59 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function account($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/account/account", $params); + } + + public function accounts($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/account/accounts", $params); + } + + public function setLeverage($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/account/set-leverage", $params); + } + + public function setMargin($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/account/set-margin", $params); + } + + public function setMarginMode($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/account/set-margin-mode", $params); + } + + public function setPositionMode($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/account/set-position-mode", $params); + } + + + // position + public function singlePosition($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/position/single-position", $params); + } + + public function allPosition($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/position/all-position", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/MixMarketApi.php b/bitget-php-sdk-api/src/api/v2/MixMarketApi.php new file mode 100644 index 00000000..56d3509d --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/MixMarketApi.php @@ -0,0 +1,47 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function contracts($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/contracts", $params); + } + + public function orderbook($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/orderbook", $params); + } + + public function ticker($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/ticker", $params); + } + + public function tickers($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/tickers", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/fills", $params); + } + + public function candles($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/market/candles", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/MixOrderApi.php b/bitget-php-sdk-api/src/api/v2/MixOrderApi.php new file mode 100644 index 00000000..a8f455e7 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/MixOrderApi.php @@ -0,0 +1,108 @@ +BitgetApiClient = $BitgetApiClient; + } + + // normal order + public function placeOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/place-order", $params); + } + + public function batchPlaceOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/batch-place-order", $params); + } + + public function cancelOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/cancel-order", $params); + } + + public function batchCancelOrders($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/batch-cancel-orders", $params); + } + + public function ordersHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/order/orders-history", $params); + } + + public function ordersPending($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/order/orders-pending", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/order/fills", $params); + } + + + // plan + public function placePlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/place-plan-order", $params); + } + + public function cancelPlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/mix/order/cancel-plan-order", $params); + } + + public function ordersPlanPending($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/order/orders-plan-pending", $params); + } + + public function ordersPlanHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/mix/order/orders-plan-history", $params); + } + + + // trader + public function traderOrderClosePositions($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/copy/mix-trader/order-close-positions", $params); + } + + public function traderOrderCurrentTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/mix-trader/order-current-track", $params); + } + + public function traderOrderHistoryTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/mix-trader/order-history-track", $params); + } + + public function followerClosePositions($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/copy/mix-follower/close-positions", $params); + } + + public function followerQueryCurrentOrders($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/mix-follower/query-current-orders", $params); + } + + public function followerQueryHistoryOrders($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/mix-follower/query-history-orders", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/SpotAccountApi.php b/bitget-php-sdk-api/src/api/v2/SpotAccountApi.php new file mode 100644 index 00000000..67702c69 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/SpotAccountApi.php @@ -0,0 +1,38 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function info($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/account/info", $params); + } + + public function assets($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/account/assets", $params); + } + + public function bills($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/account/bills", $params); + } + + public function transferRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/account/transferRecords", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/SpotMarketApi.php b/bitget-php-sdk-api/src/api/v2/SpotMarketApi.php new file mode 100644 index 00000000..0c519e11 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/SpotMarketApi.php @@ -0,0 +1,47 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function coins($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/public/coins", $params); + } + + public function symbols($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/public/symbols", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/market/fills", $params); + } + + public function orderbook($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/market/orderbook", $params); + } + + public function tickers($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/market/tickers", $params); + } + + public function candles($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/market/candles", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/SpotOrderApi.php b/bitget-php-sdk-api/src/api/v2/SpotOrderApi.php new file mode 100644 index 00000000..64bfd663 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/SpotOrderApi.php @@ -0,0 +1,93 @@ +BitgetApiClient = $BitgetApiClient; + } + + // normal order + public function placeOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/place-order", $params); + } + + public function batchPlaceOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/batch-orders", $params); + } + + public function cancelOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/cancel-order", $params); + } + + public function batchCancelOrders($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/batch-cancel-order", $params); + } + + public function ordersHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/trade/history-orders", $params); + } + + public function ordersPending($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/trade/unfilled-orders", $params); + } + + public function fills($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/trade/fills", $params); + } + + + // plan + public function placePlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/place-plan-order", $params); + } + + public function cancelPlanOrder($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/trade/cancel-plan-order", $params); + } + + public function ordersPlanPending($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/trade/current-plan-order", $params); + } + + public function ordersPlanHistory($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/trade/history-plan-order", $params); + } + + + // trader + public function traderOrderCloseTracking($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/copy/spot-trader/order-close-tracking", $params); + } + + public function traderOrderCurrentTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/spot-trader/order-current-track", $params); + } + + public function traderOrderHistoryTrack($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/copy/spot-trader/order-history-track", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/api/v2/SpotWalletApi.php b/bitget-php-sdk-api/src/api/v2/SpotWalletApi.php new file mode 100644 index 00000000..fda5ebe8 --- /dev/null +++ b/bitget-php-sdk-api/src/api/v2/SpotWalletApi.php @@ -0,0 +1,43 @@ +BitgetApiClient = $BitgetApiClient; + } + + public function transfer($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/wallet/transfer", $params); + } + + public function depositAddress($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/wallet/deposit-address", $params); + } + + public function withdrawal($params): string + { + return $this->BitgetApiClient->doPost("/api/v2/spot/wallet/withdrawal", $params); + } + + public function withdrawalRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/wallet/withdrawal-records", $params); + } + + public function depositRecords($params): string + { + return $this->BitgetApiClient->doGet("/api/v2/spot/wallet/deposit-records", $params); + } + +} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/internal/BitgetMixClient.php b/bitget-php-sdk-api/src/internal/BitgetMixClient.php deleted file mode 100644 index c5d5d925..00000000 --- a/bitget-php-sdk-api/src/internal/BitgetMixClient.php +++ /dev/null @@ -1,43 +0,0 @@ -connectStatus = false; $this->loginStatus = false; $this->utils = new Utils(); - $this->allBook = array(); - $this->scribeMap = array(); - $this->allSuribe = array(); + $this->client = new Client(self::websocketUrl); $this->sendTextMessage("ping"); @@ -78,7 +72,6 @@ public function startWorker() $worker->onWorkerStart = function () { while (true) { try { -// $con = new AsyncTcpConnection(self::websocketUrl); $this->connectStatus = true; $message = $this->client->receive(); @@ -103,16 +96,10 @@ public function startWorker() continue; } - if ($jsonObject->data ?? false) { - - $checkSumFlag = $this->checkSum($jsonObject); - if(!$checkSumFlag){ - continue; - } - + if($jsonObject->data ?? false){ $listener = $this->getListener($jsonObject); - if ($listener != null) { + if($listener != null){ $listener->recevie($message); continue; } @@ -137,7 +124,6 @@ public static function builder(): BitgetClientBuilder public function sendMessage(WsBaseReq $baseReq): void { $data = json_encode($baseReq); - Utils::printLog("send message".$data,"info"); $this->sendTextMessage($data); } @@ -181,59 +167,27 @@ public function subscribeDef(array $req): void foreach ($req as $value) { $this->allSuribe[$value->toString()] = "1"; } + print_r($this->allSuribe . "\n"); $this->sendMessage(new WsBaseReq(self::WS_OP_SUBSCRIBE, $req)); } - public function checkSum($jsonObject): bool - { - if (!$jsonObject->arg ?? false || !$jsonObject->action ?? false) { - return true; - - } - - $argJson = $jsonObject->arg; - - $req = new SubscribeReq($argJson->instType, $argJson->channel, $argJson->instId); - - if ($req->channel != "books") { - return true; - } - - $data = $jsonObject->data; - $bookInfo = new BookInfo($data[0]->asks, $data[0]->bids, $data[0]->checksum, $data[0]->ts); - - if($jsonObject->action == "snapshot"){ - $this->allBook[$req->toString()] = $bookInfo; - return true; - } - - if($jsonObject->action == "update"){ - $allBookInfo = $this->allBook[$req->toString()]; - - return $allBookInfo->merge($bookInfo)->checkSum($bookInfo->checksum,25); - } - - return true; - } - public function getListener($jsonObject): ?Listener { - try { - - if ($jsonObject->arg ?? false) { + try{ + if($jsonObject->arg ?? false){ $argJson = $jsonObject->arg; - $req = new SubscribeReq($argJson->instType, $argJson->channel, $argJson->instId); + $req = new SubscribeReq($argJson->instType,$argJson->channel,$argJson->instId); - foreach ($this->scribeMap as $key => $value) { - if ($req->toString() == $key) { + foreach ($this->scribeMap as $key=>$value){ + if($req->toString() == $key){ return $value; } } } - } catch (\Exception $e) { + }catch (\Exception $e){ } return null; @@ -259,7 +213,7 @@ public function login(): void private function initTimer() { Timer::add(5, function () { - $this->sendTextMessage("ping"); + $this->client->send("ping"); }); } diff --git a/bitget-php-sdk-api/src/internal/Listener.php b/bitget-php-sdk-api/src/internal/Listener.php index 6f8a4657..6e601700 100644 --- a/bitget-php-sdk-api/src/internal/Listener.php +++ b/bitget-php-sdk-api/src/internal/Listener.php @@ -9,7 +9,6 @@ abstract class Listener { - /** * Reveice constructor. */ diff --git a/bitget-php-sdk-api/src/internal/Utils.php b/bitget-php-sdk-api/src/internal/Utils.php index e5491a15..ba6f238f 100644 --- a/bitget-php-sdk-api/src/internal/Utils.php +++ b/bitget-php-sdk-api/src/internal/Utils.php @@ -29,5 +29,4 @@ public static function printLog(string $msg,string $type):void{ print_r("[".$time."] [".$type."] ".$msg."\n"); } - } \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/broker/BrokerCreateSubApiReq.php b/bitget-php-sdk-api/src/model/broker/BrokerCreateSubApiReq.php deleted file mode 100644 index 0d2f4997..00000000 --- a/bitget-php-sdk-api/src/model/broker/BrokerCreateSubApiReq.php +++ /dev/null @@ -1,22 +0,0 @@ -symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginCoin() - { - return $this->marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getOpenPrice() - { - return $this->openPrice; - } - - /** - * @param mixed $openPrice - */ - public function setOpenPrice($openPrice): void - { - $this->openPrice = $openPrice; - } - - /** - * @return mixed - */ - public function getOpenAmount() - { - return $this->openAmount; - } - - /** - * @param mixed $openAmount - */ - public function setOpenAmount($openAmount): void - { - $this->openAmount = $openAmount; - } - - /** - * @return mixed - */ - public function getLeverage() - { - return $this->leverage; - } - - /** - * @param mixed $leverage - */ - public function setLeverage($leverage): void - { - $this->leverage = $leverage; - } - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/account/SetLeverageReq.php b/bitget-php-sdk-api/src/model/mix/account/SetLeverageReq.php deleted file mode 100644 index 36cac8f6..00000000 --- a/bitget-php-sdk-api/src/model/mix/account/SetLeverageReq.php +++ /dev/null @@ -1,93 +0,0 @@ -symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginCoin() - { - return $this->marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getLeverage() - { - return $this->leverage; - } - - /** - * @param mixed $leverage - */ - public function setLeverage($leverage): void - { - $this->leverage = $leverage; - } - - /** - * @return mixed - */ - public function getHoldSide() - { - return $this->holdSide; - } - - /** - * @param mixed $holdSide - */ - public function setHoldSide($holdSide): void - { - $this->holdSide = $holdSide; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/account/SetMarginModeReq.php b/bitget-php-sdk-api/src/model/mix/account/SetMarginModeReq.php deleted file mode 100644 index 60f65a08..00000000 --- a/bitget-php-sdk-api/src/model/mix/account/SetMarginModeReq.php +++ /dev/null @@ -1,71 +0,0 @@ -marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getSymbol() - { - return $this->symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginMode() - { - return $this->marginMode; - } - - /** - * @param mixed $marginMode - */ - public function setMarginMode($marginMode): void - { - $this->marginMode = $marginMode; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/account/SetMarginReq.php b/bitget-php-sdk-api/src/model/mix/account/SetMarginReq.php deleted file mode 100644 index 8d149a1a..00000000 --- a/bitget-php-sdk-api/src/model/mix/account/SetMarginReq.php +++ /dev/null @@ -1,92 +0,0 @@ -symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginCoin() - { - return $this->marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getHoldSide() - { - return $this->holdSide; - } - - /** - * @param mixed $holdSide - */ - public function setHoldSide($holdSide): void - { - $this->holdSide = $holdSide; - } - - /** - * @return mixed - */ - public function getAmount() - { - return $this->amount; - } - - /** - * @param mixed $amount - */ - public function setAmount($amount): void - { - $this->amount = $amount; - } - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/account/SetPositionModeReq.php b/bitget-php-sdk-api/src/model/mix/account/SetPositionModeReq.php deleted file mode 100644 index 684ef879..00000000 --- a/bitget-php-sdk-api/src/model/mix/account/SetPositionModeReq.php +++ /dev/null @@ -1,73 +0,0 @@ -symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginCoin() - { - return $this->marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getHoldMode() - { - return $this->holdMode; - } - - /** - * @param mixed $holdMode - */ - public function setHoldMode($holdMode): void - { - $this->holdMode = $holdMode; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/order/BatchOrdersReq.php b/bitget-php-sdk-api/src/model/mix/order/BatchOrdersReq.php deleted file mode 100644 index 948d7428..00000000 --- a/bitget-php-sdk-api/src/model/mix/order/BatchOrdersReq.php +++ /dev/null @@ -1,71 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return array - */ - public function getOrderDataList(): array - { - return $this->orderDataList; - } - - /** - * @param array $orderDataList - */ - public function setOrderDataList(array $orderDataList): void - { - $this->orderDataList = $orderDataList; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/order/CancelBatchOrderReq.php b/bitget-php-sdk-api/src/model/mix/order/CancelBatchOrderReq.php deleted file mode 100644 index 00e0b82a..00000000 --- a/bitget-php-sdk-api/src/model/mix/order/CancelBatchOrderReq.php +++ /dev/null @@ -1,71 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return array - */ - public function getOrderIds(): array - { - return $this->orderIds; - } - - /** - * @param array $orderIds - */ - public function setOrderIds(array $orderIds): void - { - $this->orderIds = $orderIds; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/order/CancelOrderReq.php b/bitget-php-sdk-api/src/model/mix/order/CancelOrderReq.php deleted file mode 100644 index e1ac0681..00000000 --- a/bitget-php-sdk-api/src/model/mix/order/CancelOrderReq.php +++ /dev/null @@ -1,70 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/order/PlaceOrderBaseParam.php b/bitget-php-sdk-api/src/model/mix/order/PlaceOrderBaseParam.php deleted file mode 100644 index e8d2e78c..00000000 --- a/bitget-php-sdk-api/src/model/mix/order/PlaceOrderBaseParam.php +++ /dev/null @@ -1,129 +0,0 @@ -clientOid; - } - - /** - * @param mixed $clientOid - */ - public function setClientOid($clientOid): void - { - $this->clientOid = $clientOid; - } - - /** - * @return mixed - */ - public function getSize() - { - return $this->size; - } - - /** - * @param mixed $size - */ - public function setSize($size): void - { - $this->size = $size; - } - - /** - * @return mixed - */ - public function getSide() - { - return $this->side; - } - - /** - * @param mixed $side - */ - public function setSide($side): void - { - $this->side = $side; - } - - /** - * @return mixed - */ - public function getOrderType() - { - return $this->orderType; - } - - /** - * @param mixed $orderType - */ - public function setOrderType($orderType): void - { - $this->orderType = $orderType; - } - - /** - * @return mixed - */ - public function getPrice() - { - return $this->price; - } - - /** - * @param mixed $price - */ - public function setPrice($price): void - { - $this->price = $price; - } - - /** - * @return mixed - */ - public function getTimeInForceValue() - { - return $this->timeInForceValue; - } - - /** - * @param mixed $timeInForceValue - */ - public function setTimeInForceValue($timeInForceValue): void - { - $this->timeInForceValue = $timeInForceValue; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/order/PlaceOrderReq.php b/bitget-php-sdk-api/src/model/mix/order/PlaceOrderReq.php deleted file mode 100644 index c18efff9..00000000 --- a/bitget-php-sdk-api/src/model/mix/order/PlaceOrderReq.php +++ /dev/null @@ -1,213 +0,0 @@ -symbol; - } - - /** - * @param mixed $symbol - */ - public function setSymbol($symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return mixed - */ - public function getMarginCoin() - { - return $this->marginCoin; - } - - /** - * @param mixed $marginCoin - */ - public function setMarginCoin($marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return mixed - */ - public function getClientOid() - { - return $this->clientOid; - } - - /** - * @param mixed $clientOid - */ - public function setClientOid($clientOid): void - { - $this->clientOid = $clientOid; - } - - /** - * @return mixed - */ - public function getSize() - { - return $this->size; - } - - /** - * @param mixed $size - */ - public function setSize($size): void - { - $this->size = $size; - } - - /** - * @return mixed - */ - public function getSide() - { - return $this->side; - } - - /** - * @param mixed $side - */ - public function setSide($side): void - { - $this->side = $side; - } - - /** - * @return mixed - */ - public function getOrderType() - { - return $this->orderType; - } - - /** - * @param mixed $orderType - */ - public function setOrderType($orderType): void - { - $this->orderType = $orderType; - } - - /** - * @return mixed - */ - public function getPrice() - { - return $this->price; - } - - /** - * @param mixed $price - */ - public function setPrice($price): void - { - $this->price = $price; - } - - /** - * @return mixed - */ - public function getTimeInForceValue() - { - return $this->timeInForceValue; - } - - /** - * @param mixed $timeInForceValue - */ - public function setTimeInForceValue($timeInForceValue): void - { - $this->timeInForceValue = $timeInForceValue; - } - - /** - * @return mixed - */ - public function getPresetTakeProfitPrice() - { - return $this->presetTakeProfitPrice; - } - - /** - * @param mixed $presetTakeProfitPrice - */ - public function setPresetTakeProfitPrice($presetTakeProfitPrice): void - { - $this->presetTakeProfitPrice = $presetTakeProfitPrice; - } - - /** - * @return mixed - */ - public function getPresetStopLossPrice() - { - return $this->presetStopLossPrice; - } - - /** - * @param mixed $presetStopLossPrice - */ - public function setPresetStopLossPrice($presetStopLossPrice): void - { - $this->presetStopLossPrice = $presetStopLossPrice; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/CancelPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/CancelPlanReq.php deleted file mode 100644 index c6d42fad..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/CancelPlanReq.php +++ /dev/null @@ -1,92 +0,0 @@ -orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getSymbol(): string - { - return $this->symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getPlanType(): string - { - return $this->planType; - } - - /** - * @param string $planType - */ - public function setPlanType(string $planType): void - { - $this->planType = $planType; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanPresetReq.php b/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanPresetReq.php deleted file mode 100644 index c741e054..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanPresetReq.php +++ /dev/null @@ -1,130 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getPresetTakeProfitPrice(): string - { - return $this->presetTakeProfitPrice; - } - - /** - * @param string $presetTakeProfitPrice - */ - public function setPresetTakeProfitPrice(string $presetTakeProfitPrice): void - { - $this->presetTakeProfitPrice = $presetTakeProfitPrice; - } - - /** - * @return string - */ - public function getPresetStopLossPrice(): string - { - return $this->presetStopLossPrice; - } - - /** - * @param string $presetStopLossPrice - */ - public function setPresetStopLossPrice(string $presetStopLossPrice): void - { - $this->presetStopLossPrice = $presetStopLossPrice; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getPlanType(): string - { - return $this->planType; - } - - /** - * @param string $planType - */ - public function setPlanType(string $planType): void - { - $this->planType = $planType; - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanReq.php deleted file mode 100644 index 51baa32f..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/ModifyPlanReq.php +++ /dev/null @@ -1,151 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getExecutePrice(): string - { - return $this->executePrice; - } - - /** - * @param string $executePrice - */ - public function setExecutePrice(string $executePrice): void - { - $this->executePrice = $executePrice; - } - - /** - * @return string - */ - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - /** - * @param string $triggerPrice - */ - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - - /** - * @return string - */ - public function getTriggerType(): string - { - return $this->triggerType; - } - - /** - * @param string $triggerType - */ - public function setTriggerType(string $triggerType): void - { - $this->triggerType = $triggerType; - } - - /** - * @return string - */ - public function getOrderType(): string - { - return $this->orderType; - } - - /** - * @param string $orderType - */ - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/ModifyTPSLPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/ModifyTPSLPlanReq.php deleted file mode 100644 index 5735c3f9..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/ModifyTPSLPlanReq.php +++ /dev/null @@ -1,109 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - /** - * @param string $triggerPrice - */ - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - /** - * @return string - */ - public function getPlanType(): string - { - return $this->planType; - } - - /** - * @param string $planType - */ - public function setPlanType(string $planType): void - { - $this->planType = $planType; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/PlacePlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/PlacePlanReq.php deleted file mode 100644 index fa93caa8..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/PlacePlanReq.php +++ /dev/null @@ -1,231 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getSize(): string - { - return $this->size; - } - - /** - * @param string $size - */ - public function setSize(string $size): void - { - $this->size = $size; - } - - /** - * @return string - */ - public function getExecutePrice(): string - { - return $this->executePrice; - } - - /** - * @param string $executePrice - */ - public function setExecutePrice(string $executePrice): void - { - $this->executePrice = $executePrice; - } - - /** - * @return string - */ - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - /** - * @param string $triggerPrice - */ - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - - /** - * @return string - */ - public function getSide(): string - { - return $this->side; - } - - /** - * @param string $side - */ - public function setSide(string $side): void - { - $this->side = $side; - } - - /** - * @return string - */ - public function getOrderType(): string - { - return $this->orderType; - } - - /** - * @param string $orderType - */ - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - - /** - * @return string - */ - public function getTriggerType(): string - { - return $this->triggerType; - } - - /** - * @param string $triggerType - */ - public function setTriggerType(string $triggerType): void - { - $this->triggerType = $triggerType; - } - - /** - * @return string - */ - public function getClientOid(): string - { - return $this->clientOid; - } - - /** - * @param string $clientOid - */ - public function setClientOid(string $clientOid): void - { - $this->clientOid = $clientOid; - } - - /** - * @return string - */ - public function getPresetTakeProfitPrice(): string - { - return $this->presetTakeProfitPrice; - } - - /** - * @param string $presetTakeProfitPrice - */ - public function setPresetTakeProfitPrice(string $presetTakeProfitPrice): void - { - $this->presetTakeProfitPrice = $presetTakeProfitPrice; - } - - /** - * @return string - */ - public function getPresetStopLossPrice(): string - { - return $this->presetStopLossPrice; - } - - /** - * @param string $presetStopLossPrice - */ - public function setPresetStopLossPrice(string $presetStopLossPrice): void - { - $this->presetStopLossPrice = $presetStopLossPrice; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/PlaceTPSLReq.php b/bitget-php-sdk-api/src/model/mix/plan/PlaceTPSLReq.php deleted file mode 100644 index c1a8571f..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/PlaceTPSLReq.php +++ /dev/null @@ -1,111 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getMarginCoin(): string - { - return $this->marginCoin; - } - - /** - * @param string $marginCoin - */ - public function setMarginCoin(string $marginCoin): void - { - $this->marginCoin = $marginCoin; - } - - /** - * @return string - */ - public function getPlanType(): string - { - return $this->planType; - } - - /** - * @param string $planType - */ - public function setPlanType(string $planType): void - { - $this->planType = $planType; - } - - /** - * @return string - */ - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - /** - * @param string $triggerPrice - */ - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - - /** - * @return string - */ - public function getHoldSide(): string - { - return $this->holdSide; - } - - /** - * @param string $holdSide - */ - public function setHoldSide(string $holdSide): void - { - $this->holdSide = $holdSide; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/SpotCancelPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/SpotCancelPlanReq.php deleted file mode 100644 index ff5cd045..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/SpotCancelPlanReq.php +++ /dev/null @@ -1,21 +0,0 @@ -orderId; - } - - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/SpotModifyPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/SpotModifyPlanReq.php deleted file mode 100644 index 599bde1c..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/SpotModifyPlanReq.php +++ /dev/null @@ -1,69 +0,0 @@ -orderId; - } - - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - public function getSize(): string - { - return $this->size; - } - - public function setSize(string $size): void - { - $this->size = $size; - } - - public function getExecutePrice(): string - { - return $this->executePrice; - } - - public function setExecutePrice(string $executePrice): void - { - $this->executePrice = $executePrice; - } - - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - - public function getOrderType(): string - { - return $this->orderType; - } - - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/SpotPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/SpotPlanReq.php deleted file mode 100644 index 938ece65..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/SpotPlanReq.php +++ /dev/null @@ -1,129 +0,0 @@ -symbol; - } - - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - public function getSize(): string - { - return $this->size; - } - - public function setSize(string $size): void - { - $this->size = $size; - } - - public function getExecutePrice(): string - { - return $this->executePrice; - } - - public function setExecutePrice(string $executePrice): void - { - $this->executePrice = $executePrice; - } - - public function getTriggerPrice(): string - { - return $this->triggerPrice; - } - - public function setTriggerPrice(string $triggerPrice): void - { - $this->triggerPrice = $triggerPrice; - } - - public function getSide(): string - { - return $this->side; - } - - public function setSide(string $side): void - { - $this->side = $side; - } - - public function getOrderType(): string - { - return $this->orderType; - } - - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - - public function getTriggerType(): string - { - return $this->triggerType; - } - - public function setTriggerType(string $triggerType): void - { - $this->triggerType = $triggerType; - } - - public function getTimeInForceValue(): string - { - return $this->timeInForceValue; - } - - public function setTimeInForceValue(string $timeInForceValue): void - { - $this->timeInForceValue = $timeInForceValue; - } - - public function getClientOid(): string - { - return $this->clientOid; - } - - public function setClientOid(string $clientOid): void - { - $this->clientOid = $clientOid; - } - - public function getChannelApiCode(): string - { - return $this->channelApiCode; - } - - public function setChannelApiCode(string $channelApiCode): void - { - $this->channelApiCode = $channelApiCode; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/plan/SpotQueryPlanReq.php b/bitget-php-sdk-api/src/model/mix/plan/SpotQueryPlanReq.php deleted file mode 100644 index 2bf3a06c..00000000 --- a/bitget-php-sdk-api/src/model/mix/plan/SpotQueryPlanReq.php +++ /dev/null @@ -1,81 +0,0 @@ -symbol; - } - - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - public function getStartTime(): string - { - return $this->startTime; - } - - public function setStartTime(string $startTime): void - { - $this->startTime = $startTime; - } - - public function getEndTime(): string - { - return $this->endTime; - } - - public function setEndTime(string $endTime): void - { - $this->endTime = $endTime; - } - - public function getPageSize(): string - { - return $this->pageSize; - } - - public function setPageSize(string $pageSize): void - { - $this->pageSize = $pageSize; - } - - public function getLastEndId(): string - { - return $this->lastEndId; - } - - public function setLastEndId(string $lastEndId): void - { - $this->lastEndId = $lastEndId; - } - - public function getIsPre(): string - { - return $this->isPre; - } - - public function setIsPre(string $isPre): void - { - $this->isPre = $isPre; - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/trace/CloseTrackOrderReq.php b/bitget-php-sdk-api/src/model/mix/trace/CloseTrackOrderReq.php deleted file mode 100644 index 5cafccc4..00000000 --- a/bitget-php-sdk-api/src/model/mix/trace/CloseTrackOrderReq.php +++ /dev/null @@ -1,51 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getTrackingNo(): string - { - return $this->trackingNo; - } - - /** - * @param string $trackingNo - */ - public function setTrackingNo(string $trackingNo): void - { - $this->trackingNo = $trackingNo; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/trace/MixTraceModifyTPSLOrderReq.php b/bitget-php-sdk-api/src/model/mix/trace/MixTraceModifyTPSLOrderReq.php deleted file mode 100644 index 852c1989..00000000 --- a/bitget-php-sdk-api/src/model/mix/trace/MixTraceModifyTPSLOrderReq.php +++ /dev/null @@ -1,51 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getTrackingNo(): string - { - return $this->trackingNo; - } - - /** - * @param string $trackingNo - */ - public function setTrackingNo(string $trackingNo): void - { - $this->trackingNo = $trackingNo; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/mix/trace/MixTraceSetCopyTradeSymbolReq.php b/bitget-php-sdk-api/src/model/mix/trace/MixTraceSetCopyTradeSymbolReq.php deleted file mode 100644 index 9fb2341e..00000000 --- a/bitget-php-sdk-api/src/model/mix/trace/MixTraceSetCopyTradeSymbolReq.php +++ /dev/null @@ -1,51 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getOperation(): string - { - return $this->operation; - } - - /** - * @param string $operation - */ - public function setOperation(string $operation): void - { - $this->operation = $operation; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/account/BillsReq.php b/bitget-php-sdk-api/src/model/spot/account/BillsReq.php deleted file mode 100644 index 91176724..00000000 --- a/bitget-php-sdk-api/src/model/spot/account/BillsReq.php +++ /dev/null @@ -1,136 +0,0 @@ -coinId; - } - - /** - * @param string $coinId - */ - public function setCoinId(string $coinId): void - { - $this->coinId = $coinId; - } - - /** - * @return string - */ - public function getGroupType(): string - { - return $this->groupType; - } - - /** - * @param string $groupType - */ - public function setGroupType(string $groupType): void - { - $this->groupType = $groupType; - } - - /** - * @return string - */ - public function getBizType(): string - { - return $this->bizType; - } - - /** - * @param string $bizType - */ - public function setBizType(string $bizType): void - { - $this->bizType = $bizType; - } - - /** - * @return string - */ - public function getAfter(): string - { - return $this->after; - } - - /** - * @param string $after - */ - public function setAfter(string $after): void - { - $this->after = $after; - } - - /** - * @return string - */ - public function getBefore(): string - { - return $this->before; - } - - /** - * @param string $before - */ - public function setBefore(string $before): void - { - $this->before = $before; - } - - /** - * @return string - */ - public function getLimit(): string - { - return $this->limit; - } - - /** - * @param string $limit - */ - public function setLimit(string $limit): void - { - $this->limit = $limit; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/BatchOrdersReq.php b/bitget-php-sdk-api/src/model/spot/order/BatchOrdersReq.php deleted file mode 100644 index 19a529f5..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/BatchOrdersReq.php +++ /dev/null @@ -1,53 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return array - */ - public function getOrderList(): array - { - return $this->orderList; - } - - /** - * @param array $orderList - */ - public function setOrderList(array $orderList): void - { - $this->orderList = $orderList; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/CancelBatchOrderReq.php b/bitget-php-sdk-api/src/model/spot/order/CancelBatchOrderReq.php deleted file mode 100644 index c2130cfa..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/CancelBatchOrderReq.php +++ /dev/null @@ -1,52 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return array - */ - public function getOrderIds(): array - { - return $this->orderIds; - } - - /** - * @param array $orderIds - */ - public function setOrderIds(array $orderIds): void - { - $this->orderIds = $orderIds; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/CancelOrderReq.php b/bitget-php-sdk-api/src/model/spot/order/CancelOrderReq.php deleted file mode 100644 index db0fe71f..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/CancelOrderReq.php +++ /dev/null @@ -1,52 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/FillsReq.php b/bitget-php-sdk-api/src/model/spot/order/FillsReq.php deleted file mode 100644 index 8f9d53d4..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/FillsReq.php +++ /dev/null @@ -1,111 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getAfter(): string - { - return $this->after; - } - - /** - * @param string $after - */ - public function setAfter(string $after): void - { - $this->after = $after; - } - - /** - * @return string - */ - public function getBefore(): string - { - return $this->before; - } - - /** - * @param string $before - */ - public function setBefore(string $before): void - { - $this->before = $before; - } - - /** - * @return string - */ - public function getLimit(): string - { - return $this->limit; - } - - /** - * @param string $limit - */ - public function setLimit(string $limit): void - { - $this->limit = $limit; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/HistoryReq.php b/bitget-php-sdk-api/src/model/spot/order/HistoryReq.php deleted file mode 100644 index 779dd496..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/HistoryReq.php +++ /dev/null @@ -1,91 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getAfter(): string - { - return $this->after; - } - - /** - * @param string $after - */ - public function setAfter(string $after): void - { - $this->after = $after; - } - - /** - * @return string - */ - public function getBefore(): string - { - return $this->before; - } - - /** - * @param string $before - */ - public function setBefore(string $before): void - { - $this->before = $before; - } - - /** - * @return string - */ - public function getLimit(): string - { - return $this->limit; - } - - /** - * @param string $limit - */ - public function setLimit(string $limit): void - { - $this->limit = $limit; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/OpenOrdersReq.php b/bitget-php-sdk-api/src/model/spot/order/OpenOrdersReq.php deleted file mode 100644 index da5dba4c..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/OpenOrdersReq.php +++ /dev/null @@ -1,31 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/OrderInfoReq.php b/bitget-php-sdk-api/src/model/spot/order/OrderInfoReq.php deleted file mode 100644 index dae98a4d..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/OrderInfoReq.php +++ /dev/null @@ -1,71 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getOrderId(): string - { - return $this->orderId; - } - - /** - * @param string $orderId - */ - public function setOrderId(string $orderId): void - { - $this->orderId = $orderId; - } - - /** - * @return string - */ - public function getClientOrderId(): string - { - return $this->clientOrderId; - } - - /** - * @param string $clientOrderId - */ - public function setClientOrderId(string $clientOrderId): void - { - $this->clientOrderId = $clientOrderId; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/OrdersReq.php b/bitget-php-sdk-api/src/model/spot/order/OrdersReq.php deleted file mode 100644 index 8a3084a0..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/OrdersReq.php +++ /dev/null @@ -1,156 +0,0 @@ -symbol; - } - - /** - * @param string $symbol - */ - public function setSymbol(string $symbol): void - { - $this->symbol = $symbol; - } - - /** - * @return string - */ - public function getSide(): string - { - return $this->side; - } - - /** - * @param string $side - */ - public function setSide(string $side): void - { - $this->side = $side; - } - - /** - * @return string - */ - public function getOrderType(): string - { - return $this->orderType; - } - - /** - * @param string $orderType - */ - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - - /** - * @return string - */ - public function getForce(): string - { - return $this->force; - } - - /** - * @param string $force - */ - public function setForce(string $force): void - { - $this->force = $force; - } - - /** - * @return string - */ - public function getPrice(): string - { - return $this->price; - } - - /** - * @param string $price - */ - public function setPrice(string $price): void - { - $this->price = $price; - } - - /** - * @return string - */ - public function getQuantity(): string - { - return $this->quantity; - } - - /** - * @param string $quantity - */ - public function setQuantity(string $quantity): void - { - $this->quantity = $quantity; - } - - /** - * @return string - */ - public function getClientOrderId(): string - { - return $this->clientOrderId; - } - - /** - * @param string $clientOrderId - */ - public function setClientOrderId(string $clientOrderId): void - { - $this->clientOrderId = $clientOrderId; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/order/SpotOrdersReq.php b/bitget-php-sdk-api/src/model/spot/order/SpotOrdersReq.php deleted file mode 100644 index 22b8ddc1..00000000 --- a/bitget-php-sdk-api/src/model/spot/order/SpotOrdersReq.php +++ /dev/null @@ -1,136 +0,0 @@ -side; - } - - /** - * @param string $side - */ - public function setSide(string $side): void - { - $this->side = $side; - } - - /** - * @return string - */ - public function getOrderType(): string - { - return $this->orderType; - } - - /** - * @param string $orderType - */ - public function setOrderType(string $orderType): void - { - $this->orderType = $orderType; - } - - /** - * @return string - */ - public function getForce(): string - { - return $this->force; - } - - /** - * @param string $force - */ - public function setForce(string $force): void - { - $this->force = $force; - } - - /** - * @return string - */ - public function getPrice(): string - { - return $this->price; - } - - /** - * @param string $price - */ - public function setPrice(string $price): void - { - $this->price = $price; - } - - /** - * @return string - */ - public function getQuantity(): string - { - return $this->quantity; - } - - /** - * @param string $quantity - */ - public function setQuantity(string $quantity): void - { - $this->quantity = $quantity; - } - - /** - * @return string - */ - public function getClientOrderId(): string - { - return $this->clientOrderId; - } - - /** - * @param string $clientOrderId - */ - public function setClientOrderId(string $clientOrderId): void - { - $this->clientOrderId = $clientOrderId; - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/spot/wallet/WithdrawalReq.php b/bitget-php-sdk-api/src/model/spot/wallet/WithdrawalReq.php deleted file mode 100644 index d977b1fb..00000000 --- a/bitget-php-sdk-api/src/model/spot/wallet/WithdrawalReq.php +++ /dev/null @@ -1,157 +0,0 @@ -coin; - } - - /** - * @param string $coin - */ - public function setCoin(string $coin): void - { - $this->coin = $coin; - } - - /** - * @return string - */ - public function getAddress(): string - { - return $this->address; - } - - /** - * @param string $address - */ - public function setAddress(string $address): void - { - $this->address = $address; - } - - /** - * @return string - */ - public function getChain(): string - { - return $this->chain; - } - - /** - * @param string - */ - public function setChain(string $chain): void - { - $this->chain = $chain; - } - - /** - * @return string - */ - public function getTag(): string - { - return $this->tag; - } - - /** - * @param string - */ - public function setTag(string $tag): void - { - $this->tag = $tag; - } - - /** - * @return string - */ - public function getAmount(): string - { - return $this->amount; - } - - /** - * @param string - */ - public function setAmount(string $amount): void - { - $this->amount = $amount; - } - - /** - * @return string - */ - public function getRemark(): string - { - return $this->remark; - } - - /** - * @param string - */ - public function setRemark(string $remark): void - { - $this->remark = $remark; - } - /** - * @return string - */ - public function getClientOid(): string - { - return $this->clientOid; - } - - /** - * @param string - */ - public function setClientOid(string $clientOid): void - { - $this->clientOid = $clientOid; - } - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/ws/Websocket.php b/bitget-php-sdk-api/src/model/ws/Websocket.php new file mode 100644 index 00000000..f5a2f8ec --- /dev/null +++ b/bitget-php-sdk-api/src/model/ws/Websocket.php @@ -0,0 +1,159 @@ +checksumTest=new ChecksumTest(); + } + + + function subscribe($callback, $sub_str="swap/ticker:BTC-USD-SWAP") { + $GLOBALS['sub_str'] = $sub_str; + $GLOBALS['callback'] = $callback; + $worker = new Worker(); + + // 线上 + $url = "ws://real.okex.com:8443/ws/v3"; + + $worker->onWorkerStart = function($worker) use ($url){ + // ssl需要访问443端口 + $con = new AsyncTcpConnection($url); + + $ntime = $this->getTimestamp(); + print_r($ntime." $url\n"); + + // 设置以ssl加密方式访问,使之成为wss + $con->transport = 'ssl'; + + // 定时器 + Timer::add(20, function() use ($con) + { + $con->send("ping"); +// + $ntime = $this->getTimestamp(); + print_r($ntime." ping\n"); + }); + + $con->onConnect = function($con){ + + // 登陆 + $timestamp = self::get_millisecond(); +// $timestamp = 1563541080.121; + $sign = self::wsSignature($timestamp,"GET","/users/self/verify","",self::$apiSecret); + $data = json_encode([ + 'op' => "login", + 'args' => [self::$apiKey, self::$passphrase, $timestamp, $sign] + ]); + + $ntime = $this->getTimestamp(); + print_r($ntime." $data\n"); +// print_r($ntime." $i $data\n"); + $con->send($data); +// $con->send($data); + + }; + + $con->onMessage = function($con, $data) { + + // 解压数据 + $data = gzinflate($data); + + // 如果是深度200档,则校验 + if(strpos($data,"checksum")) + { + if ($this->partial==null) + { + $this->partial=$data; + }else{ + $update = $data; + + // 深度合并 + $data = $this->checksumTest->depthMerge($this->partial,$update); + + // 深度校验结果 + $result = $this->checksumTest->checksum($data); + + if ($result){ + print_r("---------------------------------------------------------------\n"); + print_r(self::getTimestamp()." checksum success\n"); + } else { + die(self::getTimestamp()." checksum fail\n"); + } + + // 打印增量数据 + call_user_func_array($GLOBALS['callback'], array($update)); + + // 更新全局的全量数据 + $this->partial = $data; + } +// print_r("深度\n") ; + } + + call_user_func_array($GLOBALS['callback'], array($data)); + + $data = json_decode($data, true); + + if (isset($data["success"])){ + // 订阅频道 + $data = json_encode([ + 'op' => "subscribe", + 'args' => $GLOBALS['sub_str'] + ], JSON_UNESCAPED_SLASHES); + + $ntime = $this->getTimestamp(); + print_r($ntime . " $data\n"); + + $con->send($data); +// $con->send($data); + } + }; + + $con->onClose = function ($con) { + + $ntime = $this->getTimestamp(); + + print_r($ntime." reconnecting\n"); + + $con->reConnect(0); + }; + + $con->connect(); + }; + + Worker::runAll(); + } + +} + +//subscribe(function ($data){print_r(json_encode($data,JSON_PRETTY_PRINT));}, "swap/ticker:BTC-USD-SWAP"); diff --git a/bitget-php-sdk-api/test/api/MixOrderTest.php b/bitget-php-sdk-api/test/api/MixOrderTest.php new file mode 100644 index 00000000..da2bdc53 --- /dev/null +++ b/bitget-php-sdk-api/test/api/MixOrderTest.php @@ -0,0 +1,59 @@ +mixOrderApi = $restClient->getMixClient()->getOrderApi(); + $this->bitgetApi = new BitgetApi(new BitgetApiClient()); + } + + public function testPlaceOrder() + { + $params = array("symbol" => "BTCUSDT_UMCBL", + "marginCoin" => "USDT", + "side" => "open_long", + "orderType" => "limit", + "price" => "27012", + "size" => "0.01", + "timInForceValue" => "normal"); + return $this->mixOrderApi->placeOrder($params); + } + + public function testPost() + { + $params = array("symbol" => "BTCUSDT_UMCBL", + "marginCoin" => "USDT", + "side" => "open_long", + "orderType" => "limit", + "price" => "27012", + "size" => "0.01", + "timInForceValue" => "normal"); + return $this->bitgetApi->post("/api/mix/v1/order/placeOrder", $params); + } + + public function testGet() + { + $params = array("productType" => "umcbl"); + return $this->bitgetApi->get("/api/mix/v1/account/accounts", $params); + } + + public function testGetWithNoParams() + { + $params = array(); + return $this->bitgetApi->get("/api/spot/v1/account/getInfo", $params); + } +} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixAccountTest.php b/bitget-php-sdk-api/test/mix/MixAccountTest.php deleted file mode 100644 index 9d63d017..00000000 --- a/bitget-php-sdk-api/test/mix/MixAccountTest.php +++ /dev/null @@ -1,87 +0,0 @@ -mixAccountApi=$restClient->getMixClient()->getAccountApi(); - - } - - public function testAccount(){ - return $this->mixAccountApi->account("BTCUSDT_UMCBL","USDT"); - } - - public function testAccounts(){ - return $this->mixAccountApi->accounts("umcbl"); - - } - - public function testSetLeverage(): string - { - $setLeverageReq = new SetLeverageReq(); - $setLeverageReq->setLeverage(""); - $setLeverageReq->setSymbol(""); - $setLeverageReq->setMarginCoin(""); - $setLeverageReq->setHoldSide(""); - return $this->mixAccountApi->setLeverage($setLeverageReq); - } - public function testSetMargin(): string - { - $setMarginReq = new SetMarginReq(); - $setMarginReq->setSymbol("BTCUSDT_UMCBL"); - $setMarginReq->setHoldSide("long"); - $setMarginReq->setMarginCoin("USDT"); - $setMarginReq->setAmount("10"); - return $this->mixAccountApi->setMargin($setMarginReq); - } - - public function testSetMarginMode(): string - { - $setMarginModeReq = new SetMarginModeReq(); - $setMarginModeReq->setSymbol("BTCUSDT_UMCBL"); - $setMarginModeReq->setMarginCoin("USDT"); - $setMarginModeReq->setMarginMode("fixed"); - return $this->mixAccountApi->setMarginMode($setMarginModeReq); - } - - public function testSetPositionMode(): string - { - $setPositionModeReq = new SetPositionModeReq(); - $setPositionModeReq->setSymbol("BTCUSDT_UMCBL"); - $setPositionModeReq->setMarginCoin("USDT"); - $setPositionModeReq->setHoldMode("double_hold"); - return $this->mixAccountApi->setPositionMode($setPositionModeReq); - } - - public function testOpenCount(): string - { - $openCountReq = new OpenCountReq(); - $openCountReq->setSymbol("BTCUSDT_UMCBL"); - $openCountReq->setMarginCoin("USDT"); - $openCountReq->setOpenPrice("30000"); - $openCountReq->setOpenAmount("99999"); - $openCountReq->setLeverage("20"); - return $this->mixAccountApi->openCount($openCountReq); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixMarketTest.php b/bitget-php-sdk-api/test/mix/MixMarketTest.php deleted file mode 100644 index b953a0ea..00000000 --- a/bitget-php-sdk-api/test/mix/MixMarketTest.php +++ /dev/null @@ -1,70 +0,0 @@ -mixMarketApi=$restClient->getMixClient()->getMarketApi(); - } - - public function testContracts(){ - return $this->mixMarketApi->contracts("sdmcbl"); - } - - public function testDepth(){ - return $this->mixMarketApi->depth("BTCUSDT_UMCBL","50"); - } - - public function testTicker(){ - return $this->mixMarketApi->ticker("BTCUSDT_UMCBL"); - } - - public function testTickers(){ - return $this->mixMarketApi->tickers("sdmcbl"); - } - public function testFills(){ - return $this->mixMarketApi->fills("BTCUSDT_UMCBL",""); - } - - public function testCandles(){ - return $this->mixMarketApi->candles("BTCUSDT_UMCBL","60","1629177891000","1629181491000"); - } - - public function testIndex(){ - return $this->mixMarketApi->index("BTCUSDT_UMCBL"); - } - - public function testFundingTime(){ - return $this->mixMarketApi->fundingTime("BTCUSDT_UMCBL"); - } - - public function testHistoryFundRate(){ - return $this->mixMarketApi->historyFundRate("BTCUSDT_UMCBL","20","1","false"); - } - - public function testCurrentFundRate(){ - return $this->mixMarketApi->currentFundRate("BTCUSDT_UMCBL"); - } - - public function testOpenInterest(){ - return $this->mixMarketApi->openInterest("BTCUSDT_UMCBL"); - } - - public function testMarkPrice(){ - return $this->mixMarketApi->markPrice("BTCUSDT_UMCBL"); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixOrderTest.php b/bitget-php-sdk-api/test/mix/MixOrderTest.php deleted file mode 100644 index 6fb8b3a5..00000000 --- a/bitget-php-sdk-api/test/mix/MixOrderTest.php +++ /dev/null @@ -1,114 +0,0 @@ -mixOrderApi = $restClient->getMixClient()->getOrderApi(); - } - - public function testPlaceOrder() - { - $placeOrderReq = new PlaceOrderReq(); - $placeOrderReq->setClientOid("RFIut#15914567782322235"); - $placeOrderReq->setSymbol("SBTCSUSDT_SUMCBL"); - $placeOrderReq->setPrice("44067.0"); - $placeOrderReq->setSize("2"); - $placeOrderReq->setMarginCoin("SUSDT"); - $placeOrderReq->setSide("open_long"); - $placeOrderReq->setTimeInForceValue("normal"); - $placeOrderReq->setOrderType("market"); - return $this->mixOrderApi->placeOrder($placeOrderReq); - } - - public function testBatchOrders() - { - - $batchOrdersReq = new BatchOrdersReq(); - $batchOrdersReq->setSymbol("SBTCSUSDT_SUMCBL"); - $batchOrdersReq->setMarginCoin("SUSDT"); - - $placeOrderBaseParamOne = new PlaceOrderBaseParam(); - $placeOrderBaseParamOne->setClientOid("RFIut#".(string)(time() * 1000)); - $placeOrderBaseParamOne->setPrice("46596"); - $placeOrderBaseParamOne->setSize("0.5"); - $placeOrderBaseParamOne->setSide("open_long"); - $placeOrderBaseParamOne->setTimeInForceValue("normal"); - $placeOrderBaseParamOne->setOrderType("limit"); - - $placeOrderBaseParamTow = new PlaceOrderBaseParam(); - $placeOrderBaseParamTow->setClientOid("RFIut#".(string)(time() * 1000)."123"); - $placeOrderBaseParamTow->setPrice("46596"); - $placeOrderBaseParamTow->setSize("0.5"); - $placeOrderBaseParamTow->setSide("open_long"); - $placeOrderBaseParamTow->setTimeInForceValue("normal"); - $placeOrderBaseParamTow->setOrderType("limit"); - - $dataList = array($placeOrderBaseParamOne, $placeOrderBaseParamTow); - - $batchOrdersReq->setOrderDataList($dataList); - - return $this->mixOrderApi->batchOrders($batchOrdersReq); - } - - public function testCancelOrder(): string - { - $cancelOrderReq = new CancelOrderReq(); - $cancelOrderReq->setMarginCoin("SUSDT"); - $cancelOrderReq->setSymbol("SBTCSUSDT_SUMCBL"); - $cancelOrderReq->setOrderId("831289989378224130"); - return $this->mixOrderApi->cancelOrder($cancelOrderReq); - } - - public function testCancelBatchOrder(): string - { - $cancelBatchOrder = new CancelBatchOrderReq(); - $cancelBatchOrder->setSymbol("SBTCSUSDT_SUMCBL"); - $cancelBatchOrder->setMarginCoin("SUSDT"); - $orders = array("831296644891422720","831296644992086017"); - $cancelBatchOrder->setOrderIds($orders); - - return $this->mixOrderApi->cancelBatchOrder($cancelBatchOrder); - } - - public function testHistory(): string - { - $startTime = strtotime(date('Y-m-d 00:00:00', time()))*1000; - $endTime = strtotime(date('Y-m-d 23:59:59', time()))*1000; - return $this->mixOrderApi->history("SBTCSUSDT_SUMCBL",$startTime,$endTime,"20","","false"); - } - - public function testCurrent():string - { - return $this->mixOrderApi->current("SBTCSUSDT_SUMCBL"); - } - - public function testDetail():string - { - return $this->mixOrderApi->detail("SBTCSUSDT_SUMCBL","831300699831283713"); - } - - public function testFills():string - { - return $this->mixOrderApi->fills("SBTCSUSDT_SUMCBL","831300699831283713"); - } - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixPlanTest.php b/bitget-php-sdk-api/test/mix/MixPlanTest.php deleted file mode 100644 index 750b6d49..00000000 --- a/bitget-php-sdk-api/test/mix/MixPlanTest.php +++ /dev/null @@ -1,115 +0,0 @@ -mixPlanApi=$restClient->getMixClient()->getMixPlanApi(); - - } - - public function testPlacePlan():string - { - $placePlanReq = new PlacePlanReq(); - $placePlanReq->setClientOid("RFIut#".(string)(time() * 1000)); - $placePlanReq->setSymbol("BTCUSDT_UMCBL"); - $placePlanReq->setTriggerPrice("45000.3"); - $placePlanReq->setExecutePrice("38923.1"); - $placePlanReq->setSize("1"); - $placePlanReq->setMarginCoin('USDT'); - $placePlanReq->setSide("open_long"); - $placePlanReq->setOrderType("limit"); - $placePlanReq->setTriggerType("fill_price"); - return $this->mixPlanApi->placePlan($placePlanReq); - } - - public function testModifyPlan():string - { - $modifyPlanReq = new ModifyPlanReq(); - $modifyPlanReq->setOrderId(""); - $modifyPlanReq->setSymbol("BTCUSDT_UMCBL"); - $modifyPlanReq->setTriggerPrice("45000.3"); - $modifyPlanReq->setExecutePrice("38923.1"); - $modifyPlanReq->setMarginCoin('USDT'); - $modifyPlanReq->setOrderType("limit"); - $modifyPlanReq->setTriggerType("fill_price"); - return $this->mixPlanApi->modifyPlan($modifyPlanReq); - } - - public function testModifyPlanPreset():string - { - $modifyPlanPresetReq = new ModifyPlanPresetReq(); - $modifyPlanPresetReq->setOrderId(""); - $modifyPlanPresetReq->setSymbol("BTCUSDT_UMCBL"); - $modifyPlanPresetReq->setMarginCoin('USDT'); - $modifyPlanPresetReq->setPresetStopLossPrice("55012.1"); - return $this->mixPlanApi->modifyPlanPreset($modifyPlanPresetReq); - } - - public function testPlaceTPSL():string - { - $placeTPSLReq = new PlaceTPSLReq(); - $placeTPSLReq->setSymbol("BTCUSDT_UMCBL"); - $placeTPSLReq->setMarginCoin('USDT'); - $placeTPSLReq->setPlanType("profit_plan"); - $placeTPSLReq->setTriggerPrice("36888"); - $placeTPSLReq->setHoldSide("short"); - return $this->mixPlanApi->placeTPSL($placeTPSLReq); - } - - public function testModifyTPSLPlan():string - { - $modifyTPSLPlanReq = new ModifyTPSLPlanReq(); - $modifyTPSLPlanReq->setOrderId(""); - $modifyTPSLPlanReq->setSymbol("BTCUSDT_UMCBL"); - $modifyTPSLPlanReq->setMarginCoin('USDT'); - $modifyTPSLPlanReq->setTriggerPrice("36888"); - return $this->mixPlanApi->modifyTPSLPlan($modifyTPSLPlanReq); - } - - public function testCancelPlan():string - { - $cancelPlanReq = new CancelPlanReq(); - $cancelPlanReq->setOrderId(""); - $cancelPlanReq->setSymbol("BTCUSDT_UMCBL"); - $cancelPlanReq->setMarginCoin('USDT'); - $cancelPlanReq->setPlanType("normal_plan"); - return $this->mixPlanApi->cancelPlan($cancelPlanReq); - } - - public function testCurrentPlan():string - { - return $this->mixPlanApi->currentPlan("BTCUSDT_UMCBL","plan"); - } - - public function testHistoryPlan():string - { - $startTime = strtotime(date('Y-m-d 00:00:00', time()))*1000; - $endTime = strtotime(date('Y-m-d 23:59:59', time()))*1000; - return $this->mixPlanApi->historyPlan("BTCUSDT_UMCBL",$startTime,$endTime,"100","false","plan"); - } - - - - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixPositionTest.php b/bitget-php-sdk-api/test/mix/MixPositionTest.php deleted file mode 100644 index 46706315..00000000 --- a/bitget-php-sdk-api/test/mix/MixPositionTest.php +++ /dev/null @@ -1,35 +0,0 @@ -mixPositionApi=$restClient->getMixClient()->getMixPositionApi(); - - } - - public function testSinglePosition():string - { - return $this->mixPositionApi->singlePosition("BTCUSDT_UMCBL","USDT"); - } - - public function testAllPosition():string - { - return $this->mixPositionApi->allPosition("umcbl","USDT"); - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/mix/MixTraceTest.php b/bitget-php-sdk-api/test/mix/MixTraceTest.php deleted file mode 100644 index 8dcc1ed1..00000000 --- a/bitget-php-sdk-api/test/mix/MixTraceTest.php +++ /dev/null @@ -1,98 +0,0 @@ -mixTraceApi=$restClient->getMixClient()->getMixTraceApi(); - } - public function testCloseTraceOrder():string - { - $closeTraceOrderReq = new CloseTrackOrderReq(); - $closeTraceOrderReq->setSymbol("BTCUSDT_UMCBL"); - $closeTraceOrderReq->setTrackingNo("0"); - return $this->mixTraceApi->closeTraceOrder($closeTraceOrderReq); - } - public function testCurrentTrack():string - { - return $this->mixTraceApi->currentTrack("BTCUSDT_UMCBL","umcbl","10","1"); - } - - public function testHistoryTrack():string - { - $startTime = strtotime(date('Y-m-d 00:00:00', time()))*1000; - $endTime = strtotime(date('Y-m-d 23:59:59', time()))*1000; - return $this->mixTraceApi->historyTrack($startTime,$endTime,"10","1"); - } - - public function testSummary():string - { - return $this->mixTraceApi->summary(); - } - - public function testProfitSettleTokenIdGroup():string - { - return $this->mixTraceApi->profitSettleTokenIdGroup(); - } - - public function testProfitDateGroupList():string - { - return $this->mixTraceApi->profitDateGroupList("10","1"); - } - - public function testProfitDateList():string - { - return $this->mixTraceApi->profitDateList("BTCUSDT_UMCBL","","10","1"); - } - - public function testWaitProfitDateList():string - { - return $this->mixTraceApi->waitProfitDateList("10","1"); - } - - public function testFollowerHistoryOrders():string - { - return $this->mixTraceApi->followerHistoryOrders("10","1","1635782400000","1635852263953"); - } - - public function traderSymbols():string - { - return $this->mixTraceApi->traderSymbols(); - } - - public function setUpCopySymbols():string - { - $mixTraceSetCopyTradeSymbolReq = new MixTraceSetCopyTradeSymbolReq(); - $mixTraceSetCopyTradeSymbolReq->setSymbol("BTCUSDT_UMCBL"); - return $this->mixTraceApi->setUpCopySymbols($mixTraceSetCopyTradeSymbolReq); - } - - public function modifyTPSL():string - { - $mixTraceModifyTPSLOrderReq = new MixTraceModifyTPSLOrderReq(); - $mixTraceModifyTPSLOrderReq->setSymbol("BTCUSDT_UMCBL"); - $mixTraceModifyTPSLOrderReq->setTrackingNo("0"); - return $this->mixTraceApi->modifyTPSL($mixTraceModifyTPSLOrderReq); - } - - public function followerOrder():string - { - return $this->mixTraceApi->followerOrder("BTCUSDT_UMCBL","umcbl","10","1"); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/spot/SpotAccountTest.php b/bitget-php-sdk-api/test/spot/SpotAccountTest.php deleted file mode 100644 index 4daa96cd..00000000 --- a/bitget-php-sdk-api/test/spot/SpotAccountTest.php +++ /dev/null @@ -1,45 +0,0 @@ -spotAccountApi=$restClient->getSpotClient()->getAccountApi(); - - } - - public function testAssets():string - { - return $this->spotAccountApi->assets(); - } - - public function testBills():string - { - $billsReq = new BillsReq(); - $billsReq->setAfter(""); - $billsReq->setBefore(""); - $billsReq->setBizType(""); - $billsReq->setCoinId(""); - $billsReq->setGroupType(""); - $billsReq->setLimit(""); - return $this->spotAccountApi->bills($billsReq); - } - public function testTransferRecords():string - { - return $this->spotAccountApi->transferRecords("2","USDT_MIX","10","",""); - } - - -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/spot/SpotMarketTest.php b/bitget-php-sdk-api/test/spot/SpotMarketTest.php deleted file mode 100644 index a83ff9fc..00000000 --- a/bitget-php-sdk-api/test/spot/SpotMarketTest.php +++ /dev/null @@ -1,46 +0,0 @@ -spotMarketApi=$restClient->getSpotClient()->getMarketApi(); - } - - public function testFills():string - { - return $this->spotMarketApi->fills("btcusdt_spbl","50"); - } - - public function testDepth():string - { - return $this->spotMarketApi->depth("btcusdt_spbl","50","step0"); - } - - public function testTicker():string - { - return $this->spotMarketApi->ticker("btcusdt_spbl"); - } - - public function testTickers():string - { - return $this->spotMarketApi->tickers(); - } - public function testCandles():string - { - $startTime = strtotime(date('Y-m-d 00:00:00', time()))*1000; - $endTime = strtotime(date('Y-m-d 23:59:59', time()))*1000; - return $this->spotMarketApi->candles("btcusdt_spbl","1min",$startTime,$endTime,"50"); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/spot/SpotOrderTest.php b/bitget-php-sdk-api/test/spot/SpotOrderTest.php deleted file mode 100644 index b0e4efac..00000000 --- a/bitget-php-sdk-api/test/spot/SpotOrderTest.php +++ /dev/null @@ -1,123 +0,0 @@ -spotOrderApi=$restClient->getSpotClient()->getOrderApi(); - } - - public function testOrders():string - { - $ordersReq = new OrdersReq(); - $ordersReq->setSymbol("bftusdt_spbl"); - $ordersReq->setPrice("2.68111"); - $ordersReq->setQuantity("10"); - $ordersReq->setSide("buy"); - $ordersReq->setOrderType("limit"); - $ordersReq->setForce("normal"); - return $this->spotOrderApi->orders($ordersReq); - - } - - public function testBatchOrders():string - { - $batchOrdersReq = new BatchOrdersReq(); - $batchOrdersReq->setSymbol("bftusdt_spbl"); - - $spotOrdersReqOne = new SpotOrdersReq(); - $spotOrdersReqOne->setForce("normal"); - $spotOrdersReqOne->setOrderType("limit"); - $spotOrdersReqOne->setSide("buy"); - $spotOrdersReqOne->setQuantity("1"); - $spotOrdersReqOne->setPrice("2.60222"); - $spotOrdersReqOne->setClientOrderId("spot#1625039618000"); - - $spotOrdersReqTow = new SpotOrdersReq(); - $spotOrdersReqTow->setForce("normal"); - $spotOrdersReqTow->setOrderType("limit"); - $spotOrdersReqTow->setSide("buy"); - $spotOrdersReqTow->setQuantity("1"); - $spotOrdersReqTow->setPrice("2.60111"); - $spotOrdersReqTow->setClientOrderId("spot#1625039618122"); - - $orderList = array($spotOrdersReqOne,$spotOrdersReqTow); - - $batchOrdersReq->setOrderList($orderList); - return $this->spotOrderApi->batchOrders($batchOrdersReq); - - } - - public function testCancelOrder():string - { - $cancelOrderReq = new CancelOrderReq(); - $cancelOrderReq->setSymbol("bftusdt_spbl"); - $cancelOrderReq->setOrderId(""); - return $this->spotOrderApi->cancelOrder($cancelOrderReq); - } - - public function testCancelBatchOrder():string - { - $cancelBatchOrderReq = new CancelBatchOrderReq(); - $cancelBatchOrderReq->setSymbol("bftusdt_spbl"); - $cancelBatchOrderReq->setOrderIds(array("","")); - return $this->spotOrderApi->cancelBatchOrder($cancelBatchOrderReq); - - } - - public function testOrderInfo():string - { - $orderInfoReq = new OrderInfoReq(); - $orderInfoReq->setSymbol("bftusdt_spbl"); - $orderInfoReq->setClientOrderId(""); - $orderInfoReq->setOrderId(""); - return $this->spotOrderApi->orderInfo($orderInfoReq); - - } - - public function testOpenOrders():string - { - $openOrdersReq = new OpenOrdersReq(); - $openOrdersReq->setSymbol("bftusdt_spbl"); - - return $this->spotOrderApi->openOrders($openOrdersReq); - - } - - public function testHistory():string - { - $historyReq = new HistoryReq(); - $historyReq->setSymbol("bftusdt_spbl"); - - return $this->spotOrderApi->history($historyReq); - - } - public function testFills():string - { - $fillsReq = new FillsReq(); - $fillsReq->setSymbol("bftusdt_spbl"); - - return $this->spotOrderApi->fills($fillsReq); - - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/spot/SpotPlanTest.php b/bitget-php-sdk-api/test/spot/SpotPlanTest.php deleted file mode 100644 index 7b13322a..00000000 --- a/bitget-php-sdk-api/test/spot/SpotPlanTest.php +++ /dev/null @@ -1,74 +0,0 @@ -spotPlanApi=$restClient->getSpotClient()->getPlanApi(); - } - - public function testPlacePlan():string - { - $req = new SpotPlanReq(); - $req->setSymbol("BTCUSDT_SPBL"); - $req->setSide("buy"); - $req->setTriggerPrice("22031"); - $req->setExecutePrice("22031"); - $req->setSize("100"); - $req->setTriggerType("market_price"); - $req->setOrderType("market"); - $req->setTimeInForceValue("normal"); - return $this->spotPlanApi->placePlan($req); - } - - public function testModifyPlan():string - { - $req = new SpotModifyPlanReq(); - $req->setOrderId("987136018723487744"); - $req->setTriggerPrice("22031"); - $req->setExecutePrice("22031"); - $req->setSize("50"); - $req->setOrderType("limit"); - return $this->spotPlanApi->modifyPlan($req); - } - - public function testCancelPlan():string - { - $req = new SpotCancelPlanReq(); - $req->setOrderId("987136018723487744"); - return $this->spotPlanApi->cancelPlan($req); - } - - public function testCurrentPlan():string - { - $req = new SpotQueryPlanReq(); - $req->setSymbol("BTCUSDT_SPBL"); - $req->setPageSize("5"); - return $this->spotPlanApi->currentPlan($req); - } - - public function testHistoryPlan():string - { - $req = new SpotQueryPlanReq(); - $req->setSymbol("BTCUSDT_SPBL"); - $req->setPageSize("5"); - $req->setStartTime("1671005531000"); - $req->setEndTime("1671085652000"); - return $this->spotPlanApi->historyPlan($req); - } -} \ No newline at end of file diff --git a/bitget-php-sdk-api/test/spot/SpotPublicTest.php b/bitget-php-sdk-api/test/spot/SpotPublicTest.php deleted file mode 100644 index e284927d..00000000 --- a/bitget-php-sdk-api/test/spot/SpotPublicTest.php +++ /dev/null @@ -1,41 +0,0 @@ -spotPublicApi = $restClient->getSpotClient()->getPublicApi(); - } - - public function testTime(): string - { - return $this->spotPublicApi->time(); - } - - public function testCurrencies(): string - { - return $this->spotPublicApi->currencies(); - } - - public function testProducts(): string - { - return $this->spotPublicApi->products(); - } - - public function testProduct(): string - { - return $this->spotPublicApi->product("ETHUSDT_SPBL"); - } - -} \ No newline at end of file From ebc7af836ea5e9dd9301478e989e557591b5a10e Mon Sep 17 00:00:00 2001 From: jidening Date: Thu, 19 Oct 2023 14:27:06 +0800 Subject: [PATCH 09/25] php sdk --- bitget-php-sdk-api/example_api.php | 28 ++++ bitget-php-sdk-api/example_mix.php | 190 ---------------------------- bitget-php-sdk-api/example_spot.php | 105 --------------- 3 files changed, 28 insertions(+), 295 deletions(-) create mode 100644 bitget-php-sdk-api/example_api.php delete mode 100644 bitget-php-sdk-api/example_mix.php delete mode 100644 bitget-php-sdk-api/example_spot.php diff --git a/bitget-php-sdk-api/example_api.php b/bitget-php-sdk-api/example_api.php new file mode 100644 index 00000000..95683d7f --- /dev/null +++ b/bitget-php-sdk-api/example_api.php @@ -0,0 +1,28 @@ +testPlaceOrder(); + print_r($testPlaceOrder . "\n"); + + $testPost = $mixOrderTest->testPost(); + print_r($testPost . "\n"); + + $testGet = $mixOrderTest->testGet(); + print_r($testGet . "\n"); + + $testGet = $mixOrderTest->testGetWithNoParams(); + print_r($testGet . "\n"); +} + + + diff --git a/bitget-php-sdk-api/example_mix.php b/bitget-php-sdk-api/example_mix.php deleted file mode 100644 index 1e28302c..00000000 --- a/bitget-php-sdk-api/example_mix.php +++ /dev/null @@ -1,190 +0,0 @@ -testAccount(); - print_r($testAccount . "\n"); - - $testSetMarginMode = $mixAccountTest->testSetMarginMode(); - print_r($testSetMarginMode . "\n"); - - $testOpenCount = $mixAccountTest->testOpenCount(); - print_r($testOpenCount . "\n"); -} - - -function testMarket() -{ - $mixMarketTest = new MixMarketTest(); - $testContracts = $mixMarketTest->testContracts(); - print_r($testContracts . "\n"); - - $testDepth = $mixMarketTest->testDepth(); - print_r($testDepth . "\n"); - - $testTicker = $mixMarketTest->testTicker(); - print_r($testTicker . "\n"); - - $testTickers = $mixMarketTest->testTickers(); - print_r($testTickers . "\n"); - - $testFills = $mixMarketTest->testFills(); - print_r($testFills . "\n"); - - $testCandles = $mixMarketTest->testCandles(); - print_r($testCandles . "\n"); - - $testIndex = $mixMarketTest->testIndex(); - print_r($testIndex . "\n"); - - $testFundingTime = $mixMarketTest->testFundingTime(); - print_r($testFundingTime . "\n"); - - $testHistoryFundRate = $mixMarketTest->testHistoryFundRate(); - print_r($testHistoryFundRate . "\n"); - - $testCurrentFundRate = $mixMarketTest->testCurrentFundRate(); - print_r($testCurrentFundRate . "\n"); - - $testOpenInterest = $mixMarketTest->testOpenInterest(); - print_r($testOpenInterest . "\n"); - - $testMarkPrice = $mixMarketTest->testMarkPrice(); - print_r($testMarkPrice . "\n"); - -} - -function testOrder() -{ - $mixOrderTest = new MixOrderTest(); - - $testPlaceOrder = $mixOrderTest->testPlaceOrder(); - print_r($testPlaceOrder."\n"); - - $testBatchOrders = $mixOrderTest->testBatchOrders(); - print_r($testBatchOrders . "\n"); - - $testCancelOrder = $mixOrderTest->testCancelOrder(); - print_r($testCancelOrder."\n"); - - $testCancelBatchOrder = $mixOrderTest->testCancelBatchOrder(); - print_r($testCancelBatchOrder . "\n"); - - $testHistory = $mixOrderTest->testHistory(); - print_r($testHistory . "\n"); - - $testCurrent = $mixOrderTest->testCurrent(); - print_r($testCurrent . "\n"); - - $testDetail = $mixOrderTest->testDetail(); - print_r($testDetail . "\n"); - - $testFills = $mixOrderTest->testFills(); - print_r($testFills . "\n"); -} - -function testPlan() -{ - $mixPlanTest = new MixPlanTest(); - $testPlacePlan = $mixPlanTest->testPlacePlan(); - print_r($testPlacePlan."\n"); - - $testModifyPlan = $mixPlanTest->testModifyPlan(); - print_r($testModifyPlan."\n"); - - $testModifyPlanPreset = $mixPlanTest->testModifyPlanPreset(); - print_r($testModifyPlanPreset."\n"); - - $testPlaceTPSL = $mixPlanTest->testPlaceTPSL(); - print_r($testPlaceTPSL."\n"); - - $testModifyTPSLPlan = $mixPlanTest->testModifyTPSLPlan(); - print_r($testModifyTPSLPlan."\n"); - - $testCancelPlan = $mixPlanTest->testCancelPlan(); - print_r($testCancelPlan."\n"); - - $testCurrentPlan = $mixPlanTest->testCurrentPlan(); - print_r($testCurrentPlan."\n"); - - $testHistoryPlan = $mixPlanTest->testHistoryPlan(); - print_r($testHistoryPlan."\n"); - -} -function testPosition() -{ - $mixPositionTest = new MixPositionTest(); - - $testAllPosition = $mixPositionTest->testAllPosition(); - print_r($testAllPosition."\n"); - - $testSinglePosition = $mixPositionTest->testSinglePosition(); - print_r($testSinglePosition."\n"); - -} - -function testTrace() -{ - $mixTraceTest = new MixTraceTest(); -// -// $testCloseTraceOrder = $mixTraceTest->testCloseTraceOrder(); -// print_r($testCloseTraceOrder."\n"); -// -// $testCurrentTrack = $mixTraceTest->testCurrentTrack(); -// print_r($testCurrentTrack."\n"); -// -// -// $testHistoryTrack = $mixTraceTest->testHistoryTrack(); -// print_r($testHistoryTrack."\n"); -// -// $testSummary = $mixTraceTest->testSummary(); -// print_r($testSummary."\n"); -// -// $testProfitSettleTokenIdGroup = $mixTraceTest->testProfitSettleTokenIdGroup(); -// print_r($testProfitSettleTokenIdGroup."\n"); -// -// $testProfitDateGroupList = $mixTraceTest->testProfitDateGroupList(); -// print_r($testProfitDateGroupList."\n"); -// -// $testProfitDateList = $mixTraceTest->testProfitDateList(); -// print_r($testProfitDateList."\n"); -// -// $testWaitProfitDateList = $mixTraceTest->testWaitProfitDateList(); -// print_r($testWaitProfitDateList."\n"); - - $testWaitProfitDateList = $mixTraceTest->testFollowerHistoryOrders(); - print_r($testWaitProfitDateList."\n"); - -// $testWaitProfitDateList = $mixTraceTest->traderSymbols(); -// print_r($testWaitProfitDateList."\n"); -// $testWaitProfitDateList = $mixTraceTest->setUpCopySymbols(); -// print_r($testWaitProfitDateList."\n"); -// $testWaitProfitDateList = $mixTraceTest->modifyTPSL(); -// print_r($testWaitProfitDateList."\n"); -// $testWaitProfitDateList = $mixTraceTest->followerOrder(); -// print_r($testWaitProfitDateList."\n"); -} - - diff --git a/bitget-php-sdk-api/example_spot.php b/bitget-php-sdk-api/example_spot.php deleted file mode 100644 index 788dadec..00000000 --- a/bitget-php-sdk-api/example_spot.php +++ /dev/null @@ -1,105 +0,0 @@ -testAssets(); - print_r($testAssets . "\n"); - - $testBills = $spotAccountTest->testBills(); - print_r($testBills . "\n"); - - $testTransferRecords = $spotAccountTest->testTransferRecords(); - print_r($testTransferRecords . "\n"); -} - - -function testMarket() -{ - $spotMarketTest = new SpotMarketTest(); - $testFills = $spotMarketTest->testFills(); - print_r($testFills . "\n"); - - $testCandles = $spotMarketTest->testCandles(); - print_r($testCandles . "\n"); - - $testTicker = $spotMarketTest->testTicker(); - print_r($testTicker . "\n"); - - $testTickers = $spotMarketTest->testTickers(); - print_r($testTickers . "\n"); - - $testDepth = $spotMarketTest->testDepth(); - print_r($testDepth . "\n"); - - -} - -function testOrder() -{ - $spotOrderTest = new SpotOrderTest(); - - $testOrders = $spotOrderTest->testOrders(); - print_r($testOrders . "\n"); - - $testBatchOrders = $spotOrderTest->testBatchOrders(); - print_r($testBatchOrders . "\n"); - - $testFills = $spotOrderTest->testFills(); - print_r($testFills . "\n"); - - $testHistory = $spotOrderTest->testHistory(); - print_r($testHistory . "\n"); - - $testCancelBatchOrder = $spotOrderTest->testCancelBatchOrder(); - print_r($testCancelBatchOrder . "\n"); - - $testCancelOrder = $spotOrderTest->testCancelOrder(); - print_r($testCancelOrder . "\n"); - - $testOrderInfo = $spotOrderTest->testOrderInfo(); - print_r($testOrderInfo . "\n"); - - $testOpenOrders = $spotOrderTest->testOpenOrders(); - print_r($testOpenOrders . "\n"); - -} - -function testPublic() -{ - $spotPublicTest = new SpotPublicTest(); - - $testCurrencies = $spotPublicTest->testCurrencies(); - print_r($testCurrencies . "\n"); - - $testProduct = $spotPublicTest->testProduct(); - print_r($testProduct . "\n"); - - $testProducts = $spotPublicTest->testProducts(); - print_r($testProducts . "\n"); - - $testTime = $spotPublicTest->testTime(); - print_r($testTime . "\n"); - -} - - - - From 7c60a9cbf81f15a0cfcffc4a8dcda3d48f1721bc Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Fri, 17 Nov 2023 16:04:02 +0800 Subject: [PATCH 10/25] golang --- bitget-golang-sdk-api/README.md | 136 +++++++++++++--------------- bitget-golang-sdk-api/README_EN.md | 137 +++++++++++++---------------- 2 files changed, 120 insertions(+), 153 deletions(-) diff --git a/bitget-golang-sdk-api/README.md b/bitget-golang-sdk-api/README.md index db8fc4c0..46684dfb 100644 --- a/bitget-golang-sdk-api/README.md +++ b/bitget-golang-sdk-api/README.md @@ -3,19 +3,17 @@ 使用此sdk前请阅读api文档 [Bitget API](https://bitgetlimited.github.io/apidoc/en/mix/) ## Supported API Endpoints: -- pkg/v1: `*client.go` -- pkg/v2: `*client.go` -- pkg/ws: `bitgetwsclient.go` +- pkg/client/v1: `*client.go` +- pkg/client/v2: `*client.go` +- pkg/client/ws: `bitgetwsclient.go` ## 下载 ```shell -git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git +git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git ``` -## REST API - -Create an order example +## REST API Demo ```go package test @@ -46,13 +44,53 @@ func Test_PlaceOrder(t *testing.T) { } fmt.Println(resp) } -``` -Please find more examples for each supported endpoint in the `test` folder. +func Test_post(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.Post("/api/mix/v1/order/placeOrder", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["productType"] = "umcbl" + + resp, err := client.Get("/api/mix/v1/account/accounts", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get_with_params(t *testing.T) { + client := new(client.BitgetApiClient).Init() -## Websocket Stream + params := internal.NewParams() + resp, err := client.Get("/api/spot/v1/account/getInfo", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} +``` +## Websocket Demo ```go package test @@ -91,76 +129,22 @@ func TestBitgetWsClient_New(t *testing.T) { fmt.Println("appoint:" + message) }) client.Connect() - } - ``` -Combined Diff. Depth Stream Example - +## RSA +如果你的apikey是RSA类型则主动设置签名类型为RSA ```go -package main - -import ( - "fmt" - "time" - - binance_connector "github.com/binance/binance-connector-go" +// config.go +const ( + BaseUrl = "https://api.bitget.com" + WsUrl = "wss://ws.bitget.com/mix/v1/stream" + + ApiKey = "" + SecretKey = "" // 如果是RSA类型则设置RSA私钥 + PASSPHRASE = "" + TimeoutSecond = 30 + SignType = constants.RSA // 如果你的apikey是RSA类型则主动设置签名类型为RSA ) - -func main() { - // Set isCombined parameter to true as we are using Combined Depth Stream - websocketStreamClient := binance_connector.NewWebsocketStreamClient(true) - - wsCombinedDepthHandler := func(event *binance_connector.WsDepthEvent) { - fmt.Println(binance_connector.PrettyPrint(event)) - } - errHandler := func(err error) { - fmt.Println(err) - } - // Use WsCombinedDepthServe to subscribe to multiple streams - doneCh, stopCh, err := websocketStreamClient.WsCombinedDepthServe([]string{"LTCBTC", "BTCUSDT", "MATICUSDT"}, wsCombinedDepthHandler, errHandler) - if err != nil { - fmt.Println(err) - return - } - go func() { - time.Sleep(5 * time.Second) - stopCh <- struct{}{} - }() - <-doneCh -} ``` -## Websocket API - -```go -func OCOHistoryExample() { - // Initialise Websocket API Client - client := binance_connector.NewWebsocketAPIClient("api_key", "secret_key") - // Connect to Websocket API - err := client.Connect() - if err != nil { - log.Printf("Error: %v", err) - return - } - defer client.Close() - - // Send request to Websocket API - response, err := client.NewAccountOCOHistoryService().Do(context.Background()) - if err != nil { - log.Printf("Error: %v", err) - return - } - - // Print the response - fmt.Println(binance_connector.PrettyPrint(response)) - - client.WaitForCloseSignal() -} -``` - -## 域名 -- Binance provides alternative Production URLs in case of performance issues: - - https://api.bitget.com - diff --git a/bitget-golang-sdk-api/README_EN.md b/bitget-golang-sdk-api/README_EN.md index 0ff70e7c..e1b2c241 100644 --- a/bitget-golang-sdk-api/README_EN.md +++ b/bitget-golang-sdk-api/README_EN.md @@ -3,20 +3,17 @@ This is a lightweight library that works as a connector to [Bitget API](https://bitgetlimited.github.io/apidoc/en/mix/) ## Supported API Endpoints: -- pkg/v1: `*client.go` -- pkg/v2: `*client.go` -- pkg/ws: `bitgetwsclient.go` +- pkg/client/v1: `*client.go` +- pkg/client/v2: `*client.go` +- pkg/client/ws: `bitgetwsclient.go` ## Installation ```shell -git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git +git clone git@github.com:BitgetLimited/v3-bitget-api-sdk.git ``` -## REST API - -Create an order example - +## REST API Demo ```go package test @@ -46,13 +43,53 @@ func Test_PlaceOrder(t *testing.T) { } fmt.Println(resp) } -``` -Please find more examples for each supported endpoint in the `test` folder. +func Test_post(t *testing.T) { + client := new(client.BitgetApiClient).Init() -## Websocket Stream + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + resp, err := client.Post("/api/mix/v1/order/placeOrder", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["productType"] = "umcbl" + + resp, err := client.Get("/api/mix/v1/account/accounts", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} +func Test_get_with_params(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + + resp, err := client.Get("/api/spot/v1/account/getInfo", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} +``` + +## Websocket Demo ```go package test @@ -91,76 +128,22 @@ func TestBitgetWsClient_New(t *testing.T) { fmt.Println("appoint:" + message) }) client.Connect() - } ``` -Combined Diff. Depth Stream Example - +## RSA +If your apikey is of RSA type, actively set the signature type to RSA ```go -package main - -import ( - "fmt" - "time" - - binance_connector "github.com/binance/binance-connector-go" +// config.go +const ( + BaseUrl = "https://api.bitget.com" + WsUrl = "wss://ws.bitget.com/mix/v1/stream" + + ApiKey = "" + SecretKey = "" // If it is RSA type, set the RSA private key + PASSPHRASE = "" + TimeoutSecond = 30 + SignType = constants.RSA // If your apikey is of RSA type, actively set the signature type to RSA ) - -func main() { - // Set isCombined parameter to true as we are using Combined Depth Stream - websocketStreamClient := binance_connector.NewWebsocketStreamClient(true) - - wsCombinedDepthHandler := func(event *binance_connector.WsDepthEvent) { - fmt.Println(binance_connector.PrettyPrint(event)) - } - errHandler := func(err error) { - fmt.Println(err) - } - // Use WsCombinedDepthServe to subscribe to multiple streams - doneCh, stopCh, err := websocketStreamClient.WsCombinedDepthServe([]string{"LTCBTC", "BTCUSDT", "MATICUSDT"}, wsCombinedDepthHandler, errHandler) - if err != nil { - fmt.Println(err) - return - } - go func() { - time.Sleep(5 * time.Second) - stopCh <- struct{}{} - }() - <-doneCh -} -``` - -## Websocket API - -```go -func OCOHistoryExample() { - // Initialise Websocket API Client - client := binance_connector.NewWebsocketAPIClient("api_key", "secret_key") - // Connect to Websocket API - err := client.Connect() - if err != nil { - log.Printf("Error: %v", err) - return - } - defer client.Close() - - // Send request to Websocket API - response, err := client.NewAccountOCOHistoryService().Do(context.Background()) - if err != nil { - log.Printf("Error: %v", err) - return - } - - // Print the response - fmt.Println(binance_connector.PrettyPrint(response)) - - client.WaitForCloseSignal() -} ``` - -## Base URL -- Binance provides alternative Production URLs in case of performance issues: - - https://api.bitget.com - From 9edffe194daee819163cf6fcc6a2a4b3101ece83 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Fri, 17 Nov 2023 16:19:19 +0800 Subject: [PATCH 11/25] rsa node --- bitget-golang-sdk-api/config/config.go | 11 +- bitget-golang-sdk-api/constants/constants.go | 52 +- .../internal/common/bitgetrestclient.go | 3 + .../internal/common/bitgetrestclient_test.go | 15 - .../internal/common/bitgetwsclient.go | 62 +- .../internal/common/bitgetwsclient_test.go | 13 - .../internal/common/signer.go | 50 +- .../internal/common/signer_test.go | 13 - .../internal/model/BookInfo.go | 99 - bitget-golang-sdk-api/internal/utils.go | 22 - .../pkg/test/apiclient_test.go | 72 - .../pkg/test/bitgetwsclient_test.go | 39 - bitget-java-sdk-api/README.md | 20 +- .../openapi/common/client/ApiClient.java | 20 +- .../common/domain/ClientParameter.java | 8 +- .../openapi/common/utils/SignatureUtils.java | 69 +- .../openapi/dto/response/ResponseResult.java | 2 +- .../com/bitget/openapi/ws/BitgetWsHandle.java | 76 +- .../java/com/bitget/openapi/BaseTest.java | 74 +- .../bitget/openapi/ws/BitgetWsClientTest.java | 50 +- bitget-node-sdk-api/README.md | 81 +- bitget-node-sdk-api/README_EN.md | 86 +- bitget-node-sdk-api/__test__/api.spec.ts | 13 +- .../__test__/websocketTest.spec.ts | 7 +- bitget-node-sdk-api/package-lock.json | 12455 ++++++++++++++++ bitget-node-sdk-api/src/lib/BitgetApi.ts | 2 +- bitget-node-sdk-api/src/lib/config.ts | 27 +- bitget-node-sdk-api/src/lib/util.ts | 25 +- .../src/lib/v1/MixAccountApi.ts | 4 +- .../src/lib/v1/MixMarketApi.ts | 8 +- .../src/lib/v1/SpotAccountApi.ts | 2 +- .../src/lib/v2/MixAccountApi.ts | 4 +- .../src/lib/v2/MixMarketApi.ts | 8 +- .../src/lib/v2/SpotAccountApi.ts | 2 +- .../src/lib/v2/SpotMarketApi.ts | 4 +- .../src/lib/ws/BitgetWsClient.ts | 40 +- bitget-python-sdk-api/README.md | 63 + bitget-python-sdk-api/README_EN.md | 73 +- bitget-python-sdk-api/bitget/client.py | 2 + bitget-python-sdk-api/bitget/consts.py | 9 +- bitget-python-sdk-api/bitget/utils.py | 22 +- .../bitget/ws/bitget_ws_client.py | 18 +- .../bitget/ws/contract/private_channel.py | 32 - .../bitget/ws/contract/public_channel.py | 37 - .../bitget/ws/utils/sign_utils.py | 18 - .../bitget/ws/utils/ws_url.py | 47 - .../bitget/ws/websocket_server.py | 106 - bitget-python-sdk-api/example_ws_contract.py | 6 +- 48 files changed, 13099 insertions(+), 872 deletions(-) delete mode 100644 bitget-golang-sdk-api/internal/common/bitgetrestclient_test.go delete mode 100644 bitget-golang-sdk-api/internal/common/bitgetwsclient_test.go delete mode 100644 bitget-golang-sdk-api/internal/common/signer_test.go delete mode 100644 bitget-golang-sdk-api/internal/model/BookInfo.go delete mode 100644 bitget-golang-sdk-api/pkg/test/apiclient_test.go delete mode 100644 bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go create mode 100644 bitget-node-sdk-api/package-lock.json delete mode 100644 bitget-python-sdk-api/bitget/ws/contract/private_channel.py delete mode 100644 bitget-python-sdk-api/bitget/ws/contract/public_channel.py delete mode 100644 bitget-python-sdk-api/bitget/ws/utils/sign_utils.py delete mode 100644 bitget-python-sdk-api/bitget/ws/utils/ws_url.py delete mode 100644 bitget-python-sdk-api/bitget/ws/websocket_server.py diff --git a/bitget-golang-sdk-api/config/config.go b/bitget-golang-sdk-api/config/config.go index 30e530f0..8aa5eab7 100644 --- a/bitget-golang-sdk-api/config/config.go +++ b/bitget-golang-sdk-api/config/config.go @@ -1,13 +1,14 @@ package config +import "bitget/constants" + const ( - //restApi config - BaseUrl = "https://api.bitget.com" + BaseUrl = "https://api.bitget.com" + WsUrl = "wss://ws.bitget.com/mix/v1/stream" + ApiKey = "" SecretKey = "" PASSPHRASE = "" TimeoutSecond = 30 - - //websocket config - WsUrl = "wss://ws.bitget.com/spot/v1/stream" + SignType = constants.SHA256 ) diff --git a/bitget-golang-sdk-api/constants/constants.go b/bitget-golang-sdk-api/constants/constants.go index 4ff0f7ba..d47c235f 100644 --- a/bitget-golang-sdk-api/constants/constants.go +++ b/bitget-golang-sdk-api/constants/constants.go @@ -2,8 +2,8 @@ package constants const ( /* - http headers - */ + * http headers + */ ContentType = "Content-Type" BgAccessKey = "ACCESS-KEY" BgAccessSign = "ACCESS-SIGN" @@ -16,46 +16,14 @@ const ( LOCALE = "locale=" /* - http methods - */ - GET = "GET" - POST = "POST" - DELETE = "DELETE" - - /* - others - */ - ResultDataJsonString = "resultDataJsonString" - ResultPageJsonString = "resultPageJsonString" - - /** - * SPOT URL - */ - SpotPublic = "/api/spot/v1/public" - SpotMarket = "/api/spot/v1/market" - SpotAccount = "/api/spot/v1/account" - SpotTrade = "/api/spot/v1/trade" - SpotPlan = "/api/spot/v1/plan" - SpotWallet = "/api/spot/v1/wallet" - - /** - * MIX URL + * http methods */ - MixPlan = "/api/mix/v1/plan" - MixMarket = "/api/mix/v1/market" - MixAccount = "/api/mix/v1/account" - MixOrder = "/api/mix/v1/order" - MixPosition = "/api/mix/v1/position" - MixTrace = "/api/mix/v1/trace" + GET = "GET" + POST = "POST" - /** - * broker url + /* + * websocket */ - BrokerAccount = "/api/broker/v1/account" - - /** - websocket - */ WsAuthMethod = "GET" WsAuthPath = "/user/verify" WsOpLogin = "login" @@ -63,4 +31,10 @@ const ( WsOpSubscribe = "subscribe" TimerIntervalSecond = 5 ReconnectWaitSecond = 60 + + /* + * SignType + */ + RSA = "RSA" + SHA256 = "SHA256" ) diff --git a/bitget-golang-sdk-api/internal/common/bitgetrestclient.go b/bitget-golang-sdk-api/internal/common/bitgetrestclient.go index 4594976c..c6eca1e3 100644 --- a/bitget-golang-sdk-api/internal/common/bitgetrestclient.go +++ b/bitget-golang-sdk-api/internal/common/bitgetrestclient.go @@ -36,6 +36,9 @@ func (p *BitgetRestClient) DoPost(uri string, params string) (string, error) { //body, _ := internal.BuildJsonParams(params) sign := p.Signer.Sign(constants.POST, uri, params, timesStamp) + if constants.RSA == config.SignType { + sign = p.Signer.SignByRSA(constants.POST, uri, params, timesStamp) + } requestUrl := config.BaseUrl + uri buffer := strings.NewReader(params) diff --git a/bitget-golang-sdk-api/internal/common/bitgetrestclient_test.go b/bitget-golang-sdk-api/internal/common/bitgetrestclient_test.go deleted file mode 100644 index dd492bbc..00000000 --- a/bitget-golang-sdk-api/internal/common/bitgetrestclient_test.go +++ /dev/null @@ -1,15 +0,0 @@ -package common - -import ( - "bitget/internal" - "testing" -) - -func TestBitgetRestClient_HttpExecuter(t *testing.T) { - restClient := new(BitgetRestClient).Init() - params := internal.NewParams() - params["productType"] = "umcbl" - resp, _ := restClient.DoGet("/api/mix/v1/account/accounts", params) - - println(resp) -} diff --git a/bitget-golang-sdk-api/internal/common/bitgetwsclient.go b/bitget-golang-sdk-api/internal/common/bitgetwsclient.go index 8b4cce81..c72f0a42 100644 --- a/bitget-golang-sdk-api/internal/common/bitgetwsclient.go +++ b/bitget-golang-sdk-api/internal/common/bitgetwsclient.go @@ -26,7 +26,6 @@ type BitgetBaseWsClient struct { AllSuribe *model.Set Signer *Signer ScribeMap map[model.SubscribeReq]OnReceive - BooksMap map[model.SubscribeReq]model.BookInfo } func (p *BitgetBaseWsClient) Init() *BitgetBaseWsClient { @@ -34,7 +33,6 @@ func (p *BitgetBaseWsClient) Init() *BitgetBaseWsClient { p.AllSuribe = model.NewSet() p.Signer = new(Signer).Init(config.SecretKey) p.ScribeMap = make(map[model.SubscribeReq]OnReceive) - p.BooksMap = make(map[model.SubscribeReq]model.BookInfo) p.SendMutex = &sync.Mutex{} p.Ticker = time.NewTicker(constants.TimerIntervalSecond * time.Second) p.LastReceivedTime = time.Now() @@ -68,6 +66,9 @@ func (p *BitgetBaseWsClient) ConnectWebSocket() { func (p *BitgetBaseWsClient) Login() { timesStamp := internal.TimesStampSec() sign := p.Signer.Sign(constants.WsAuthMethod, constants.WsAuthPath, "", timesStamp) + //if constants.RSA == config.SignType { + // sign = p.Signer.SignByRSA(constants.WsAuthMethod, constants.WsAuthPath, "", timesStamp) + //} loginReq := model.WsLoginReq{ ApiKey: config.ApiKey, @@ -165,6 +166,8 @@ func (p *BitgetBaseWsClient) ReadLoop() { p.LastReceivedTime = time.Now() message := string(buf) + applogger.Info("rev:" + message) + if message == "pong" { applogger.Info("Keep connected:" + message) continue @@ -185,14 +188,9 @@ func (p *BitgetBaseWsClient) ReadLoop() { continue } - if !p.CheckSum(jsonMap) { - continue - } - v, e = jsonMap["data"] if e { listener := p.GetListener(jsonMap["arg"]) - listener(message) continue } @@ -201,56 +199,6 @@ func (p *BitgetBaseWsClient) ReadLoop() { } -func (p *BitgetBaseWsClient) CheckSum(jsonMap map[string]interface{}) bool { - argV, argE := jsonMap["arg"] - actionV, actionE := jsonMap["action"] - - if !argE || !actionE { - return true - } - channelV, _ := argV.(map[string]interface{})["channel"] - if channelV != "books" { - return true - } - dataV, _ := jsonMap["data"] - if dataV == nil { - return true - } - data := dataV.([]interface{})[0] - - asks := data.(map[string]interface{})["asks"].([]interface{}) - bids := data.(map[string]interface{})["bids"].([]interface{}) - checksum := data.(map[string]interface{})["checksum"].(float64) - bookInfo := model.BookInfo{ - Asks: asks, - Bids: bids, - Checksum: fmt.Sprintf("%f", checksum), - } - - mapData := argV.(map[string]interface{}) - subscribeReq := model.SubscribeReq{ - InstType: fmt.Sprintf("%v", mapData["instType"]), - Channel: fmt.Sprintf("%v", mapData["channel"]), - InstId: fmt.Sprintf("%v", mapData["instId"]), - } - - if actionV == "snapshot" { - p.BooksMap[subscribeReq] = bookInfo - return true - } - if actionV == "update" { - allBookInfo, subE := p.BooksMap[subscribeReq] - - if !subE { - return true - } - newBoooks := allBookInfo.Merge(bookInfo) - p.BooksMap[subscribeReq] = newBoooks - return newBoooks.CheckSum(uint32(checksum)) - } - return true -} - func (p *BitgetBaseWsClient) GetListener(argJson interface{}) OnReceive { mapData := argJson.(map[string]interface{}) diff --git a/bitget-golang-sdk-api/internal/common/bitgetwsclient_test.go b/bitget-golang-sdk-api/internal/common/bitgetwsclient_test.go deleted file mode 100644 index 0b75debc..00000000 --- a/bitget-golang-sdk-api/internal/common/bitgetwsclient_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package common - -import ( - "testing" -) - -func TestBitgetWsClient_Init(t *testing.T) { - //client := new(BitgetWsClient).Init(true) - // - //client.Connect() - ////client.Login() - //fmt.Println("aaaaaaaaaa") -} diff --git a/bitget-golang-sdk-api/internal/common/signer.go b/bitget-golang-sdk-api/internal/common/signer.go index 642cfb02..423b20d1 100644 --- a/bitget-golang-sdk-api/internal/common/signer.go +++ b/bitget-golang-sdk-api/internal/common/signer.go @@ -1,9 +1,15 @@ package common import ( + "crypto" "crypto/hmac" + "crypto/rand" + "crypto/rsa" "crypto/sha256" + "crypto/x509" "encoding/base64" + "encoding/pem" + "errors" "strings" ) @@ -17,7 +23,6 @@ func (p *Signer) Init(key string) *Signer { } func (p *Signer) Sign(method string, requestPath string, body string, timesStamp string) string { - var payload strings.Builder payload.WriteString(timesStamp) payload.WriteString(method) @@ -30,3 +35,46 @@ func (p *Signer) Sign(method string, requestPath string, body string, timesStamp result := base64.StdEncoding.EncodeToString(hash.Sum(nil)) return result } + +func (p *Signer) SignByRSA(method string, requestPath string, body string, timesStamp string) string { + var payload strings.Builder + payload.WriteString(timesStamp) + payload.WriteString(method) + payload.WriteString(requestPath) + if body != "" && body != "?" { + payload.WriteString(body) + } + + sign, _ := RSASign([]byte(payload.String()), p.secretKey, crypto.SHA256) + result := base64.StdEncoding.EncodeToString(sign) + return result +} + +func RSASign(src []byte, priKey []byte, hash crypto.Hash) ([]byte, error) { + block, _ := pem.Decode(priKey) + if block == nil { + return nil, errors.New("key is invalid format") + } + + var pkixPrivateKey interface{} + var err error + if block.Type == "RSA PRIVATE KEY" { + pkixPrivateKey, err = x509.ParsePKCS1PrivateKey(block.Bytes) + } else if block.Type == "PRIVATE KEY" { + pkixPrivateKey, err = x509.ParsePKCS8PrivateKey(block.Bytes) + } + + h := hash.New() + _, err = h.Write(src) + if err != nil { + return nil, err + } + + bytes := h.Sum(nil) + sign, err := rsa.SignPKCS1v15(rand.Reader, pkixPrivateKey.(*rsa.PrivateKey), hash, bytes) + if err != nil { + return nil, err + } + + return sign, nil +} diff --git a/bitget-golang-sdk-api/internal/common/signer_test.go b/bitget-golang-sdk-api/internal/common/signer_test.go deleted file mode 100644 index 39c365cb..00000000 --- a/bitget-golang-sdk-api/internal/common/signer_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package common - -import ( - "bitget/internal" - "fmt" - "testing" -) - -func TestSigner_Sign(t *testing.T) { - signer := new(Signer) - result := signer.Sign("GET", "www.bitget.com", "aaaa", internal.TimesStamp()) - fmt.Print(result) -} diff --git a/bitget-golang-sdk-api/internal/model/BookInfo.go b/bitget-golang-sdk-api/internal/model/BookInfo.go deleted file mode 100644 index 48e78519..00000000 --- a/bitget-golang-sdk-api/internal/model/BookInfo.go +++ /dev/null @@ -1,99 +0,0 @@ -package model - -import ( - "bitget/logging/applogger" - "hash/crc32" - "sort" - "strconv" - "strings" -) - -type BookInfo struct { - Asks []interface{} `json:"asks"` - Bids []interface{} `json:"bids"` - Checksum string `json:"checksum"` -} - -func (p BookInfo) Merge(bookinfo BookInfo) BookInfo { - p.Asks = p.innerMerge(p.Asks, bookinfo.Asks, false) - p.Bids = p.innerMerge(p.Bids, bookinfo.Bids, true) - return p -} -func (p *BookInfo) innerMerge(allList []interface{}, updateList []interface{}, isReverse bool) []interface{} { - var priceAndValue = make(map[float64][]interface{}) - - var result []interface{} - - for i := 0; i < len(allList); i++ { - var v = allList[i].([]interface{})[0] - key, _ := strconv.ParseFloat(v.(string), 2) - priceAndValue[key] = allList[i].([]interface{}) - } - - for i := 0; i < len(updateList); i++ { - var v = updateList[i].([]interface{})[0] - key, _ := strconv.ParseFloat(v.(string), 2) - if updateList[i].([]interface{})[1] == "0" { - delete(priceAndValue, key) - continue - } - priceAndValue[key] = updateList[i].([]interface{}) - } - - for _, v := range priceAndValue { - result = append(result, v) - } - - //for key := range keys { - // i,e := priceAndValue[sortKeys[key]] - // if e { - // result = append(result, i) - // } - //} - - sort.Slice(result, func(i, j int) bool { - - o1 := result[i].([]interface{})[0].(string) - o2 := result[j].([]interface{})[0].(string) - o1F, _ := strconv.ParseFloat(o1, 2) - o2F, _ := strconv.ParseFloat(o2, 2) - if isReverse { - return o1F > o2F - } else { - return o1F < o2F - } - }) - return result -} - -func (p *BookInfo) CheckSum(checksum uint32) bool { - - var payload strings.Builder - for i := 0; i < 25; i++ { - - bidsLen := len(p.Bids) - asksLen := len(p.Asks) - - if bidsLen > i { - payload.WriteString(p.Bids[i].([]interface{})[0].(string)) - payload.WriteString(":") - payload.WriteString(p.Bids[i].([]interface{})[1].(string)) - payload.WriteString(":") - } - if asksLen > i { - payload.WriteString(p.Asks[i].([]interface{})[0].(string)) - payload.WriteString(":") - payload.WriteString(p.Asks[i].([]interface{})[1].(string)) - payload.WriteString(":") - } - - asksLen-- - bidsLen-- - } - var resultStr = payload.String()[0 : payload.Len()-1] - - applogger.Info("mergeStr:" + resultStr) - var allCheckSum = crc32.ChecksumIEEE([]byte(resultStr)) - applogger.Info("mergeVal:" + strconv.Itoa(int(allCheckSum)) + ",checkSum:" + strconv.Itoa(int(checksum))) - return allCheckSum == checksum -} diff --git a/bitget-golang-sdk-api/internal/utils.go b/bitget-golang-sdk-api/internal/utils.go index a05dae30..7c05c7f8 100644 --- a/bitget-golang-sdk-api/internal/utils.go +++ b/bitget-golang-sdk-api/internal/utils.go @@ -4,7 +4,6 @@ import ( "bitget/constants" "encoding/json" "errors" - "math" "net/http" "net/url" "strconv" @@ -78,24 +77,3 @@ func ToJson(v interface{}) (string, error) { } return string(result), nil } -func powerf(x float64, n int) float64 { - ans := 1.0 - for n != 0 { - if n%2 == 1 { - ans *= x - } - x *= x - n /= 2 - } - return ans -} - -func GetSignedInt(checksum string) string { - c, _ := strconv.ParseUint(checksum, 10, 64) - - if c > math.MaxInt32 { - a := c - (1<<31-1)*2 - 2 - return strconv.FormatUint(a, 10) - } - return checksum -} diff --git a/bitget-golang-sdk-api/pkg/test/apiclient_test.go b/bitget-golang-sdk-api/pkg/test/apiclient_test.go deleted file mode 100644 index ecec5e75..00000000 --- a/bitget-golang-sdk-api/pkg/test/apiclient_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package test - -import ( - "bitget/internal" - "bitget/pkg/client" - "bitget/pkg/client/v1" - "fmt" - "testing" -) - -func Test_PlaceOrder(t *testing.T) { - client := new(v1.MixOrderClient).Init() - - params := internal.NewParams() - params["symbol"] = "BTCUSDT_UMCBL" - params["marginCoin"] = "USDT" - params["side"] = "open_long" - params["orderType"] = "limit" - params["price"] = "27012" - params["size"] = "0.01" - params["timInForceValue"] = "normal" - - resp, err := client.PlaceOrder(params) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func Test_post(t *testing.T) { - client := new(client.BitgetApiClient).Init() - - params := internal.NewParams() - params["symbol"] = "BTCUSDT_UMCBL" - params["marginCoin"] = "USDT" - params["side"] = "open_long" - params["orderType"] = "limit" - params["price"] = "27012" - params["size"] = "0.01" - params["timInForceValue"] = "normal" - - resp, err := client.Post("/api/mix/v1/order/placeOrder", params) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func Test_get(t *testing.T) { - client := new(client.BitgetApiClient).Init() - - params := internal.NewParams() - params["productType"] = "umcbl" - - resp, err := client.Get("/api/mix/v1/account/accounts", params) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} - -func Test_get_with_params(t *testing.T) { - client := new(client.BitgetApiClient).Init() - - params := internal.NewParams() - - resp, err := client.Get("/api/spot/v1/account/getInfo", params) - if err != nil { - println(err.Error()) - } - fmt.Println(resp) -} diff --git a/bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go b/bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go deleted file mode 100644 index ebb2b03c..00000000 --- a/bitget-golang-sdk-api/pkg/test/bitgetwsclient_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package test - -import ( - "bitget/internal/model" - "bitget/pkg/client/ws" - "fmt" - "testing" -) - -func TestBitgetWsClient_New(t *testing.T) { - - client := new(ws.BitgetWsClient).Init(true, func(message string) { - fmt.Println("default error:" + message) - }, func(message string) { - fmt.Println("default error:" + message) - }) - - var channelsDef []model.SubscribeReq - subReqDef1 := model.SubscribeReq{ - InstType: "UMCBL", - Channel: "account", - InstId: "default", - } - channelsDef = append(channelsDef, subReqDef1) - client.SubscribeDef(channelsDef) - - var channels []model.SubscribeReq - subReq1 := model.SubscribeReq{ - InstType: "UMCBL", - Channel: "account", - InstId: "default", - } - channels = append(channels, subReq1) - client.Subscribe(channels, func(message string) { - fmt.Println("appoint:" + message) - }) - client.Connect() - -} diff --git a/bitget-java-sdk-api/README.md b/bitget-java-sdk-api/README.md index fa5e2142..c2b57a1e 100755 --- a/bitget-java-sdk-api/README.md +++ b/bitget-java-sdk-api/README.md @@ -2,9 +2,9 @@ A Java sdk for bitget exchange API - Supported APIs: - - /api/spot/v1/* - - /api/mix/v1/* - - Supports custom expansion of any URL + - /api/spot/v1/* + - /api/mix/v1/* + - Supports custom expansion of any URL # Installation - git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git @@ -38,16 +38,17 @@ public class SdkConfig { public BitgetRestClient bitgetRestClient() throws Exception { ClientParameter parameter = ClientParameter.builder() .apiKey(apiKey) - .secretKey(secretKey) + .secretKey(secretKey) // 如果是RSA类型则设置为RSA私钥 .passphrase(passphrase) .baseUrl(baseUrl) + //.signType(SignTypeEnum.RSA) // 如果你的apikey是RSA类型则主动设置签名类型为RSA .locale(SupportedLocaleEnum.ZH_CN.getName()).build(); return BitgetRestClient.builder().configuration(parameter).build(); } } ``` -## Add dependencies +## Add dependencies ```java @Resource private BitgetRestClient bitgetRestClient; @@ -92,7 +93,7 @@ ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v System.out.println(JSON.toJSONString(result)); ``` -## Other things to note +## Other things to note ## Base URL It's recommended to pass in the `baseUrl` parameter.
@@ -101,7 +102,7 @@ If not provided, the default baseUrl is `https://api.bitget.com`
## Optional parameters -All parameters are read from a `HashMap` object where `String` is the name of the parameter and `String` is the value of the parameter. +All parameters are read from a `HashMap` object where `String` is the name of the parameter and `String` is the value of the parameter. The parameters should follow their exact naming as in the API documentation.
```java Map paramMap = Maps.newHashMap(); @@ -118,7 +119,7 @@ paramMap.put("timInForceValue","normal"); # Websocket Run Example -## Demo 1: +## Demo 1: ```java public class BitgetWsClientTest { public static final String PUSH_URL = "wss://ws.bitget.com/spot/v1/stream"; // or wss://ws.bitget.com/mix/v1/stream @@ -130,8 +131,9 @@ public class BitgetWsClientTest { BitgetWsClient client = BitgetWsHandle.builder() .pushUrl(PUSH_URL) .apiKey(API_KEY) - .secretKey(SECRET_KEY) + .secretKey(SECRET_KEY) // 如果是RSA类型则设置RSA私钥 .passPhrase(PASS_PHRASE) + //.signType(SignTypeEnum.RSA) // 如果你的apikey是RSA类型则主动设置签名类型为RSA .isLogin(true) //默认监听处理,如订阅时指定监听,默认不再接收该channel订阅信息 .listener(response -> { diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java index 8c26ca5c..88c416af 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java @@ -1,11 +1,10 @@ package com.bitget.openapi.common.client; import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONObject; import com.bitget.openapi.common.constant.HttpHeader; import com.bitget.openapi.common.domain.ClientParameter; -import com.bitget.openapi.common.exception.BitgetApiException; +import com.bitget.openapi.common.enums.SignTypeEnum; import com.bitget.openapi.common.utils.SignatureUtils; import com.bitget.openapi.dto.response.ResponseResult; import okhttp3.*; @@ -74,6 +73,14 @@ public Response intercept(Chain chain) { original.url().encodedQuery(), original.body() == null ? "" : bodyToString(original), clientParameter.getSecretKey()); + if (SignTypeEnum.RSA == clientParameter.getSignType()) { + sign = SignatureUtils.restGenerateRsaSignature(timestamp, + original.method(), + original.url().url().getPath(), + original.url().encodedQuery(), + original.body() == null ? "" : bodyToString(original), + clientParameter.getSecretKey()); + } String localFormat = "locale=%s"; Request.Builder requestBuilder = original.newBuilder() @@ -130,13 +137,4 @@ public Response intercept(Chain chain) throws IOException { } } } - - public static String getJSONStringValue(String json, String key) { - try { - JSONObject obj = JSONObject.parseObject(json); - return obj.getString(key); - } catch (JSONException e) { - throw new JSONException(String.format("[JSONObject] Failed to get \"%s\" from JSON object", key)); - } - } } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java index fdea53fd..c917908a 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/domain/ClientParameter.java @@ -1,5 +1,6 @@ package com.bitget.openapi.common.domain; +import com.bitget.openapi.common.enums.SignTypeEnum; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -31,7 +32,7 @@ public class ClientParameter { private String passphrase; /** - * 服务 url,非必填 默认 https://capi.bitget.com/api/swap/v3/ + * 服务 url,非必填 默认 */ private String baseUrl; @@ -44,4 +45,9 @@ public class ClientParameter { * 语言环境 */ private String locale; + + /** + * 签名类型 + */ + private SignTypeEnum signType = SignTypeEnum.SHA256; } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java index 17ea8e55..85bf423c 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/utils/SignatureUtils.java @@ -6,8 +6,9 @@ import javax.crypto.spec.SecretKeySpec; import javax.management.RuntimeErrorException; import java.io.UnsupportedEncodingException; -import java.security.InvalidKeyException; -import java.security.NoSuchAlgorithmException; +import java.nio.charset.StandardCharsets; +import java.security.*; +import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; /** @@ -29,7 +30,7 @@ public class SignatureUtils { } /** - * 签名算法 + * Rest HMAC签名算法 * * @param timestamp * @param method @@ -60,6 +61,32 @@ public static String generate(String timestamp, String method, String requestPat return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); } + /** + * Rest RSA签名算法 + * @param timestamp + * @param method + * @param requestPath + * @param queryString + * @param body + * @param secretKey + * @return + * @throws CloneNotSupportedException + * @throws InvalidKeyException + * @throws UnsupportedEncodingException + */ + public static String restGenerateRsaSignature(String timestamp, String method, String requestPath, + String queryString, String body, String secretKey) + throws CloneNotSupportedException, InvalidKeyException, UnsupportedEncodingException { + + method = method.toUpperCase(); + body = StringUtils.defaultIfBlank(body, StringUtils.EMPTY); + queryString = StringUtils.isBlank(queryString) ? StringUtils.EMPTY : "?" + queryString; + + String preHash = timestamp + method + requestPath + queryString + body; + System.out.println(preHash); + return genRsaSignature(preHash, secretKey); + } + /** * websocket 签名加密 * @param timestamp @@ -81,8 +108,9 @@ public static String ws_sign(String timestamp, String method, String requestPath mac.init(secretKeySpec); return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); } + /** - * ws签名 + * ws HMAC签名 * @param timestamp * @param secretKey * @return @@ -97,11 +125,34 @@ public static String wsGenerateSign(String timestamp,String secretKey)throws C return Base64.getEncoder().encodeToString(mac.doFinal(preHash.getBytes(SignatureUtils.CHARSET))); } - public static void main(String[] args) throws Exception { - String msg=generate("1606981450","GET","/user/verify" ,null,null,"9ae40dd0f6074f9e2714e3ef9f9ed0ac33a049d85a38c02cc42873f03308f1fa"); - System.out.println(msg); + /** + * ws RSA签名 + * @param timestamp + * @param secretKey + * @return + */ + public static String wsGenerateRsaSignature(String timestamp,String secretKey)throws CloneNotSupportedException, + InvalidKeyException, UnsupportedEncodingException{ + String preHash = timestamp + "GET" + "/user/verify"; + return genRsaSignature(preHash, secretKey); } - - + public static String genRsaSignature(String content, String privateKey) { + try { + String parsedPem = privateKey.replace("\n", "").trim(); + parsedPem = parsedPem + .replace("-----BEGIN PRIVATE KEY-----", "") + .replace("-----END PRIVATE KEY-----", ""); + PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(parsedPem.getBytes("UTF-8"))); + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + PrivateKey priKey = keyFactory.generatePrivate(priPKCS8); + Signature signature = Signature.getInstance("SHA256WithRSA"); + signature.initSign(priKey); + signature.update(content.getBytes(StandardCharsets.UTF_8)); + String sign = new String(Base64.getEncoder().encode(signature.sign()), "UTF-8"); + return sign; + } catch (Exception ex) { + throw new RuntimeException("create sign failed", ex); + } + } } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java index 094a108b..1f8ffd63 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/response/ResponseResult.java @@ -20,7 +20,7 @@ public class ResponseResult implements Serializable { /** - * 200成功,其他表示失败 + * 200成功 */ private String httpCode = "200"; diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java index 8bc14d40..617525fb 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java @@ -2,6 +2,7 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import com.bitget.openapi.common.enums.SignTypeEnum; import com.bitget.openapi.common.utils.DateUtil; import com.bitget.openapi.common.utils.SignatureUtils; import com.bitget.openapi.dto.request.ws.SubscribeReq; @@ -9,15 +10,10 @@ import com.bitget.openapi.dto.request.ws.WsLoginReq; import lombok.Data; import okhttp3.*; -import okio.ByteString; import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.compress.compressors.deflate64.Deflate64CompressorInputStream; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; import java.math.BigDecimal; import java.time.Instant; import java.util.*; @@ -35,13 +31,11 @@ public class BitgetWsHandle implements BitgetWsClient { public static final String WS_OP_SUBSCRIBE = "subscribe"; public static final String WS_OP_UNSUBSCRIBE = "unsubscribe"; - private WebSocket webSocket; private volatile boolean loginStatus = false; private volatile boolean connectStatus = false; private volatile boolean reconnectStatus = false; - private BitgetClientBuilder builder; private Map scribeMap = new ConcurrentHashMap<>(); private Map allBook = new ConcurrentHashMap<>(); @@ -57,7 +51,6 @@ private static void printLog(String msg, String type) { System.out.println("[" + DateUtil.getUnixTime() + "] [" + type.toUpperCase() + "] " + msg); } - private WebSocket initClient() { OkHttpClient client = new OkHttpClient.Builder() .writeTimeout(60, TimeUnit.SECONDS) @@ -75,7 +68,6 @@ private WebSocket initClient() { login(); } printLog("start connect ....", "info"); - while (!connectStatus) { } @@ -86,7 +78,6 @@ public static BitgetClientBuilder builder() { return new BitgetClientBuilder(); } - @Override public void sendMessage(WsBaseReq req) { printLog("send message:" + JSONObject.toJSONString(req), "info"); @@ -147,6 +138,9 @@ public void login() { private List buildArgs() { String timestamp = Long.valueOf(Instant.now().getEpochSecond()).toString(); String sign = sha256_HMAC(timestamp, builder.secretKey); + if (SignTypeEnum.RSA == builder.signType) { + sign = ws_rsa(timestamp, builder.secretKey); + } WsLoginReq loginReq = WsLoginReq.builder().apiKey(builder.apiKey).passphrase(builder.passPhrase).timestamp(timestamp).sign(sign).build(); @@ -156,7 +150,6 @@ private List buildArgs() { return args; } - private void sleep(long s) { try { Thread.sleep(s); @@ -175,6 +168,15 @@ private String sha256_HMAC(String timeStamp, String secret) { return hash; } + private String ws_rsa(String timeStamp, String secret) { + String hash = ""; + try { + hash = SignatureUtils.wsGenerateRsaSignature(timeStamp, secret); + } catch (Exception e) { + throw new RuntimeException("sha256_HMAC error", e); + } + return hash; + } private final class BitgetWsListener extends WebSocketListener { @@ -205,7 +207,6 @@ public void onClosing(WebSocket webSocket, int code, String reason) { System.out.println("Connection is about to disconnect!"); close(); if (!reconnectStatus) { - reConnect(); } @@ -216,7 +217,6 @@ public void onClosed(final WebSocket webSocket, final int code, final String rea System.out.println("Connection dropped!" + reason); close(); if (!reconnectStatus) { - reConnect(); } } @@ -229,7 +229,6 @@ public void onFailure(final WebSocket webSocket, final Throwable t, final Respon reConnect(); } - } // @Override @@ -246,7 +245,6 @@ public void onMessage(final WebSocket webSocket, final String message) { return; } JSONObject jsonObject = JSONObject.parseObject(message); - if (jsonObject.containsKey("code") && !jsonObject.get("code").toString().equals("0")) { printLog("code not is 0 msg:" + message, "error"); if (Objects.nonNull(builder.errorListener)) { @@ -278,7 +276,6 @@ public void onMessage(final WebSocket webSocket, final String message) { builder.listener.onReceive(message); return; } - } printLog("receive op msg:" + message, "info"); } catch (Exception e) { @@ -287,7 +284,6 @@ public void onMessage(final WebSocket webSocket, final String message) { } private boolean checkSum(JSONObject jsonObject) { - try { if (!jsonObject.containsKey("arg") || !jsonObject.containsKey("action")) { return true; @@ -308,7 +304,7 @@ private boolean checkSum(JSONObject jsonObject) { } if (StringUtils.equalsIgnoreCase(action, "update")) { BookInfo all = allBook.get(subscribeReq); - boolean checkNum = all.merge(bookInfo).checkSum(Integer.parseInt(bookInfo.getChecksum()),25); + boolean checkNum = all.merge(bookInfo).checkSum(Integer.parseInt(bookInfo.getChecksum()), 25); if (!checkNum) { ArrayList subList = new ArrayList<>(); @@ -358,13 +354,15 @@ private void reConnect() { } - static class BitgetClientBuilder { private String pushUrl; private boolean isLogin; private String apiKey; private String secretKey; private String passPhrase; + + private SignTypeEnum signType = SignTypeEnum.SHA256; + private SubscriptionListener listener; private SubscriptionListener errorListener; @@ -403,6 +401,11 @@ public BitgetClientBuilder passPhrase(String passPhrase) { return this; } + public BitgetClientBuilder signType(SignTypeEnum signType) { + this.signType = signType; + return this; + } + public BitgetWsClient build() { return new BitgetWsHandle(this); } @@ -416,43 +419,33 @@ static class BookInfo { private String checksum; private String ts; - public BookInfo() { - } public BookInfo merge(BookInfo updateInfo) { - this.asks = merge(this.asks, updateInfo.getAsks(), false); printLog("asks sort uniq:" + JSONObject.toJSONString(this.asks), "info"); this.bids = merge(this.bids, updateInfo.getBids(), true); printLog("bids sort uniq:" + JSONObject.toJSONString(this.bids), "info"); - return this; } //isReverse: true->desc,false->asc private List merge(List allList, List updateList, boolean isReverse) { - Map priceAndValue = allList.stream().collect(Collectors.toMap(o -> o[0], o -> o)); - - - for (String[] update : updateList) { - - if(new BigDecimal(update[1]).compareTo(BigDecimal.ZERO)==0){ + if (new BigDecimal(update[1]).compareTo(BigDecimal.ZERO) == 0) { priceAndValue.remove(update[0]); continue; } - priceAndValue.put(update[0],update); + priceAndValue.put(update[0], update); } List newAllList = new ArrayList<>(priceAndValue.values()); - - if(isReverse){ + if (isReverse) { newAllList.sort((o1, o2) -> new BigDecimal(o2[0]).compareTo(new BigDecimal(o1[0]))); - }else{ + } else { newAllList.sort(Comparator.comparing(o -> new BigDecimal(o[0]))); } @@ -464,37 +457,28 @@ public Predicate distinctByKey(Function keyExtractor) return t -> map.putIfAbsent(keyExtractor.apply(t), Boolean.TRUE) == null; } - - public boolean checkSum(int checkSum,int gear) { + public boolean checkSum(int checkSum, int gear) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < gear; i++) { - if(i < this.getBids().size()){ + if (i < this.getBids().size()) { String[] bids = this.getBids().get(i); sb.append(bids[0]).append(":").append(bids[1]).append(":"); } - if(i < this.getAsks().size()){ + if (i < this.getAsks().size()) { String[] asks = this.getAsks().get(i); sb.append(asks[0]).append(":").append(asks[1]).append(":"); } } - String s = sb.toString(); String str = s.substring(0, s.length() - 1); - CRC32 crc32 = new CRC32(); crc32.update(str.getBytes()); - - int value = (int)crc32.getValue(); - - + int value = (int) crc32.getValue(); printLog("check val:" + str, "info"); printLog("start checknum mergeVal:" + value + ",checkVal:" + checkSum, "info"); - return value == checkSum; - } } - } diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java index 31b065e3..53b67c2a 100644 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java +++ b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/BaseTest.java @@ -1,10 +1,11 @@ package com.bitget.openapi; -import org.junit.After; -import org.junit.Before; import com.bitget.openapi.common.client.BitgetRestClient; import com.bitget.openapi.common.domain.ClientParameter; +import com.bitget.openapi.common.enums.SignTypeEnum; import com.bitget.openapi.common.enums.SupportedLocaleEnum; +import org.junit.After; +import org.junit.Before; /** * @author bitget-sdk-team @@ -12,35 +13,42 @@ */ public class BaseTest { - /** - * The user apiKey is replaced with his own - */ - private final String apiKey = ""; - /** - * The user's secretKey is replaced with his own - */ - private final String secretKey = ""; - /** - * Replace the password with your own - */ - private final String passphrase = ""; - /** - * Bitget open api root path - */ - private final String baseUrl = "https://api.bitget.com"; - - - private final ClientParameter parameter = ClientParameter.builder().apiKey(apiKey).secretKey(secretKey).passphrase(passphrase).baseUrl(baseUrl) - .locale(SupportedLocaleEnum.ZH_CN.getName()).build(); - public BitgetRestClient bitgetRestClient; - - @Before - public void setup() { - bitgetRestClient = BitgetRestClient.builder().configuration(parameter).build(); - } - - @After - public void tearDown() { - - } + /** + * 用户 apiKey 替换成自己的 + */ + private final String apiKey = ""; + + /** + * 用户 secretKey 替换成自己的 + */ + private final String secretKey = ""; + + /** + * 口令 替换成自己的 + */ + private final String passphrase = ""; + + /** + * bitget open api 根路径 + */ + private final String baseUrl = "https://api.bitget.com"; + + private final ClientParameter parameter = ClientParameter.builder() + .apiKey(apiKey) + .secretKey(secretKey) + .passphrase(passphrase) + .baseUrl(baseUrl) + //.signType(SignTypeEnum.RSA) // 如果你的apikey是RSA类型则主动设置 + .locale(SupportedLocaleEnum.ZH_CN.getName()) + .build(); + public BitgetRestClient bitgetRestClient; + + @Before + public void setup() { + bitgetRestClient = BitgetRestClient.builder().configuration(parameter).build(); + } + + @After + public void tearDown() { + } } diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/ws/BitgetWsClientTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/ws/BitgetWsClientTest.java index edfd63f9..19cd3622 100644 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/ws/BitgetWsClientTest.java +++ b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/ws/BitgetWsClientTest.java @@ -1,56 +1,40 @@ package com.bitget.openapi.ws; -import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.bitget.openapi.dto.request.ws.SubscribeReq; -import org.junit.Before; -import org.junit.Test; import java.util.ArrayList; import java.util.List; - public class BitgetWsClientTest { public static final String PUSH_URL = "wss://ws.bitget.com/mix/v1/stream"; - public static final String API_KEY = ""; public static final String SECRET_KEY = ""; public static final String PASS_PHRASE = ""; - public static void main(String[] args) { BitgetWsClient client = BitgetWsHandle.builder() - .pushUrl(PUSH_URL) - .apiKey(API_KEY) - .secretKey(SECRET_KEY) - .passPhrase(PASS_PHRASE) - .isLogin(true) - //默认监听处理,如订阅时指定监听,默认不再接收该channel订阅信息 - .listener(response -> { - JSONObject json = JSONObject.parseObject(response); - System.out.println("def:" + json); - //失败消息的逻辑处理,如:订阅失败 - }).errorListener(response -> { - JSONObject json = JSONObject.parseObject(response); - System.out.println("error:" + json); - }).build(); - + .pushUrl(PUSH_URL) + .apiKey(API_KEY) + .secretKey(SECRET_KEY) + .passPhrase(PASS_PHRASE) +// .signType(SignTypeEnum.RSA) + .isLogin(true) + //默认监听处理,如订阅时指定监听,默认不再接收该channel订阅信息 + .listener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("def:" + json); + //失败消息的逻辑处理,如:订阅失败 + }).errorListener(response -> { + JSONObject json = JSONObject.parseObject(response); + System.out.println("error:" + json); + }).build(); List list = new ArrayList() {{ - add(SubscribeReq.builder().instType("mc").channel("ticker").instId("BTCUSD").build()); - add(SubscribeReq.builder().instType("SP").channel("candle1W").instId("BTCUSDT").build()); + add(SubscribeReq.builder().instType("UMCBL").channel("positions").instId("default").build()); +// add(SubscribeReq.builder().instType("SP").channel("candle1W").instId("BTCUSDT").build()); }}; client.subscribe(list); - - List list2 = new ArrayList() {{ - - add(SubscribeReq.builder().instType("UMCBL").channel("account").instId("default").build()); - }}; - client.subscribe(list2, response -> { - JSONObject json = JSONObject.parseObject(response); - System.out.println("appoint:" + json); - }); } - } diff --git a/bitget-node-sdk-api/README.md b/bitget-node-sdk-api/README.md index 601fe5d7..9a79c5fb 100644 --- a/bitget-node-sdk-api/README.md +++ b/bitget-node-sdk-api/README.md @@ -19,29 +19,71 @@ npm run build | 文件名 | 说明 | | :--------------------------------: | :------------------: | -| \_\_test\_\_/mixapi.spec.ts | 合约相关测试用例 | -| \_\_test\_\_/spotapi.spec.ts | 现货相关测试用例 | +| \_\_test\_\_/api.spec.ts | 现货/合约相关测试用例 | | \_\_test\_\_/websocketTest.spec.ts | 消息推送相关测试用例 | -| | | + ## API示例 ```javascript -const bitgetApi = require('bitget-openapi'); -const { test, describe, expect } = require('@jest/globals') -const Console = require('console') +import BitgetResetApi from '../src'; +import Console from 'console'; +import {describe, test} from '@jest/globals' +import {toJsonString} from '../src/lib/util'; +import {MixOrderApi} from '../src/lib/v2/MixOrderApi'; const apiKey = ''; const secretKey = ''; const passphrase = ''; -describe('test accounts', () => { - test('accounts', () => { - const mixAccountApi = new bitgetApi.default.MixAccountApi(apiKey,secretKey,passphrase); - mixAccountApi.accounts('umcbl').then((data) => { - Console.info(data); - }); - }) -}) +describe('ApiTest', () => { + const mixOrderApi = new BitgetResetApi.MixOrderApi(apiKey, secretKey, passphrase); + const mixOrderV2Api = new MixOrderApi(apiKey, secretKey, passphrase); + const bitgetApi = new BitgetResetApi.BitgetApi(apiKey, secretKey, passphrase); + + test('place order', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return mixOrderApi.placeOrder(qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send post request directly If the interface is not defined in the sdk', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return bitgetApi.post("/api/mix/v1/order/placeOrder", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'symbol': 'btcusdt_spbl'}; + return bitgetApi.get("/api/spot/v1/market/depth", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'productType': 'umcbl'}; + return bitgetApi.get("/api/mix/v1/account/accounts", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) +}); ``` ## websocket示例 @@ -72,3 +114,14 @@ subArr.push(subscribeTow); bitgetWsClient.subscribe(subArr) ``` + +## RSA +如果你的apikey是RSA类型则主动设置签名类型为RSA +```node +// config.ts +export let API_CONFIG = { + WS_URL: 'wss://ws.bitget.com/mix/v1/stream', + API_URL: 'https://api.bitget.com', + SIGN_TYPE : BIZ_CONSTANT.RSA // 如果你的apikey是RSA类型则主动设置签名类型为RSA +} +``` \ No newline at end of file diff --git a/bitget-node-sdk-api/README_EN.md b/bitget-node-sdk-api/README_EN.md index 7b7e9d88..a24f50a3 100644 --- a/bitget-node-sdk-api/README_EN.md +++ b/bitget-node-sdk-api/README_EN.md @@ -23,32 +23,67 @@ npm run build | \_\_test\_\_/websocketTest.spec.ts | Message push related test cases | -##Example +## API Example ```javascript -const bitgetApi = require('bitget-openapi'); -const { test, describe, expect } = require('@jest/globals') -const Console = require('console') +import BitgetResetApi from '../src'; +import Console from 'console'; +import {describe, test} from '@jest/globals' +import {toJsonString} from '../src/lib/util'; +import {MixOrderApi} from '../src/lib/v2/MixOrderApi'; const apiKey = ''; const secretKey = ''; const passphrase = ''; -describe('test order', () => { - test('order', () => { - const qsOrBody = { - 'symbol': 'BTCUSDT_UMCBL', - 'marginCoin': 'USDT', - 'side': 'open_long', - 'orderType': 'limit', - 'price': '27012', - 'size': '0.01', - 'timInForceValue': 'normal' - }; - return mixOrderApi.placeOrder(qsOrBody).then((data) => { - Console.info(toJsonString(data)); - }); - }) -}) +describe('ApiTest', () => { + const mixOrderApi = new BitgetResetApi.MixOrderApi(apiKey, secretKey, passphrase); + const mixOrderV2Api = new MixOrderApi(apiKey, secretKey, passphrase); + const bitgetApi = new BitgetResetApi.BitgetApi(apiKey, secretKey, passphrase); + + test('place order', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return mixOrderApi.placeOrder(qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send post request directly If the interface is not defined in the sdk', () => { + const qsOrBody = { + 'symbol': 'BTCUSDT_UMCBL', + 'marginCoin': 'USDT', + 'side': 'open_long', + 'orderType': 'limit', + 'price': '27012', + 'size': '0.01', + 'timInForceValue': 'normal' + }; + return bitgetApi.post("/api/mix/v1/order/placeOrder", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'symbol': 'btcusdt_spbl'}; + return bitgetApi.get("/api/spot/v1/market/depth", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'productType': 'umcbl'}; + return bitgetApi.get("/api/mix/v1/account/accounts", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) +}); ``` ## websocket example @@ -78,4 +113,15 @@ subArr.push(subscribeOne); subArr.push(subscribeTow); bitgetWsClient.subscribe(subArr) +``` + +## RSA +If your apikey is of RSA type, actively set the signature type to RSA +```node +// config.ts +export let API_CONFIG = { + WS_URL: 'wss://ws.bitget.com/mix/v1/stream', + API_URL: 'https://api.bitget.com', + SIGN_TYPE : BIZ_CONSTANT.RSA // If your apikey is of RSA type, actively set the signature type to RSA +} ``` \ No newline at end of file diff --git a/bitget-node-sdk-api/__test__/api.spec.ts b/bitget-node-sdk-api/__test__/api.spec.ts index 707ecf07..77f9059e 100644 --- a/bitget-node-sdk-api/__test__/api.spec.ts +++ b/bitget-node-sdk-api/__test__/api.spec.ts @@ -4,9 +4,9 @@ import {describe, test} from '@jest/globals' import {toJsonString} from '../src/lib/util'; import {MixOrderApi} from '../src/lib/v2/MixOrderApi'; -const apiKey = 'your apiKey'; -const secretKey = 'your secretKey'; -const passphrase = 'your passphrase'; +const apiKey = ''; +const secretKey = ""; +const passphrase = ''; describe('ApiTest', () => { const mixOrderApi = new BitgetResetApi.MixOrderApi(apiKey, secretKey, passphrase); @@ -49,5 +49,12 @@ describe('ApiTest', () => { Console.info(toJsonString(data)); }); }) + + test('send get request directly If the interface is not defined in the sdk', () => { + const qsOrBody = {'productType': 'umcbl'}; + return bitgetApi.get("/api/mix/v1/account/accounts", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) }); diff --git a/bitget-node-sdk-api/__test__/websocketTest.spec.ts b/bitget-node-sdk-api/__test__/websocketTest.spec.ts index 4261481b..29f72bd4 100644 --- a/bitget-node-sdk-api/__test__/websocketTest.spec.ts +++ b/bitget-node-sdk-api/__test__/websocketTest.spec.ts @@ -9,7 +9,6 @@ const secretKey = ''; const passphrase = ''; describe('BitgetWsClientTest', () => { - test('websocket', () => { const bitgetWsClient = new BitgetWsClient({ reveice:(message)=>{ @@ -20,10 +19,10 @@ describe('BitgetWsClientTest', () => { const subArr = new Array(); const subscribeOne = new SubscribeReq('mc','ticker','BTCUSD'); - const subscribeTow = new SubscribeReq('SP','candle1W','BTCUSDT'); - + // const subscribeTow = new SubscribeReq('SP','candle1W','BTCUSDT'); + bitgetWsClient.on() subArr.push(subscribeOne); - subArr.push(subscribeTow); + // subArr.push(subscribeTow); bitgetWsClient.subscribe(subArr) diff --git a/bitget-node-sdk-api/package-lock.json b/bitget-node-sdk-api/package-lock.json new file mode 100644 index 00000000..95e92db6 --- /dev/null +++ b/bitget-node-sdk-api/package-lock.json @@ -0,0 +1,12455 @@ +{ + "name": "bitget-api-node-sdk", + "version": "2.1.3", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "bitget-api-node-sdk", + "version": "2.1.3", + "license": "ISC", + "dependencies": { + "axios": "^0.19.2", + "ccxt": "^2.7.95", + "crc-32": "^1.2.0", + "crypto": "^1.0.1", + "pako": "^1.0.8", + "querystring": "^0.2.0", + "ws": "^6.1.4" + }, + "devDependencies": { + "@types/axios": "^0.14.0", + "@types/node": "^14.0.24", + "@types/pako": "^1.0.1", + "@types/ws": "^6.0.1", + "husky": "^4.2.5", + "jest": "^26.1.0", + "prettier": "^2.0.5", + "ts-jest": "^26.1.3", + "tslint": "^6.1.2", + "typedoc": "^0.17.8", + "typescript": "^3.9.7" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.14.tgz", + "integrity": "sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", + "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.7", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helpers": "^7.20.7", + "@babel/parser": "^7.20.7", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.12", + "@babel/types": "^7.20.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@babel/core/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@babel/generator": { + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", + "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "dev": true, + "dependencies": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", + "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.10", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", + "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.13", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.20.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.15.tgz", + "integrity": "sha512-DI4a1oZuf8wC+oAJA9RW6ga3Zbe8RZFt7kD9i4qAspz3I/yHet1VvC3DiSy/fsUvv5pvJuNPh0LPOdCcqinDPg==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.13.tgz", + "integrity": "sha512-kMJXfF0T6DIS9E8cgdLCSAL+cuCK+YEZHWiLK0SXpTo8YRj5lpJu3CDNKiIBCne4m9hhTIqUg6SYTAI39tAiVQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.20.13", + "@babel/types": "^7.20.7", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@babel/traverse/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@babel/types": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", + "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "dependencies": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + }, + "bin": { + "watch": "cli.js" + }, + "engines": { + "node": ">=0.1.95" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "node-notifier": "^8.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/axios": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz", + "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==", + "deprecated": "This is a stub types definition for axios (https://github.com/mzabriskie/axios). axios provides its own type definitions, so you don't need @types/axios installed!", + "dev": true, + "dependencies": { + "axios": "*" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", + "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", + "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.3.0" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/node": { + "version": "14.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.36.tgz", + "integrity": "sha512-FXKWbsJ6a1hIrRxv+FoukuHnGTgEzKYGi7kilfMae96AL9UNkPFNWJEEYWzdRI9ooIkbr4AKldyuSTLql06vLQ==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/pako": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/pako/-/pako-1.0.4.tgz", + "integrity": "sha512-Z+5bJSm28EXBSUJEgx29ioWeEEHUh6TiMkZHDhLwjc9wVFH+ressbkmX6waUZc5R3Gobn4Qu5llGxaoflZ+yhA==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", + "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/ws": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-6.0.4.tgz", + "integrity": "sha512-PpPrX7SZW9re6+Ha8ojZG4Se8AZXgf0GK6zmfqEuCsY49LFDNXO3SByp44X3dFEqtB73lkCDAdUazhAjVPiNwg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "15.0.15", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz", + "integrity": "sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/async-limiter": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "deprecated": "Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410", + "dependencies": { + "follow-redirects": "1.5.10" + } + }, + "node_modules/babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001451", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001451.tgz", + "integrity": "sha512-XY7UbUpGRatZzoRft//5xOa69/1iGJRBlrieH6QYrkKLIFn3m7OVEJ81dSrKoy2BnKsdbX5cLrOispZNYo9v2w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "node_modules/capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "dependencies": { + "rsvp": "^4.8.4" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/ccxt": { + "version": "2.7.95", + "resolved": "https://registry.npmjs.org/ccxt/-/ccxt-2.7.95.tgz", + "integrity": "sha512-JRgyBAZtpMPg7EoUJ4Mb5C3WCaXA/6QkXzoDd6c/XvBnL6ZlcZTayzaqMxd/oFmmOY0AThmK3B6YJoLY2Z0zXw==", + "hasInstallScript": true, + "dependencies": { + "ws": "^8.8.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, + "node_modules/ccxt/node_modules/ws": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", + "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/compare-versions": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", + "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==", + "dev": true + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", + "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in." + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", + "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.293", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.293.tgz", + "integrity": "sha512-h7vBlhC83NsgC9UO3LOZx91xgstIrHk5iqMbZgnEArL5rHTM6HfsUZhnwb3oRnNetXM1741kB9SO7x9jLshz5A==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exec-sh": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", + "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "dev": true + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-versions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", + "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", + "dev": true, + "dependencies": { + "semver-regex": "^3.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "dependencies": { + "debug": "=3.1.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-extra/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true, + "optional": true + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/http-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/husky": { + "version": "4.3.8", + "resolved": "https://registry.npmjs.org/husky/-/husky-4.3.8.tgz", + "integrity": "sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "chalk": "^4.0.0", + "ci-info": "^2.0.0", + "compare-versions": "^3.6.0", + "cosmiconfig": "^7.0.0", + "find-versions": "^4.0.0", + "opencollective-postinstall": "^2.0.2", + "pkg-dir": "^5.0.0", + "please-upgrade-node": "^3.2.0", + "slash": "^3.0.0", + "which-pm-runs": "^1.0.0" + }, + "bin": { + "husky-run": "bin/run.js", + "husky-upgrade": "lib/upgrader/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/husky" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local/node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "optional": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "fsevents": "^2.1.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jest-runtime": "bin/jest-runtime.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/marked": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-1.0.0.tgz", + "integrity": "sha512-Wo+L1pWTVibfrSr+TTtMuiMfNzmZWiOPeO7rZsQUY5bgsxpHesBEcIWJloWVTFnrMXnf/TL30eTFSGJddmQAng==", + "dev": true, + "bin": { + "marked": "bin/marked" + }, + "engines": { + "node": ">= 8.16.2" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-notifier": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", + "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", + "dev": true, + "optional": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "node_modules/node-notifier/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", + "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==", + "dev": true + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "dev": true, + "bin": { + "opencollective-postinstall": "index.js" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", + "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", + "dev": true, + "dependencies": { + "find-up": "^5.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/please-upgrade-node": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", + "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", + "dev": true, + "dependencies": { + "semver-compare": "^1.0.0" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", + "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/querystring": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", + "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true, + "engines": { + "node": "6.* || >= 7.*" + } + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "deprecated": "some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added", + "dev": true, + "dependencies": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "bin": { + "sane": "src/cli.js" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/sane/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/sane/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/sane/node_modules/execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/sane/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true + }, + "node_modules/semver-regex": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", + "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", + "dev": true + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-jest": { + "version": "26.5.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz", + "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^26.1.0", + "json5": "2.x", + "lodash": "4.x", + "make-error": "1.x", + "mkdirp": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "jest": ">=26 <27", + "typescript": ">=3.8 <5.0" + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tslint": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", + "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", + "deprecated": "TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.3", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.13.0", + "tsutils": "^2.29.0" + }, + "bin": { + "tslint": "bin/tslint" + }, + "engines": { + "node": ">=4.8.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" + } + }, + "node_modules/tslint/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tslint/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tslint/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/tslint/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/tslint/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/tslint/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/tslint/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/tslint/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/tslint/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "peerDependencies": { + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" + } + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typedoc": { + "version": "0.17.8", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.17.8.tgz", + "integrity": "sha512-/OyrHCJ8jtzu+QZ+771YaxQ9s4g5Z3XsQE3Ma7q+BL392xxBn4UMvvCdVnqKC2T/dz03/VXSLVKOP3lHmDdc/w==", + "dev": true, + "dependencies": { + "fs-extra": "^8.1.0", + "handlebars": "^4.7.6", + "highlight.js": "^10.0.0", + "lodash": "^4.17.15", + "lunr": "^2.3.8", + "marked": "1.0.0", + "minimatch": "^3.0.0", + "progress": "^2.0.3", + "shelljs": "^0.8.4", + "typedoc-default-themes": "^0.10.2" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "typescript": ">=3.8.3" + } + }, + "node_modules/typedoc-default-themes": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.10.2.tgz", + "integrity": "sha512-zo09yRj+xwLFE3hyhJeVHWRSPuKEIAsFK5r2u47KL/HBKqpwdUSanoaz5L34IKiSATFrjG5ywmIu98hPVMfxZg==", + "dev": true, + "dependencies": { + "lunr": "^2.3.8" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", + "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, + "node_modules/which-pm-runs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", + "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "dependencies": { + "async-limiter": "~1.0.0" + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dev": true, + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.14.tgz", + "integrity": "sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw==", + "dev": true + }, + "@babel/core": { + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", + "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.7", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helpers": "^7.20.7", + "@babel/parser": "^7.20.7", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.12", + "@babel/types": "^7.20.7", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", + "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", + "dev": true, + "requires": { + "@babel/types": "^7.20.7", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, + "@babel/helper-compilation-targets": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true + }, + "@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "dev": true, + "requires": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-transforms": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", + "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.10", + "@babel/types": "^7.20.7" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true + }, + "@babel/helper-simple-access": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "dev": true, + "requires": { + "@babel/types": "^7.20.2" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true + }, + "@babel/helpers": { + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", + "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", + "dev": true, + "requires": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.13", + "@babel/types": "^7.20.7" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.20.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.15.tgz", + "integrity": "sha512-DI4a1oZuf8wC+oAJA9RW6ga3Zbe8RZFt7kD9i4qAspz3I/yHet1VvC3DiSy/fsUvv5pvJuNPh0LPOdCcqinDPg==", + "dev": true + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/template": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + } + }, + "@babel/traverse": { + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.13.tgz", + "integrity": "sha512-kMJXfF0T6DIS9E8cgdLCSAL+cuCK+YEZHWiLK0SXpTo8YRj5lpJu3CDNKiIBCne4m9hhTIqUg6SYTAI39tAiVQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.20.13", + "@babel/types": "^7.20.7", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", + "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "requires": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + } + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + } + }, + "@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "requires": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + } + }, + "@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + } + }, + "@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + } + }, + "@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "node-notifier": "^8.0.0", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + } + }, + "@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "requires": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + } + }, + "@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + } + }, + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "@types/axios": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz", + "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==", + "dev": true, + "requires": { + "axios": "*" + } + }, + "@types/babel__core": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", + "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", + "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/node": { + "version": "14.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.36.tgz", + "integrity": "sha512-FXKWbsJ6a1hIrRxv+FoukuHnGTgEzKYGi7kilfMae96AL9UNkPFNWJEEYWzdRI9ooIkbr4AKldyuSTLql06vLQ==", + "dev": true + }, + "@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "@types/pako": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/pako/-/pako-1.0.4.tgz", + "integrity": "sha512-Z+5bJSm28EXBSUJEgx29ioWeEEHUh6TiMkZHDhLwjc9wVFH+ressbkmX6waUZc5R3Gobn4Qu5llGxaoflZ+yhA==", + "dev": true + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "@types/prettier": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", + "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", + "dev": true + }, + "@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "@types/ws": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-6.0.4.tgz", + "integrity": "sha512-PpPrX7SZW9re6+Ha8ojZG4Se8AZXgf0GK6zmfqEuCsY49LFDNXO3SByp44X3dFEqtB73lkCDAdUazhAjVPiNwg==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/yargs": { + "version": "15.0.15", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz", + "integrity": "sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true + }, + "acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + } + } + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "requires": { + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true + }, + "async-limiter": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", + "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "requires": { + "follow-redirects": "1.5.10" + } + }, + "babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "requires": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + } + } + }, + "babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + } + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ==", + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001451", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001451.tgz", + "integrity": "sha512-XY7UbUpGRatZzoRft//5xOa69/1iGJRBlrieH6QYrkKLIFn3m7OVEJ81dSrKoy2BnKsdbX5cLrOispZNYo9v2w==", + "dev": true + }, + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "requires": { + "rsvp": "^4.8.4" + } + }, + "ccxt": { + "version": "2.7.95", + "resolved": "https://registry.npmjs.org/ccxt/-/ccxt-2.7.95.tgz", + "integrity": "sha512-JRgyBAZtpMPg7EoUJ4Mb5C3WCaXA/6QkXzoDd6c/XvBnL6ZlcZTayzaqMxd/oFmmOY0AThmK3B6YJoLY2Z0zXw==", + "requires": { + "ws": "^8.8.1" + }, + "dependencies": { + "ws": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", + "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "requires": {} + } + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true + }, + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "compare-versions": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", + "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==", + "dev": true + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true + }, + "cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==" + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==" + }, + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } + } + }, + "data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "deepmerge": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", + "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==", + "dev": true + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true + }, + "domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "requires": { + "webidl-conversions": "^5.0.0" + }, + "dependencies": { + "webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true + } + } + }, + "electron-to-chromium": { + "version": "1.4.293", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.293.tgz", + "integrity": "sha512-h7vBlhC83NsgC9UO3LOZx91xgstIrHk5iqMbZgnEArL5rHTM6HfsUZhnwb3oRnNetXM1741kB9SO7x9jLshz5A==", + "dev": true + }, + "emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "exec-sh": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", + "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "dev": true + }, + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "requires": { + "bser": "2.1.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "find-versions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", + "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", + "dev": true, + "requires": { + "semver-regex": "^3.1.2" + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true + }, + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "dependencies": { + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true, + "optional": true + }, + "handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "requires": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "dev": true + }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.5" + } + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "requires": { + "agent-base": "6", + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + }, + "husky": { + "version": "4.3.8", + "resolved": "https://registry.npmjs.org/husky/-/husky-4.3.8.tgz", + "integrity": "sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "ci-info": "^2.0.0", + "compare-versions": "^3.6.0", + "cosmiconfig": "^7.0.0", + "find-versions": "^4.0.0", + "opencollective-postinstall": "^2.0.2", + "pkg-dir": "^5.0.0", + "please-upgrade-node": "^3.2.0", + "slash": "^3.0.0", + "which-pm-runs": "^1.0.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "dependencies": { + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + } + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "optional": true + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "requires": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "requires": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + } + }, + "jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + } + }, + "jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "requires": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + } + }, + "jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + } + }, + "jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + } + }, + "jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + } + }, + "jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + } + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.1.2", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + } + }, + "jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + } + }, + "jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "requires": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + } + }, + "jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "requires": {} + }, + "jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true + }, + "jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + } + }, + "jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + } + }, + "jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + } + }, + "jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "requires": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + } + }, + "jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + } + }, + "jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "requires": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + } + }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "requires": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "requires": {} + } + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "marked": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-1.0.0.tgz", + "integrity": "sha512-Wo+L1pWTVibfrSr+TTtMuiMfNzmZWiOPeO7rZsQUY5bgsxpHesBEcIWJloWVTFnrMXnf/TL30eTFSGJddmQAng==", + "dev": true + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node-notifier": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", + "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", + "dev": true, + "optional": true, + "requires": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "optional": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "optional": true + } + } + }, + "node-releases": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "nwsapi": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", + "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "dev": true + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pirates": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "dev": true + }, + "pkg-dir": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", + "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", + "dev": true, + "requires": { + "find-up": "^5.0.0" + }, + "dependencies": { + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" + } + } + } + }, + "please-upgrade-node": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", + "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", + "dev": true, + "requires": { + "semver-compare": "^1.0.0" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true + }, + "prettier": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", + "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", + "dev": true + }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + } + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true + }, + "querystring": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", + "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==" + }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "dev": true + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "requires": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true + }, + "semver-regex": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", + "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + } + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dev": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "dev": true + }, + "spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "dev": true, + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + } + }, + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } + }, + "ts-jest": { + "version": "26.5.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz", + "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^26.1.0", + "json5": "2.x", + "lodash": "4.x", + "make-error": "1.x", + "mkdirp": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "tslint": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", + "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.3", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.13.0", + "tsutils": "^2.29.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typedoc": { + "version": "0.17.8", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.17.8.tgz", + "integrity": "sha512-/OyrHCJ8jtzu+QZ+771YaxQ9s4g5Z3XsQE3Ma7q+BL392xxBn4UMvvCdVnqKC2T/dz03/VXSLVKOP3lHmDdc/w==", + "dev": true, + "requires": { + "fs-extra": "^8.1.0", + "handlebars": "^4.7.6", + "highlight.js": "^10.0.0", + "lodash": "^4.17.15", + "lunr": "^2.3.8", + "marked": "1.0.0", + "minimatch": "^3.0.0", + "progress": "^2.0.3", + "shelljs": "^0.8.4", + "typedoc-default-themes": "^0.10.2" + } + }, + "typedoc-default-themes": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.10.2.tgz", + "integrity": "sha512-zo09yRj+xwLFE3hyhJeVHWRSPuKEIAsFK5r2u47KL/HBKqpwdUSanoaz5L34IKiSATFrjG5ywmIu98hPVMfxZg==", + "dev": true, + "requires": { + "lunr": "^2.3.8" + } + }, + "typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true + }, + "uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + } + } + }, + "universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true + } + } + }, + "update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "dev": true + }, + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true + }, + "v8-to-istanbul": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", + "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true + } + } + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "requires": { + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } + }, + "webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, + "which-pm-runs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", + "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", + "dev": true + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "requires": { + "async-limiter": "~1.0.0" + } + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "dependencies": { + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/bitget-node-sdk-api/src/lib/BitgetApi.ts b/bitget-node-sdk-api/src/lib/BitgetApi.ts index d331e42d..192f1841 100644 --- a/bitget-node-sdk-api/src/lib/BitgetApi.ts +++ b/bitget-node-sdk-api/src/lib/BitgetApi.ts @@ -3,7 +3,7 @@ import {BaseApi} from './BaseApi'; export class BitgetApi extends BaseApi { get(url: string, qsOrBody: object) { - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } diff --git a/bitget-node-sdk-api/src/lib/config.ts b/bitget-node-sdk-api/src/lib/config.ts index 7f8cf7c3..3b1955bf 100644 --- a/bitget-node-sdk-api/src/lib/config.ts +++ b/bitget-node-sdk-api/src/lib/config.ts @@ -1,24 +1,7 @@ -export let API_CONFIG = { - WS_URL: 'wss://ws.bitget.com/spot/v1/stream', - API_URL: 'https://api.bitget.com' -} +import {BIZ_CONSTANT} from './contant'; -export let MIX_URL = { - MIX_ACCOUNT: '/api/mix/v1/account', - MIX_MARKET: '/api/mix/v1/market', - MIX_ORDER: '/api/mix/v1/order', - MIX_PLAN: '/api/mix/v1/plan', - MIX_POSITION: '/api/mix/v1/position', - MIX_TRACE: '/api/mix/v1/trace', -} - -export let SPOT_URL = { - SPOT_ACCOUNT: '/api/spot/v1/account', - SPOT_MARKET: '/api/spot/v1/market', - SPOT_ORDER: '/api/spot/v1/trade', - SPOT_PUBLIC: '/api/spot/v1/public', - SPOT_PLAN: '/api/spot/v1/plan', +export let API_CONFIG = { + API_URL: 'https://api.bitget.com', + WS_URL: 'wss://ws.bitget.com/mix/v1/stream', + SIGN_TYPE : BIZ_CONSTANT.RSA } -export let FIAT_URL = { - FIAT_MARKET: '/api/fiat/v1/market' -} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/util.ts b/bitget-node-sdk-api/src/lib/util.ts index 0496bb44..e0540c55 100644 --- a/bitget-node-sdk-api/src/lib/util.ts +++ b/bitget-node-sdk-api/src/lib/util.ts @@ -1,6 +1,8 @@ import {stringify} from 'querystring' import {createHmac} from 'crypto' import * as Console from 'console'; +import {API_CONFIG} from './config'; +import {BIZ_CONSTANT} from './contant'; export interface BitgetApiHeader { 'ACCESS-SIGN': string @@ -27,7 +29,10 @@ export default function getSigner( return (httpMethod: string, url: string, qsOrBody: NodeJS.Dict | null, locale = 'zh-CN') => { const timestamp = Date.now(); - const signString = encrypt(httpMethod, url, qsOrBody, timestamp,secretKey) + let signString = encrypt(httpMethod, url, qsOrBody, timestamp, secretKey); + if (API_CONFIG.SIGN_TYPE === BIZ_CONSTANT.RSA) { + signString = encryptRSA(httpMethod, url, qsOrBody, timestamp,secretKey) + } return { 'ACCESS-SIGN': signString, @@ -72,3 +77,21 @@ export function toJsonString(obj: object): string | null { const reg = new RegExp('"_', 'g') return json.replace(reg, '"'); } + +/** + * RSA加密算法 + * @param httpMethod + * @param url + * @param qsOrBody + * @param timestamp + * @param secretKey + */ +export function encryptRSA(httpMethod: string, url: string, qsOrBody: NodeJS.Dict | null, timestamp: number,secretKey:string) { + httpMethod = httpMethod.toUpperCase() + const qsOrBodyStr = qsOrBody ? httpMethod === 'GET' ? '?' + stringify(qsOrBody) : toJsonString(qsOrBody) : '' + const preHash = String(timestamp) + httpMethod + url + qsOrBodyStr + const NodeRSA = require('node-rsa') + const priKey = new NodeRSA(secretKey) + const sign = priKey.sign(preHash, 'base64', 'UTF-8') + return sign +} \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts b/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts index d29af581..c619c810 100644 --- a/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts +++ b/bitget-node-sdk-api/src/lib/v1/MixAccountApi.ts @@ -4,13 +4,13 @@ export class MixAccountApi extends BaseApi { account(qsOrBody: object) { const url = '/api/mix/v1/account/account'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } accounts(qsOrBody: object) { const url = '/api/mix/v1/account/accounts'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } diff --git a/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts b/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts index 0537a09d..a0fb6cbc 100644 --- a/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts +++ b/bitget-node-sdk-api/src/lib/v1/MixMarketApi.ts @@ -14,15 +14,15 @@ export class MixMarketApi extends BaseApi { return this.axiosInstance.get(url, {headers, params: qsOrBody}) } - ticker() { + ticker(qsOrBody: object) { const url = '/api/mix/v1/market/ticker'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers}) } - tickers() { + tickers(qsOrBody: object) { const url = '/api/mix/v1/market/tickers'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers}) } diff --git a/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts index 41caa937..44b27b27 100644 --- a/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts +++ b/bitget-node-sdk-api/src/lib/v1/SpotAccountApi.ts @@ -10,7 +10,7 @@ export class SpotAccountApi extends BaseApi { assetsLite(qsOrBody: object) { const url = '/api/spot/v1/account/assets-lite'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } diff --git a/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts b/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts index 5718e9c2..e8438490 100644 --- a/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/MixAccountApi.ts @@ -4,13 +4,13 @@ export class MixAccountApi extends BaseApi { account(qsOrBody: object) { const url = '/api/v2/mix/account/account'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } accounts(qsOrBody: object) { const url = '/api/v2/mix/account/accounts'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } diff --git a/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts b/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts index 9ce7716e..dc8ffb78 100644 --- a/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/MixMarketApi.ts @@ -14,15 +14,15 @@ export class MixMarketApi extends BaseApi { return this.axiosInstance.get(url, {headers, params: qsOrBody}) } - ticker() { + ticker(qsOrBody: object) { const url = '/api/v2/mix/market/ticker'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers}) } - tickers() { + tickers(qsOrBody: object) { const url = '/api/v2/mix/market/tickers'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers}) } diff --git a/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts index 5740e62a..699b3834 100644 --- a/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts @@ -10,7 +10,7 @@ export class SpotAccountApi extends BaseApi { assets(qsOrBody: object) { const url = '/api/v2/spot/account/assets'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } diff --git a/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts index c663d097..a32dad8b 100644 --- a/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/SpotMarketApi.ts @@ -25,9 +25,9 @@ export class SpotMarketApi extends BaseApi { return this.axiosInstance.get(url, {headers, params: qsOrBody}) } - tickers() { + tickers(qsOrBody: object) { const url = '/api/v2/spot/market/tickers'; - const headers = this.signer('GET', url, null) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers}) } diff --git a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts index 76239c13..c6cdc582 100644 --- a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts +++ b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts @@ -1,17 +1,17 @@ import {EventEmitter} from 'events'; -import {encrypt,toJsonString} from '../util'; +import {encrypt, encryptRSA, toJsonString} from '../util'; import {API_CONFIG} from '../config'; import WebSocket from 'ws'; import * as Console from 'console'; import {WsLoginReq} from '../model/ws/WsLoginReq'; import {WsBaseReq} from '../model/ws/WsBaseReq'; import {SubscribeReq} from '../model/ws/SubscribeReq'; +import {BIZ_CONSTANT} from '../contant'; export abstract class Listenner{ abstract reveice(message:string):void; } - export class BitgetWsClient extends EventEmitter { private websocketUri: string; private socket?: WebSocket; @@ -26,22 +26,25 @@ export class BitgetWsClient extends EventEmitter { super(); this.websocketUri = API_CONFIG.WS_URL; this.callBack = callBack; - this.socket = new WebSocket(API_CONFIG.WS_URL, {}); + this.socket = new WebSocket(API_CONFIG.WS_URL); this.apiKey = apiKey; this.apiSecret = apiSecret; this.passphrase = passphrase; + this.socket.on('open', () => this.onOpen()); this.socket.on('close', (code, reason) => this.onClose(code, reason)); this.socket.on('message', data => this.onMessage(data)); - } login() { const timestamp = Math.floor(Date.now() / 1000); - const sign = encrypt('GET','/user/verify',null,timestamp,this.apiSecret); - const wsLoginReq = new WsLoginReq(this.apiKey,this.passphrase,timestamp.toString(),sign); + let sign = encrypt('GET','/user/verify',null,timestamp,this.apiSecret); + if (API_CONFIG.SIGN_TYPE === BIZ_CONSTANT.RSA) { + sign = encryptRSA('GET','/user/verify',null,timestamp,this.apiSecret); + } + const wsLoginReq = new WsLoginReq(this.apiKey,this.passphrase,timestamp.toString(),sign); const args = new Array(); args.push(wsLoginReq); const request = new WsBaseReq('login',args); @@ -58,19 +61,20 @@ export class BitgetWsClient extends EventEmitter { this.send(request); } - private send(messageObject: any) { const that = this; if (!this.socket) throw Error('socket is not open'); const jsonStr = toJsonString(messageObject); Console.info('sendInfo:'+jsonStr) + if (that.isOpen) { + this.socket?.send(jsonStr); + } - setInterval(() => { - if (that.isOpen) { - this.socket?.send(jsonStr); - } - }, 1000); - + // setInterval(() => { + // if (that.isOpen) { + // this.socket?.send(jsonStr); + // } + // }, 1000); } private onOpen() { @@ -80,6 +84,7 @@ export class BitgetWsClient extends EventEmitter { this.emit('open'); } + private initTimer() { this.interval = setInterval(() => { if (this.socket) { @@ -104,6 +109,15 @@ export class BitgetWsClient extends EventEmitter { this.emit('close'); } + connection() { + this.socket.on('connection', () => { + Console.info("open") + }) + Console.info(`on open Connected to ${this.websocketUri}`); + this.initTimer(); + this.emit('open'); + } + close() { if (this.socket) { Console.log(`Closing websocket connection...`); diff --git a/bitget-python-sdk-api/README.md b/bitget-python-sdk-api/README.md index 2c22aec9..5a8a4063 100644 --- a/bitget-python-sdk-api/README.md +++ b/bitget-python-sdk-api/README.md @@ -33,12 +33,75 @@ passphrase = "" * 解开相应方法的注释传参调用各接口即可 + * 如果你的apikey是RSA类型则主动设置签名类型为RSA:在`constans.py`文件中设置SIGN_TYPE的值为RSA 如 SIGN_TYPE = RSA + +```php +import bitget.v1.mix.order_api as maxOrderApi +import bitget.bitget_api as baseApi + +from bitget.exceptions import BitgetAPIException + +if __name__ == '__main__': + apiKey = "" + secretKey = '''your''' + passphrase = "" + + # Demo 1:place order + maxOrderApi = maxOrderApi.OrderApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = maxOrderApi.placeOrder(params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 2:place order by post directly + baseApi = baseApi.BitgetApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = baseApi.post("/api/mix/v1/order/placeOrder", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 3:send get request + try: + params = {} + params["productType"] = "umcbl" + response = baseApi.get("/api/mix/v1/market/contracts", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 4:send get request with no params + try: + response = baseApi.get("/api/spot/v1/account/getInfo", {}) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) +``` * WebSocketAPI * 运行`example_ws_contract.py` * 根据个人/公共频道选择对应启动方法,解开相应频道的注释即可 + * 如果你的apikey是RSA类型则主动设置签名类型为RSA:在`constans.py`文件中设置SIGN_TYPE的值为RSA 如 SIGN_TYPE = RSA + ```python # 公共数据 不需要登录(行情,K线,交易数据,资金费率,限价范围,深度数据,标记价格等频道) client = BitgetWsClient(CONTRACT_WS_URL, need_login=False) \ diff --git a/bitget-python-sdk-api/README_EN.md b/bitget-python-sdk-api/README_EN.md index 7dc27faa..9ed9e1da 100644 --- a/bitget-python-sdk-api/README_EN.md +++ b/bitget-python-sdk-api/README_EN.md @@ -29,15 +29,78 @@ passphrase = "" * RestAPI - * run`example.py` - - * Unlock the annotations of the corresponding methods, pass parameters, and call each interface. + * run`example.py` + + * Unlock the annotations of the corresponding methods, pass parameters, and call each interface. + + * If your apikey is of RSA type, actively set the signature type to RSA: set the value of SIGN_TYPE to RSA in the `constans.py` file, such as SIGN_TYPE = RSA +```php +import bitget.v1.mix.order_api as maxOrderApi +import bitget.bitget_api as baseApi + +from bitget.exceptions import BitgetAPIException + +if __name__ == '__main__': + apiKey = "" + secretKey = '''your''' + passphrase = "" + + # Demo 1:place order + maxOrderApi = maxOrderApi.OrderApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = maxOrderApi.placeOrder(params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 2:place order by post directly + baseApi = baseApi.BitgetApi(apiKey, secretKey, passphrase) + try: + params = {} + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + response = baseApi.post("/api/mix/v1/order/placeOrder", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 3:send get request + try: + params = {} + params["productType"] = "umcbl" + response = baseApi.get("/api/mix/v1/market/contracts", params) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 4:send get request with no params + try: + response = baseApi.get("/api/spot/v1/account/getInfo", {}) + print(response) + except BitgetAPIException as e: + print("error:" + e.message) +``` * WebSocketAPI - * run `example_ws_contract.py` + * run `example_ws_contract.py` + + * Select the corresponding startup method according to the personal/public channel, and unlock the annotation of the corresponding channel. - * Select the corresponding startup method according to the personal/public channel, and unlock the annotation of the corresponding channel. + * If your apikey is of RSA type, actively set the signature type to RSA: set the value of SIGN_TYPE to RSA in the `constans.py` file, such as SIGN_TYPE = RSA ```python # Public channel does not require login (market, K-line, transaction data, depth data, mark price and other channels) diff --git a/bitget-python-sdk-api/bitget/client.py b/bitget-python-sdk-api/bitget/client.py index 24ae8735..52b44630 100644 --- a/bitget-python-sdk-api/bitget/client.py +++ b/bitget-python-sdk-api/bitget/client.py @@ -29,6 +29,8 @@ def _request(self, method, request_path, params, cursor=False): body = json.dumps(params) if method == c.POST else "" sign = utils.sign(utils.pre_hash(timestamp, method, request_path, str(body)), self.API_SECRET_KEY) + if c.SIGN_TYPE == c.RSA: + sign = utils.signByRSA(utils.pre_hash(timestamp, method, request_path, str(body)), self.API_SECRET_KEY) header = utils.get_header(self.API_KEY, sign, timestamp, self.PASSPHRASE) if self.first: diff --git a/bitget-python-sdk-api/bitget/consts.py b/bitget-python-sdk-api/bitget/consts.py index 947efe2d..3847e21d 100644 --- a/bitget-python-sdk-api/bitget/consts.py +++ b/bitget-python-sdk-api/bitget/consts.py @@ -1,5 +1,6 @@ # Base Url API_URL = 'https://api.bitget.com' +CONTRACT_WS_URL = 'wss://ws.bitget.com/mix/v1/stream' # http header CONTENT_TYPE = 'Content-Type' @@ -17,4 +18,10 @@ POST = "POST" DELETE = "DELETE" -REQUEST_PATH = '/user/verify' \ No newline at end of file +# sign type +RSA = "RSA" +SHA256 = "SHA256" +SIGN_TYPE = SHA256 + +# ws +REQUEST_PATH = '/user/verify' diff --git a/bitget-python-sdk-api/bitget/utils.py b/bitget-python-sdk-api/bitget/utils.py index c23e4330..190f95a6 100644 --- a/bitget-python-sdk-api/bitget/utils.py +++ b/bitget-python-sdk-api/bitget/utils.py @@ -1,16 +1,28 @@ -import hmac import base64 +import hmac import time + +# from Crypto.Hash import SHA256 +# from Crypto.PublicKey import RSA +# from Crypto.Signature import PKCS1_v1_5 as pk + from . import consts as c def sign(message, secret_key): mac = hmac.new(bytes(secret_key, encoding='utf8'), bytes(message, encoding='utf-8'), digestmod='sha256') d = mac.digest() - return base64.b64encode(d) + return str(base64.b64encode(d), 'utf8') + +def signByRSA(message, secret_key): + # privatekey = RSA.importKey(secret_key) + # h = SHA256.new(message.encode('utf-8')) + # signer = pk.new(privatekey) + # sign = signer.sign(h) + return str(base64.b64encode("sign"), 'utf8') -def pre_hash(timestamp, method, request_path, body): +def pre_hash(timestamp, method, request_path, body = ""): return str(timestamp) + str.upper(method) + request_path + body @@ -45,3 +57,7 @@ def signature(timestamp, method, request_path, body, secret_key): mac = hmac.new(bytes(secret_key, encoding='utf8'), bytes(message, encoding='utf-8'), digestmod='sha256') d = mac.digest() return base64.b64encode(d) + +def check_none(value, msg=""): + if not value: + raise Exception(msg + " Invalid params!") \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py index 7f06c63c..2f6eb865 100644 --- a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py +++ b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py @@ -9,8 +9,8 @@ import websocket -from bitget.consts import GET, REQUEST_PATH -from bitget.ws.utils import sign_utils +from bitget.consts import GET +from .. import consts as c, utils WS_OP_LOGIN = 'login' WS_OP_SUBSCRIBE = "subscribe" @@ -28,7 +28,7 @@ def handel_error(message): class BitgetWsClient: def __init__(self, url, need_login=False): - sign_utils.check_none(url, "url") + utils.check_none(url, "url") self.__need_login = need_login self.__connection = False self.__login_status = False @@ -94,11 +94,13 @@ def __init_client(self): print(ex) def __login(self): - sign_utils.check_none(self.__api_key, "api key") - sign_utils.check_none(self.__api_secret_key, "api secret key") - sign_utils.check_none(self.__passphrase, "passphrase") + utils.check_none(self.__api_key, "api key") + utils.check_none(self.__api_secret_key, "api secret key") + utils.check_none(self.__passphrase, "passphrase") timestamp = int(round(time.time())) - sign = sign_utils.sign(sign_utils.pre_hash(timestamp, GET, REQUEST_PATH), self.__api_secret_key) + sign = utils.sign(utils.pre_hash(timestamp, GET, c.REQUEST_PATH), self.__api_secret_key) + if c.SIGN_TYPE == c.RSA: + sign = utils.signByRSA(utils.pre_hash(timestamp, GET, c.REQUEST_PATH), self.__api_secret_key) ws_login_req = WsLoginReq(self.__api_key, self.__passphrase, str(timestamp), sign) self.send_message(WS_OP_LOGIN, [ws_login_req]) print("logging in......") @@ -128,7 +130,7 @@ def subscribe(self, channels, listener=None): if listener: for chanel in channels: - chanel.inst_type = str(chanel.inst_type).lower() + chanel.inst_type = str(chanel.inst_type) self.__scribe_map[chanel] = listener for channel in channels: diff --git a/bitget-python-sdk-api/bitget/ws/contract/private_channel.py b/bitget-python-sdk-api/bitget/ws/contract/private_channel.py deleted file mode 100644 index 66234237..00000000 --- a/bitget-python-sdk-api/bitget/ws/contract/private_channel.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/python -from bitget.ws.websocket_server import WebsocketServer -import bitget.ws.utils.ws_url as ws_url -import bitget.ws.utils.sign_utils as utils -import time - - -class PrivateChannel(WebsocketServer): - def __init__(self, url, api_key, api_secret_key, passphrase): - super(PrivateChannel, self).__init__(url, api_key, api_secret_key, passphrase, isLogin=True) - self.api_key = api_key - self.passphrase = passphrase - self.api_secret_key = api_secret_key - - def login(self): - timestamp = int(round(time.time())) - sign = utils.sign(utils.pre_hash(timestamp, ws_url.GET, ws_url.REQUEST_PATH), self.api_secret_key) - args = [self.api_key, self.passphrase, str(timestamp), str(sign)] - super().set_login(ws_url.LOGIN, args) - - def account(self, symbol): - self.login() - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_ACCOUNT+":"+symbol]) - super().connect() - - def position(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_POSITION+":"+symbol]) - super().connect() - - def order(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_ORDER+":"+symbol]) - super().connect() \ No newline at end of file diff --git a/bitget-python-sdk-api/bitget/ws/contract/public_channel.py b/bitget-python-sdk-api/bitget/ws/contract/public_channel.py deleted file mode 100644 index 4098bfbe..00000000 --- a/bitget-python-sdk-api/bitget/ws/contract/public_channel.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/python -from bitget.ws.websocket_server import WebsocketServer -import bitget.ws.utils.ws_url as ws_url - - -class PublicChannel(WebsocketServer): - def __init__(self, url, api_key, api_secret_key, passphrase): - super(PublicChannel, self).__init__(url, api_key, api_secret_key, passphrase, isLogin=False) - - def ticker(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_TICKER+":"+symbol]) - super().connect() - - def candle(self, symbol, period): - super().set_args(ws_url.SUBSCRIBE, [period+":"+symbol]) - super().connect() - - def trade(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_TRADE+":"+symbol]) - super().connect() - - def depth(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_DEPTH+":"+symbol]) - super().connect() - - def funding_rate(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_FUNDING_RATE+":"+symbol]) - super().connect() - - def mark_price(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_MARK_PRICE+":"+symbol]) - super().connect() - - def price_range(self, symbol): - super().set_args(ws_url.SUBSCRIBE, [ws_url.SWAP_PRICE_RANGE+":"+symbol]) - super().connect() - diff --git a/bitget-python-sdk-api/bitget/ws/utils/sign_utils.py b/bitget-python-sdk-api/bitget/ws/utils/sign_utils.py deleted file mode 100644 index 2a44da45..00000000 --- a/bitget-python-sdk-api/bitget/ws/utils/sign_utils.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python -import hmac -import base64 - - -def sign(message, secret_key): - mac = hmac.new(bytes(secret_key, encoding='utf8'), bytes(message, encoding='utf-8'), digestmod='sha256') - d = mac.digest() - return str(base64.b64encode(d), 'utf8') - - -def pre_hash(timestamp, method, request_path): - return str(timestamp) + str.upper(method) + str(request_path) - - -def check_none(value, msg=""): - if not value: - raise Exception(msg + " Invalid params!") diff --git a/bitget-python-sdk-api/bitget/ws/utils/ws_url.py b/bitget-python-sdk-api/bitget/ws/utils/ws_url.py deleted file mode 100644 index 20648aa3..00000000 --- a/bitget-python-sdk-api/bitget/ws/utils/ws_url.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/python - -# ws url -CONTRACT_WS_URL = ' wss://ws.bitget.com/spot/v1/stream' - -# 订阅类型 -SUBSCRIBE = 'subscribe' -UNSUBSCRIBE = 'unsubscribe' -LOGIN = 'login' - -# 合约 订阅频道 不需要登录 -# 行情 -SWAP_TICKER = 'swap/ticker' -# k线 -SWAP_CANDLES_1M = 'swap/candle60s' -SWAP_CANDLES_5M = 'swap/candle300s' -SWAP_CANDLES_15M = 'swap/candle900s' -SWAP_CANDLES_30M = 'swap/candle1800s' -SWAP_CANDLES_1H = 'swap/candle3600s' -SWAP_CANDLES_4H = 'swap/candle14400s' -SWAP_CANDLES_12H = 'swap/candle43200s' -SWAP_CANDLES_1D = 'swap/candle86400s' -SWAP_CANDLES_1W = 'swap/candle604800s' -# 交易信息频道 -SWAP_TRADE = 'swap/trade' -# 资金费率 -SWAP_FUNDING_RATE = 'swap/funding_rate' -# 限价范围频道 -SWAP_PRICE_RANGE = 'swap/price_range' -# 深度 -SWAP_DEPTH = 'swap/depth' -# 标记价格频道 -SWAP_MARK_PRICE = 'swap/mark_price' - -# 合约 订阅频道 需要登录 -# 账户信息 -SWAP_ACCOUNT = 'swap/account' -# 持仓信息 -SWAP_POSITION = 'swap/position' -# 订单信息 -SWAP_ORDER = 'swap/order' - - -# method 方式 -GET = 'GET' -REQUEST_PATH = '/user/verify' - diff --git a/bitget-python-sdk-api/bitget/ws/websocket_server.py b/bitget-python-sdk-api/bitget/ws/websocket_server.py deleted file mode 100644 index d9ed0e63..00000000 --- a/bitget-python-sdk-api/bitget/ws/websocket_server.py +++ /dev/null @@ -1,106 +0,0 @@ -#!/usr/bin/python -import websocket -import threading -import json - -global ws_dict -ws_dict = dict() - - -def on_open(ws): - __connection = ws_dict[ws] - __connection.on_open(ws) - - -def on_close(ws): - __connection = ws_dict[ws] - __connection.on_close(ws) - - -def on_error(ws): - print("ws connect error, has been closed") - ws.close() - - -def on_message(ws, message): - __connection = ws_dict[ws] - __connection.on_message(message) - - -def ws_server(*args): - try: - # websocket.enableTrace(True) - websocket_server = args[0] - websocket_server.__connection = websocket.WebSocketApp(websocket_server.url, - on_open = on_open, - on_message = on_message, - on_error = on_error, - on_close = on_close) - ws_dict[websocket_server.__connection] = websocket_server - websocket_server.__connection.run_forever(ping_timeout=30) - except Exception as ex: - print(ex) - - -class WebsocketServer: - - def __init__(self, url, api_key, api_secret_key, passphrase, isLogin=False): - self.url = url - self.__api_key = api_key - self.__api_secret_key = api_secret_key - self.__passphrase = passphrase - self.__connection = None - self.__state_code = 0 - self.__isLogin = isLogin - - def connect(self): - self.__thread = threading.Thread(target=ws_server, args=[self]) - self.__thread.start() - - def on_open(self, __connection): - self.__connection = __connection - if self.__isLogin: - print(self.__isLogin) - args = self.get_login() - print(args) - self.__connection.send(args) - - args = self.get_args() - self.__connection.send(args) - print(args) - - def on_close(self, __connection): - self.__connection = __connection - self.__connection.close() - - def on_message(self, message): - mes_data = json.loads(message) - print(mes_data) - if self.__state_code == 200: - self.rev_message(mes_data) - else: - if 'action' in mes_data: - print("connect success") - self.__state_code = mes_data['code'] - - def rev_message(self, message): - if 'errorCode' in message: - print(message) - self.__connection.close() - else: - print(message['data']) - - def set_args(self, __op, __agrs): - self.__op = __op - self.__args = __agrs - - def get_args(self): - return json.dumps({"op": self.__op, "args": self.__args}) - - def set_login(self, __login_op, __login_args): - self.__login_op = __login_op - self.__login_args = __login_args - - def get_login(self): - return json.dumps({"op": self.__login_op, "args": self.__login_args}) - diff --git a/bitget-python-sdk-api/example_ws_contract.py b/bitget-python-sdk-api/example_ws_contract.py index 972ecd00..bc03c988 100644 --- a/bitget-python-sdk-api/example_ws_contract.py +++ b/bitget-python-sdk-api/example_ws_contract.py @@ -31,11 +31,11 @@ def handel_btcusd(message): .error_listener(handel_error) \ .build() - channles = [SubscribeReq("mc", "ticker", "BTCUSD"), SubscribeReq("SP", "candle1W", "BTCUSDT")] + channles = [SubscribeReq("SP", "candle1W", "BTCUSDT")] client.subscribe(channles,handle) - channles = [SubscribeReq("mc", "ticker", "ETHUSD")] - client.subscribe(channles, handel_btcusd) + # channles = [SubscribeReq("mc", "ticker", "ETHUSD")] + # client.subscribe(channles, handel_btcusd) # channle2 = ["swap/ticker:btcusd"]; # client.subscribe(channle,handel_btcusd) From a7c78513b4fd292462b17ad685d7ad9f3a28b39e Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Sat, 18 Nov 2023 11:20:25 +0800 Subject: [PATCH 12/25] sdk --- bitget-golang-sdk-api/config/config.go | 6 +- .../internal/common/bitgetwsclient.go | 6 +- .../src/lib/ws/BitgetWsClient.ts | 26 +-- bitget-php-sdk-api/src/Config.php | 5 +- .../src/internal/BitgetApiClient.php | 5 +- bitget-php-sdk-api/src/internal/Utils.php | 26 ++- .../src/model/ws/SubscribeReq.php | 3 + bitget-php-sdk-api/src/model/ws/Websocket.php | 159 ------------------ bitget-python-sdk-api/bitget/utils.py | 16 +- 9 files changed, 50 insertions(+), 202 deletions(-) delete mode 100644 bitget-php-sdk-api/src/model/ws/Websocket.php diff --git a/bitget-golang-sdk-api/config/config.go b/bitget-golang-sdk-api/config/config.go index 8aa5eab7..54925929 100644 --- a/bitget-golang-sdk-api/config/config.go +++ b/bitget-golang-sdk-api/config/config.go @@ -6,9 +6,9 @@ const ( BaseUrl = "https://api.bitget.com" WsUrl = "wss://ws.bitget.com/mix/v1/stream" - ApiKey = "" - SecretKey = "" - PASSPHRASE = "" + ApiKey = "bg_c4d7c935e2dc2fda95da7df1abab0254" + SecretKey = "bd58429ba2d081cc7c9370df52ad598acf9065c5751f1bae73212d78443e5e1f" + PASSPHRASE = "1r1b6uX6PQ9tbKwb" TimeoutSecond = 30 SignType = constants.SHA256 ) diff --git a/bitget-golang-sdk-api/internal/common/bitgetwsclient.go b/bitget-golang-sdk-api/internal/common/bitgetwsclient.go index c72f0a42..7a5fa75b 100644 --- a/bitget-golang-sdk-api/internal/common/bitgetwsclient.go +++ b/bitget-golang-sdk-api/internal/common/bitgetwsclient.go @@ -66,9 +66,9 @@ func (p *BitgetBaseWsClient) ConnectWebSocket() { func (p *BitgetBaseWsClient) Login() { timesStamp := internal.TimesStampSec() sign := p.Signer.Sign(constants.WsAuthMethod, constants.WsAuthPath, "", timesStamp) - //if constants.RSA == config.SignType { - // sign = p.Signer.SignByRSA(constants.WsAuthMethod, constants.WsAuthPath, "", timesStamp) - //} + if constants.RSA == config.SignType { + sign = p.Signer.SignByRSA(constants.WsAuthMethod, constants.WsAuthPath, "", timesStamp) + } loginReq := model.WsLoginReq{ ApiKey: config.ApiKey, diff --git a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts index c6cdc582..e727a18d 100644 --- a/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts +++ b/bitget-node-sdk-api/src/lib/ws/BitgetWsClient.ts @@ -26,12 +26,11 @@ export class BitgetWsClient extends EventEmitter { super(); this.websocketUri = API_CONFIG.WS_URL; this.callBack = callBack; - this.socket = new WebSocket(API_CONFIG.WS_URL); + this.socket = new WebSocket(API_CONFIG.WS_URL, {}); this.apiKey = apiKey; this.apiSecret = apiSecret; this.passphrase = passphrase; - this.socket.on('open', () => this.onOpen()); this.socket.on('close', (code, reason) => this.onClose(code, reason)); this.socket.on('message', data => this.onMessage(data)); @@ -66,15 +65,12 @@ export class BitgetWsClient extends EventEmitter { if (!this.socket) throw Error('socket is not open'); const jsonStr = toJsonString(messageObject); Console.info('sendInfo:'+jsonStr) - if (that.isOpen) { - this.socket?.send(jsonStr); - } - // setInterval(() => { - // if (that.isOpen) { - // this.socket?.send(jsonStr); - // } - // }, 1000); + setInterval(() => { + if (that.isOpen) { + this.socket?.send(jsonStr); + } + }, 1000); } private onOpen() { @@ -84,7 +80,6 @@ export class BitgetWsClient extends EventEmitter { this.emit('open'); } - private initTimer() { this.interval = setInterval(() => { if (this.socket) { @@ -109,15 +104,6 @@ export class BitgetWsClient extends EventEmitter { this.emit('close'); } - connection() { - this.socket.on('connection', () => { - Console.info("open") - }) - Console.info(`on open Connected to ${this.websocketUri}`); - this.initTimer(); - this.emit('open'); - } - close() { if (this.socket) { Console.log(`Closing websocket connection...`); diff --git a/bitget-php-sdk-api/src/Config.php b/bitget-php-sdk-api/src/Config.php index 3baf81a7..7ff0f1ad 100644 --- a/bitget-php-sdk-api/src/Config.php +++ b/bitget-php-sdk-api/src/Config.php @@ -4,11 +4,12 @@ namespace bitget; -class Config +class Config extends Constant { - const websocketUrl = "wss://ws.bitget.com/spot/v1/stream"; + const websocketUrl = "wss://ws.bitget.com/mix/v1/stream"; const restApiUrl = "https://api.bitget.com"; const apiSecret = ""; const apiKey = ""; const passphrase = ""; + const signType = self::SHA256; } \ No newline at end of file diff --git a/bitget-php-sdk-api/src/internal/BitgetApiClient.php b/bitget-php-sdk-api/src/internal/BitgetApiClient.php index 852d95ac..3f416aa6 100644 --- a/bitget-php-sdk-api/src/internal/BitgetApiClient.php +++ b/bitget-php-sdk-api/src/internal/BitgetApiClient.php @@ -51,7 +51,10 @@ function doPost($url, $data) function getHead($method, $requestPath, $body) { $timestamp = Utils::getTimestamp(); - $sign = Utils::getSign($timestamp, $method, $requestPath, $body,self::apiSecret); + $sign = Utils::getSign($timestamp, $method, $requestPath, $body, self::apiSecret); + if (self::signType == self::RSA) { + $sign = Utils::getSignByRSA($timestamp, $method, $requestPath, $body, self::apiSecret); + } $headerArray = array(); $headerArray[0] = "Content-type:application/json;"; diff --git a/bitget-php-sdk-api/src/internal/Utils.php b/bitget-php-sdk-api/src/internal/Utils.php index ba6f238f..e93a572f 100644 --- a/bitget-php-sdk-api/src/internal/Utils.php +++ b/bitget-php-sdk-api/src/internal/Utils.php @@ -6,10 +6,9 @@ class Utils { - public static function getSign($timestamp, $method, $requestPath, $body, $apiSecret):string + public static function getSign($timestamp, $method, $requestPath, $body, $apiSecret): string { if ($body != null) { - $message = (string)$timestamp . strtoupper($method) . $requestPath . (string)$body; } else { $message = (string)$timestamp . strtoupper($method) . $requestPath; @@ -18,15 +17,30 @@ public static function getSign($timestamp, $method, $requestPath, $body, $apiSec return base64_encode(hash_hmac('sha256', $message, $apiSecret, true)); } + public static function getSignByRSA($timestamp, $method, $requestPath, $body, $apiSecret):string + { + $rsaUtil = new RsaUtil(null, $apiSecret); + if ($body != null) { + $message = (string)$timestamp . strtoupper($method) . $requestPath . (string)$body; + } else { + $message = (string)$timestamp . strtoupper($method) . $requestPath; + } + +// print_r("fuck rsa\n"); + print_r($rsaUtil->sign($message) . "\n"); + return $rsaUtil->sign($message); + } + // 获取IOS格式时间戳 - public static function getTimestamp():int + public static function getTimestamp(): int { return time() * 1000; } - public static function printLog(string $msg,string $type):void{ - $time=date("Y-m-d H:i:s"); - print_r("[".$time."] [".$type."] ".$msg."\n"); + public static function printLog(string $msg, string $type): void + { + $time = date("Y-m-d H:i:s"); + print_r("[" . $time . "] [" . $type . "] " . $msg . "\n"); } } \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/ws/SubscribeReq.php b/bitget-php-sdk-api/src/model/ws/SubscribeReq.php index d518f6e1..b2b84d0e 100644 --- a/bitget-php-sdk-api/src/model/ws/SubscribeReq.php +++ b/bitget-php-sdk-api/src/model/ws/SubscribeReq.php @@ -23,4 +23,7 @@ public function __construct(string $instType, string $channel, string $instId) public function toString():string{ return $this->instType.",".$this->channel.",".$this->instId; } + + + } \ No newline at end of file diff --git a/bitget-php-sdk-api/src/model/ws/Websocket.php b/bitget-php-sdk-api/src/model/ws/Websocket.php deleted file mode 100644 index f5a2f8ec..00000000 --- a/bitget-php-sdk-api/src/model/ws/Websocket.php +++ /dev/null @@ -1,159 +0,0 @@ -checksumTest=new ChecksumTest(); - } - - - function subscribe($callback, $sub_str="swap/ticker:BTC-USD-SWAP") { - $GLOBALS['sub_str'] = $sub_str; - $GLOBALS['callback'] = $callback; - $worker = new Worker(); - - // 线上 - $url = "ws://real.okex.com:8443/ws/v3"; - - $worker->onWorkerStart = function($worker) use ($url){ - // ssl需要访问443端口 - $con = new AsyncTcpConnection($url); - - $ntime = $this->getTimestamp(); - print_r($ntime." $url\n"); - - // 设置以ssl加密方式访问,使之成为wss - $con->transport = 'ssl'; - - // 定时器 - Timer::add(20, function() use ($con) - { - $con->send("ping"); -// - $ntime = $this->getTimestamp(); - print_r($ntime." ping\n"); - }); - - $con->onConnect = function($con){ - - // 登陆 - $timestamp = self::get_millisecond(); -// $timestamp = 1563541080.121; - $sign = self::wsSignature($timestamp,"GET","/users/self/verify","",self::$apiSecret); - $data = json_encode([ - 'op' => "login", - 'args' => [self::$apiKey, self::$passphrase, $timestamp, $sign] - ]); - - $ntime = $this->getTimestamp(); - print_r($ntime." $data\n"); -// print_r($ntime." $i $data\n"); - $con->send($data); -// $con->send($data); - - }; - - $con->onMessage = function($con, $data) { - - // 解压数据 - $data = gzinflate($data); - - // 如果是深度200档,则校验 - if(strpos($data,"checksum")) - { - if ($this->partial==null) - { - $this->partial=$data; - }else{ - $update = $data; - - // 深度合并 - $data = $this->checksumTest->depthMerge($this->partial,$update); - - // 深度校验结果 - $result = $this->checksumTest->checksum($data); - - if ($result){ - print_r("---------------------------------------------------------------\n"); - print_r(self::getTimestamp()." checksum success\n"); - } else { - die(self::getTimestamp()." checksum fail\n"); - } - - // 打印增量数据 - call_user_func_array($GLOBALS['callback'], array($update)); - - // 更新全局的全量数据 - $this->partial = $data; - } -// print_r("深度\n") ; - } - - call_user_func_array($GLOBALS['callback'], array($data)); - - $data = json_decode($data, true); - - if (isset($data["success"])){ - // 订阅频道 - $data = json_encode([ - 'op' => "subscribe", - 'args' => $GLOBALS['sub_str'] - ], JSON_UNESCAPED_SLASHES); - - $ntime = $this->getTimestamp(); - print_r($ntime . " $data\n"); - - $con->send($data); -// $con->send($data); - } - }; - - $con->onClose = function ($con) { - - $ntime = $this->getTimestamp(); - - print_r($ntime." reconnecting\n"); - - $con->reConnect(0); - }; - - $con->connect(); - }; - - Worker::runAll(); - } - -} - -//subscribe(function ($data){print_r(json_encode($data,JSON_PRETTY_PRINT));}, "swap/ticker:BTC-USD-SWAP"); diff --git a/bitget-python-sdk-api/bitget/utils.py b/bitget-python-sdk-api/bitget/utils.py index 190f95a6..00b5a43d 100644 --- a/bitget-python-sdk-api/bitget/utils.py +++ b/bitget-python-sdk-api/bitget/utils.py @@ -2,9 +2,9 @@ import hmac import time -# from Crypto.Hash import SHA256 -# from Crypto.PublicKey import RSA -# from Crypto.Signature import PKCS1_v1_5 as pk +from Crypto.Hash import SHA256 +from Crypto.PublicKey import RSA +from Crypto.Signature import PKCS1_v1_5 as pk from . import consts as c @@ -15,11 +15,11 @@ def sign(message, secret_key): return str(base64.b64encode(d), 'utf8') def signByRSA(message, secret_key): - # privatekey = RSA.importKey(secret_key) - # h = SHA256.new(message.encode('utf-8')) - # signer = pk.new(privatekey) - # sign = signer.sign(h) - return str(base64.b64encode("sign"), 'utf8') + privatekey = RSA.importKey(secret_key) + h = SHA256.new(message.encode('utf-8')) + signer = pk.new(privatekey) + sign = signer.sign(h) + return str(base64.b64encode(sign), 'utf8') def pre_hash(timestamp, method, request_path, body = ""): From cdf16a175f517fdfbaab699f13ac97a8c6c89a49 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Sun, 19 Nov 2023 18:14:12 +0800 Subject: [PATCH 13/25] java sdk --- .../openapi/common/enums/SignTypeEnum.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/SignTypeEnum.java diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/SignTypeEnum.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/SignTypeEnum.java new file mode 100644 index 00000000..e45905b9 --- /dev/null +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/enums/SignTypeEnum.java @@ -0,0 +1,18 @@ +package com.bitget.openapi.common.enums; + +import lombok.Getter; + +@Getter +public enum SignTypeEnum { + SHA256("1", "sha256"), + RSA("2", "rsa"), + ; + + private final String code; + private final String name; + + SignTypeEnum(String code, String name) { + this.code = code; + this.name = name; + } +} From 1638fd5540b331ea1c773b3e8b70b8338da12c97 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Sun, 19 Nov 2023 18:17:21 +0800 Subject: [PATCH 14/25] sdk --- bitget-golang-sdk-api/test/apiclient_test.go | 72 + .../test/bitgetwsclient_test.go | 39 + bitget-node-sdk-api/docs/assets/css/main.css | 2679 +++++++++++++++++ .../docs/assets/images/icons.png | Bin 0 -> 9615 bytes .../docs/assets/images/icons@2x.png | Bin 0 -> 28144 bytes .../docs/assets/images/widgets.png | Bin 0 -> 480 bytes .../docs/assets/images/widgets@2x.png | Bin 0 -> 855 bytes bitget-node-sdk-api/docs/assets/js/main.js | 1 + .../docs/assets/js/search.json | 1 + ..._src_lib_authenticatedapi_.accountapi.html | 693 +++++ ...ib_authenticatedapi_.authenticatedapi.html | 361 +++ .../_src_lib_authenticatedapi_.orderapi.html | 819 +++++ ...src_lib_authenticatedapi_.positionapi.html | 492 +++ .../_src_lib_publicapi_.publicapi.html | 788 +++++ bitget-node-sdk-api/docs/globals.html | 165 + bitget-node-sdk-api/docs/index.html | 160 + ...b_authenticatedapi_.bitgetaccountinfo.html | 423 +++ ...nticatedapi_.bitgetaccountsettinginfo.html | 309 ++ ...nticatedapi_.bitgetadjustmarginresult.html | 262 ++ ...atedapi_.bitgetautoappendmarginresult.html | 262 ++ ...henticatedapi_.bitgetbatchorderresult.html | 257 ++ ...atedapi_.bitgetcancelbatchorderresult.html | 284 ++ ...enticatedapi_.bitgetcancelorderresult.html | 323 ++ ...ib_authenticatedapi_.bitgetledgerinfo.html | 351 +++ ...b_authenticatedapi_.bitgetorderdetail.html | 466 +++ ...authenticatedapi_.bitgetorderfillinfo.html | 365 +++ ..._authenticatedapi_.bitgetorderrequest.html | 381 +++ ...b_authenticatedapi_.bitgetorderresult.html | 314 ++ ...authenticatedapi_.bitgetplanorderinfo.html | 454 +++ ...authenticatedapi_.bitgetplanorderpage.html | 262 ++ ...henticatedapi_.bitgetplanorderrequest.html | 386 +++ ...thenticatedapi_.bitgetplanorderresult.html | 257 ++ ...henticatedapi_.bitgetpositionholdinfo.html | 271 ++ ..._authenticatedapi_.bitgetpositioninfo.html | 404 +++ ..._authenticatedapi_.bitgetpositionpage.html | 256 ++ ...enticatedapi_.bitgetvirtualrecordinfo.html | 518 ++++ ...src_lib_publicapi_.bitgetcontractinfo.html | 378 +++ .../_src_lib_publicapi_.bitgetdepthinfo.html | 225 ++ ...b_publicapi_.bitgetfundinghistoryinfo.html | 239 ++ .../_src_lib_publicapi_.bitgetindexinfo.html | 234 ++ ...lib_publicapi_.bitgetopeninterestinfo.html | 248 ++ ...c_lib_publicapi_.bitgetpricelimitinfo.html | 267 ++ .../_src_lib_publicapi_.bitgetsystemtime.html | 244 ++ .../_src_lib_publicapi_.bitgettickerinfo.html | 304 ++ .../_src_lib_publicapi_.bitgettradeinfo.html | 276 ++ .../_src_lib_util_.bitgetapiheader.html | 253 ++ .../docs/modules/_src_index_.html | 107 + .../modules/_src_lib_authenticatedapi_.html | 229 ++ .../docs/modules/_src_lib_publicapi_.html | 173 ++ .../docs/modules/_src_lib_util_.html | 180 ++ bitget-node-sdk-api/src/lib/contant.ts | 4 + bitget-php-sdk-api/src/Constant.php | 11 + bitget-php-sdk-api/src/internal/RsaUtil.php | 155 + 53 files changed, 16602 insertions(+) create mode 100644 bitget-golang-sdk-api/test/apiclient_test.go create mode 100644 bitget-golang-sdk-api/test/bitgetwsclient_test.go create mode 100644 bitget-node-sdk-api/docs/assets/css/main.css create mode 100644 bitget-node-sdk-api/docs/assets/images/icons.png create mode 100644 bitget-node-sdk-api/docs/assets/images/icons@2x.png create mode 100644 bitget-node-sdk-api/docs/assets/images/widgets.png create mode 100644 bitget-node-sdk-api/docs/assets/images/widgets@2x.png create mode 100644 bitget-node-sdk-api/docs/assets/js/main.js create mode 100644 bitget-node-sdk-api/docs/assets/js/search.json create mode 100644 bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.accountapi.html create mode 100644 bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.authenticatedapi.html create mode 100644 bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.orderapi.html create mode 100644 bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.positionapi.html create mode 100644 bitget-node-sdk-api/docs/classes/_src_lib_publicapi_.publicapi.html create mode 100644 bitget-node-sdk-api/docs/globals.html create mode 100644 bitget-node-sdk-api/docs/index.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountsettinginfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetadjustmarginresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetautoappendmarginresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetbatchorderresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelbatchorderresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelorderresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetledgerinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderdetail.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderfillinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderrequest.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderpage.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderrequest.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderresult.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionholdinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositioninfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionpage.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetvirtualrecordinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetcontractinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetdepthinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetfundinghistoryinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetindexinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetopeninterestinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetpricelimitinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetsystemtime.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettickerinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettradeinfo.html create mode 100644 bitget-node-sdk-api/docs/interfaces/_src_lib_util_.bitgetapiheader.html create mode 100644 bitget-node-sdk-api/docs/modules/_src_index_.html create mode 100644 bitget-node-sdk-api/docs/modules/_src_lib_authenticatedapi_.html create mode 100644 bitget-node-sdk-api/docs/modules/_src_lib_publicapi_.html create mode 100644 bitget-node-sdk-api/docs/modules/_src_lib_util_.html create mode 100644 bitget-node-sdk-api/src/lib/contant.ts create mode 100644 bitget-php-sdk-api/src/Constant.php create mode 100644 bitget-php-sdk-api/src/internal/RsaUtil.php diff --git a/bitget-golang-sdk-api/test/apiclient_test.go b/bitget-golang-sdk-api/test/apiclient_test.go new file mode 100644 index 00000000..ecec5e75 --- /dev/null +++ b/bitget-golang-sdk-api/test/apiclient_test.go @@ -0,0 +1,72 @@ +package test + +import ( + "bitget/internal" + "bitget/pkg/client" + "bitget/pkg/client/v1" + "fmt" + "testing" +) + +func Test_PlaceOrder(t *testing.T) { + client := new(v1.MixOrderClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.PlaceOrder(params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_post(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["symbol"] = "BTCUSDT_UMCBL" + params["marginCoin"] = "USDT" + params["side"] = "open_long" + params["orderType"] = "limit" + params["price"] = "27012" + params["size"] = "0.01" + params["timInForceValue"] = "normal" + + resp, err := client.Post("/api/mix/v1/order/placeOrder", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["productType"] = "umcbl" + + resp, err := client.Get("/api/mix/v1/account/accounts", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} + +func Test_get_with_params(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + + resp, err := client.Get("/api/spot/v1/account/getInfo", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} diff --git a/bitget-golang-sdk-api/test/bitgetwsclient_test.go b/bitget-golang-sdk-api/test/bitgetwsclient_test.go new file mode 100644 index 00000000..a0631211 --- /dev/null +++ b/bitget-golang-sdk-api/test/bitgetwsclient_test.go @@ -0,0 +1,39 @@ +package test + +import ( + "bitget/internal/model" + "bitget/pkg/client/ws" + "fmt" + "testing" +) + +func TestBitgetWsClient_New(t *testing.T) { + + client := new(ws.BitgetWsClient).Init(true, func(message string) { + fmt.Println("default error:" + message) + }, func(message string) { + fmt.Println("default error:" + message) + }) + + var channelsDef []model.SubscribeReq + subReqDef1 := model.SubscribeReq{ + InstType: "MC", + Channel: "ticker", + InstId: "BTCUSDT", + } + channelsDef = append(channelsDef, subReqDef1) + client.SubscribeDef(channelsDef) + + //var channels []model.SubscribeReq + //subReq1 := model.SubscribeReq{ + // InstType: "UMCBL", + // Channel: "account", + // InstId: "default", + //} + //channels = append(channels, subReq1) + //client.Subscribe(channels, func(message string) { + // fmt.Println("appoint:" + message) + //}) + client.Connect() + +} diff --git a/bitget-node-sdk-api/docs/assets/css/main.css b/bitget-node-sdk-api/docs/assets/css/main.css new file mode 100644 index 00000000..959edd73 --- /dev/null +++ b/bitget-node-sdk-api/docs/assets/css/main.css @@ -0,0 +1,2679 @@ +/*! normalize.css v1.1.3 | MIT License | git.io/normalize */ +/* ========================================================================== + * * HTML5 display definitions + * * ========================================================================== */ +/** + * * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. */ +article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { + display: block; +} + +/** + * * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. */ +audio, canvas, video { + display: inline-block; + *display: inline; + *zoom: 1; +} + +/** + * * Prevent modern browsers from displaying `audio` without controls. + * * Remove excess height in iOS 5 devices. */ +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. + * * Known issue: no IE 6 support. */ +[hidden] { + display: none; +} + +/* ========================================================================== + * * Base + * * ========================================================================== */ +/** + * * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using + * * `em` units. + * * 2. Prevent iOS text size adjust after orientation change, without disabling + * * user zoom. */ +html { + font-size: 100%; + /* 1 */ + -ms-text-size-adjust: 100%; + /* 2 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + font-family: sans-serif; +} + +/** + * * Address `font-family` inconsistency between `textarea` and other form + * * elements. */ +button, input, select, textarea { + font-family: sans-serif; +} + +/** + * * Address margins handled incorrectly in IE 6/7. */ +body { + margin: 0; +} + +/* ========================================================================== + * * Links + * * ========================================================================== */ +/** + * * Address `outline` inconsistency between Chrome and other browsers. */ +a:focus { + outline: thin dotted; +} +a:active, a:hover { + outline: 0; +} + +/** + * * Improve readability when focused and also mouse hovered in all browsers. */ +/* ========================================================================== + * * Typography + * * ========================================================================== */ +/** + * * Address font sizes and margins set differently in IE 6/7. + * * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, + * * and Chrome. */ +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +h2 { + font-size: 1.5em; + margin: 0.83em 0; +} + +h3 { + font-size: 1.17em; + margin: 1em 0; +} + +h4, .tsd-index-panel h3 { + font-size: 1em; + margin: 1.33em 0; +} + +h5 { + font-size: 0.83em; + margin: 1.67em 0; +} + +h6 { + font-size: 0.67em; + margin: 2.33em 0; +} + +/** + * * Address styling not present in IE 7/8/9, Safari 5, and Chrome. */ +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. */ +b, strong { + font-weight: bold; +} + +blockquote { + margin: 1em 40px; +} + +/** + * * Address styling not present in Safari 5 and Chrome. */ +dfn { + font-style: italic; +} + +/** + * * Address differences between Firefox and other browsers. + * * Known issue: no IE 6/7 normalization. */ +hr { + box-sizing: content-box; + height: 0; +} + +/** + * * Address styling not present in IE 6/7/8/9. */ +mark { + background: #ff0; + color: #000; +} + +/** + * * Address margins set differently in IE 6/7. */ +p, pre { + margin: 1em 0; +} + +/** + * * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. */ +code, kbd, pre, samp { + font-family: monospace, serif; + _font-family: "courier new", monospace; + font-size: 1em; +} + +/** + * * Improve readability of pre-formatted text in all browsers. */ +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/** + * * Address CSS quotes not supported in IE 6/7. */ +q { + quotes: none; +} +q:before, q:after { + content: ""; + content: none; +} + +/** + * * Address `quotes` property not supported in Safari 4. */ +/** + * * Address inconsistent and variable font size in all browsers. */ +small { + font-size: 80%; +} + +/** + * * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ +sub { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + * * Lists + * * ========================================================================== */ +/** + * * Address margins set differently in IE 6/7. */ +dl, menu, ol, ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +/** + * * Address paddings set differently in IE 6/7. */ +menu, ol, ul { + padding: 0 0 0 40px; +} + +/** + * * Correct list images handled incorrectly in IE 7. */ +nav ul, nav ol { + list-style: none; + list-style-image: none; +} + +/* ========================================================================== + * * Embedded content + * * ========================================================================== */ +/** + * * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. + * * 2. Improve image quality when scaled in IE 7. */ +img { + border: 0; + /* 1 */ + -ms-interpolation-mode: bicubic; +} + +/* 2 */ +/** + * * Correct overflow displayed oddly in IE 9. */ +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + * * Figures + * * ========================================================================== */ +/** + * * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. */ +figure, form { + margin: 0; +} + +/* ========================================================================== + * * Forms + * * ========================================================================== */ +/** + * * Correct margin displayed oddly in IE 6/7. */ +/** + * * Define consistent border, margin, and padding. */ +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * * 1. Correct color not being inherited in IE 6/7/8/9. + * * 2. Correct text not wrapping in Firefox 3. + * * 3. Correct alignment displayed oddly in IE 6/7. */ +legend { + border: 0; + /* 1 */ + padding: 0; + white-space: normal; + /* 2 */ + *margin-left: -7px; +} + +/* 3 */ +/** + * * 1. Correct font size not being inherited in all browsers. + * * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, + * * and Chrome. + * * 3. Improve appearance and consistency in all browsers. */ +button, input, select, textarea { + font-size: 100%; + /* 1 */ + margin: 0; + /* 2 */ + vertical-align: baseline; + /* 3 */ + *vertical-align: middle; +} + +/* 3 */ +/** + * * Address Firefox 3+ setting `line-height` on `input` using `!important` in + * * the UA stylesheet. */ +button, input { + line-height: normal; +} + +/** + * * Address inconsistent `text-transform` inheritance for `button` and `select`. + * * All other form control elements do not inherit `text-transform` values. + * * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. + * * Correct `select` style inheritance in Firefox 4+ and Opera. */ +button, select { + text-transform: none; +} + +/** + * * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * * and `video` controls. + * * 2. Correct inability to style clickable `input` types in iOS. + * * 3. Improve usability and consistency of cursor style between image-type + * * `input` and others. + * * 4. Remove inner spacing in IE 7 without affecting normal text inputs. + * * Known issue: inner spacing remains in IE 6. */ +button, html input[type=button] { + -webkit-appearance: button; + /* 2 */ + cursor: pointer; + /* 3 */ + *overflow: visible; +} + +/* 4 */ +input[type=reset], input[type=submit] { + -webkit-appearance: button; + /* 2 */ + cursor: pointer; + /* 3 */ + *overflow: visible; +} + +/* 4 */ +/** + * * Re-set default cursor for disabled elements. */ +button[disabled], html input[disabled] { + cursor: default; +} + +/** + * * 1. Address box sizing set to content-box in IE 8/9. + * * 2. Remove excess padding in IE 8/9. + * * 3. Remove excess padding in IE 7. + * * Known issue: excess padding remains in IE 6. */ +input { + /* 3 */ +} +input[type=checkbox], input[type=radio] { + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ + *height: 13px; + /* 3 */ + *width: 13px; +} +input[type=search] { + -webkit-appearance: textfield; + /* 1 */ + /* 2 */ + box-sizing: content-box; +} +input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * * (include `-moz` to future-proof). */ +/** + * * Remove inner padding and search cancel button in Safari 5 and Chrome + * * on OS X. */ +/** + * * Remove inner padding and border in Firefox 3+. */ +button::-moz-focus-inner, input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * * 1. Remove default vertical scrollbar in IE 6/7/8/9. + * * 2. Improve readability and alignment in all browsers. */ +textarea { + overflow: auto; + /* 1 */ + vertical-align: top; +} + +/* 2 */ +/* ========================================================================== + * * Tables + * * ========================================================================== */ +/** + * * Remove most spacing between table cells. */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* * + * *Visual Studio-like style based on original C# coloring by Jason Diamond */ +.hljs { + display: inline-block; + padding: 0.5em; + background: white; + color: black; +} + +.hljs-comment, .hljs-annotation, .hljs-template_comment, .diff .hljs-header, .hljs-chunk, .apache .hljs-cbracket { + color: #008000; +} + +.hljs-keyword, .hljs-id, .hljs-built_in, .css .smalltalk .hljs-class, .hljs-winutils, .bash .hljs-variable, .tex .hljs-command, .hljs-request, .hljs-status, .nginx .hljs-title { + color: #00f; +} + +.xml .hljs-tag { + color: #00f; +} +.xml .hljs-tag .hljs-value { + color: #00f; +} + +.hljs-string, .hljs-title, .hljs-parent, .hljs-tag .hljs-value, .hljs-rules .hljs-value { + color: #a31515; +} + +.ruby .hljs-symbol { + color: #a31515; +} +.ruby .hljs-symbol .hljs-string { + color: #a31515; +} + +.hljs-template_tag, .django .hljs-variable, .hljs-addition, .hljs-flow, .hljs-stream, .apache .hljs-tag, .hljs-date, .tex .hljs-formula, .coffeescript .hljs-attribute { + color: #a31515; +} + +.ruby .hljs-string, .hljs-decorator, .hljs-filter .hljs-argument, .hljs-localvars, .hljs-array, .hljs-attr_selector, .hljs-pseudo, .hljs-pi, .hljs-doctype, .hljs-deletion, .hljs-envvar, .hljs-shebang, .hljs-preprocessor, .hljs-pragma, .userType, .apache .hljs-sqbracket, .nginx .hljs-built_in, .tex .hljs-special, .hljs-prompt { + color: #2b91af; +} + +.hljs-phpdoc, .hljs-javadoc, .hljs-xmlDocTag { + color: #808080; +} + +.vhdl .hljs-typename { + font-weight: bold; +} +.vhdl .hljs-string { + color: #666666; +} +.vhdl .hljs-literal { + color: #a31515; +} +.vhdl .hljs-attribute { + color: #00b0e8; +} + +.xml .hljs-attribute { + color: #f00; +} + +ul.tsd-descriptions > li > :first-child, .tsd-panel > :first-child, .col > :first-child, .col-11 > :first-child, .col-10 > :first-child, .col-9 > :first-child, .col-8 > :first-child, .col-7 > :first-child, .col-6 > :first-child, .col-5 > :first-child, .col-4 > :first-child, .col-3 > :first-child, .col-2 > :first-child, .col-1 > :first-child, +ul.tsd-descriptions > li > :first-child > :first-child, +.tsd-panel > :first-child > :first-child, +.col > :first-child > :first-child, +.col-11 > :first-child > :first-child, +.col-10 > :first-child > :first-child, +.col-9 > :first-child > :first-child, +.col-8 > :first-child > :first-child, +.col-7 > :first-child > :first-child, +.col-6 > :first-child > :first-child, +.col-5 > :first-child > :first-child, +.col-4 > :first-child > :first-child, +.col-3 > :first-child > :first-child, +.col-2 > :first-child > :first-child, +.col-1 > :first-child > :first-child, +ul.tsd-descriptions > li > :first-child > :first-child > :first-child, +.tsd-panel > :first-child > :first-child > :first-child, +.col > :first-child > :first-child > :first-child, +.col-11 > :first-child > :first-child > :first-child, +.col-10 > :first-child > :first-child > :first-child, +.col-9 > :first-child > :first-child > :first-child, +.col-8 > :first-child > :first-child > :first-child, +.col-7 > :first-child > :first-child > :first-child, +.col-6 > :first-child > :first-child > :first-child, +.col-5 > :first-child > :first-child > :first-child, +.col-4 > :first-child > :first-child > :first-child, +.col-3 > :first-child > :first-child > :first-child, +.col-2 > :first-child > :first-child > :first-child, +.col-1 > :first-child > :first-child > :first-child { + margin-top: 0; +} +ul.tsd-descriptions > li > :last-child, .tsd-panel > :last-child, .col > :last-child, .col-11 > :last-child, .col-10 > :last-child, .col-9 > :last-child, .col-8 > :last-child, .col-7 > :last-child, .col-6 > :last-child, .col-5 > :last-child, .col-4 > :last-child, .col-3 > :last-child, .col-2 > :last-child, .col-1 > :last-child, +ul.tsd-descriptions > li > :last-child > :last-child, +.tsd-panel > :last-child > :last-child, +.col > :last-child > :last-child, +.col-11 > :last-child > :last-child, +.col-10 > :last-child > :last-child, +.col-9 > :last-child > :last-child, +.col-8 > :last-child > :last-child, +.col-7 > :last-child > :last-child, +.col-6 > :last-child > :last-child, +.col-5 > :last-child > :last-child, +.col-4 > :last-child > :last-child, +.col-3 > :last-child > :last-child, +.col-2 > :last-child > :last-child, +.col-1 > :last-child > :last-child, +ul.tsd-descriptions > li > :last-child > :last-child > :last-child, +.tsd-panel > :last-child > :last-child > :last-child, +.col > :last-child > :last-child > :last-child, +.col-11 > :last-child > :last-child > :last-child, +.col-10 > :last-child > :last-child > :last-child, +.col-9 > :last-child > :last-child > :last-child, +.col-8 > :last-child > :last-child > :last-child, +.col-7 > :last-child > :last-child > :last-child, +.col-6 > :last-child > :last-child > :last-child, +.col-5 > :last-child > :last-child > :last-child, +.col-4 > :last-child > :last-child > :last-child, +.col-3 > :last-child > :last-child > :last-child, +.col-2 > :last-child > :last-child > :last-child, +.col-1 > :last-child > :last-child > :last-child { + margin-bottom: 0; +} + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 0 40px; +} +@media (max-width: 640px) { + .container { + padding: 0 20px; + } +} + +.container-main { + padding-bottom: 200px; +} + +.row { + display: -ms-flexbox; + display: flex; + position: relative; + margin: 0 -10px; +} +.row:after { + visibility: hidden; + display: block; + content: ""; + clear: both; + height: 0; +} + +.col, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 { + box-sizing: border-box; + float: left; + padding: 0 10px; +} + +.col-1 { + width: 8.3333333333%; +} + +.offset-1 { + margin-left: 8.3333333333%; +} + +.col-2 { + width: 16.6666666667%; +} + +.offset-2 { + margin-left: 16.6666666667%; +} + +.col-3 { + width: 25%; +} + +.offset-3 { + margin-left: 25%; +} + +.col-4 { + width: 33.3333333333%; +} + +.offset-4 { + margin-left: 33.3333333333%; +} + +.col-5 { + width: 41.6666666667%; +} + +.offset-5 { + margin-left: 41.6666666667%; +} + +.col-6 { + width: 50%; +} + +.offset-6 { + margin-left: 50%; +} + +.col-7 { + width: 58.3333333333%; +} + +.offset-7 { + margin-left: 58.3333333333%; +} + +.col-8 { + width: 66.6666666667%; +} + +.offset-8 { + margin-left: 66.6666666667%; +} + +.col-9 { + width: 75%; +} + +.offset-9 { + margin-left: 75%; +} + +.col-10 { + width: 83.3333333333%; +} + +.offset-10 { + margin-left: 83.3333333333%; +} + +.col-11 { + width: 91.6666666667%; +} + +.offset-11 { + margin-left: 91.6666666667%; +} + +.tsd-kind-icon { + display: block; + position: relative; + padding-left: 20px; + text-indent: -20px; +} +.tsd-kind-icon:before { + content: ""; + display: inline-block; + vertical-align: middle; + width: 17px; + height: 17px; + margin: 0 3px 2px 0; + background-image: url(../images/icons.png); +} +@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + .tsd-kind-icon:before { + background-image: url(../images/icons@2x.png); + background-size: 238px 204px; + } +} + +.tsd-signature.tsd-kind-icon:before { + background-position: 0 -153px; +} + +.tsd-kind-object-literal > .tsd-kind-icon:before { + background-position: 0px -17px; +} +.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -17px; +} +.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -17px; +} + +.tsd-kind-class > .tsd-kind-icon:before { + background-position: 0px -34px; +} +.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -34px; +} +.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -34px; +} + +.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -51px; +} +.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -51px; +} +.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -51px; +} + +.tsd-kind-interface > .tsd-kind-icon:before { + background-position: 0px -68px; +} +.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -68px; +} +.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -68px; +} + +.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -85px; +} +.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -85px; +} +.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -85px; +} + +.tsd-kind-namespace > .tsd-kind-icon:before { + background-position: 0px -102px; +} +.tsd-kind-namespace.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -102px; +} +.tsd-kind-namespace.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -102px; +} + +.tsd-kind-module > .tsd-kind-icon:before { + background-position: 0px -102px; +} +.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -102px; +} +.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -102px; +} + +.tsd-kind-enum > .tsd-kind-icon:before { + background-position: 0px -119px; +} +.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -119px; +} +.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -119px; +} + +.tsd-kind-enum-member > .tsd-kind-icon:before { + background-position: 0px -136px; +} +.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -136px; +} +.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -136px; +} + +.tsd-kind-signature > .tsd-kind-icon:before { + background-position: 0px -153px; +} +.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -153px; +} +.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -153px; +} + +.tsd-kind-type-alias > .tsd-kind-icon:before { + background-position: 0px -170px; +} +.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -170px; +} +.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -170px; +} + +.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -187px; +} +.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -187px; +} +.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -187px; +} + +.tsd-kind-variable > .tsd-kind-icon:before { + background-position: -136px -0px; +} +.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -0px; +} +.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -0px; +} +.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -0px; +} + +.tsd-kind-property > .tsd-kind-icon:before { + background-position: -136px -0px; +} +.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -0px; +} +.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -0px; +} +.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -0px; +} + +.tsd-kind-get-signature > .tsd-kind-icon:before { + background-position: -136px -17px; +} +.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -17px; +} +.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -17px; +} + +.tsd-kind-set-signature > .tsd-kind-icon:before { + background-position: -136px -34px; +} +.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -34px; +} +.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -34px; +} + +.tsd-kind-accessor > .tsd-kind-icon:before { + background-position: -136px -51px; +} +.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -51px; +} +.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -51px; +} + +.tsd-kind-function > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-method > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-call-signature > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: -136px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -85px; +} + +.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: -136px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -85px; +} + +.tsd-kind-constructor > .tsd-kind-icon:before { + background-position: -136px -102px; +} +.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -102px; +} +.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -102px; +} + +.tsd-kind-constructor-signature > .tsd-kind-icon:before { + background-position: -136px -102px; +} +.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -102px; +} +.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -102px; +} + +.tsd-kind-index-signature > .tsd-kind-icon:before { + background-position: -136px -119px; +} +.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -119px; +} +.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -119px; +} + +.tsd-kind-event > .tsd-kind-icon:before { + background-position: -136px -136px; +} +.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -136px; +} +.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -136px; +} +.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -136px; +} + +.tsd-is-static > .tsd-kind-icon:before { + background-position: -136px -153px; +} +.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -153px; +} +.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -153px; +} +.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -153px; +} +.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -153px; +} +.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -153px; +} + +.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { + background-position: -136px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -187px; +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes shift-to-left { + from { + transform: translate(0, 0); + } + to { + transform: translate(-25%, 0); + } +} +@keyframes unshift-to-left { + from { + transform: translate(-25%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: #fdfdfd; + font-family: "Segoe UI", sans-serif; + font-size: 16px; + color: #222; +} + +a { + color: #4da6ff; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} + +code, pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 14px; + background-color: rgba(0, 0, 0, 0.04); +} + +pre { + padding: 10px; +} +pre code { + padding: 0; + font-size: 100%; + background-color: transparent; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, .tsd-typography h5, .tsd-typography h6 { + font-size: 1em; + margin: 0; +} +.tsd-typography h5, .tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, .tsd-typography ul, .tsd-typography ol { + margin: 1em 0; +} + +@media (min-width: 901px) and (max-width: 1024px) { + html.default .col-content { + width: 72%; + } + html.default .col-menu { + width: 28%; + } + html.default .tsd-navigation { + padding-left: 10px; + } +} +@media (max-width: 900px) { + html.default .col-content { + float: none; + width: 100%; + } + html.default .col-menu { + position: fixed !important; + overflow: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + width: 100%; + padding: 20px 20px 0 0; + max-width: 450px; + visibility: hidden; + background-color: #fff; + transform: translate(100%, 0); + } + html.default .col-menu > *:last-child { + padding-bottom: 20px; + } + html.default .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + html.default.to-has-menu .overlay { + animation: fade-in 0.4s; + } + html.default.to-has-menu header, +html.default.to-has-menu footer, +html.default.to-has-menu .col-content { + animation: shift-to-left 0.4s; + } + html.default.to-has-menu .col-menu { + animation: pop-in-from-right 0.4s; + } + html.default.from-has-menu .overlay { + animation: fade-out 0.4s; + } + html.default.from-has-menu header, +html.default.from-has-menu footer, +html.default.from-has-menu .col-content { + animation: unshift-to-left 0.4s; + } + html.default.from-has-menu .col-menu { + animation: pop-out-to-right 0.4s; + } + html.default.has-menu body { + overflow: hidden; + } + html.default.has-menu .overlay { + visibility: visible; + } + html.default.has-menu header, +html.default.has-menu footer, +html.default.has-menu .col-content { + transform: translate(-25%, 0); + } + html.default.has-menu .col-menu { + visibility: visible; + transform: translate(0, 0); + } +} + +.tsd-page-title { + padding: 70px 0 20px 0; + margin: 0 0 40px 0; + background: #fff; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); +} +.tsd-page-title h1 { + margin: 0; +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: #808080; +} +.tsd-breadcrumb a { + color: #808080; + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +html.minimal .container { + margin: 0; +} +html.minimal .container-main { + padding-top: 50px; + padding-bottom: 0; +} +html.minimal .content-wrap { + padding-left: 300px; +} +html.minimal .tsd-navigation { + position: fixed !important; + overflow: auto; + -webkit-overflow-scrolling: touch; + box-sizing: border-box; + z-index: 1; + left: 0; + top: 40px; + bottom: 0; + width: 300px; + padding: 20px; + margin: 0; +} +html.minimal .tsd-member .tsd-member { + margin-left: 0; +} +html.minimal .tsd-page-toolbar { + position: fixed; + z-index: 2; +} +html.minimal #tsd-filter .tsd-filter-group { + right: 0; + transform: none; +} +html.minimal footer { + background-color: transparent; +} +html.minimal footer .container { + padding: 0; +} +html.minimal .tsd-generator { + padding: 0; +} +@media (max-width: 900px) { + html.minimal .tsd-navigation { + display: none; + } + html.minimal .content-wrap { + padding-left: 0; + } +} + +dl.tsd-comment-tags { + overflow: hidden; +} +dl.tsd-comment-tags dt { + float: left; + padding: 1px 5px; + margin: 0 10px 0 0; + border-radius: 4px; + border: 1px solid #808080; + color: #808080; + font-size: 0.8em; + font-weight: normal; +} +dl.tsd-comment-tags dd { + margin: 0 0 10px 0; +} +dl.tsd-comment-tags dd:before, dl.tsd-comment-tags dd:after { + display: table; + content: " "; +} +dl.tsd-comment-tags dd pre, dl.tsd-comment-tags dd:after { + clear: both; +} +dl.tsd-comment-tags p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.toggle-protected .tsd-is-private { + display: none; +} + +.toggle-public .tsd-is-private, +.toggle-public .tsd-is-protected, +.toggle-public .tsd-is-private-protected { + display: none; +} + +.toggle-inherited .tsd-is-inherited { + display: none; +} + +.toggle-only-exported .tsd-is-not-exported { + display: none; +} + +.toggle-externals .tsd-is-external { + display: none; +} + +#tsd-filter { + position: relative; + display: inline-block; + height: 40px; + vertical-align: bottom; +} +.no-filter #tsd-filter { + display: none; +} +#tsd-filter .tsd-filter-group { + display: inline-block; + height: 40px; + vertical-align: bottom; + white-space: nowrap; +} +#tsd-filter input { + display: none; +} +@media (max-width: 900px) { + #tsd-filter .tsd-filter-group { + display: block; + position: absolute; + top: 40px; + right: 20px; + height: auto; + background-color: #fff; + visibility: hidden; + transform: translate(50%, 0); + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + } + .has-options #tsd-filter .tsd-filter-group { + visibility: visible; + } + .to-has-options #tsd-filter .tsd-filter-group { + animation: fade-in 0.2s; + } + .from-has-options #tsd-filter .tsd-filter-group { + animation: fade-out 0.2s; + } + #tsd-filter label, +#tsd-filter .tsd-select { + display: block; + padding-right: 20px; + } +} + +footer { + border-top: 1px solid #eee; + background-color: #fff; +} +footer.with-border-bottom { + border-bottom: 1px solid #eee; +} +footer .tsd-legend-group { + font-size: 0; +} +footer .tsd-legend { + display: inline-block; + width: 25%; + padding: 0; + font-size: 16px; + list-style: none; + line-height: 1.333em; + vertical-align: top; +} +@media (max-width: 900px) { + footer .tsd-legend { + width: 50%; + } +} + +.tsd-hierarchy { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-index-panel .tsd-index-content { + margin-bottom: -30px !important; +} +.tsd-index-panel .tsd-index-section { + margin-bottom: 30px !important; +} +.tsd-index-panel h3 { + margin: 0 -20px 10px -20px; + padding: 0 20px 10px 20px; + border-bottom: 1px solid #eee; +} +.tsd-index-panel ul.tsd-index-list { + -moz-column-count: 3; + -ms-column-count: 3; + -o-column-count: 3; + column-count: 3; + -moz-column-gap: 20px; + -ms-column-gap: 20px; + -o-column-gap: 20px; + column-gap: 20px; + padding: 0; + list-style: none; + line-height: 1.333em; +} +@media (max-width: 900px) { + .tsd-index-panel ul.tsd-index-list { + -moz-column-count: 1; + -ms-column-count: 1; + -o-column-count: 1; + column-count: 1; + } +} +@media (min-width: 901px) and (max-width: 1024px) { + .tsd-index-panel ul.tsd-index-list { + -moz-column-count: 2; + -ms-column-count: 2; + -o-column-count: 2; + column-count: 2; + } +} +.tsd-index-panel ul.tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} +.tsd-index-panel a, +.tsd-index-panel .tsd-parent-kind-module a { + color: #9600ff; +} +.tsd-index-panel .tsd-parent-kind-interface a { + color: #7da01f; +} +.tsd-index-panel .tsd-parent-kind-enum a { + color: #cc9900; +} +.tsd-index-panel .tsd-parent-kind-class a { + color: #4da6ff; +} +.tsd-index-panel .tsd-kind-module a { + color: #9600ff; +} +.tsd-index-panel .tsd-kind-interface a { + color: #7da01f; +} +.tsd-index-panel .tsd-kind-enum a { + color: #cc9900; +} +.tsd-index-panel .tsd-kind-class a { + color: #4da6ff; +} +.tsd-index-panel .tsd-is-private a { + color: #808080; +} + +.tsd-flag { + display: inline-block; + padding: 1px 5px; + border-radius: 4px; + color: #fff; + background-color: #808080; + text-indent: 0; + font-size: 14px; + font-weight: normal; +} + +.tsd-anchor { + position: absolute; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation { + margin: 0 0 0 40px; +} +.tsd-navigation a { + display: block; + padding-top: 2px; + padding-bottom: 2px; + border-left: 2px solid transparent; + color: #222; + text-decoration: none; + transition: border-left-color 0.1s; +} +.tsd-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul { + margin: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li { + padding: 0; +} + +.tsd-navigation.primary { + padding-bottom: 40px; +} +.tsd-navigation.primary a { + display: block; + padding-top: 6px; + padding-bottom: 6px; +} +.tsd-navigation.primary ul li a { + padding-left: 5px; +} +.tsd-navigation.primary ul li li a { + padding-left: 25px; +} +.tsd-navigation.primary ul li li li a { + padding-left: 45px; +} +.tsd-navigation.primary ul li li li li a { + padding-left: 65px; +} +.tsd-navigation.primary ul li li li li li a { + padding-left: 85px; +} +.tsd-navigation.primary ul li li li li li li a { + padding-left: 105px; +} +.tsd-navigation.primary > ul { + border-bottom: 1px solid #eee; +} +.tsd-navigation.primary li { + border-top: 1px solid #eee; +} +.tsd-navigation.primary li.current > a { + font-weight: bold; +} +.tsd-navigation.primary li.label span { + display: block; + padding: 20px 0 6px 5px; + color: #808080; +} +.tsd-navigation.primary li.globals + li > span, .tsd-navigation.primary li.globals + li > a { + padding-top: 20px; +} + +.tsd-navigation.secondary { + max-height: calc(100vh - 1rem - 40px); + overflow: auto; + position: -webkit-sticky; + position: sticky; + top: calc(.5rem + 40px); + transition: 0.3s; +} +.tsd-navigation.secondary.tsd-navigation--toolbar-hide { + max-height: calc(100vh - 1rem); + top: 0.5rem; +} +.tsd-navigation.secondary ul { + transition: opacity 0.2s; +} +.tsd-navigation.secondary ul li a { + padding-left: 25px; +} +.tsd-navigation.secondary ul li li a { + padding-left: 45px; +} +.tsd-navigation.secondary ul li li li a { + padding-left: 65px; +} +.tsd-navigation.secondary ul li li li li a { + padding-left: 85px; +} +.tsd-navigation.secondary ul li li li li li a { + padding-left: 105px; +} +.tsd-navigation.secondary ul li li li li li li a { + padding-left: 125px; +} +.tsd-navigation.secondary ul.current a { + border-left-color: #eee; +} +.tsd-navigation.secondary li.focus > a, +.tsd-navigation.secondary ul.current li.focus > a { + border-left-color: #000; +} +.tsd-navigation.secondary li.current { + margin-top: 20px; + margin-bottom: 20px; + border-left-color: #eee; +} +.tsd-navigation.secondary li.current > a { + font-weight: bold; +} + +@media (min-width: 901px) { + .menu-sticky-wrap { + position: static; + } +} + +.tsd-panel { + margin: 20px 0; + padding: 20px; + background-color: #fff; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 { + margin: 1.5em -20px 10px -20px; + padding: 0 20px 10px 20px; + border-bottom: 1px solid #eee; +} +.tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: 0; +} +.tsd-panel table { + display: block; + width: 100%; + overflow: auto; + margin-top: 10px; + word-break: normal; + word-break: keep-all; +} +.tsd-panel table th { + font-weight: bold; +} +.tsd-panel table th, .tsd-panel table td { + padding: 6px 13px; + border: 1px solid #ddd; +} +.tsd-panel table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} +.tsd-panel table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +.tsd-panel-group { + margin: 60px 0; +} +.tsd-panel-group > h1, .tsd-panel-group > h2, .tsd-panel-group > h3 { + padding-left: 20px; + padding-right: 20px; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 40px; + height: 40px; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: #222; +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + padding: 0 10px; + background-color: #fdfdfd; +} +#tsd-search .results li:nth-child(even) { + background-color: #fff; +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current, +#tsd-search .results li:hover { + background-color: #eee; +} +#tsd-search .results a { + display: block; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: #808080; + font-weight: normal; +} +#tsd-search.has-focus { + background-color: #eee; +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +.tsd-signature { + margin: 0 0 1em 0; + padding: 10px; + border: 1px solid #eee; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} +.tsd-signature.tsd-kind-icon { + padding-left: 30px; +} +.tsd-signature.tsd-kind-icon:before { + top: 10px; + left: 10px; +} +.tsd-panel > .tsd-signature { + margin-left: -20px; + margin-right: -20px; + border-width: 1px 0; +} +.tsd-panel > .tsd-signature.tsd-kind-icon { + padding-left: 40px; +} +.tsd-panel > .tsd-signature.tsd-kind-icon:before { + left: 20px; +} + +.tsd-signature-symbol { + color: #808080; + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + border: 1px solid #eee; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-width: 1px 0 0 0; + transition: background-color 0.1s; +} +.tsd-signatures .tsd-signature:first-child { + border-top-width: 0; +} +.tsd-signatures .tsd-signature.current { + background-color: #eee; +} +.tsd-signatures.active > .tsd-signature { + cursor: pointer; +} +.tsd-panel > .tsd-signatures { + margin-left: -20px; + margin-right: -20px; + border-width: 1px 0; +} +.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { + padding-left: 40px; +} +.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { + left: 20px; +} +.tsd-panel > a.anchor + .tsd-signatures { + border-top-width: 0; + margin-top: -20px; +} + +ul.tsd-descriptions { + position: relative; + overflow: hidden; + padding: 0; + list-style: none; +} +ul.tsd-descriptions.active > .tsd-description { + display: none; +} +ul.tsd-descriptions.active > .tsd-description.current { + display: block; +} +ul.tsd-descriptions.active > .tsd-description.fade-in { + animation: fade-in-delayed 0.3s; +} +ul.tsd-descriptions.active > .tsd-description.fade-out { + animation: fade-out-delayed 0.3s; + position: absolute; + display: block; + top: 0; + left: 0; + right: 0; + opacity: 0; + visibility: hidden; +} +ul.tsd-descriptions h4, ul.tsd-descriptions .tsd-index-panel h3, .tsd-index-panel ul.tsd-descriptions h3 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} + +ul.tsd-parameters, +ul.tsd-type-parameters { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameters > li.tsd-parameter-signature, +ul.tsd-type-parameters > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameters h5, +ul.tsd-type-parameters h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +ul.tsd-parameters .tsd-comment, +ul.tsd-type-parameters .tsd-comment { + margin-top: -0.5em; +} + +.tsd-sources { + font-size: 14px; + color: #808080; + margin: 0 0 1em 0; +} +.tsd-sources a { + color: #808080; + text-decoration: underline; +} +.tsd-sources ul, .tsd-sources p { + margin: 0 !important; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: fixed; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 40px; + color: #333; + background: #fff; + border-bottom: 1px solid #eee; + transition: transform 0.3s linear; +} +.tsd-page-toolbar a { + color: #333; + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .table-wrap { + display: table; + width: 100%; + height: 40px; +} +.tsd-page-toolbar .table-cell { + display: table-cell; + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} + +.tsd-page-toolbar--hide { + transform: translateY(-100%); +} + +.tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { + content: ""; + display: inline-block; + width: 40px; + height: 40px; + margin: 0 -8px 0 0; + background-image: url(../images/widgets.png); + background-repeat: no-repeat; + text-indent: -1024px; + vertical-align: bottom; +} +@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + .tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { + background-image: url(../images/widgets@2x.png); + background-size: 320px 40px; + } +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.6; + height: 40px; + transition: opacity 0.1s, background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.8; +} +.tsd-widget.active { + opacity: 1; + background-color: #eee; +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} +.tsd-widget.search:before { + background-position: 0 0; +} +.tsd-widget.menu:before { + background-position: -40px 0; +} +.tsd-widget.options:before { + background-position: -80px 0; +} +.tsd-widget.options, .tsd-widget.menu { + display: none; +} +@media (max-width: 900px) { + .tsd-widget.options, .tsd-widget.menu { + display: inline-block; + } +} +input[type=checkbox] + .tsd-widget:before { + background-position: -120px 0; +} +input[type=checkbox]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +.tsd-select { + position: relative; + display: inline-block; + height: 40px; + transition: opacity 0.1s, background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-select .tsd-select-label { + opacity: 0.6; + transition: opacity 0.2s; +} +.tsd-select .tsd-select-label:before { + background-position: -240px 0; +} +.tsd-select.active .tsd-select-label { + opacity: 0.8; +} +.tsd-select.active .tsd-select-list { + visibility: visible; + opacity: 1; + transition-delay: 0s; +} +.tsd-select .tsd-select-list { + position: absolute; + visibility: hidden; + top: 40px; + left: 0; + margin: 0; + padding: 0; + opacity: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + transition: visibility 0s 0.2s, opacity 0.2s; +} +.tsd-select .tsd-select-list li { + padding: 0 20px 0 0; + background-color: #fdfdfd; +} +.tsd-select .tsd-select-list li:before { + background-position: 40px 0; +} +.tsd-select .tsd-select-list li:nth-child(even) { + background-color: #fff; +} +.tsd-select .tsd-select-list li:hover { + background-color: #eee; +} +.tsd-select .tsd-select-list li.selected:before { + background-position: -200px 0; +} +@media (max-width: 900px) { + .tsd-select .tsd-select-list { + top: 0; + left: auto; + right: 100%; + margin-right: -5px; + } + .tsd-select .tsd-select-label:before { + background-position: -280px 0; + } +} + +img { + max-width: 100%; +} \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/assets/images/icons.png b/bitget-node-sdk-api/docs/assets/images/icons.png new file mode 100644 index 0000000000000000000000000000000000000000..3836d5fe46e48bbe186116855aae879c23935327 GIT binary patch literal 9615 zcmZ{Kc_36>+`rwViHMAd#!?~-${LfgP1$7)F~(N1WKRsT#$-?;yNq3ylq}iztr1xY z8DtsBI<`UHtDfii{r-60Kg@OSJ?GqW=bZ2NvwY{NzOLpergKbGR8*&KBGn9m;|lQC z2Vwv|y`nSufCHVQijE2uRauuTeKZL;=kiiF^SbTk;N^?*u%}Y7bF;O-aMK0lXm4nb zvU~Kf+x|Kgl@Ro%nu?L%x8-yetd((kCqY|t;-%}@Y3Ez_m(HTRt=ekeUQ2n4-aRvJ zrlKaWct8JSc8Kxl4KHu+3VW1L`9%n~_KC5}g6&tFXqyKT-}R0?EdkYqCmQot47^9Z z6;opqR@7Nq-s|6=e6*0^`}+X1kg>CpuGnbpL7{xFTa|8nymC0{xgx*tI7n4mTKZNA znsd@3eVsV>YhATuv~+5(^Vu4j?)Tn`{x@8ijIA;wdf`+0P3$vnSrcWFXXc{Lx`1Z7 z%-n(BM(owD$7LzqJx)(f^Cusecq>OW z=h6n4YzSVM-V!-DK(sLT`!W~}($=O$9|ie`>_fpH0=1G1tiIFw($?~{5T>`74|p0H z``5=UydE)!CiFvmECW|s^TzG9*7pN|KknkVm3C{fEu30gffX&8iCm? zTFPm6*k%Hog`Q6JGj@dg9Z5nlAc6ApUe>;6xauB0-u!?wMU92jVL|3EcP9gEu5^wH z%tXRy#>HCEs*?KgMf73UcJ!lJ?x<6+)eJ{mEIS|HMDP7(7!(< z@X;?ACT8mncW9*XIaiJPW}Mw@b0W||)!sYnLw)0j4&-rXQgJhnQ2?frg1Nfk&JpmV8F=dDZl)e%#Grs|&0th7_o) z?7hQn<1078qcq?#;)CH=2kBBiGt37EtcXfpTXtHB59dr9=B~jI`yPm-Q?(ys=ajAu zGY;eS^z&WFvztZI3I~}*l}_lI^}6D<&CZ94;|&G9_pMx!C~$~EL4^8`QjT#|tqxxk zhl4CdxppbDiOk!Ht#SVAK4gf6Cr#=U&1sVxZ`y-X zTSi#@wHf(?(Dd6ypNOyshRZ*tneVP^W?y?$ur_!9iD-vY{&Q5(ooX2;`SkUjwEYA~ zwGcylCT4_`MZobm(0v$U(IhfYXxyjNJ@ztpH0sDmfpn|LMp3eM(R4uqKi_q1=D1-d z%GdV<&2+_9k@sc44xhIjqktRA2!Su|vzM0R-@#MK&{RdLoU#$Hc?{{JItvX{hKCtc zQNqZpkfG^@LGJRZM4H_>`F=N;O*+_`>M_ko_XWCgu@}ntqLX8VSeZQ_25Z8|^!d?o z$~}~9|`ZW9d_o<=8&K^~;Cr08b;qgq{(*e*sNt00lO2lZ;m-b<`Rl}=Lr6iQ8+$&br z!RLn{5a}j1Dh^|_1)Q?<;iBSrS0V|c_D@3}mc2d!%tV1VN?BC@clkFdx?HB&9KOTF z)9eHpmUEYsCqx^%JHuNdwY zz9P3oPYuTAXZVY}LRp&2qNl$pbsXL1GJ@wx?@CTO!acs+OFfW_U6?&As-(GJED}RR zO}B+Kxph7aUUm>i3rbPZQGXN}oQq;u`yTnFDAJ*d$4gjEJH!JPyt6V{cOUp*Jbyol zE$8wh)T=vpJOWRbv}HvR(cUSlO}ePIPdJ`J@yp=IC&E6K%r?QfW7F&%p!H~@?%yj5 z&MpiV!hyfukD56A097f!0+ANt`JSB~oLak75oKQN7FH=rQbX#Eak37|4&mqp@S~TA zOo51)xQxX}5NQ(3I_UeR4B;P0Q#x$_lDce78ET`Blo;`Hj*R;b8slZS7Oak(LjDuE z3z?-~-U@vWe*cEOsf^9|duH9};Pe)!=Ky+QQ!jr2VV-jMUH-F>oB>Ds zDJw}jm%V?OT^fu1y`$`yRdaW03L?)6vmInxhAsGrPhWIP8?=speMFf9Inn4^t zs$!88*B~c1A2J6t0~hgK2BJ_Pl23l=oeQQqjI2(4Mcv6U_#9#$PEN|qz36rCZ5$@I zNF1LpRe%ZG4qwuYr7ZdaynrPs?spt;9VbQM$462zbksMVhAOqPunrR7@Nbv#5;VKk zJB7xC?~QXd(e9REiLixHxRGhLcKR#0va}|LMS`AXKGOIGFKQv?=+>zf^ zN5XLjX6^`zh*%1UG_QV1H`@z!HZgC+OT2`+_B( z)J95hk;3C+K4XCswSP}au;fx=47~*$k`RAaYEU-qb03y0#x|&>LAeiXgri5E(!h9k z|9OVt@sk1-4+>0?ELyw|zs`~<95M=%o?Gix$?8z4Gz3Kpw|b>?BcD&s{X)-aXg!GJ zyq&`ZEP{K^u7ActXP$gGnO#F0Sr+QUZe0&d5*Yhw9A?C4(Sx2j3QKAlUpkQz7nji^ z%y8F|W{ypj(T%Bf#Wgyvq4szMo?*U-;3IGBRg1fK9!h-=YRsZ_+t~2!-)=pr;)Vnk zmt95&wMb02toOf`I9>M^Kv3LqKb_-#jauF&cGrWsCnMt?p7*uh zevugda={D04DB#7wR375=1i5}Z9fi3r)!F#7qmX9`SjppE&%8l8bKt+ADRMTWRv21 z4L&PldV8YpHw3b^`p0uWlIm#J&K65-y4lQW0VzZR!4#gfeT{b#fL1e*)Z*Ux}M^}bO%OM7uXip_4! zL@yo@q{utZeVV?3CtXs}i>nI|%26fwuzt0f#96fQ!{=dEX^YKnvIk*D%y9Cin;9R) zi{?)baJhgFs$1$SOZESTpldw2H&FD=v*v@1cA!`|s;avDKHa>Q+uJ8qhy!9%C4&lJSTN4OeydYOm4S?Bj7*e{xRYbU9Xos)R7qZT3dBBD5{ zo+(E3pR{>>)}hFhE+}!yYP0V+CVhyAq+RV{^X`XA3{iXj(ir$k@u|t8ZJ1ZnHq2dd zD$0RHmGJ=!?T5`*T2zOEJ~y}Nsyt7O)%+!0ulRQdsopJJxoznfpusv=2@zLXIq@^& z>0T5k4lzGCG(DnltLIe@6=ZOG@C(dvmYXfh4IhJfMfY8S?KkT znb7~EDE}Yhg$J1LxB7m`L4VMS(+(SXTQvh_mz!x&M3-6Z zFRB*a%_gVEqI^mL5|c%V=l_oi%|~h>gL0SB4QH5uonWd#={KPg6}6ES)zk0~#3^KJ zJq@{iqbHe3gyC))jeQ`W;(u3|q)JxuF24|GMsh%v5>>VY-bok%* z1Yl@(5G2UCK=fQck}pAyWV0n{`ML|rsl_N7vmW|frii__zB;ozrQ7{z)y}M^Sg@m_ z;+?{q3sUZs3WxnBbp~CyyL(TA?C*0KIeDPp7w0$!Ijd+M8#}r~vYW)NB*$mG*7-vH z@s^wK07OMxq>WveCEQFQ*p&2gjD1j%i+#G9z##Th`gew>H5=`RwyfPDg2G%f>x3@c z14Oy}pQK?(i06GWLWu%4cGjDoE-tTEI$`9^E?nLT663vu_>6K1e!N>A-^q&tfl$0& zy&>w~+yUelAa!c@xd8iyt^`B^$cj+}h}0i!40K2Ve1KFCDezBzZO8@=k&r)`TNTJ* zzF4Pim>SYL^=~7kW>EyiVHXNMT2)8l#v^IW!pLB_8ZvVfK&m8QHkjsZ)mvd?o$VYG zX#HiWwWlW>N{D85URJ-d)}_3h73|)X=E(6hFzi#TF{$4aSka4TeY>1a_(RIkFBL#O zE0_FoSQI)}+si51ufAqRHhDU=actTRQl@y#2h}xaDv-A&GP&0Qu9V4ED5aWnX z1E#mRT1QSvL!4~%Ozt84nP{&F>VIm6w2q!EPhh^BF-94$4JhCTcrdbDXA3Q&8mPTh zqdPv|X}??B?bIZPpl}z%(zr<8U-NoXjb*L#xyqHHfpIGAgN$5i(E9#rYPYq_tISC4 z2TDkd*uZ;CIhVI2o!||T)Kz`ER@%rTf-&SfmJFF>;d(RW(B6k!1<)uxHM_1G+9BWe zc)k`gBxYMcztqY5@jccaU)CqQ@^G5TBVx(nNf2}D@);3+{D)GzyT{>%dO6ibggS({N!!=P4=M8J}5R*&fgd(w36z0M0D$ z(SN5a`i%sZ9vmaEjiC4)DF}ix&`?mc-vYwK@+}8Gqzj6r6y)lT|Iqwlpj(LXqvh;- zb>jECiiOZ%&Q7gQg7(ix-?-RE*c(O6NG0F-+VCr;701@%L~fyfHnU<;Vk`m3A2{1MSmpii@G*k?KDq0GdZ)|hd`8OHep z8@6wv_|9NKNpe*sc#?zZ1S#}*qk{k<(I99u6(QT#>wf9w^u9~9_>;2d20T=^g-;b5 ze9x~fHZ-JL=J`hq-;W{2SgN)&m9RsVo=%?`JYp`pxEA_>`18Y>XA$rfWm^pQfG3MQ zxT^I1*({tZz2}+!5$AyNUE*jiYwu_S8v<#qZS4e!bGGBdY`3RkgLMf%Kz8s-;7PF+ z6w#-FwV#)PiKGR79miXmrDyv=ZTjc)j>N=&h4F+#G;unBZhhZz?a*;8@bi5`fV4)O zuU5pCs;tvRzbV@P5%W5xLI4I+w*^KExeVlzP4kNRGp-wi3g$lf-I|(o`JQ|u^XfkP zcik+g-5~2lG*oHfjLCpfNalFwz=4ZY>$Rc-QGpws&tCfFZUuJDL)3et%ap*$Q=-v0 zgLfsn-&%#+wnox~@)6ppx30sK(UJg1dCAvQF&}DkoPI+uX_wH))iaYvWtl}BtVKpU&MN= z0GdENbhdLgIwL-#_phGK;mZRlk4zq8*)akvV5zRX@jFUmvcr#3p99P@4z@m|bz-)^ zbZl8Wt?hR*z(sEZl;2PaILIG#835i@YoZQ@EwrD9IOBl7BpJX(ilLgcd)KCZAzo^b z6Z{|~=H;$D2dD53tejr_jx7^y-zT{SNZpNjn4+wJQX~K#LcrlKOv=D5xk%QXD{tg; z+xh`PvMV*HC*rF?xyjK5@KsMl5*w`r@wL#r13uFpso~#^oYIFc^&gGNS825eqFttU2_sG%_ z;X8VXD#Ol4X&$2B_Z$*&-)ZIUXf9I%mOOXJ3O%GbGpJfl+9(jY^fF_(b!Gt{{HAA3 zusUOCPDHYT@&*H~7a050c7r-_CaFACp$BXx)5==@fC11Gn|n~~+u@6N-}lvdyl3&6 z<#c_zm0Xp1F!8o2OBbFfgzzC4vno}9XEf40dGaVo;jiwiazo8hZ~iPVD(re=5k;H| zotm286$6nnTeIw>1FY$Ri|t{Lp?o(Fg3g_>|y~Z+16tvyLc@r?t9g7 zBuXyVuu9bC#q`?@OFIhgS)6v^XP@H0ukl2X!RPMsg%`YHMGad z4{VsgxaprFss3X%HbZablb6IdaNdbISVWp7yQXPPn=s7?J9qLEH{4>XAv8}%h&TDg zs()1sh}4at3nL3^%q!?P9BbW80e*ZwU63}CV7pt}gVu;~V6c$9p+*wfhw!zeE-z|V z=k{Ksec2)$Hu&?pRh;*TPk0T$Fc~^oAoBT4q?-Q}Y&3DluXeoMQ0LesTk}pVlf5(I z$dl8;zA0&=L&z*F*H>W7IeiPhTo@P0VTB~vyC2Bm7lCN}t7@NNlKFSHGKkh?z_qij zoYju!#D4b28cdslLdIM5Cmqe&!v^IcRr=qq^?l+P^n@6}fh@)IS81hx)SPAY7osk0)^ulqC1F*{hBNQl+Y}b>XjVXnS_Cc!L zIZ@Jq#mp^E&fKT~t4DM_^S17R@YJ@`(7;zv1mz_Y=~q*Gdg#*yXGxotY=#F|lvhPM zjlE)VHS=8=)njE^c7M|ZiBqARx>9Ib!y91$70iC8jPi$c+ysP}5Q3s`ti&1sx>~oG zI^>^1onS%G`mtq&)cZ15dZ{X^#MOfatyH0I=l%Q)n z7*@kZtC_3?=J_}?_G@?F?UK<0_AhYFclyrS-PkfYhAeVHcF z16x+quy10*2V$A%p_|@C(vlf}j3uY83h(#TSr$(;^8(I={_=YQQWmA9-IlwJv>tQm z=vN-I{TO7X`;qBxwb5w$91YLV?ZD5}pddq(7IdMCH zi>`qAn|#FITi!L5;K!(tYm9r416}Wof}P8~?R9I9Gp(?VA;uQg19MO47*gS7fH*&jBO!+ zA*<^BMccHjJIvGHguBb4a`X z3aZw#!c&Xr8&szD1+gu&;vYfoWo>0Pxfr2%m34tC33fmRbzWF9I_Pqb9nNK@N##9_ z7K)v)des!^owH`MoXY_O?|;^9;comiPx0e78xhnnVvTYt+t+cU1rn_>gaFJsL-iPn)?<9P9cF#4)7q&v+d&6|3G@s-AcJy+m zE&u*GUaMK|x|4GmT(CgBICk`2BP@3rqtjKIRD#uBy}y*d;<>`?W&mGsG;i*_}V&^tlP`%;=g39@jxP z+3lrtg*!i6N;irOpUfKcd;iDl5a`<#kr8RwFm9=^m+ouwwjcXmTB}w5V#9IF^&Bl$ zr1$Ly#cQ<3u86>am9}pk&i%nxu(W&s@>qEDtn_xVtH-_EiQ}iAK4Ssfsdn&L9t=)d z`XOQN7*J)g$Jrtq0=-yeLnHg*23LxYA7$cxz^Yc)I6E-!;{LQwu_wfGw4&MYy7{n< z@{g0Hf)N5gAJKQ1Z&HGPn9x9B7U(m(9K&=+LHAc_D{YdMBZs~x)u1Y8|Oq!`C4(3_9<&$ddi6>R$Nsz z*ti?=jA-Sr_97V}feo+}Lq3-cfpgWR;PLI8s{ve9@?e;2o}0MpquOucipz^DrT}QH z*(<{nLb4h9799hx4&%I8KPj}xcQ}llgcaG1!nRb(PP?m)=CzA4v%6>oOe96H9 zv4mUhw`>V$29k?)$Co>qIqq(~3w4jJ;Hv5(RxjB-j_iEhlF;&|DDC|I8IcT>Vn;RY zhtw5mT0ygXAu=M%{^;GqYuYIMu4H;Mj--5CL}|zMEhOum_o51Y7i|D>$XmUFoe;@1 z%GsTUsKgF4w%-Cr3lg#~h)8;Lk%WQTLBS8r*sE{YBUDw4HU#o}E)8pVIEfWv&14?U z-+Za${OFm=>IA358en)nB5Iaqxw&Xi*ty@uDOX8o2c0tq0^sX>ZXD+Hn|;KY!Omm1 z^%wgf&Zy9Azd?vmU`~zuOOA0{TZ*mAC!_>|avcN83F#c+sFn_6tGo!v?95IUR2bL$ zlO(OlhszqAgy)mNt8PRulC#6u^SL#z-O&@{=_!AzBZ>T4ROorj%fx$A;u8u>saum0ha7p zeHRX-z)PW*@v9bruyAtVI@)PhaEs5kp`xyxTQ`U9$Whwz#z$=U$V|&0w@EfCUS!Ob zACSTE{VeC-0V~ZCpkKq~P4CLgdOeBy>vB+0ZxIt_Cp4aa%vI#LS^K}ui07WNo}5r0 zagMHmq-jqTf-OD<kAvu_ob1mUP%1jxeKqB!1&-)_hP{p74hHE%WM!atyx68j5b zSqwh8aKo|NIOL<2_eiX+iOsRP`{MUt{0iQetB*SL!F_8)_;0f$iJ4(o__4KWuvy_! z8TZ{dTb*rL6VmuN-yl2Z>0glL84u^jAH^DQl}VRI=x0CnuF*|;|My-5aPI;>(mo+m z`nyEOe&k$RG11$vEdDPG7^raBCw|#C*4#pIUoZJNx?4|ZC{)l>+jaSiiJ`GBKf}l) zUk1>%A61hqy!KvfRsM^|u6vwbH5WpfH(I5AdpBAg%rar%zW}nccGxfgRV4&v`tEoGyBq!uz^f zVqWEtxn%j&+Q2Fi$rL)H`M_HExP+?mFyN^){c{JXs{IM}f}p>7lfD zLZ;s)%6a(Ow@`(jP}k~pn@!dv6JhJkZf5UoumHv`g-tcCs)w* z#0sc%t9@Li{p}f*$vg$UiQ*RGZUr=ykDIaxRDU_(QfcURuYrpX*7IQcS$(Buw%VW7 zxaffDgn{-=K@iEh)LlPc3MPzc+qM^>RXr6Y8ASnP&dr6fqmwYILTpmh$E%{Iz%Qz( NZmR35l_G4O{0}dcmS_L~ literal 0 HcmV?d00001 diff --git a/bitget-node-sdk-api/docs/assets/images/icons@2x.png b/bitget-node-sdk-api/docs/assets/images/icons@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..5a209e2f6d7f915cc9cb6fe7a4264c8be4db87b0 GIT binary patch literal 28144 zcmeFZcUTka`>%_-5TzIqq$xo`r3nZ`iiBRG(z{ZnN$)K|ii-3S5u{fmRRNLEoAh2n z@4X|01dtAA(50@mzH5K?{+)CF+}EWTz2eMdW-{;n-p}WG1C$hCWW;pD1Ox#ad~k9g4`y4!oVfq@3c(iW~uhy*`T7_0aH7`>`EnYuXVq#+YC==3#rnNM4TqqzM zpi2Elr!3hl!ZdK#y0bV+yVc8rwFEtAX3=QlvJ&e-EsBp)Q`0yKXbNuf-yYw7kh0CD z|Flk1UuHgvoR+*QR0ee&IDUfUzE7*`A=P$6nC;BPI@VJs|F#`Xc>X!`<6%M7XXNok zw^unt1h0m>-&2{GiIGsByulr92XZRrazZs&&M3jJintF7A}cE^uW4zt_r81yHt1I! z6-_gmO@78G3$})kfyhR0^qk?zev_%4R$qSjQI3MAg0)9EM#TOAD=_tf(*)S$7yiiR z&5v>wk3Bn**iD9S_I#2%^vi(^O+gpv2i^A);6^AcH%VC>0nH8|O!jN*L<#RtT z@aF9HMNu*d(BdiZq(LBO%(qsjSot+ZXQd{zLYh#CvOrK(?#u+|XYRylqcXOLk=m!) zBp`~~1dg7kF(Q#m)I8ZHMOD5%m&U)5jGOW@7+sm1N+O~^j*zRG;e4x@OteV=T4yo9 zSG`^0j^S)ZYp2DT>}AR|n$S)4FPI#8#(R~;Y**AZ9`&yqT;p`rks7Nhz;)dn-TgXU zw!^Bo@W6|jfp@}ijsSEFo#x3LnG;`o_yXK@2KuG8cTv&K@=dU?_PK*6=YU9!Ix8l;<_!y*Qc2phVpLM}&t|CuHBv&{M$K?VXtTabi(7kUMwV zl!>5cDNNqK6`Br*B~EcVh#5Z!FgiJZBN5nzpC7?UdAc+&AT0ivd;DA2$@YXMPK6=< z+#U~?*!R0i`3uu|#zDrRRN&j-j>ZOu#h-n#7WO^)@0> zCT6a$LGWwFLcPfN=(3#6`*UIS%uIT=LIXV-RbGE&!!+8)q~dkx`l{aKCe1`{J<5&< zlhRo;JX-UC>5)X;mwR+W96`@&ucHp$jIb~B_w_=mH>In?BLume!Wta=`ca+&7~pek zBVD?f5{nelCaje~EtZn+g3%5GJF}R_b`q}IH$Iom2IRD$^h*R)Cid8Q5~4Dzm!P&Q z<`iI)4wA#l@TwjPL)*9k5Vc!!;`9;bf?HRMm86wi9LI8A%*NGep3g11H{aP)>%l2Q zRMMQU!*0J$hJI5Qs3b=6?}qR7O;BU%Yzufc*ZKBV`}ro7zm=C?OY6Vlabc^r6r7P> z?1c^jD{e4n*Ou441V=Pd1eE8utX@)G5gq72HQAXLZ4l2wKd@yIYC+s) z-mu`E`kj=B!)a^B;pecv4W5oh>_tpj>^NU8L*eH4EhcOxQ|);$x(z(Yb5^tudSptV z%8z{(h@_t`chWkvFX=r!p~Vjhf1AdM>uGK05$1fyLb5D7m0!MUKW=JTZv)bXz9~*F z$yP@U3UE0=$;yjWr8b7C(1^oNDMZVxYYeMtL}ZnvQDkm>S0)=r_ugabEZ}AJ<<_Fu z{I^KKIz+V8K|pK811W5r##z8^S*2fr9Ln zlRG?Zzz8;xu9VSE8s+=(!^TGi1P2hC7%7MUqF=cZqFBtJNW9BROV ziv0cjsUmVvsU^X!`1UivK|dy+fSG$3YH8W0`q${`)taBT9jV{Hfh|&RIaJVvqRIFh zC*Rmvl&3*;XcMiJZ-+Mvfe0xN4N?AvJeABnNdgs(BYb!fK5<1)5UvM!Tz4_aojmUX z#Ymoh)m%fN(>6|#*RP~Lxt1?5);w}yT_lftje3sidO&MxNgcMg9@S+>M%s~y)0i`8 zT_+7LrZ~d<7V^K^C^~ast~@nM04^c5dw*&660^p%^R>n4xzd&jo)Y@ z1r=F09>jFOr%wsj^a3;>N!{rvf(qpkAdWM*5IYCsuwNwoJh7;9I$#`T6-NUIEKsiS;OylQ(XY zQtCiR1dyEGJV=~|zaFOEveB&szAVx*wsyuY?hiBGWR{h0!D zv;G`;F9cnib*YxugasrI^%uy@i)>BvC4V8@! zwy5#iHC#Qar(i0EPA3CuMQbaKy4m$CLjLSNwJs!13b%h{&x7479bv{SjC&3?SO&)3 z6q4nRRP(zOfw-mQrmx@Z64~o}GNXa9YCE$vD-(CLseaF%6HH+WZz4 zbRiJ~zAtA6*i9;z!+zZ?9~V0Lr66|Ae;}U1e#6D^hMhB6XJNHZi{t>DgU&jb=#rPK z@s04Hr_SOr%UCRY_SdDuSw^D*Rzre~4PCqgc)DBYam}@G^TxsTqX%w-yWtYU-Q2IX-a2Z4Kz_-yIe`m;x2bY1F?XZoIH=`uW{$R)ICXxqU$- zG#M6s!fDZwUOA_cs|PXe1T@XN3^UdYyR*t}943A1dTvXp!=%8c%)(s)5y@OJ@@%1a ztlq}Uvhfo3^ZO>ZO|NKfu37JMRRmXfJ_*VOBVnxFFmbq!zc%A+R+w|={11?sJpmca zCeCi;;-*yO)ywzKxa#q?E%@U-+LGH4{=2|reRd-Kz*Ps1$u6sPFO>{K9^k2Y!@=h7rZt472^BCU& z|0MZmbh1HlC3#bcjoX#m73R?H>6oW=45{gu0$S>j`v?``ch#0kGur}QbO_gO3XrB- zS4pz-Yrnqqt-k_LE-&~ox9gd#^n&HE%Z~grM;N@Das8-#U304PA$v*rj36j~qQzYN zsX>8?%q9DhpxrWR@M>30YI^WUDh4bcn+*bYn;~zt_g`$3{#G+=lBmWE;j}5e&vlDa zjsdE(Xg^o(Z|3$Tx>~-q5NrZ}^$y0eMd|h`7Y4OWkgF0(Cu&CfJV03AKfzSGBhMU4bqd4kc`qE!CH4Q^FdOCtUHaZW3R&>S}$! zhk=OYL~3fch$-?wa0)OEkynDzJR=vc^vuUQ$hF(>E(q3{7{4uhC^f@bzHUZT>k%%R zsekA}E`OlGE(x+lP1smp0;Ba7{C$F=@Pp~i$AsJkc)x+3Vf9xQB=aSN>D!T;Y5iU~39#6yoQuj6Bj%kdYC z`72YjnSoF_A)d#@S`|;~F|6TOn%b{4?MWJC4uG&NK=D zqd0rU$A@62MtWD$=Gg>TgO6)b6Vf41#Au&Zq<@p1RG!t}NG8kv#>%{bHuCdAeIao2 zkWX{dyO`XCdv`FlK?jS{48~Uaz;oD6PtoFF0u6HBTHCHh<)5wP<r?9UIw%{psu)`l~*PK0?1^oH}d{D_wF{En-ejdBHTK|(*2$K?xVkG zwYXl8^HAjVOqKQj0f6s~O`)Slp+alXd8@#4Iw?pHys|MW1|l%ipCPeN)|fLB$Dc(9s}LNw@?8G{ zU>U(Vid5}ltIy~zNv>o09)rC()g8O`<5~!qF*Z_?L;+2Sy!WSv=}|67mnOPb!A*2; z^f>okkk+f3+9?Tg&6NBMX%;BtB3Ds#(PZ6E4`X0e`~amc=9QGw3J-$!nw6)l1A8;m zFdl>D?g@J3P-41+3N`R32d*Hq0GWj!{3n&rVA)dpcB+|5`XZFFZI1bKA7d;-x=0wt zy;$6nvCJ$_&JDjWa%`LQYq&(6LqBP7G_+`+4$|qk7IlS4wK{qnP-3!yFO%_fw(8(Q(#|htD?ECEYPeT&anf%0GjGQC<0)vR3x=4pq`@gX z{0?*O(e3p_zu@N9G2O%!F8j&|FRhF(c@BWMxZTpdW0xv^K!`2L39%+Hs0#R>a@n-J#u*kF6~?DIhPrUi@$pR0tS?5wF%PE z(-eYCc#{7tVRzd>j~xO&LBPK62xxwmxrdd{N6!G1hfD0H?fV)_B^PBIm|@~CZXnpdaM=<+?&D8Md^RL00JfP zK|cm@`4bB6muuN!Zck2>k+wh^8kM73#1(%6#^TG;42H{?eTC(h^zB32g{Skc%t3Dn zcHX3$TQhR}n9xXCd$?igvlBH@ZU~p4OO*Gf=$@=w?9vYs)!RYa9V@}xVt8Sr4y_!< zGjn5?gnlSKhqS-YW^o#@NScez6I3x{ zv>meTLLYSK!pa+|kqQI8rWST7_)jL~mqQ}Ou*!V2U-g|ZR+pB%Z@w|HnZrV~uY*w?_gMhSp+4fY?hMmdNXYD(iruAlj0&qga8nQ1=c#y* zgYc@oWp>=|LQ+s})zQ5kv*UF?QMJ2|FN1CzjX$x&TwGJ!4VjOiZxVDVz#r28{^WRn z{o1SYRs*^Nt9(ZX`wad=44v--X~h#aROW$yKE=n-VWRfhI&wn|_X6(` z_WPK(bt4Q8gxJ=b%BW_nNj&h;H;2z`{vi`~)tCBk(zGYBp?f;(Ua+^@+rKm53ld9S zPP#A^Wv7>F7c36IAp7(%S716|mr9fnL?n&Q*?OcmX7>@shP*98yVXmJ{1{z!s;@_D zt0}M~j-0t@?)wY>a9PxzCVtBiTKiS1<;-&hv5CHiv=8d$IOnl?aI_>zR3eW}l*}`T zd7%jWK1w(iqAjU37u~dz-4@O^=PWhD7_yL+z1;-hnPx|je;QFR?I_x6McEg|;`Zuf z_}_7>V@hb=%%^H&>8W{N&Ud5bKD%p(B6#&l@nN^wOdQizb`@g}g1c|qGqGr^c>a1w z|5;G!BbS8(8#mlqM+re6&;L0Ba$evPxRGW!koG@-z@*c+8&^U^7Q+0jgUtgB$)Bh)OGD5oa(ju zL&w{}@q-4qVXtvRtXul%gWH0DxXe$&?MN>z2jh1!ElU%a2;fz@xaTyfs`lnr<` zLv5teGAw`KJIh))Wg8JzoRNMyP>X1rhr)=#Y8O6Nf7>}xLS8!@+&6k0h#H>Nn{`&~ z<h^0MI*wtWWT)UGMw#$-to|sCF?yXL$;_=8T>RsAI7ks*W{$R-UI&M5a3{Gda?9J z3PeWSws3vp1$(`F*+<1X7B6hG<6u)lqr|?N&1Up;Si*MeoRFeRNGZa1=`C?4ZaPvJ zuHL9EQ^d$jd1pu9n6iBgWPMtJyxmfJGQf{a*eag-%E@KZ$^*2_&F#h|LL)2_l*QS9(#5T>)&wtE8a=@FF+vG8N zk>*kU^97;}tRP6EGf5HKhlr6@^Nb7N1`_>QnnYF9-8tncspx59kcfE)TtFun#cCjn zEU2;}6Xu~xx+Bv+O;tKLcuo?~kQbcPghcWdz4-^H!wQOhQukRZRMRk>kfMa~V;A;p zSqpR3D87(4X}j4Awfr<~7h4dgK)pzpZf{bn z^yt`yH4+85n%*$3rL0fWi>l^4|J{Qess(a2+0W-O>gl%xIaVi`l9N3Nq}{$Q?o$#6 zP(6};On20~O*x}!V+=9YO)zz4yeTv@_04tEzA@Muc((5aTR+rHpa6@RymHX{a%Ss{ z+ZVey@TSCpCZq6G3WNWPfd3Z(|HlaUnQ37#)!hnd5VH}%lQbK+^qVrFox87bV{eTd zMjY@0wT+?ndYzV$vST&K{gWpow&Zbq;%=a$(B%@MLh@v!P|L4U zgM9JBN_Gb)g+}3@K$8-*b+GGuC&@6v)Fomd?4){kVQ)620*%U<8saNfLM+ndN~1z> zV$;~rU}Fc&M@|;i!@q(ZqbHdoB(EYYOs>u5jd5A-M`}}pr;g+_B5o2kj-|Pa zF8qc!e5d+kUV>;ih=57(*r24g=6@)>+c%LfGLw_-Bbm7r_`az+tag}5rqG&jrg(-W~CJFkaxZTf@_Ofx@ zzxqF#<4|HKKBpc&B9R1r8t{!k_=WNfzbR?aogs939=bT|!c4N>91ai-wsc4|JdG9y zGpB1A4i1ueuSS{R3h}0^YLpx`pB;Ok2-R5 zZzHya))4+|xc0QJ*&1>3;@0$RcgE3M_rt55cZ9<51j!pV&i`8js3v%e$CG{I{X+yj zruhC$iN%UA-Y%u_?FQq!rBg;{`8h`ZCg^bG&OC=733*%4cUW`DPGqp|OgNy?)-Lky zuY7>yw$@M~Jl&X?9MI2RqOdsWZwzFd6{P)UF5-=GVh z;$}}BvAUMs#V{T@TweGxI7dhuIzFqotm&oQreos6)^Nt1G4l8ce%&u1F<%WFM9t;W zBAEtq#1FS}e7Gq{9nzJ-0@1fhx^+w)&5)h+@I@?kv+h4xs>`xqTMB()kR)QH0W6ODL=b|ea)CmcTzPItT=KH66{L4@p}bW9=F z=+(cM#QUgiq$M^X08=_kUPU7sf!8j#4rN7NO0#TX0-;8=ySO&T7v$C}*`++cHZu0; zRv+{Je*j9;z>+TGv1i76Qc^1lu^>XXp&w}t;MzI_nTpY_m?O?J|UF!?x>j)zIZZ*}uTg|S?56^~@P4iEAwq#7&c^D#OmVAeT^&ib{UcAER@k$$X; zQdR$NNz=G^;6|aY!VuP>0e2>_I^ymyjmC*~Oj(aU>lb7XxoNc&mR~HbdffiYw#m3DLJ)nb-vczmSGI=PaP=yOJ4mrW01pSsP02=(ym z!R+#8VFsL>Puje-hBZZ0gY`?oFt44R6Z--pJ~w8q7te$W<+z`WB)mKtrOR>%f~{*2 z8>hh;3|%NPQq8-xDbWw`*n5*Ni7GB0zr7D?q`b1s^a4*X%Jk>EYA*r$va{t*S$Wk8 zL^lqaL9$a?PVadKA#e`-ocbsFKC1awpXsVmMxs^Fnz9Tb*6tD1sa`;k~@OqRo@ub(|hVwu)j^O#EQmIetE!ma(-|!O<`ZRqJb<$^dia$W5ARK;F@n)=G zXY|L|OhQ88G?ay6&;=(qqYF;O$NJ7x1?PPHYJC`UButfql;CF9^Z@N$9e`rgvKY7- zzkY{r^gSjplQ4S;+v7}YOOB)q;im)xJ8Tb}^>Fe{+E{o<&QW1zc~g`vO5=ii`UUW? zZp)~%d!YRLs1P5Gsp1zs3gc8)u&mU&?P*XcG+Tr-__K7L+$}7WQfV_Ngi(tq_9feK zK+m&sYg9Dt?NYYIX6$uOy3OW4i<~fWv+Cf(7LSO2Cy{IK;1#Y8C_5@I{l+TY*=I|v zB849$N`$Qn3)Wezrk#N{(Sj^ujO*o{#sa4oD_O8zmLim4B{5HQWLd}YpB(b z4G-q~15C`KQcuBSO|^7AHPTM2RneHT?`cv7UxhiJ{_{;Q;kGe05x5xg&K3|_>$pD_a&U>aXaI13$(JL50d8Z5nu7>Swu zA*$V;mYnn2)kI5c`a29y*`L60#8U8YzlVb^NVbZO*AIlUcC6{g-vYStoB)oYa(>HrRpU$_+Fu$?E^-+?mgq9i+l>lZ?b zT6(Rs*ytr2RlqzPAC<(}aFaO~EuqFiP9Nk%5YV?9#t-?A=4jtCuRhpfZRc5{uXo+q z=LI8vUYPpMT}NAmAiT1T|Lra-gEjft1a;1k`{Oe~KvJy%Wz~FR@vzsl)Hj`G)zsap zD0(^YuCzHguv&0Ryn%gl!eek+ywQej&`(Qef(ql7EcAYQoG}tAUY=Ns0uhUO05V)*ND z@*NLrHqhR{%JlU-nMJbBbn#Q$0gDOt;1glG|M6dhX@zoq#PRvcMk<`}n-dBYPlDbf zY2&o+<&J4^>4Q557tWSxa)1M;mS}X$!JFe6+N_0AI?erp9CdjDGuyvnelpc04y2u#n8-PU5wo6P&9?ZpnONA+t}Ucy z&nD(V>H%M8avRC7jdV$uW8n|L5W6kw7|(e8$j>_ZLqe`6y!1fWM}{tJ3t7HmzB894QuSOpNj=&WDT3e5Or0)3wFwasb4%9_M@6)K z&l3J-@<{!8U7lZ%P!XZsO|ejU04NSjBEBESP4Ff6+T}!&pxTCxBG{W z{I$5gyC-P##k--2l=5r77AsRg@o4?Q7zqe%7Y9-kbSnK|KDcKK;nZqb@o$i(QzUtW z4FlkIku@T67|OO;)}XWaHSwT$i->~}#O|Bld^q?M%%`d*s2x9BKP zZo$OD?q27J1NAg#Nd(Fn?4I|PbI>nwdR&!F6YOHC^L#n$QG{zQGnjL8QL{~TyS%sy zMT%4c%BbJPXL6?WNg|O1-c<>qUm^=RW`+5)eH2jAI{T^M6-_natW57V(D?*MKT4n;I#vjkQ1Y~X{0hj4% zF}qYRzy8zJX(%d$`X$XgPvDafqM65Qw_;|~(JO*m8-*q1ir0~W4cd`@#KX3_GEp5t z5?rPAGz%$L?%(5dRFgw~R^|tdxXDGF>^=J2drvtC0;nBNt)$2d+>6A}c}i_~ef`fu zywIKq{Tp+H@09h2i{+Dn7?p7~8D%gZ+<(bq<1f|tL;Qy~w3}O7WX))3Ej+(psj!1- zrlt&tNKU|u?sySN{!ByuYY@P5bL5@7&Uld^k~iLzJaP7WDAI|JZrsHHT>hmAC?xw& zC!c!IBNTzL7K;wAXR3vVTe1i(oYdqoy3H0Zw{@>?*4UcFaMCNHwib2efs0(Ync=2q zwM72#(Cn=nv2ablw^j({)fdng^E-(uP|5UD8@CzqpKlZ^=HH}?5{kmM7vLAoAatc; zwH5KZJkkdhh8C1p5+HZgC}LE+Xu}KIn7|*#?;j-8^-VaZ5jOW{JA#*;g5p`(xTiDd zKkPnW*IU@QEsE%-JWbaZU2+aF3<-bfklBU}TCC{E-~c1suP&!}=v`e&X_xF{wro+L zcgxt?1af+ArOGprbI<(>!E99@GkN&7?#q=uz{(bMN@|0qqxcTr07b2;i>k6W8Za(r zOGe?77{mF3SVV_<+hIDRNdbE)(lSDJU|Bf|swOh*8)pQ6AizER8M>1xnN1+Qcqhg$ z&ak{6PD5v75^-mAcvoOH6*!9Hkzpt)*#Ip_vNoGk)^|nj*9+w7+7R(=j4q>aw<4Wc z=nBx)kd4$ER29&>bnknJ`n4)pOczJMPJ! z0)p$AgO&S=`T1(PYN?P}4cSJ%&R?iNexQp^N$*`-AbTP7WfZIW#P4d}}S2|=#O7ke0mzh*aEWQE)y!|#~iGCKXe zpzrFFL$pk!^d8pUI(IfGO<%TTQHsrDXLDNnMC6*d0wT9m7x6Ft7V=_OlTqkuj{x>p z;1kpB_NxE04RdYk)Y!laqUU=rfZJ$T5)`7`QV?5(Ltg_xlECcjtEa{J!@6Brx);>b zl?P)xrifEIfWi;~!Hgrq*7bz~i3BH#^2_mOIb$vnOz3yqef|S?NrX2~aMzcrlIGhJ zJ57YYnbrjk0gMXNJsZ;3!GV3+U0eN7l{dNPN>2^D{M%{F_n#@Jh)M2G9pb6tlT&F# zzc){OFWO&LCDH1cNMGR@X9VA+vt>EiQ|#sD{Y6sIh0eE(T5g#Bhn{L{CgdEL#dtrL zC>~e(BtwcN6QdM$0h>v5cu{@BvleO1d{z*-w8N(k$wHP$AXwvfT1)EL-?E&6nLdTq zFA@*HmwLR__b301zkRRgd(MeG6hCvppG6OwFv=2NKQVx_rQX$Z3q-DFDcOMHtbuC2 zb}=nSGqv$BlXjj(ahhid7ECVPglKaK;z#;LgZZ+OisWYuKBPX7xpErFk*@EYkKqg2 ze61oYkPXBN#&}jK`c6OUoF{pGlCOmyvi0VbqIH)+GaMDJ>Eg{$20?GwP~=nbph7n3wT-iS@IWTjG!q<-}5nJdNKFs75SDJ`2N60FM#00h+c!NU0ufy*_DlHj73t z5%X`Hqe$xxtHUL9%+{FK#XTYqf1a`&Lh=``4pOX3cy239FO^N zfStakz4XYa-?AppcGY?%Pj@WYmLvxBlKhq06UyFTy`Dj|YO2D`3uG#B$$f7PEjp~U zN;XAx*Xx;j?A}%@n)?=Uw67Bf^MPlLUonDdnT0whr^OXyCbtVRp^N&tL4I{~Dg4l+ zvxK9}?_3)Y$>n?i!054VsQ<#MMZ=Q@luen-sz=N_VC}l?`zNJtA`krH?K@>?REBq0S+(}^2UlFWDqHi30Pa~uu05d$T+-JrcJV1?aXOg(}Rs zl`@li5%>|PHxJjZT#h6)u5#ukqU%dvk;$HYi|x;L7naNA&)c1zj7(iIm+BYA&tK7r zwW0zwzaX`x0|CVQVi4}J(N#ScVIBUXBSyY%CN{!aH)SJ(GEwpFU}-yF{d#w05hL=m zqA}!Sf^U&%EPmu~34)ZMEMWZ|Z{ zf+Da%zhehlo-wY?=x^Nensm)O!dR`~B96^wloNE6>dRY#u#pQB(ftm&2{0{aPw);3 zLS~XJegtuFdsZ#-4}Yw<2z1ya*ZublDU*Ut>&i)(l$<$AW-E7gWuf>Kh>nR@=~Jgg zYVeI|2kH%1E@)ScwTRMO*HTWJ!AcdT*o-xoiH_PF%JHNE29RfRx{{W~Mn)HwZeR53 z{~74suQ)4?@;WN79bIYU3yi%hNhnxTu7in4w>kOLA9 z^_cPfyxl`BO^Jaqzdl`|Ez%y3HTE#{dbqX?j$5k&zQxN?z*CZw+vAZV-WEk=-9oI^ zi>;EFv9pBIbUMsM{{@)yaWwa#nUxs`jEZa5y%dJ~ZYpxpbwF;r5KM9NBrtI6bS49Z z{7GcMaXGAxDfXDD;60Li!JF~fHPwUU&ynr@B*@3ChF52>+Zzj(2PL6C2Mor0xpcaX zJz8ihH2PY@>!))WZIW^vV%K*vW$Xw?vcF2|dP9n=qCP9;7B^IZhW=jxJ&T%Ztkc=ADNzA zsx*6uOG(O5$(&<*ti|J7dW)DtZjKZ4%;`A)POZf?A4Jh3X-N5M*8W<2T>+@m+RM zso4=f_o0cfhnM$+auk~mI=kVgHZ;l-+V`UB8DLApLi~fqxxCu82ZpTHwuvkJ zMaL0c$(fK#3^%@^>W3#TVHR`5ZG3y0Clb5K47#1K#yLmQyhW_55~ZZn&H*`)Kcz#xCRQCFdlucHx%dY1wZPf=tL$KK^-_TTkBlg%SX#-AMe8 zDRJaA`0SE_!0FPPn@x{0rimZQd9k+}88MLx`S?6fu6=l1Y@h3fs<=&*q;z=urTS=C zK%}u|(8k5e&Y-zSmoYb|zD$^cY}p6(t?!f9J6m?2>Tc-Xy34Rp*Ug6P;_=3oS~ z%u;Q7%I5MiGqZ{d!-pEl{0|+1NTm+haNN1M^6$Gh!|V@!B;}D{h3pn(C{xBk%}#IR zO1TK6*^j5|!U4^zB>Fw$Ab?>qDPT1M^Jx#~^C&2cPdIB_0;KSVNk9r$##HLTSD_Z& zz)jE%*Gj)7d9uVMl=+HdJ8%e}9%lwaY;_kEvV>UsLHx;mMC@f3lzq5Iv&y8{w)@Z#?E z$bXT?tyF)?<3bugVVY6(e@Vg`2i>|)$^m~$WioLwW}oXXZ}=w;=N0{LOx0{9*as^Bb{)>T@3m+vEip|GPIJDHTEO0j?I58}) z3~@%Q(7?0uCeHM#BsO=kytmWFVcmtD#HF#V$&{e5iF)nW6D|+WjJvd;&5ukcPLykI zL)z_SO#T-IEgtk{E$oT_$8EEJI%wS_Y2C(F)`01pzGC)%N-d}qrB@+6yelt`_?uuN zPMGYZCo678{Kdb+IPo{#IN(js1Ummj@!l19H8oPMb}r|M+d{D&z2T^r|!8rbRwlE=7j zz{QM`99y%o-F!wvWl#jR$l|ML^ohwPPlBQ~Vi{{yBOjvrhl~uf zK5Vk45;70o*YhtM&7#Sc2dfA3wZq@0ZZ6N~v6zg&MzJl<$ZNrwqf-$TiT@#W`2x6Mt;TiS4huyA5^}YIPTFF^l19VciDe9QgSuo770l zz$Fvs?0FY@_UtE2YE##{%dGmgZHHfzsU_`V*H`P4*F`ul(sYs9Jq*h6rbk1>eD34Z{2K;_cLbZ46halLc ze2%NUKU&GA!WwUqG&=coFm>87tCT*F4xGxo74O@5Y3xJVE!8F_1FP%~BdC2FS9Isf zXuW-CnGh!{^D*Drcrxc3Y`W9=5ZVYqn-rEs?8_&q}IoEx+VFS zRga(VCYV$<=Zq#wk?;b+las#o#HsNw*`FGFDeA^*xQuB(cE3~CcEUYt6MjgdL|p=P z2+pPgOZ0Zk#7FPiJV}Wb={;89-U46uTu_QI1&b)P=+se1|88_^!5Um>o)Nj!lfI}_ zA{$}3*734@W4yItj?m zLJCa$`Rn$L_lRPSglt!uro*Wg-e^WHi@NW8q5zxYdq%ULx=%RZ(Ry~zKFHmgD!x8n_+?xj`!7VyZLb@!Ht zcyvx*=Ox|L<#!iwxI;b}HqA-#(_&c7eI; zh0-~Nl>BWL;lGfbd$~ThM~0`;bnAxA&t^Bg46A9F67?ijVTmmSHXl37dKJH@X%pJ( zv;J34-$9e2BLwPjbgdS-#g6)O&a!wuZ-4?=C;(W1fb*oq3F7!&Q;TDT{dSIuAJ0r( zTYW}1z5Y^?(IYRkcvPK{&UNZ!DTD2NG^^l4v6pZ*x!@0~FW+zs*VWLZvD5?b&529v zzAIr#Blpmqud6Eze&qzM(zwET6WE`YFdmz$)SiInkY`uE9 z2W8d!Z|P-BLFnbp3rcnGlI9P_{}G(V#2CJpq^&-OF7u(-e@`ex!`4!J7AZxIWjne$ z*}p)Oo)D;<^YCfczySXZ)mxzJ%Trh$e@@Xs6YI$UjQXTpMM3=OD}yJh-k2t_G}69%^Fr!Z2HQA5*4M*x@spn| zrheG^IKj0ez3X@*QK}PLKen)$lLlOFZ8tSxuEOsfZ4ZBRv~f7a=7}eY0qYvDhVUkw zZOeCWJKZrO(yrm9v!+wYKhPp+8sVTN>nKBQt1)2z7ZTr41?oJxD3UIFa*^`;bD2FhRFQI1$)e-S7>YM&OE5M83i$Yg1gC4XbSB(3HY$XeKc0w~r|t-}85eyvq znGOcAFmP`I@uNFB6D-U3R7zi&HI?4$T$XBCYp7jyF2hIU++&75Z}~Yj0lG(o!Q{%x zle@H4z=iwQ^%fFV}$@P%l|Q*S||Fc=aU(OuYN7&dFa}V3Nc7J*3pGRNHysT zpl1qYqD}+z4udN>1yr0@uF3~3%~hGND|wBbU_IaPN$MmzOSBa(DV?!lmqJAFWhao7 z6XK-N{+v`HO%=al&V4z}>Sa|@+Qf8!nk9bZMS#vdzl+RDih{^-@~-07nqb7URdH*R+DD=7!&A9Oi{-a*?F%R^?_>z|&W zHQ+4C_b)3pp#^K(qJHO8s1UDOMw^aDYOOebgZD{HMbGVDVk$+=PF2;lVmdaX96DD( z2>^x9360&?xbJ=C?ww+GUzY7mi#yf$i@Zi^^Y}?DA8FLB1O|#d@$jX3gICv(QdzlV&8dxsHV(c+LsK>QTvzU6_ zYb0#5dCxZ%c~~}R7+|_=M1NiJ;GL(M6jlh!W$wT&BZz#^;TRxOvOoC5av{aK*jUdB zEJTT7g$OLq7j%VOxq7lBmjswrMs{Cq4i_QLuY?I-R*l_PX%)WEauEF6LE{{cM%g#Z zY=g9-pHTq4-?B_^ws)ot(CdUT(Q;?3ZgB%&0-LSJk}S~oODd0f;gmE$LNlWC)*SZw zTF2tWUDe>}3GAgFzfUW{@fr-5%+TXNF!#@u3xLK#M@{^pJ@RwHxR(mQv$rbM^u)yF zp7gc4+^-scO=w4GnLoUHm&|*G%B4)zdnT-@sLAXD{t?qVWoK?M#QmO7ZDZYumcROM zT0RXq?@|A$uOb2&0IX>Ab9ty?U)lM3)bo7LPM+d~0IDZ9U)9X4Pt|IhEccrc4$Yqg zxN&t9niz^0H@V{LX*57HW5=4LcVn`mZrtz!m-E4LWa#a&|ZE=ZeR z_be>uWC0uQotqmp(+ySAn|+s`Jh^?c#?)U-^^qVEROY9akEY4F$EfL{d=!)6%BG-- zzxb^*e?e$Rf1Wl1QT?k8F>OCoXwv?=Ung`f@oR`*z|{D)G%5h9(2EXaoVg^$f5Zm< zKZTunJXG!9$1R~Oja|ej${K1yXo$j8_FcA;rjQxV!J)?|Gj8yk6(bnRAXg-|KsQuFvOvU}1Q)$#BKFf7rFv3#c^C6nuM& zOO0Gft$Kq{^uZk+fBQMx4ywF#eZ10jN%@}^6Trc3hCtkr5v?qLPeTBZoa}i>5KfE4m^W45!H&tNIy2!R)_bi2pfs)oyorVbu+nl5 ziVqIJzcjU0;LWSXA>n4vmdvWwz`nJ(vB0=#2PO^BiHo&%ecgXrM@U_;#^7aMCflK* zu?J85J`Tl@CXG@Gz9}c1FQwCP4okOwbBpS37P8a>qfV`z9k+`X5YFPzTfu%UP!6y`Fvr_P9?4V5;X6Bf8{U9#rCkAZ zM&uVB!n66B@`9(+a&}!KKRfCf^oQNN+6$^tHoMIK!>*$7-0ZFr=x>*b-P5X-LgxBY zo2Ug*pNH%q>8qqJmtk=~7g&DYcueN3PcuE3&z~%j0gUYgSS9wn57tV0QdV~{+bxEnx{U^j4&k6Tg_t{mX$_Yq$xe=@q|jc4#`MB^ zJT!tidMB9LT+XqKk3JFN=!_dS0?dknKn##1>;EeT2o)}9LyEIBz=e4SFuw9d_vq)Y znKx|vFBXdWkaNz_)-AYMGNnQ9zLj_f%C}~7N!N>u)Lf+CfEIdIU7czh$QbcAide4T zZQJy*?<2fUv(SP%PV21I_X1kz7G8vO5oI)0xCIvcYt6{A`!}bwQlGSad^&0sE+dig ztCN-J!D2iYgG*FJ2{BPzy1^u&y=FXDd67a8y7BGP|L)Sh_Z*1ci7meUFD~utdnA|k z%FkshXa7&|yHfQ-cZaL9*88w++@nx&uAPsEVL*=wVw{~gi>(snR7!xUfN3m@nIRqe z$bxi@pG5F$L=in`nIEOo82`J5h_9j*7~_4)pr(1ea&G+SOCoJiMKDK#1^!`Tmo zu(KAj$s(@Ez}~eSFWD$y#q zslU<&-b60sArh0MhfMd8Ut(rM_CQZ8FfKQivy3;fi)0|#R9eO4o~zDAw8`&mCJBRl zL+V<9>B#dX+=Ch6E=t$PUla#aJlOiq<<`$o@7t~|m@_8YX~f5JPr8|q*x0k}KKaw) zlj4s{p!Bb0(O2I@&cJP`BT4v(=^IBCC}>G;6Pl`dvTGO(u1uHZFzBch#Oi5#?{oUA zMDhff&?FU9`${$qfOt^aXNUDLXp}!L8o++(*YdqI@rZ`e_9q$WGiZtk%BdwBGNUQLOvKhbHU?bZL0ypyF6t66gl zm;}?$LvW7=cpykxJulrHg1_Tybvk9?!FUgQFW7)ZjiG5RKh5P)A-N+a_IR~*prd%Jub(3dwV#iE zEZRnitmR!zrZDwcFZbI$fi zpQ#2NyF^|ZZxhg}_2{p|uY5RbnD8K6ZJ*(Qw2)?}wekp&yaRA|Qo#DxsS?SeI+jqSMG)is9$_pX3e;QRCk`w z6Eyf}-+>ptnm-5fB$ja02cI*FiDNlWz6!au(Hs}CGqc@Mmic~|=QFFJrG1@1hjtXy z4~e%c+1cVu*QrSvt}^-J7&3CYOFA(;0v#pDtP1!!v4p;BvW*`n{US>q(dX{NUrV`ti>sUd7L3MP0-oP`aRTgYw5brGKhov{JH8&ZnR)OJ2X6Hj z*N%E-g5%w9Tu(o3p@Ox209&F)dqM|)8ypzq@>_T7)U{4lXM#FbS?FxaC!G^bZMM9+ z4tmuQbQP|}fWbv^^L6{ks3C9Ej)`TTPs7Rx%f;*+b8A$!FHS$N0rHb7YlE-;Os=Pr zQ{twGcgc=sfxFbo@AZ<0v(i)mIIN>SayZmhz4f%!>5C|cW!)L%h17s1v)z*m@qbN( zLIG`HP@`-xc!<{bo61SZlQWVZ1OuYl!Sb-gF-ru;V-o?-65R4%f%6Z;4dlCb<*tm4 zT`7ejX`!VvI;>13$7YHQz%+8p7l(Tpo$_JB4f^W={o?Bv;zK3iLCjqj{gvE5lo;fd zHH{q|VzJ(ecLFb~dW44K((lhkhDQ$2inQ@ZcRq7Y>-^*1b>gOVEt)4}ovdHpbt^K@ z|3sf`Dm|bJwcZkK{pP34+PPS-&Y(HzYpQh%%*U0(ohJ^qYv&SPhZse79v3M#nTUb? zTTjUjU*9&)0S1{kUx6pKuPYG_c~z}evFZy5xUz{>?k8wd2OGRLnS6!W@2E;KWyJGkUt&UFTh*2NVjj=kW%jj~V001z!4 z=ACav4hf=_2vC25z)FK{a-HCIF%1b@(>NH^N7$**yWUBYO61yA32R`g-kGrQqT2&s zZ1aW~`>zx~03Uhl@0bL?Vul+mpc)cp64nzfU1rpi*eG&?8WU7Xl4Pf1!!_iKpK_${ zC;xLY0h})InNl8x8hkL6Jpz7odsa%}^mCw|17HWPhf{dC+kQ}x((i~n?<}jL=p9a@ z<9^KPtHyuVYuBL`*B7H;P2iVO8ICwx_P&$c40y;=GC7R)u@F`J-|`;#me&bZ9#xFU zJg^Th!=rFfc{Bw+ujIxWBM>U0T(6i0?6X&W^QWn?a#<*foA?<)RQJ+am_wkw5~pN- z7sfTpB>PChT4dEn1d;2VMl0o-hg^bZeAQZSZ%fT*?fK_jkzO;p1^Kn_+yjstFP#ra zNvx;BrMYSMj?`B;0sS zFuJaW4L~Ou?IWxSIxyrDP0$laaSx}5DtUOzHO?=y^m2JYfcOG)&~ws}entE=bCT7$ z=#rYt?lU1eR^i}WaqU8Z0rKPflqR^`l!q|k(Zo+khOK+ubx;hXEPh&3dhXVaKhK_5 zEWuW;iN*%L+&b5&xM}Dl-pY8w8~S%KsSYAxoEeE0RatjS6)vupzw^Mi4zR4J9^a9vEO zGsL1|=&T;B!-Hc|XANCOT4+&_Am}oQeN;)!5I#Ng%dGfD89Z`xzBJfQ5Uq?0g3AeUS9@IhE|>w~}OV)8>HvkoV#COPN{LT#vk8 zt2Z)j@{a(~lW*kv*4-rOL6sffa^(OAYdJ-0AsgF9gwSQe2wH&X@4yh*TSHt#%TNt1(?*1p$1*$&WoXj%(3D- zcQ5QJ#PkYUg9UjMs?vZCI$TX&{X=JmqECeM2>uCx|CpLx$`!gYuDe(vVX}YRkFG^k zURe>tw{_d=^mg9nvS?KtpkI=2?(iG$tPXR5QosdvzxGoCt z$$I=Gfzpq+2F3?10L^~%hk|tHo!byiu28i+0-PzrVDKCekd-_eW}(>Fp}Ancc191J z%LV{ozGVXd7!U|yD)X?cRj`u12B#u~Q22#>5x;tCwV54R+A8Kzk+(poe&f<5a*v*K zT2oU&Cy_LPGej(sedjw!v3{YylrY}sxYF)>cfp<-T!xEu)CFu&YJe?D)I%N!%*L!8 zEi#ZVi4r-oMksMF`zOoUUiq(+KVL}Vgk4zs|M2{i%LBzJSShuf5=6EJK+gfbJ})q= zG0GhyJ>s|)s`}>jgj5{06DiB8;CT5#UeEFuCDRNU65yFEh+SOUYPR?{idoz^hcctc z&442k_wYk5d(L7ZTKmy)4^n0o##7c6!_jl_B86&KbNSP0;&tq_AS1DeI66n%PR*pX zi2%0k-ZNP@3`AaRb)vJ?W}XEv*Z1a+PPd6tY;c0IY-s0=Iw-*C*soU) zC=bBofdMQRHt;f`m;%bDO+Q@6&hS8dvdDDe(V_H-k2t&!J`FL&9w2#0bHLqd5+>n8)4e;ua%TPUO&4#d!TjvD`IHe+m+wqABkj zoNs5r+GI!s>cQZx77EF%7%V;lk~d43R$%h9**@|sc6SSR>J07Anld(@sT0nyR>Qu_ zPhkc@Fj;M*AKsf3%f|p*H1HyY%3g7T%cCKt?y8k0=-`j0laL`{!mVH11jZ{=3)Zbo z21^05#asw*jiv?Hew&@KV*;teNz-jz?UZ2y0k!l8DBW^9Rj~0!uD>Ft|27Lg;_|N} z*?vvL_xnuig>$EG@^@kLoJ?zdbt0stXU1YVLJO_W zCv!h-*}a>}{Q3SZv`DX6-2%p&B;T>R%A72KsxXP5VK54m2trhI`mBmx(#zV{ zInu6zS{==2l?XBO^i7UsOK?Fk{?ekyEXECjxn| ze`kRpJim|8Q}?3d(XG1>vcoX%zs<(_g-QWYTElLe@&5AL%%^F!{2#PFiop zRz~d(ix56>b@e=g)qGNk>2`{de6Q_WxRCIF*6yQFR#bxy#Qy{EQ~~2n-V>tkL{`UY z&0Rmmuj2DpeT)jObl<7A@des_b`d1V25nwoq~e9M<^f>hHSU>co8g(*{m}-YwofiI z-mkS=3Wl~O+8MFVW{YqX8E6K**_pPc`QNK@m~X8Hg&Kle5qX4L!dd6!IWdLU*Nlkc zGiH(n$H6or(h^BfuCPB&?kP`30z;2(u1 zR+FQfD9dIbldYlRvSLo87bRrF5U656yei7F$Z+uFv&!-!9(3wD{QY)By0oUJmuQ{- zU}FV=;Y7LSZ1uxnRdzVY10dxWlIkcKoJet_HxrwC@n~W6^hFyQekJ5|pV<4XQj zka1?kZLfD%g`ld(`_Jln6>AAWt9jnwML-$NI@O($<9KJ{W`C%l?Zl4-L0J7Mr!-?21u}Dy5k;D zu}!eeZ*3?R;L}9xDghYu?{zNJxF-U5o>7it>+~T~$v2ua{;7P)^J*yJ6~TT02(a@l_L<@JIZo3wOYJ9t9BNNUnvpIZ184_1fah;Vh@r1saB z^4y@`7jq3dxmVlsiow+%)C~5)FovY6v>3pvw$J%t@r@7cp&Ec@j$@T1u-i81-!`X5 z*u0~!^hDZq+7k7};*;b~0?h1x(q(|(>8OIVD1hr(THoGWk=iwDyIPzQf69sA=(J+o zn#EcLV}QPlry2xM(Oe*&QuTxz|DO({_ui&T9ig&XSsUK?V&dy)5>MGnr6uw&*J)SR z4O5d0C2t!+(VG{Y3fFU3G4!F~;z`0^Zy$VT zlJGjGSF&$3BUtfc03n5Fp1KQfb~InA&8`q*1q&GG=||Hzpy6L2H1f*;LpyQht{w?} zDZ2kUk>FaSr)>&iD|Z|7sH6U!z%}z@JhB~OedrN<`}Lfq^UV}Y43>cn?*zZ0AOM2< zpX5w(`QSQaEYTvqHz~=NXHUjQf0o%dBkQfeAN31lR&xxOEgYHTdZp%bVXN280=Ana z^M=FH$n=5rl?&BI)^08Qe_`>YwGkkoEIR+Kv^%~Pb0k^b?3|sA#qp8cs#eTueeM2Q zRw=0&M&6mX$~YF!Y0ZBc@63#c7`f!9BKSXd@Voc{RoLU+XN*d^;RK${8T?=LBS%Bk z&gkb&o-U3d6^w6h1+IPUz|;DW zIZ;96kdsD>Qv^q=09&hp0GpEni<1IR%gvP3v%OR9*{MuRTKWHZyIbuBt)Ci`cU_&% z1T+i^Y)o{%281-<3TpPAUTzw5v;RY=>1rvxmPl96#kYc9hX!6V^nB|ad#(S+)}?8C zr_H+lT3B#So$T=?$(w3-{rbQ4R<@nsf$}$hwSO)A$8&`(j+wQf=Jwhb0`CvhR5DCf z^OgI)KQemrUFPH+UynC$Y~QHG%DbTVh-Skz{enNU)cV_hPu~{TD7TPZl>0&K>iuE| z7AYn$7)Jrb9GE&SfQW4q&G*@N|4cHI`VakFa5-C!ov&XD)J(qp$rJJ*9e z-sHv}#g*T7Cv048d1v~BEAzM5FztAse#q78WWC^BUCzQ U&wLp6h6BX&boFyt=akR{0G%$)mH+?% literal 0 HcmV?d00001 diff --git a/bitget-node-sdk-api/docs/assets/images/widgets@2x.png b/bitget-node-sdk-api/docs/assets/images/widgets@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..4bbbd57272f3b28f47527d4951ad10f950b8ad43 GIT binary patch literal 855 zcmeAS@N?(olHy`uVBq!ia0y~yU}^xe12~w0Jcmn z@(X6T|9^jgLcx21{)7exgY)a>N6m2F0<`Rqr;B4q1>>88jUdw-7W`c)zLE*mq8W2H z-<&Jl_Hco5BuC5n@AbF5GD82~-e8-v=#zCyUX0F-o}8pPfAv`!GN$ff+TL<~@kgt} z62eO?_|&+>xBmM$@p|z`tIKEdpPf8%qI>4r7@jn<=eta*{3~?g(zz{Ke9zc-G^gr? z-7foa?LcS!hmbwzru}ICvbWLlW8;+l-}!^=c32!^nV`+`C*;0-*Y%l94pC;Cb3GXz zzSf%a!{gVr{Y_lVuUj+a)*Ca+!-Hu%xmP&&X-2CuANY8^i{D7Kg6qzP zXz_ps9+lN8ESH{K4`yu&b~I>N9xGlE&;2u*b?+Go!AhN?m-bxlLvtC#MzDF2kFzfHJ1W7ybqdefSqVhbOykd*Yi%EDuhs z4wF{ft^bv2+DDnKb8gj1FuvcV`M}luS>lO<^)8x>y1#R;a=-ZKwWTQQb)ioBbi;zh zD!f5V)8581to1LL7c9!l^PSC$NBPYif!_vAZhmL4)v4U)4UsrLYiH_9rmQDd?)(e5 z^pcH>qvBg*i0dus2r*mp4;zKvu=P#s-ti;2obl`NjjwoYd>e(oo#j_uyRb<7Pv^If zzZ|mGHmV)8^tbO%^>eqMw(@7(&3g{jEp-Najo7V75xI_ZHK*FA`elF{r5}E*d7+j_R literal 0 HcmV?d00001 diff --git a/bitget-node-sdk-api/docs/assets/js/main.js b/bitget-node-sdk-api/docs/assets/js/main.js new file mode 100644 index 00000000..39a80669 --- /dev/null +++ b/bitget-node-sdk-api/docs/assets/js/main.js @@ -0,0 +1 @@ +!function(){var e=function(t){var r=new e.Builder;return r.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};e.version="2.3.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.utils.asString=function(e){return null==e?"":e.toString()},e.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){for(var t,r;47<(r=(t=this.next()).charCodeAt(0))&&r<58;);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos=this.scrollTop||0===this.scrollTop,isShown!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.secondaryNav.classList.toggle("tsd-navigation--toolbar-hide")),this.lastY=this.scrollTop},Viewport}(typedoc.EventTarget);typedoc.Viewport=Viewport,typedoc.registerService(Viewport,"viewport")}(typedoc||(typedoc={})),function(typedoc){function Component(options){this.el=options.el}typedoc.Component=Component}(typedoc||(typedoc={})),function(typedoc){typedoc.pointerDown="mousedown",typedoc.pointerMove="mousemove",typedoc.pointerUp="mouseup",typedoc.pointerDownPosition={x:0,y:0},typedoc.preventNextClick=!1,typedoc.isPointerDown=!1,typedoc.isPointerTouch=!1,typedoc.hasPointerMoved=!1,typedoc.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),document.documentElement.classList.add(typedoc.isMobile?"is-mobile":"not-mobile"),typedoc.isMobile&&"ontouchstart"in document.documentElement&&(typedoc.isPointerTouch=!0,typedoc.pointerDown="touchstart",typedoc.pointerMove="touchmove",typedoc.pointerUp="touchend"),document.addEventListener(typedoc.pointerDown,function(e){typedoc.isPointerDown=!0,typedoc.hasPointerMoved=!1;var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e;typedoc.pointerDownPosition.y=t.pageY||0,typedoc.pointerDownPosition.x=t.pageX||0}),document.addEventListener(typedoc.pointerMove,function(e){if(typedoc.isPointerDown&&!typedoc.hasPointerMoved){var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e,x=typedoc.pointerDownPosition.x-(t.pageX||0),y=typedoc.pointerDownPosition.y-(t.pageY||0);typedoc.hasPointerMoved=10scrollTop;)index-=1;for(;index"+match+""}),parent=row.parent||"";(parent=parent.replace(new RegExp(this.query,"i"),function(match){return""+match+""}))&&(name=''+parent+"."+name);var item=document.createElement("li");item.classList.value=row.classes,item.innerHTML='\n '+name+"\n ",this.results.appendChild(item)}}},Search.prototype.setLoadingState=function(value){this.loadingState!=value&&(this.el.classList.remove(SearchLoadingState[this.loadingState].toLowerCase()),this.loadingState=value,this.el.classList.add(SearchLoadingState[this.loadingState].toLowerCase()),this.updateResults())},Search.prototype.setHasFocus=function(value){this.hasFocus!=value&&(this.hasFocus=value,this.el.classList.toggle("has-focus"),value?(this.setQuery(""),this.field.value=""):this.field.value=this.query)},Search.prototype.setQuery=function(value){this.query=value.trim(),this.updateResults()},Search.prototype.setCurrentResult=function(dir){var current=this.results.querySelector(".current");if(current){var rel=1==dir?current.nextElementSibling:current.previousElementSibling;rel&&(current.classList.remove("current"),rel.classList.add("current"))}else(current=this.results.querySelector(1==dir?"li:first-child":"li:last-child"))&¤t.classList.add("current")},Search.prototype.gotoCurrentResult=function(){var current=this.results.querySelector(".current");if(current||(current=this.results.querySelector("li:first-child")),current){var link=current.querySelector("a");link&&(window.location.href=link.href),this.field.blur()}},Search.prototype.bindEvents=function(){var _this=this;this.results.addEventListener("mousedown",function(){_this.resultClicked=!0}),this.results.addEventListener("mouseup",function(){_this.resultClicked=!1,_this.setHasFocus(!1)}),this.field.addEventListener("focusin",function(){_this.setHasFocus(!0),_this.loadIndex()}),this.field.addEventListener("focusout",function(){_this.resultClicked?_this.resultClicked=!1:setTimeout(function(){return _this.setHasFocus(!1)},100)}),this.field.addEventListener("input",function(){_this.setQuery(_this.field.value)}),this.field.addEventListener("keydown",function(e){13==e.keyCode||27==e.keyCode||38==e.keyCode||40==e.keyCode?(_this.preventPress=!0,e.preventDefault(),13==e.keyCode?_this.gotoCurrentResult():27==e.keyCode?_this.field.blur():38==e.keyCode?_this.setCurrentResult(-1):40==e.keyCode&&_this.setCurrentResult(1)):_this.preventPress=!1}),this.field.addEventListener("keypress",function(e){_this.preventPress&&e.preventDefault()}),document.body.addEventListener("keydown",function(e){e.altKey||e.ctrlKey||e.metaKey||!_this.hasFocus&&47this.groups.length-1&&(index=this.groups.length-1),this.index!=index){var to=this.groups[index];if(-1 + + + + + AccountApi | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AccountApi

+
+
+
+
+
+
+
+
+
+

账户相关API调用

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new AccountApi(apiUri?: string, httpConfig?: AxiosRequestConfig, apiKey?: string, secretKey?: string, passphrase?: string): AccountApi
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      Default value apiUri: string = "https://capi.bitget.com"
      +
    • +
    • +
      Default value httpConfig: AxiosRequestConfig = { timeout: 3000 }
      +
    • +
    • +
      Default value apiKey: string = ""
      +
    • +
    • +
      Default value secretKey: string = ""
      +
    • +
    • +
      Default value passphrase: string = ""
      +
    • +
    +

    Returns AccountApi

    +
  • +
+
+
+
+

Properties

+
+ +

axiosInstance

+
axiosInstance: AxiosInstance
+ +
+
+ +

Protected signer

+
signer: (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string) => BitgetApiHeader
+ +
+

Type declaration

+
    +
  • +
      +
    • (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string): BitgetApiHeader
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        httpMethod: string
        +
      • +
      • +
        url: string
        +
      • +
      • +
        qsOrBody: Dict<any> | null
        +
      • +
      • +
        Optional locale: undefined | string
        +
      • +
      +

      Returns BitgetApiHeader

      +
    • +
    +
  • +
+
+
+
+
+

Methods

+
+ +

accounts

+ +
    +
  • + +
    +
    +

    查询所有合约账户信息 + 限速规则:1次/s

    +
    +
    +

    Returns Promise<AxiosResponse<BitgetAccountInfo[]>>

    +
  • +
+
+
+ +

adjustMargin

+
    +
  • adjustMargin(symbol: string, amount: string, positionType: number, type: number): Promise<AxiosResponse<BitgetAdjustMarginResult>>
  • +
+
    +
  • + +
    +
    +

    调整保证金 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      amount: string
      +
      +

      调整数量

      +
      +
    • +
    • +
      positionType: number
      +
      +

      仓位 0-多仓 1-空仓

      +
      +
    • +
    • +
      type: number
      +
      +

      调整方式 1-增加 2-减少

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetAdjustMarginResult>>

    +
  • +
+
+
+ +

getAccount

+ +
    +
  • + +
    +
    +

    单个合约账户信息 + 限速规则:5次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetAccountInfo>>

    +
  • +
+
+
+ +

getLedger

+
    +
  • getLedger(symbol: string, from: number, to: number, limit: number, startTime: string, endTime: string): Promise<AxiosResponse<BitgetLedgerInfo[]>>
  • +
+
    +
  • + +
    +
    +

    主账户资产流水(分页)-最多允许查询近三个月的

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      from: number
      +
    • +
    • +
      to: number
      +
    • +
    • +
      limit: number
      +
    • +
    • +
      startTime: string
      +
      +

      时间区间-起

      +
      +
    • +
    • +
      endTime: string
      +
      +

      时间区间-止

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetLedgerInfo[]>>

    +
  • +
+
+
+ +

ledgerMargin

+
    +
  • ledgerMargin(symbol: string, from: number, to: number, limit: number, startTime: string, endTime: string): Promise<AxiosResponse<BitgetLedgerInfo[]>>
  • +
+
    +
  • + +
    +
    +

    列出保证金账户资产流水(分页)-最多允许查询近三个月的

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      from: number
      +
    • +
    • +
      to: number
      +
    • +
    • +
      limit: number
      +
    • +
    • +
      startTime: string
      +
    • +
    • +
      endTime: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetLedgerInfo[]>>

    +
  • +
+
+
+ +

leverage

+ +
    +
  • + +
    +
    +

    调整杠杆 + 限速规则:5次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      leverage: number
      +
      +

      要调整的杠杆数(一般为1-100)

      +
      +
    • +
    • +
      side: number
      +
      +

      方向 1-多仓 2-空仓

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetAccountSettingInfo>>

    +
  • +
+
+
+ +

modifyAutoAppendMargin

+ +
    +
  • + +
    +
    +

    调整自动追加保证金开关 + 限速规则:5次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      side: number
      +
      +

      仓位 1-多仓 2-空仓

      +
      +
    • +
    • +
      appendType: number
      +
      +

      0-关闭 1-打开

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetAutoAppendMarginResult>>

    +
  • +
+
+
+ +

settings

+ +
    +
  • + +
    +
    +

    获取单个合约的用户配置 + 限速规则:5次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetAccountSettingInfo>>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.authenticatedapi.html b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.authenticatedapi.html new file mode 100644 index 00000000..6f46d977 --- /dev/null +++ b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.authenticatedapi.html @@ -0,0 +1,361 @@ + + + + + + AuthenticatedApi | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AuthenticatedApi

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new AuthenticatedApi(apiUri?: string, httpConfig?: AxiosRequestConfig, apiKey?: string, secretKey?: string, passphrase?: string): AuthenticatedApi
  • +
+
    +
  • + +
    +
    +

    构造平台账户授权的API实例

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value apiUri: string = "https://capi.bitget.com"
      +
    • +
    • +
      Default value httpConfig: AxiosRequestConfig = { timeout: 3000 }
      +
    • +
    • +
      Default value apiKey: string = ""
      +
      +
      +

      公钥

      +
      +
      +
    • +
    • +
      Default value secretKey: string = ""
      +
      +
      +

      私钥

      +
      +
      +
    • +
    • +
      Default value passphrase: string = ""
      +
      +
      +

      口令

      +
      +
      +
    • +
    +

    Returns AuthenticatedApi

    +
  • +
+
+
+
+

Properties

+
+ +

axiosInstance

+
axiosInstance: AxiosInstance
+ +
+
+ +

Protected signer

+
signer: (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string) => BitgetApiHeader
+ +
+

Type declaration

+
    +
  • +
      +
    • (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string): BitgetApiHeader
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        httpMethod: string
        +
      • +
      • +
        url: string
        +
      • +
      • +
        qsOrBody: Dict<any> | null
        +
      • +
      • +
        Optional locale: undefined | string
        +
      • +
      +

      Returns BitgetApiHeader

      +
    • +
    +
  • +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Protected property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.orderapi.html b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.orderapi.html new file mode 100644 index 00000000..3c40a880 --- /dev/null +++ b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.orderapi.html @@ -0,0 +1,819 @@ + + + + + + OrderApi | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class OrderApi

+
+
+
+
+
+
+
+
+
+

委托相关API调用

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new OrderApi(apiUri?: string, httpConfig?: AxiosRequestConfig, apiKey?: string, secretKey?: string, passphrase?: string): OrderApi
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      Default value apiUri: string = "https://capi.bitget.com"
      +
    • +
    • +
      Default value httpConfig: AxiosRequestConfig = { timeout: 3000 }
      +
    • +
    • +
      Default value apiKey: string = ""
      +
    • +
    • +
      Default value secretKey: string = ""
      +
    • +
    • +
      Default value passphrase: string = ""
      +
    • +
    +

    Returns OrderApi

    +
  • +
+
+
+
+

Properties

+
+ +

axiosInstance

+
axiosInstance: AxiosInstance
+ +
+
+ +

Protected signer

+
signer: (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string) => BitgetApiHeader
+ +
+

Type declaration

+
    +
  • +
      +
    • (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string): BitgetApiHeader
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        httpMethod: string
        +
      • +
      • +
        url: string
        +
      • +
      • +
        qsOrBody: Dict<any> | null
        +
      • +
      • +
        Optional locale: undefined | string
        +
      • +
      +

      Returns BitgetApiHeader

      +
    • +
    +
  • +
+
+
+
+
+

Methods

+
+ +

batchOrders

+ +
    +
  • + +
    +
    +

    批量下单 + 限速规则:10次/s

    +
    +
    +

    Parameters

    + +

    Returns Promise<AxiosResponse<BitgetBatchOrderResult>>

    +
  • +
+
+
+ +

cancelBathOrders

+ +
    +
  • + +
    +
    +

    批量撤单 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      ids: string[]
      +
      +

      委托单号的集合

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetCancelBatchOrderResult>>

    +
  • +
+
+
+ +

cancelOrder

+ +
    +
  • + +
    +
    +

    取消订单 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      orderId: string
      +
      +

      委托单号

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetCancelOrderResult>>

    +
  • +
+
+
+ +

cancelPlan

+
    +
  • cancelPlan(symbol: string, orderId: string): Promise<AxiosResponse<BitgetOrderResult>>
  • +
+
    +
  • + +
    +
    +

    取消计划委托

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      orderId: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetOrderResult>>

    +
  • +
+
+
+ +

currentPlan

+
    +
  • currentPlan(symbol: string, side: number, pageIndex: number, pageSize: number, startTime: string, endTime: string): Promise<AxiosResponse<BitgetPlanOrderPage>>
  • +
+
    +
  • + +
    +
    +

    获取当前计划(分页)

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      side: number
      +
      +

      根据方向获取 1开多 2开空 3平多 4平空

      +
      +
    • +
    • +
      pageIndex: number
      +
      +

      查询页数

      +
      +
    • +
    • +
      pageSize: number
      +
      +

      每页条数 最大1000

      +
      +
    • +
    • +
      startTime: string
      +
      +

      时间范围-起 时间戳

      +
      +
    • +
    • +
      endTime: string
      +
      +

      时间范围-止 时间戳

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetPlanOrderPage>>

    +
  • +
+
+
+ +

getFills

+ +
    +
  • + +
    +
    +

    查询成交明细 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      orderId: string
      +
      +

      委托单号

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetOrderFillInfo[]>>

    +
  • +
+
+
+ +

getOrderDetail

+
    +
  • getOrderDetail(symbol: string, orderId: string): Promise<AxiosResponse<BitgetOrderDetail>>
  • +
+
    +
  • + +
    +
    +

    获取单订单信息 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      orderId: string
      +
      +

      委托单号

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetOrderDetail>>

    +
  • +
+
+
+ +

getOrders

+
    +
  • getOrders(symbol: string, status: number, from: number, to: number, limit?: number): Promise<AxiosResponse<BitgetOrderDetail[]>>
  • +
+
    +
  • + +
    +
    +

    获取委托列表(分页)

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      status: number
      +
      +

      委托状态 -1:已撤单(包含风险触发撤销),0:未成交,1:部分成交,2:完全成交, 3:未成交或部分成交,4:已撤单(包含风险触发撤销)或完全成交 5:所有状态

      +
      +
    • +
    • +
      from: number
      +
    • +
    • +
      to: number
      +
    • +
    • +
      Default value limit: number = 100
      +
      +

      每页最多100条,默认100条

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetOrderDetail[]>>

    +
  • +
+
+
+ +

historyPlan

+
    +
  • historyPlan(symbol: string, side: number, pageIndex: number, pageSize: number, startTime: string, endTime: string): Promise<AxiosResponse<BitgetPlanOrderPage>>
  • +
+
    +
  • + +
    +
    +

    查询计划历史委托 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      side: number
      +
      +

      方向 1开多 2开空 3平多 4平空

      +
      +
    • +
    • +
      pageIndex: number
      +
    • +
    • +
      pageSize: number
      +
    • +
    • +
      startTime: string
      +
    • +
    • +
      endTime: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetPlanOrderPage>>

    +
  • +
+
+
+ +

planOrder

+ +
    +
  • + +
    +
    +

    计划委托下单 + 限速规则:10次/s

    +
    +
    +

    Parameters

    + +

    Returns Promise<AxiosResponse<BitgetPlanOrderResult>>

    +
  • +
+
+
+ +

postOrder

+ +
    +
  • + +
    +
    +

    下单 + 限速规则:10次/s

    +
    +
    +

    Parameters

    + +

    Returns Promise<AxiosResponse<BitgetOrderResult>>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.positionapi.html b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.positionapi.html new file mode 100644 index 00000000..1d5bc879 --- /dev/null +++ b/bitget-node-sdk-api/docs/classes/_src_lib_authenticatedapi_.positionapi.html @@ -0,0 +1,492 @@ + + + + + + PositionApi | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PositionApi

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new PositionApi(apiUri?: string, httpConfig?: AxiosRequestConfig, apiKey?: string, secretKey?: string, passphrase?: string): PositionApi
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      Default value apiUri: string = "https://capi.bitget.com"
      +
    • +
    • +
      Default value httpConfig: AxiosRequestConfig = { timeout: 3000 }
      +
    • +
    • +
      Default value apiKey: string = ""
      +
    • +
    • +
      Default value secretKey: string = ""
      +
    • +
    • +
      Default value passphrase: string = ""
      +
    • +
    +

    Returns PositionApi

    +
  • +
+
+
+
+

Properties

+
+ +

axiosInstance

+
axiosInstance: AxiosInstance
+ +
+
+ +

Protected signer

+
signer: (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string) => BitgetApiHeader
+ +
+

Type declaration

+
    +
  • +
      +
    • (httpMethod: string, url: string, qsOrBody: Dict<any> | null, locale?: undefined | string): BitgetApiHeader
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        httpMethod: string
        +
      • +
      • +
        url: string
        +
      • +
      • +
        qsOrBody: Dict<any> | null
        +
      • +
      • +
        Optional locale: undefined | string
        +
      • +
      +

      Returns BitgetApiHeader

      +
    • +
    +
  • +
+
+
+
+
+

Methods

+
+ +

getAllPosition

+ +
    +
  • + +
    +
    +

    获取全部合约仓位信息 + 限速规则:5次/s

    +
    +
    +

    Returns Promise<AxiosResponse<BitgetPositionPage[]>>

    +
  • +
+
+
+ +

getHolds

+ +
    +
  • + +
    +
    +

    获取合约挂单冻结数量 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetPositionHoldInfo>>

    +
  • +
+
+
+ +

getSinglePosition

+ +
    +
  • + +
    +
    +

    获取单个合约仓位信息 + 限速规则:10次/s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetPositionPage>>

    +
  • +
+
+
+ +

virtualCapital

+
    +
  • virtualCapital(symbol: string, ftype: string, limit: number, gt?: undefined | number, lt?: undefined | number): Promise<AxiosResponse<BitgetVirtualRecordInfo[]>>
  • +
+
    +
  • + +
    +
    +

    出入金记录

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      ftype: string
      +
      +

      类型 1-充值 2-提现

      +
      +
    • +
    • +
      limit: number
      +
    • +
    • +
      Optional gt: undefined | number
      +
    • +
    • +
      Optional lt: undefined | number
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetVirtualRecordInfo[]>>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/classes/_src_lib_publicapi_.publicapi.html b/bitget-node-sdk-api/docs/classes/_src_lib_publicapi_.publicapi.html new file mode 100644 index 00000000..209bc16c --- /dev/null +++ b/bitget-node-sdk-api/docs/classes/_src_lib_publicapi_.publicapi.html @@ -0,0 +1,788 @@ + + + + + + PublicApi | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PublicApi

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + PublicApi +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new PublicApi(apiUri?: string, httpConfig?: AxiosRequestConfig): PublicApi
  • +
+
    +
  • + +
    +
    +

    构造公共API实例

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value apiUri: string = "https://capi.bitget.com"
      +
      +
      +

      根据自己的需要选择API地址

      +
      +
      +
    • +
    • +
      Default value httpConfig: AxiosRequestConfig = { timeout: 3000 }
      +
      +
      +

      axios的相关配置,默认修改了timeout属性为3s

      +
      +
      +
    • +
    +

    Returns PublicApi

    +
  • +
+
+
+
+

Properties

+
+ +

axiosInstance

+
axiosInstance: AxiosInstance
+ +
+
+
+

Methods

+
+ +

calOpenCount

+
    +
  • calOpenCount(symbol: string, amount: string, leverage: string, openPrice: string): Promise<AxiosResponse<string>>
  • +
+
    +
  • + +
    +
    +

    获取可开张数 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      amount: string
      +
      +

      总金额

      +
      +
    • +
    • +
      leverage: string
      +
      +

      杠杆倍数

      +
      +
    • +
    • +
      openPrice: string
      +
      +

      开仓均价

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<string>>

    +
  • +
+
+
+ +

getCandles

+
    +
  • getCandles(symbol: string, start: string, end: string, granularity: string): Promise<AxiosResponse<any>>
  • +
+
    +
  • + +
    +
    +

    获取K线数据 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +

      合约名称

      +
      +
    • +
    • +
      start: string
      +
      +

      开始时间 (UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'

      +
      +
    • +
    • +
      end: string
      +
      +

      结束时间 (UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

      +
      +
    • +
    • +
      granularity: string
      +
      +

      粒度 '60'对应'1分钟' '3600'对应'1小时' 所有支持的粒度请参见API文档

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<any>>

    +
  • +
+
+
+ +

getContractsApi

+ +
    +
  • + +
    +
    +

    获取合约信息 + 限速规则:20次/2s

    +
    +
    +

    Returns Promise<AxiosResponse<BitgetContractInfo[]>>

    +
  • +
+
+
+ +

getDepthApi

+
    +
  • getDepthApi(symbol: string, limit: string): Promise<AxiosResponse<BitgetDepthInfo>>
  • +
+
    +
  • + +
    +
    +

    获取深度数据 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +

      合约名称

      +
      +
    • +
    • +
      limit: string
      +
      +

      深度大小(1-200)

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetDepthInfo>>

    +
  • +
+
+
+ +

getFundingTimeApi

+
    +
  • getFundingTimeApi(symbol: string): Promise<AxiosResponse<{ funding_time: string }>>
  • +
+
    +
  • + +
    +
    +

    获取合约下一次结算时间 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<{ funding_time: string }>>

    +
  • +
+
+
+ +

getHistoricalFundingRateApi

+
    +
  • getHistoricalFundingRateApi(symbol: string, from: string, to: string, limit: string): Promise<AxiosResponse<BitgetFundingHistoryInfo[]>>
  • +
+
    +
  • + +
    +
    +

    获取合约历史资金费率(分页) + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
    • +
    • +
      from: string
      +
      +

      起始页

      +
      +
    • +
    • +
      to: string
      +
      +

      结束页

      +
      +
    • +
    • +
      limit: string
      +
      +

      每页条数

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetFundingHistoryInfo[]>>

    +
  • +
+
+
+ +

getIndex

+ +
    +
  • + +
    +
    +

    获取币种指数 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetIndexInfo>>

    +
  • +
+
+
+ +

getMarkPriceApi

+
    +
  • getMarkPriceApi(symbol: string): Promise<AxiosResponse<{ mark_price: string }>>
  • +
+
    +
  • + +
    +
    +

    获取合约标记价格 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<{ mark_price: string }>>

    +
  • +
+
+
+ +

getOpenInterestApi

+ +
    +
  • + +
    +
    +

    获取平台总持仓量 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetOpenInterestInfo>>

    +
  • +
+
+
+ +

getPriceLimitApi

+ +
    +
  • + +
    +
    +

    获取合约最高限价和最低限价 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetPriceLimitInfo>>

    +
  • +
+
+
+ +

getTicker

+ +
    +
  • + +
    +
    +

    获取某个ticker信息 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +

      合约名称

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetTickerInfo>>

    +
  • +
+
+
+ +

getTickersApi

+ +
    +
  • + +
    +
    +

    获取全部ticker信息 + 限速规则:20次/2s

    +
    +
    +

    Returns Promise<AxiosResponse<BitgetTickerInfo[]>>

    +
  • +
+
+
+ +

getTime

+ +
    +
  • + +
    +
    +

    获取服务端时间 + 限速规则:20次/2s

    +
    +
    +

    Returns Promise<AxiosResponse<BitgetSystemTime>>

    +
  • +
+
+
+ +

getTrades

+
    +
  • getTrades(symbol: string, limit: string | number): Promise<AxiosResponse<BitgetTradeInfo[]>>
  • +
+
    +
  • + +
    +
    +

    获取成交数据 + 限速规则:20次/2s

    +
    +
    +

    Parameters

    +
      +
    • +
      symbol: string
      +
      +

      合约名称

      +
      +
    • +
    • +
      limit: string | number
      +
      +

      条数限制(1-100)

      +
      +
    • +
    +

    Returns Promise<AxiosResponse<BitgetTradeInfo[]>>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/globals.html b/bitget-node-sdk-api/docs/globals.html new file mode 100644 index 00000000..1cc2a698 --- /dev/null +++ b/bitget-node-sdk-api/docs/globals.html @@ -0,0 +1,165 @@ + + + + + + bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

bitget-node-sdk-api

+
+
+
+ +
+
+

Legend

+
+
    +
  • Object literal
  • +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/index.html b/bitget-node-sdk-api/docs/index.html new file mode 100644 index 00000000..84b94ee2 --- /dev/null +++ b/bitget-node-sdk-api/docs/index.html @@ -0,0 +1,160 @@ + + + + + + bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

bitget-node-sdk-api

+
+
+
+
+
+
+
+ +

bitget-node-sdk-api

+
+ +

使用说明

+
+

本SDK开发环境为v10.15.3,TypeScript(tsc)版本为3.9.7
依赖axios作为网络请求库,需要时可参阅 官方文档

+
git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git
+cd v3-bitget-api-sdk/bitget-node-sdk-api
+npm install
+npm build
+
    +
  • test目录存放相关测试用例,SDK调用方式可以参考
  • +
  • build目录存放CommonJS规范模块输出,需要其他规范可自行修改tsconfig.json进行编译
  • +
  • doc目录存放使用typedoc工具自动生成的类型声明文档(HTML版)
  • +
+

本SDK基于 api文档 实现

+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Object literal
  • +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountinfo.html new file mode 100644 index 00000000..8b9dd2ad --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountinfo.html @@ -0,0 +1,423 @@ + + + + + + BitgetAccountInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetAccountInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/account/account + 单个账户余额信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetAccountInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

equity

+
equity: string
+ +
+
+

账户权益

+
+
+
+
+ +

fixed_balance

+
fixed_balance: string
+ +
+
+

逐仓账户余额

+
+
+
+
+ +

forwardContractFlag

+
forwardContractFlag: boolean
+ +
+
+ +

margin

+
margin: string
+ +
+
+

已用保证金

+
+
+
+
+ +

margin_frozen

+
margin_frozen: string
+ +
+
+

开仓冻结保证金

+
+
+
+
+ +

margin_mode

+
margin_mode: string
+ +
+
+

仓位模式 fixed逐仓模式 crossed全仓模式

+
+
+
+
+ +

realized_pnl

+
realized_pnl: string
+ +
+
+

已实现盈亏

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

total_avail_balance

+
total_avail_balance: string
+ +
+
+

账户余额

+
+
+
+
+ +

unrealized_pnl

+
unrealized_pnl: string
+ +
+
+

未实现盈亏

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountsettinginfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountsettinginfo.html new file mode 100644 index 00000000..831a1a94 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetaccountsettinginfo.html @@ -0,0 +1,309 @@ + + + + + + BitgetAccountSettingInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetAccountSettingInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/account/settings + 单个账户的配置信息,杠杆及仓位模式

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetAccountSettingInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

forwardContractFlag

+
forwardContractFlag: boolean
+ +
+
+ +

long_leverage

+
long_leverage: string
+ +
+
+

多仓杠杆

+
+
+
+
+ +

margin_mode

+
margin_mode: string
+ +
+
+ +

short_leverage

+
short_leverage: string
+ +
+
+

空仓杠杆

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetadjustmarginresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetadjustmarginresult.html new file mode 100644 index 00000000..a3bcb052 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetadjustmarginresult.html @@ -0,0 +1,262 @@ + + + + + + BitgetAdjustMarginResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetAdjustMarginResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/account/adjustMargin + 调整保证金的结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetAdjustMarginResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

orderNo

+
orderNo: string
+ +
+
+

调整保证金订单号

+
+
+
+
+ +

result

+
result: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetautoappendmarginresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetautoappendmarginresult.html new file mode 100644 index 00000000..43f09dcb --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetautoappendmarginresult.html @@ -0,0 +1,262 @@ + + + + + + BitgetAutoAppendMarginResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetAutoAppendMarginResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/account/modifyAutoAppendMargin + 开关自动追加保证金结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetAutoAppendMarginResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

append_type

+
append_type: number
+ +
+
+

设置后状态 0-关闭 1-开启

+
+
+
+
+ +

result

+
result: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetbatchorderresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetbatchorderresult.html new file mode 100644 index 00000000..9812cb6e --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetbatchorderresult.html @@ -0,0 +1,257 @@ + + + + + + BitgetBatchOrderResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetBatchOrderResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/batchOrders + 批量下单返回结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetBatchOrderResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

order_info

+
order_info: BitgetOrderResult[]
+ +
+
+ +

result

+
result: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelbatchorderresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelbatchorderresult.html new file mode 100644 index 00000000..4adb9bc2 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelbatchorderresult.html @@ -0,0 +1,284 @@ + + + + + + BitgetCancelBatchOrderResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetCancelBatchOrderResult

+
+
+
+
+
+
+
+
+
+

批量撤单结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetCancelBatchOrderResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

fail_infos

+ + +
+
+ +

order_ids

+
order_ids: string[]
+ +
+
+ +

result

+
result: boolean
+ +
+
+ +

symbol

+
symbol: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelorderresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelorderresult.html new file mode 100644 index 00000000..5588e971 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetcancelorderresult.html @@ -0,0 +1,323 @@ + + + + + + BitgetCancelOrderResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetCancelOrderResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/cancel_order + 取消委托返回结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetCancelOrderResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

client_oid

+
client_oid: string
+ +
+
+ +

err_code

+
err_code: string
+ +
+
+

取消失败错误码

+
+
+
+
+ +

err_msg

+
err_msg: string
+ +
+
+

取消失败原因

+
+
+
+
+ +

order_id

+
order_id: string
+ +
+
+ +

result

+
result: boolean
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetledgerinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetledgerinfo.html new file mode 100644 index 00000000..4a879bf7 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetledgerinfo.html @@ -0,0 +1,351 @@ + + + + + + BitgetLedgerInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetLedgerInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/account/ledger + 资产流水

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetLedgerInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

amount

+
amount: string
+ +
+
+

变动数量

+
+
+
+
+ +

biz_time

+
biz_time: string
+ +
+
+ +

create_time

+
create_time: string
+ +
+
+ +

fee

+
fee: string
+ +
+
+ +

ledger_id

+
ledger_id: string
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

type

+
type: number
+ +
+
+

变动类型

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderdetail.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderdetail.html new file mode 100644 index 00000000..e403c8b0 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderdetail.html @@ -0,0 +1,466 @@ + + + + + + BitgetOrderDetail | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetOrderDetail

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/detail + 委托明细

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetOrderDetail +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

client_oid

+
client_oid: string
+ +
+
+ +

createTime

+
createTime: string
+ +
+
+

创建时间

+
+
+
+
+ +

fee

+
fee: string
+ +
+
+ +

filled_qty

+
filled_qty: string
+ +
+
+

成交数量

+
+
+
+
+ +

order_id

+
order_id: string
+ +
+
+ +

order_type

+
order_type: string
+ +
+
+

委托时效类型 + 0:普通委托 1:只做Maker(Post only) 2:全部成交或立即取消(FOK) 3:立即成交并取消剩余(IOC)

+
+
+
+
+ +

price

+
price: string
+ +
+
+

委托价格

+
+
+
+
+ +

price_avg

+
price_avg: string
+ +
+
+

成交均价

+
+
+
+
+ +

size

+
size: string
+ +
+
+

委托数量

+
+
+
+
+ +

status

+
status: string
+ +
+
+

订单状态( -1:撤销成功 0:等待成交 1:部分成交 2:完全成交)

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

totalProfits

+
totalProfits: string
+ +
+
+ +

type

+
type: string
+ +
+
+

委托类型 1:开多 2:开空 3:平多 4:平空 5:减仓平多 6:减仓平空 7:协议平多 8:协议平空 9:爆仓平多 10:爆仓平空

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderfillinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderfillinfo.html new file mode 100644 index 00000000..c5236b76 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderfillinfo.html @@ -0,0 +1,365 @@ + + + + + + BitgetOrderFillInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetOrderFillInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/fills + 成交明细

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetOrderFillInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

exec_type

+
exec_type: string
+ +
+
+

流动性方向,T:taker M:maker

+
+
+
+
+ +

fee

+
fee: string
+ +
+
+ +

order_id

+
order_id: string
+ +
+
+ +

order_qty

+
order_qty: string
+ +
+
+ +

price

+
price: string
+ +
+
+ +

side

+
side: string
+ +
+
+

订单方向(1:开多;2:开空;3:平多;4:平空;5:强制平多;6:强制平空;11:协议平多;12:协议平空;13:爆仓平多查询;14:爆仓平空查询

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

trade_id

+
trade_id: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderrequest.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderrequest.html new file mode 100644 index 00000000..eb468f5b --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderrequest.html @@ -0,0 +1,381 @@ + + + + + + BitgetOrderRequest | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetOrderRequest

+
+
+
+
+
+
+
+
+
+

合约委托请求实体 + 请求参数

+
+
+
+
+

Hierarchy

+
    +
  • + Dict<string | number> +
      +
    • + BitgetOrderRequest +
    • +
    +
  • +
+
+
+

Indexable

+
[key: string]: (string | number) | undefined
+
+
+

合约委托请求实体 + 请求参数

+
+
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

Optional client_oid

+
client_oid: undefined | string
+ +
+
+

自定义订单号(不超过50个字符,且不能是特殊字符,如火星字符等)

+
+
+
+
+ +

match_price

+
match_price: number
+ +
+
+

委托价格类型 0:限价还是1:市价

+
+
+
+
+ +

order_type

+
order_type: number
+ +
+
+

委托时效类型 0:普通,1:只做maker;2:全部成交或立即取消;3:立即成交并取消剩余

+
+
+
+
+ +

price

+
price: string
+ +
+
+ +

size

+
size: number
+ +
+
+ +

Optional symbol

+
symbol: undefined | string
+ +
+
+ +

Optional trace_no

+
trace_no: undefined | string
+ +
+
+

跟单号

+
+
+
+
+ +

type

+
type: number
+ +
+
+

委托类型 1:开多 2:开空 3:平多 4:平空

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderresult.html new file mode 100644 index 00000000..2152d205 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetorderresult.html @@ -0,0 +1,314 @@ + + + + + + BitgetOrderResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetOrderResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/placeOrder + 合约委托结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetOrderResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

client_oid

+
client_oid: string
+ +
+
+ +

Optional error_code

+
error_code: undefined | string
+ +
+
+

委托失败错误码

+
+
+
+
+ +

Optional error_message

+
error_message: undefined | string
+ +
+
+

委托失败信息

+
+
+
+
+ +

order_id

+
order_id: string
+ +
+
+

委托成功单号

+
+
+
+
+ +

Optional result

+
result: undefined | false | true
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderinfo.html new file mode 100644 index 00000000..9b01c363 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderinfo.html @@ -0,0 +1,454 @@ + + + + + + BitgetPlanOrderInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPlanOrderInfo

+
+
+
+
+
+
+
+
+
+

计划委托详情

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPlanOrderInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

create_time

+
create_time: string
+ +
+
+ +

create_trade_price

+
create_trade_price: string
+ +
+
+

计划委托时的成交价

+
+
+
+
+ +

delegate_count

+
delegate_count: string
+ +
+
+

委托数量

+
+
+
+
+ +

direction

+
direction: number
+ +
+
+

方向 1开多 2开空 3平多 4平空

+
+
+
+
+ +

direction_desc

+
direction_desc: string
+ +
+
+

方向描述

+
+
+
+
+ +

execute_count

+
execute_count: string
+ +
+
+

执行数量

+
+
+
+
+ +

execute_price

+
execute_price: string
+ +
+
+ +

order_id

+
order_id: string
+ +
+
+ +

order_type

+
order_type: number
+ +
+
+ +

status

+
status: number
+ +
+
+

1未执行状态 2已委托 3执行失败状态 4用户取消状态

+
+
+
+
+ +

status_desc

+
status_desc: string
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

trigger_price

+
trigger_price: string
+ +
+
+ +

update_time

+
update_time: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderpage.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderpage.html new file mode 100644 index 00000000..a2e8cfad --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderpage.html @@ -0,0 +1,262 @@ + + + + + + BitgetPlanOrderPage | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPlanOrderPage

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/currentPlan + 计划委托分页数据

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPlanOrderPage +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

list

+ + +
+
+ +

nextPage

+
nextPage: boolean
+ +
+
+

是否还有下一页

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderrequest.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderrequest.html new file mode 100644 index 00000000..90ce232d --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderrequest.html @@ -0,0 +1,386 @@ + + + + + + BitgetPlanOrderRequest | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPlanOrderRequest

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/plan_order + 计划委托请求实体

+
+
+
+
+

Hierarchy

+
    +
  • + Dict<any> +
      +
    • + BitgetPlanOrderRequest +
    • +
    +
  • +
+
+
+

Indexable

+
[key: string]: any | undefined
+
+
+

/api/swap/v3/order/plan_order + 计划委托请求实体

+
+
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

client_oid

+
client_oid: string
+ +
+
+ +

execute_price

+
execute_price: string
+ +
+
+

执行价格

+
+
+
+
+ +

match_type

+
match_type: string
+ +
+
+

0:限价还是1:市价

+
+
+
+
+ +

side

+
side: string
+ +
+
+

方向 1多仓 2空仓

+
+
+
+
+ +

size

+
size: string
+ +
+
+

委托数量

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

trigger_price

+
trigger_price: string
+ +
+
+

触发价格

+
+
+
+
+ +

type

+
type: string
+ +
+
+

类型 1开仓 2平仓

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderresult.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderresult.html new file mode 100644 index 00000000..cb57ec22 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetplanorderresult.html @@ -0,0 +1,257 @@ + + + + + + BitgetPlanOrderResult | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPlanOrderResult

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/order/plan_order + 计划委托结果

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPlanOrderResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

client_oid

+
client_oid: string
+ +
+
+ +

order_id

+
order_id: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionholdinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionholdinfo.html new file mode 100644 index 00000000..8c7e34a8 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionholdinfo.html @@ -0,0 +1,271 @@ + + + + + + BitgetPositionHoldInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPositionHoldInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/position/holds + 某合约持仓数量

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPositionHoldInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

amount

+
amount: string
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositioninfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositioninfo.html new file mode 100644 index 00000000..edb398c3 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositioninfo.html @@ -0,0 +1,404 @@ + + + + + + BitgetPositionInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPositionInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/position/allPosition + 仓位信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPositionInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

avail_position

+
avail_position: string
+ +
+
+

可平数量

+
+
+
+
+ +

avg_cost

+
avg_cost: string
+ +
+
+

平均开仓价

+
+
+
+
+ +

leverage

+
leverage: string
+ +
+
+ +

liquidation_price

+
liquidation_price: string
+ +
+
+

预估爆仓价

+
+
+
+
+ +

margin

+
margin: string
+ +
+
+

已用保证金

+
+
+
+
+ +

position

+
position: string
+ +
+
+

持仓数量

+
+
+
+
+ +

realized_pnl

+
realized_pnl: string
+ +
+
+

已实现盈亏

+
+
+
+
+ +

side

+
side: string
+ +
+
+

方向 1-多 2-空

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionpage.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionpage.html new file mode 100644 index 00000000..9a10954b --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetpositionpage.html @@ -0,0 +1,256 @@ + + + + + + BitgetPositionPage | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPositionPage

+
+
+
+
+
+
+
+
+
+

获取全部仓位时所用数据

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPositionPage +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

holding

+ + +
+
+ +

margin_mode

+
margin_mode: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetvirtualrecordinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetvirtualrecordinfo.html new file mode 100644 index 00000000..535a60cf --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_authenticatedapi_.bitgetvirtualrecordinfo.html @@ -0,0 +1,518 @@ + + + + + + BitgetVirtualRecordInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetVirtualRecordInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/position/virtualCapital + 财务记录

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetVirtualRecordInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

famount

+
famount: number
+ +
+
+

数量

+
+
+
+
+ +

fbtcfees

+
fbtcfees: string
+ +
+
+

btc费用

+
+
+
+
+ +

fcoinid

+
fcoinid: number
+ +
+
+

虚拟币id

+
+
+
+
+ +

fcreatetime

+
fcreatetime: string
+ +
+
+

创建时间

+
+
+
+
+ +

ffees

+
ffees: string
+ +
+
+

手续费

+
+
+
+
+ +

fid

+
fid: number
+ +
+
+ +

fip

+
fip: string
+ +
+
+ +

fisfromapi

+
fisfromapi: string
+ +
+
+

是否为API提币

+
+
+
+
+ +

frechargeaddress

+
frechargeaddress: string
+ +
+
+

充值地址

+
+
+
+
+ +

fstatus

+
fstatus: number
+ +
+
+

状态(1-等待提现,2-正在处理,3-提现成功,4-用户撤销

+
+
+
+
+ +

ftag

+
ftag: string
+ +
+
+

提现地址tag

+
+
+
+
+ +

ftype

+
ftype: number
+ +
+
+

类型(1充值,2提现)

+
+
+
+
+ +

fuid

+
fuid: number
+ +
+
+ +

funiquenumber

+
funiquenumber: string
+ +
+
+

交易ID

+
+
+
+
+ +

fupdatetime

+
fupdatetime: string
+ +
+
+

更新时间

+
+
+
+
+ +

fwithdrawaddress

+
fwithdrawaddress: string
+ +
+
+

提现地址

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetcontractinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetcontractinfo.html new file mode 100644 index 00000000..13be2f9e --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetcontractinfo.html @@ -0,0 +1,378 @@ + + + + + + BitgetContractInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetContractInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/contracts + 合约基本信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetContractInfo +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

coin

+
coin: string
+ +
+
+

保证金币种

+
+
+
+
+ +

contract_val

+
contract_val: string
+ +
+
+

合约面值

+
+
+
+
+ +

delivery

+
delivery: string[]
+ +
+
+

每日结算时间列表 hh:mm:ss格式

+
+
+
+
+ +

forwardContractFlag

+
forwardContractFlag: boolean
+ +
+
+

是否为正向合约

+
+
+
+
+ +

priceEndStep

+
priceEndStep: number
+ +
+
+

委托价格最小变动量,委托价格必须是(priceEndStep*10^ticker_size)的整数倍。 + 举例:priceEndStep=5,ticker_size:2,委托价格可以是9000.15或10001.90,不可以是8999.13

+
+
+
+
+ +

quote_currency

+
quote_currency: string
+ +
+
+

计价币种

+
+
+
+
+ +

size_increment

+
size_increment: string
+ +
+
+

数量精度 0表示整数 1表示小数点后1位

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+

合约名称

+
+
+
+
+ +

tick_size

+
tick_size: string
+ +
+
+

价格精度 0表示整数 1表示小数点后1位

+
+
+
+
+ +

underlying_index

+
underlying_index: string
+ +
+
+

合约标的币种

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetdepthinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetdepthinfo.html new file mode 100644 index 00000000..438d9a34 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetdepthinfo.html @@ -0,0 +1,225 @@ + + + + + + BitgetDepthInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetDepthInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/depth + 深度信息[价格,数量,委托数量]

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetDepthInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

asks

+
asks: [string, string, number][]
+ +
+
+

卖方深度

+
+
+
+
+ +

bids

+
bids: [string, string, number][]
+ +
+
+

买方深度

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetfundinghistoryinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetfundinghistoryinfo.html new file mode 100644 index 00000000..753b8f45 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetfundinghistoryinfo.html @@ -0,0 +1,239 @@ + + + + + + BitgetFundingHistoryInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetFundingHistoryInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/historical_funding_rate + 历史资金费率

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetFundingHistoryInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

funding_rate

+
funding_rate: string
+ +
+
+

结算时资金费率

+
+
+
+
+ +

funding_time

+
funding_time: string
+ +
+
+

结算时间

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetindexinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetindexinfo.html new file mode 100644 index 00000000..f337d335 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetindexinfo.html @@ -0,0 +1,234 @@ + + + + + + BitgetIndexInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetIndexInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/index + 指数价格信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetIndexInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

index

+
index: string
+ +
+
+

指数价格

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetopeninterestinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetopeninterestinfo.html new file mode 100644 index 00000000..c0a96247 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetopeninterestinfo.html @@ -0,0 +1,248 @@ + + + + + + BitgetOpenInterestInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetOpenInterestInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/open_interest + 平台持仓量信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetOpenInterestInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

amount

+
amount: string
+ +
+
+

总持仓量

+
+
+
+
+ +

forwardContractFlag

+
forwardContractFlag: boolean
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetpricelimitinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetpricelimitinfo.html new file mode 100644 index 00000000..f28a0cc6 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetpricelimitinfo.html @@ -0,0 +1,267 @@ + + + + + + BitgetPriceLimitInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetPriceLimitInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/price_limit + 限价信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetPriceLimitInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

forwardContractFlag

+
forwardContractFlag: boolean
+ +
+
+ +

highest

+
highest: string
+ +
+
+

最高买价

+
+
+
+
+ +

lowest

+
lowest: string
+ +
+
+

最低卖价

+
+
+
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetsystemtime.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetsystemtime.html new file mode 100644 index 00000000..084eda82 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgetsystemtime.html @@ -0,0 +1,244 @@ + + + + + + BitgetSystemTime | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetSystemTime

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/time + 系统时间

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetSystemTime +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

epoch

+
epoch: string
+ +
+
+

UTC时区Unix时间戳的十进制秒数格式

+
+
+
+
+ +

iso

+
iso: string
+ +
+
+

ISO8601标准的时间格式

+
+
+
+
+ +

timestamp

+
timestamp: number
+ +
+
+

服务器的时间戳

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettickerinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettickerinfo.html new file mode 100644 index 00000000..d686c880 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettickerinfo.html @@ -0,0 +1,304 @@ + + + + + + BitgetTickerInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetTickerInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/tickers + ticker基本信息

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetTickerInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

best_ask

+
best_ask: string
+ +
+
+ +

best_bid

+
best_bid: string
+ +
+
+ +

high_24h

+
high_24h: string
+ +
+
+ +

last

+
last: string
+ +
+
+

最新成交价

+
+
+
+
+ +

low_24h

+
low_24h: string
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

volume_24h

+
volume_24h: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettradeinfo.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettradeinfo.html new file mode 100644 index 00000000..9d6c82f7 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_publicapi_.bitgettradeinfo.html @@ -0,0 +1,276 @@ + + + + + + BitgetTradeInfo | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetTradeInfo

+
+
+
+
+
+
+
+
+
+

/api/swap/v3/market/trades + 成交记录数据

+
+
+
+
+

Hierarchy

+
    +
  • + BitgetTradeInfo +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

price

+
price: string
+ +
+
+ +

side

+
side: string
+ +
+
+

成交方向 sell buy

+
+
+
+
+ +

size

+
size: string
+ +
+
+ +

symbol

+
symbol: string
+ +
+
+ +

timestamp

+
timestamp: string
+ +
+
+ +

trade_id

+
trade_id: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/interfaces/_src_lib_util_.bitgetapiheader.html b/bitget-node-sdk-api/docs/interfaces/_src_lib_util_.bitgetapiheader.html new file mode 100644 index 00000000..a75bda50 --- /dev/null +++ b/bitget-node-sdk-api/docs/interfaces/_src_lib_util_.bitgetapiheader.html @@ -0,0 +1,253 @@ + + + + + + BitgetApiHeader | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface BitgetApiHeader

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + BitgetApiHeader +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

ACCESS-KEY

+
ACCESS-KEY: string
+ +
+
+ +

ACCESS-PASSPHRASE

+
ACCESS-PASSPHRASE: string
+ +
+
+ +

ACCESS-SIGN

+
ACCESS-SIGN: string
+ +
+
+ +

ACCESS-TIMESTAMP

+
ACCESS-TIMESTAMP: number | string
+ +
+
+ +

Content-Type

+
Content-Type: string
+ +
+
+ +

Cookie

+
Cookie: string
+ +
+
+ +

locale

+
locale: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface
  • +
  • Property
  • +
+
    +
  • Function
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/modules/_src_index_.html b/bitget-node-sdk-api/docs/modules/_src_index_.html new file mode 100644 index 00000000..0bb9d361 --- /dev/null +++ b/bitget-node-sdk-api/docs/modules/_src_index_.html @@ -0,0 +1,107 @@ + + + + + + "src/index" | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "src/index"

+
+
+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/modules/_src_lib_authenticatedapi_.html b/bitget-node-sdk-api/docs/modules/_src_lib_authenticatedapi_.html new file mode 100644 index 00000000..bd1f16a5 --- /dev/null +++ b/bitget-node-sdk-api/docs/modules/_src_lib_authenticatedapi_.html @@ -0,0 +1,229 @@ + + + + + + "src/lib/authenticatedApi" | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "src/lib/authenticatedApi"

+
+
+
+ +
+
+

Legend

+
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/modules/_src_lib_publicapi_.html b/bitget-node-sdk-api/docs/modules/_src_lib_publicapi_.html new file mode 100644 index 00000000..0a0f8dfa --- /dev/null +++ b/bitget-node-sdk-api/docs/modules/_src_lib_publicapi_.html @@ -0,0 +1,173 @@ + + + + + + "src/lib/publicApi" | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "src/lib/publicApi"

+
+
+
+ +
+
+

Legend

+
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/docs/modules/_src_lib_util_.html b/bitget-node-sdk-api/docs/modules/_src_lib_util_.html new file mode 100644 index 00000000..d1c4ac6c --- /dev/null +++ b/bitget-node-sdk-api/docs/modules/_src_lib_util_.html @@ -0,0 +1,180 @@ + + + + + + "src/lib/util" | bitget-node-sdk-api + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "src/lib/util"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+

Functions

+ +
+
+
+
+
+

Functions

+
+ +

getSigner

+
    +
  • getSigner(apiKey?: string, secretKey?: string, passphrase?: string): (Anonymous function)
  • +
+
    +
  • + +
    +
    +

    获取签名器

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value apiKey: string = ""
      +
    • +
    • +
      Default value secretKey: string = ""
      +
    • +
    • +
      Default value passphrase: string = ""
      +
      +
      +
    • +
    +

    Returns (Anonymous function)

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Function
  • +
+
    +
  • Interface
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/contant.ts b/bitget-node-sdk-api/src/lib/contant.ts new file mode 100644 index 00000000..bb1cb99b --- /dev/null +++ b/bitget-node-sdk-api/src/lib/contant.ts @@ -0,0 +1,4 @@ +export let BIZ_CONSTANT = { + RSA:'RSA', + SHA256:'SHA256' +} diff --git a/bitget-php-sdk-api/src/Constant.php b/bitget-php-sdk-api/src/Constant.php new file mode 100644 index 00000000..c388efcd --- /dev/null +++ b/bitget-php-sdk-api/src/Constant.php @@ -0,0 +1,11 @@ +public_key = $pub_key; + $pub_id = openssl_pkey_get_public($this->public_key); + $this->key_len = openssl_pkey_get_details($pub_id)['bits']; + } + if ($pri_key) { + $this->private_key = $pri_key; + $pri_id = openssl_pkey_get_private($this->private_key); + print_r($pri_id); + +// print_r("=1=".$pri_key."\n"); +// print_r("=2=".$this->private_key."\n"); +// print_r("=3=".$pri_id."\n"); + +// $this->key_len = openssl_pkey_get_details($pri_id)['bits']; + } + } + + /* + * 创建密钥对 + */ + public static function createKeys($key_size = 1024) + { + $config = array( + "private_key_bits" => $key_size, + "private_key_type" => self::RSA_ALGORITHM_KEY_TYPE, + ); + $res = openssl_pkey_new($config); + openssl_pkey_export($res, $private_key); + $public_key_detail = openssl_pkey_get_details($res); + $public_key = $public_key_detail["key"]; + + return array( + "public_key" => $public_key, + "private_key" => $private_key, + ); + } + + /* + * 公钥加密 + */ + public function publicEncrypt($data) + { + $encrypted = ''; + $part_len = $this->key_len / 8 - 11; + $parts = str_split($data, $part_len); + + foreach ($parts as $part) { + $encrypted_temp = ''; + openssl_public_encrypt($part, $encrypted_temp, $this->public_key); + $encrypted .= $encrypted_temp; + } + + return base64_encode($encrypted); + } + + /* + * 私钥解密 + */ + public function privateDecrypt($encrypted) + { + $decrypted = ""; + $part_len = $this->key_len / 8; + //url 中的get传值默认会吧+号过滤成' ',替换回来就好了 + str_replace('% ', '+', $encrypted); + echo $encrypted; + $base64_decoded = base64_decode($encrypted); + $parts = str_split($base64_decoded, $part_len); + foreach ($parts as $part) { + $decrypted_temp = ''; + openssl_private_decrypt($part, $decrypted_temp, $this->private_key); + $decrypted .= $decrypted_temp; + } + return $decrypted; + } + + /* + * 私钥加密 + */ + public function privateEncrypt($data) + { + $encrypted = ''; + $part_len = $this->key_len / 8 - 11; + $parts = str_split($data, $part_len); + + foreach ($parts as $part) { + $encrypted_temp = ''; + openssl_private_encrypt($part, $encrypted_temp, $this->private_key); + $encrypted .= $encrypted_temp; + } + return base64_encode($encrypted); + } + + /* + * 公钥解密 + */ + public function publicDecrypt($encrypted) + { + $decrypted = ""; + $part_len = $this->key_len / 8; + $base64_decoded = base64_decode($encrypted); + $parts = str_split($base64_decoded, $part_len); + + foreach ($parts as $part) { + $decrypted_temp = ''; + openssl_public_decrypt($part, $decrypted_temp, $this->public_key); + $decrypted .= $decrypted_temp; + } + return $decrypted; + } + + /* + * 数据加签 + */ + public function sign($data) + { +// print_r("hehe ".$this->private_key); + openssl_sign($data, $sign, $this->private_key, self::RSA_ALGORITHM_SIGN); + return base64_encode($sign); + } + + /* + * 数据签名验证 + */ + public function verify($data, $sign) + { + $pub_id = openssl_get_publickey($this->public_key); + $res = openssl_verify($data, base64_decode($sign), $pub_id, self::RSA_ALGORITHM_SIGN); + return $res; + } + +} From 06c9cc944d69fec971f6dfe93d5d562c8b38d6e5 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Fri, 24 Nov 2023 19:07:53 +0800 Subject: [PATCH 15/25] node --- bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts | 16 ++++++++-------- bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts | 6 +++--- bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts | 14 +++++++------- bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts | 16 ++++++++-------- bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts | 6 +++--- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts b/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts index 88dc367e..c427bb37 100644 --- a/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts +++ b/bitget-node-sdk-api/src/lib/v1/MixOrderApi.ts @@ -28,19 +28,19 @@ export class MixOrderApi extends BaseApi { ordersPending(qsOrBody: object) { const url = '/api/mix/v1/order/current'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } ordersHistory(qsOrBody: object) { const url = '/api/mix/v1/order/history'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } fills(qsOrBody: object) { const url = '/api/mix/v1/order/fills'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -75,14 +75,14 @@ export class MixOrderApi extends BaseApi { } traderCurrentOrders(qsOrBody: object) { - const url = '/apiapi/mix/v1/trace/currentTrack'; - const headers = this.signer('POST', url, qsOrBody) + const url = '/api/mix/v1/trace/currentTrack'; + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } traderHistoryTrack(qsOrBody: object) { const url = '/api/mix/v1/trace/historyTrack'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -94,13 +94,13 @@ export class MixOrderApi extends BaseApi { followerQueryCurrentOrders(qsOrBody: object) { const url = '/api/mix/v1/trace/followerOrder'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } followerQueryHistoryOrders(qsOrBody: object) { const url = '/api/mix/v1/trace/followerHistoryOrders'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } } \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts b/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts index 13e3bd3a..520e6245 100644 --- a/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts +++ b/bitget-node-sdk-api/src/lib/v1/SpotWalletApi.ts @@ -10,7 +10,7 @@ export class SpotWalletApi extends BaseApi { depositAddress(qsOrBody: object) { const url = '/api/spot/v1/wallet/deposit-address'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -22,13 +22,13 @@ export class SpotWalletApi extends BaseApi { withdrawalRecords(qsOrBody: object) { const url = '/api/spot/v1/wallet/withdrawal-list'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } depositRecords(qsOrBody: object) { const url = '/api/spot/v1/wallet/deposit-list'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } } \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts b/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts index 619e61e3..ac55b859 100644 --- a/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/MixOrderApi.ts @@ -28,19 +28,19 @@ export class MixOrderApi extends BaseApi { ordersPending(qsOrBody: object) { const url = '/api/v2/mix/order/orders-pending'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } ordersHistory(qsOrBody: object) { const url = '/api/v2/mix/order/orders-history'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } fills(qsOrBody: object) { const url = '/api/v2/mix/order/fills'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -76,13 +76,13 @@ export class MixOrderApi extends BaseApi { traderOrderCurrentTrack(qsOrBody: object) { const url = '/api/v2/copy/mix-trader/order-current-track'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } traderOrderHistoryTrack(qsOrBody: object) { const url = '/api/v2/copy/mix-trader/order-history-track'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -94,13 +94,13 @@ export class MixOrderApi extends BaseApi { followerQueryCurrentOrders(qsOrBody: object) { const url = '/api/v2/copy/mix-follower/query-current-orders'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } followerQueryHistoryOrders(qsOrBody: object) { const url = '/api/v2/copy/mix-follower/query-history-orders'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } } \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts index 721b65c2..d8b0c5a8 100644 --- a/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/SpotOrderApi.ts @@ -28,25 +28,25 @@ export class SpotOrderApi extends BaseApi { orderInfo(qsOrBody: object) { const url = '/api/v2/spot/trade/orderInfo'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } unfilledOrders(qsOrBody: object) { const url = '/api/v2/spot/trade/unfilled-orders'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } historyOrders(qsOrBody: object) { const url = '/api/v2/spot/trade/history-orders'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } fills(qsOrBody: object) { const url = '/api/v2/spot/trade/fills'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -64,13 +64,13 @@ export class SpotOrderApi extends BaseApi { currentPlanOrder(qsOrBody: object) { const url = '/api/v2/spot/trade/current-plan-order'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } historyPlanOrder(qsOrBody: object) { const url = '/api/v2/spot/trade/history-plan-order'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -82,13 +82,13 @@ export class SpotOrderApi extends BaseApi { traderOrderCurrentTrack(qsOrBody: object) { const url = '/api/v2/copy/spot-trader/order-current-track'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } traderOrderHistoryTrack(qsOrBody: object) { const url = '/api/v2/copy/spot-trader/order-history-track'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } } \ No newline at end of file diff --git a/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts b/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts index 5d9e8c54..12047fe5 100644 --- a/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts +++ b/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts @@ -10,7 +10,7 @@ export class SpotWalletApi extends BaseApi { depositAddress(qsOrBody: object) { const url = '/api/v2/spot/wallet/deposit-address'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } @@ -22,13 +22,13 @@ export class SpotWalletApi extends BaseApi { withdrawalRecords(qsOrBody: object) { const url = '/api/v2/spot/wallet/withdrawal-records'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } depositRecords(qsOrBody: object) { const url = '/api/v2/spot/wallet/deposit-records'; - const headers = this.signer('POST', url, qsOrBody) + const headers = this.signer('GET', url, qsOrBody) return this.axiosInstance.get(url, {headers, params: qsOrBody}) } } \ No newline at end of file From 1023da6d2fbce7419d53bfee2144adf633e4a39a Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Mon, 4 Dec 2023 09:47:49 +0800 Subject: [PATCH 16/25] py readme --- bitget-python-sdk-api/README.md | 2 +- bitget-python-sdk-api/README_EN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitget-python-sdk-api/README.md b/bitget-python-sdk-api/README.md index 5a8a4063..3c8c2d39 100644 --- a/bitget-python-sdk-api/README.md +++ b/bitget-python-sdk-api/README.md @@ -12,7 +12,7 @@ 1.2 安装所需库 ```python pip install requests -pip install websockets +pip install websocket-client ``` #### 第二步:配置个人信息 diff --git a/bitget-python-sdk-api/README_EN.md b/bitget-python-sdk-api/README_EN.md index 9ed9e1da..88972f3d 100644 --- a/bitget-python-sdk-api/README_EN.md +++ b/bitget-python-sdk-api/README_EN.md @@ -12,7 +12,7 @@ 1.2 Install required libraries ```python pip install requests -pip install websockets +pip install websocket-client ``` #### Second:Configure Apikey information From 250464c74561e3320c7aa35538e248d4a5344cdf Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Sat, 16 Dec 2023 18:18:24 +0800 Subject: [PATCH 17/25] example ws --- bitget-python-sdk-api/example_ws_contract.py | 43 +++----------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/bitget-python-sdk-api/example_ws_contract.py b/bitget-python-sdk-api/example_ws_contract.py index bc03c988..2aa782d3 100644 --- a/bitget-python-sdk-api/example_ws_contract.py +++ b/bitget-python-sdk-api/example_ws_contract.py @@ -1,9 +1,6 @@ #!/usr/bin/python -import bitget.ws.contract.public_channel as public_ws -import bitget.ws.contract.private_channel as private_ws -import bitget.ws.utils as ws_url from bitget.ws.bitget_ws_client import BitgetWsClient, SubscribeReq -from bitget.ws.utils.ws_url import CONTRACT_WS_URL +from bitget import consts as c def handle(message): @@ -24,44 +21,16 @@ def handel_btcusd(message): passphrase = "" # 口令 symbol = 'btcusd' - client = BitgetWsClient(CONTRACT_WS_URL, need_login=True) \ + client = BitgetWsClient(c.CONTRACT_WS_URL, need_login=True) \ .api_key(api_key) \ .api_secret_key(secret_key) \ .passphrase(passphrase) \ .error_listener(handel_error) \ .build() - channles = [SubscribeReq("SP", "candle1W", "BTCUSDT")] - client.subscribe(channles,handle) + channles = [SubscribeReq("mc", "ticker", "BTCUSD"), SubscribeReq("SP", "candle1W", "BTCUSDT")] + client.subscribe(channles, handle) - # channles = [SubscribeReq("mc", "ticker", "ETHUSD")] - # client.subscribe(channles, handel_btcusd) + channles = [SubscribeReq("mc", "ticker", "ETHUSD")] + client.subscribe(channles, handel_btcusd) -# channle2 = ["swap/ticker:btcusd"]; - # client.subscribe(channle,handel_btcusd) - # publicWs = public_ws.PublicChannel(ws_url.CONTRACT_WS_URL, api_key, secret_key, passphrase) - # - # publicWs.ticker(symbol) - - # publicWs.candle(symbol,ws_url.SWAP_CANDLES_1M ) - - # publicWs.trade(symbol) - - # publicWs.depth(symbol) - - # publicWs.mark_price(symbol) - - # publicWs.funding_rate(symbol) - - # publicWs.price_range(symbol) - - # 私有订阅 - # privateWs = private_ws.PrivateChannel(ws_url.CONTRACT_WS_URL, api_key, secret_key, passphrase) - - # privateWs.login() - - # privateWs.account(symbol) - - # privateWs.position(symbol) - - # privateWs.order(symbol) From e624db7b3d83cc1b06df6dc6e09228403ff7e4f0 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Mon, 18 Dec 2023 15:47:09 +0800 Subject: [PATCH 18/25] URL sort --- bitget-golang-sdk-api/config/config.go | 6 +- .../internal/common/bitgetrestclient.go | 1 + bitget-golang-sdk-api/internal/utils.go | 35 ++++++++-- .../test/bitgetwsclient_test.go | 26 ++++---- .../com/bitget/openapi/BitgetApiFacade.java | 28 ++++---- .../openapi/common/client/ApiClient.java | 64 ++++++++++++++++++- bitget-node-sdk-api/__test__/api.spec.ts | 14 ++-- bitget-node-sdk-api/package.json | 8 +-- bitget-node-sdk-api/src/lib/config.ts | 2 +- bitget-node-sdk-api/src/lib/util.ts | 23 +++++++ .../src/internal/BitgetApiClient.php | 41 ++++++++---- bitget-php-sdk-api/test/api/MixOrderTest.php | 1 - bitget-python-sdk-api/bitget/utils.py | 17 +++-- 13 files changed, 199 insertions(+), 67 deletions(-) diff --git a/bitget-golang-sdk-api/config/config.go b/bitget-golang-sdk-api/config/config.go index 54925929..8aa5eab7 100644 --- a/bitget-golang-sdk-api/config/config.go +++ b/bitget-golang-sdk-api/config/config.go @@ -6,9 +6,9 @@ const ( BaseUrl = "https://api.bitget.com" WsUrl = "wss://ws.bitget.com/mix/v1/stream" - ApiKey = "bg_c4d7c935e2dc2fda95da7df1abab0254" - SecretKey = "bd58429ba2d081cc7c9370df52ad598acf9065c5751f1bae73212d78443e5e1f" - PASSPHRASE = "1r1b6uX6PQ9tbKwb" + ApiKey = "" + SecretKey = "" + PASSPHRASE = "" TimeoutSecond = 30 SignType = constants.SHA256 ) diff --git a/bitget-golang-sdk-api/internal/common/bitgetrestclient.go b/bitget-golang-sdk-api/internal/common/bitgetrestclient.go index c6eca1e3..5797e9e2 100644 --- a/bitget-golang-sdk-api/internal/common/bitgetrestclient.go +++ b/bitget-golang-sdk-api/internal/common/bitgetrestclient.go @@ -68,6 +68,7 @@ func (p *BitgetRestClient) DoPost(uri string, params string) (string, error) { func (p *BitgetRestClient) DoGet(uri string, params map[string]string) (string, error) { timesStamp := internal.TimesStamp() body := internal.BuildGetParams(params) + //fmt.Println(body) sign := p.Signer.Sign(constants.GET, uri, body, timesStamp) diff --git a/bitget-golang-sdk-api/internal/utils.go b/bitget-golang-sdk-api/internal/utils.go index 7c05c7f8..fc650206 100644 --- a/bitget-golang-sdk-api/internal/utils.go +++ b/bitget-golang-sdk-api/internal/utils.go @@ -6,7 +6,9 @@ import ( "errors" "net/http" "net/url" + "sort" "strconv" + "strings" "time" ) @@ -44,13 +46,34 @@ func BuildJsonParams(params map[string]string) (string, error) { } func BuildGetParams(params map[string]string) string { - urlParams := url.Values{} - if params != nil && len(params) > 0 { - for k := range params { - urlParams.Add(k, params[k]) - } + //urlParams := url.Values{} + //if params != nil && len(params) > 0 { + // for k := range params { + // urlParams.Add(k, params[k]) + // } + //} + //return "?" + urlParams.Encode() + if len(params) == 0 { + return "" } - return "?" + urlParams.Encode() + return "?" + SortParams(params) +} + +func SortParams(params map[string]string) string { + keys := make([]string, len(params)) + i := 0 + for k, _ := range params { + keys[i] = k + i++ + } + sort.Strings(keys) + sorted := make([]string, len(params)) + i = 0 + for _, k := range keys { + sorted[i] = k + "=" + url.QueryEscape(params[k]) + i++ + } + return strings.Join(sorted, "&") } func JSONToMap(str string) map[string]interface{} { diff --git a/bitget-golang-sdk-api/test/bitgetwsclient_test.go b/bitget-golang-sdk-api/test/bitgetwsclient_test.go index a0631211..ebb2b03c 100644 --- a/bitget-golang-sdk-api/test/bitgetwsclient_test.go +++ b/bitget-golang-sdk-api/test/bitgetwsclient_test.go @@ -17,23 +17,23 @@ func TestBitgetWsClient_New(t *testing.T) { var channelsDef []model.SubscribeReq subReqDef1 := model.SubscribeReq{ - InstType: "MC", - Channel: "ticker", - InstId: "BTCUSDT", + InstType: "UMCBL", + Channel: "account", + InstId: "default", } channelsDef = append(channelsDef, subReqDef1) client.SubscribeDef(channelsDef) - //var channels []model.SubscribeReq - //subReq1 := model.SubscribeReq{ - // InstType: "UMCBL", - // Channel: "account", - // InstId: "default", - //} - //channels = append(channels, subReq1) - //client.Subscribe(channels, func(message string) { - // fmt.Println("appoint:" + message) - //}) + var channels []model.SubscribeReq + subReq1 := model.SubscribeReq{ + InstType: "UMCBL", + Channel: "account", + InstId: "default", + } + channels = append(channels, subReq1) + client.Subscribe(channels, func(message string) { + fmt.Println("appoint:" + message) + }) client.Connect() } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java index 193e4a5b..a239032d 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/BitgetApiFacade.java @@ -118,50 +118,50 @@ public BitgetService request() { /** * market service */ - public MixMarketService mixMarket() { - return new MixMarketService(apiClient); + public com.bitget.openapi.service.v2.mix.MixMarketService mixMarket() { + return new com.bitget.openapi.service.v2.mix.MixMarketService(apiClient); } /** * account service */ - public MixAccountService mixAccount() { - return new MixAccountService(apiClient); + public com.bitget.openapi.service.v2.mix.MixAccountService mixAccount() { + return new com.bitget.openapi.service.v2.mix.MixAccountService(apiClient); } /** * order service */ - public MixOrderService mixOrder() { - return new MixOrderService(apiClient); + public com.bitget.openapi.service.v2.mix.MixOrderService mixOrder() { + return new com.bitget.openapi.service.v2.mix.MixOrderService(apiClient); } /** * account service */ - public SpotAccountService spotAccount() { - return new SpotAccountService(apiClient); + public com.bitget.openapi.service.v2.spot.SpotAccountService spotAccount() { + return new com.bitget.openapi.service.v2.spot.SpotAccountService(apiClient); } /** * market service */ - public SpotMarketService spotMarket() { - return new SpotMarketService(apiClient); + public com.bitget.openapi.service.v2.spot.SpotMarketService spotMarket() { + return new com.bitget.openapi.service.v2.spot.SpotMarketService(apiClient); } /** * order service */ - public SpotOrderService spotOrder() { - return new SpotOrderService(apiClient); + public com.bitget.openapi.service.v2.spot.SpotOrderService spotOrder() { + return new com.bitget.openapi.service.v2.spot.SpotOrderService(apiClient); } /** * wallet service */ - public SpotWalletService spotWallet() { - return new SpotWalletService(apiClient); + public com.bitget.openapi.service.v2.spot.SpotWalletService spotWallet() { + return new com.bitget.openapi.service.v2.spot.SpotWalletService(apiClient); } } } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java index 88c416af..85684dca 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java @@ -9,10 +9,16 @@ import com.bitget.openapi.dto.response.ResponseResult; import okhttp3.*; import okio.Buffer; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Set; +import java.util.TreeMap; import java.util.concurrent.TimeUnit; /** @@ -66,18 +72,26 @@ public Response intercept(Chain chain) { Request original = chain.request(); String timestamp = String.valueOf(System.currentTimeMillis()); String contentType = "application/json"; + String sortedQuery = getSortedQuery(original); // original.url().encodedQuery(); + String url = parseToString(original.url().scheme()) + + "://" + + parseToString(original.url().host()) + + parseToString(original.url().url().getPath()); + if (StringUtils.isNotBlank(sortedQuery)) { + url = url + "?" + sortedQuery; + } try { String sign = SignatureUtils.generate(timestamp, original.method(), original.url().url().getPath(), - original.url().encodedQuery(), + sortedQuery, // original.url().encodedQuery(), original.body() == null ? "" : bodyToString(original), clientParameter.getSecretKey()); if (SignTypeEnum.RSA == clientParameter.getSignType()) { sign = SignatureUtils.restGenerateRsaSignature(timestamp, original.method(), original.url().url().getPath(), - original.url().encodedQuery(), + sortedQuery, // original.url().encodedQuery(), original.body() == null ? "" : bodyToString(original), clientParameter.getSecretKey()); } @@ -90,7 +104,8 @@ public Response intercept(Chain chain) { .addHeader(HttpHeader.CONTENT_TYPE, contentType) .addHeader(HttpHeader.COOKIE, String.format(localFormat, clientParameter.getLocale())) .addHeader(HttpHeader.LOCALE, clientParameter.getLocale()) - .addHeader(HttpHeader.ACCESS_TIMESTAMP, timestamp); + .addHeader(HttpHeader.ACCESS_TIMESTAMP, timestamp) + .url(url); Request request = requestBuilder.build(); return chain.proceed(request); @@ -109,6 +124,49 @@ private String bodyToString(Request request) { throw new RuntimeException(e); } } + + private String parseToString(String value) { + if (StringUtils.isBlank(value)) { + return ""; + } + return value; + } + + private String getSortedQuery(Request original) { + if (CollectionUtils.isEmpty(original.url().queryParameterNames())) { + return ""; + } + + Set keys = original.url().queryParameterNames(); + TreeMap params = new TreeMap<>(); + for (String key : keys) { + if (StringUtils.isBlank(key)) { + continue; + } + + params.put(key, original.url().queryParameter(key)); + } + if (params.size() == 0) { + return ""; + } + + return composeParams(params); + } + + private String composeParams(TreeMap params) { + StringBuffer sb = new StringBuffer(); + params.forEach((s, o) -> { + try { + sb.append(s).append("=").append(URLEncoder.encode(String.valueOf(o), "UTF-8")).append("&"); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + }); + if (sb.length() > 0) { + sb.deleteCharAt(sb.length() - 1); + } + return sb.toString(); + } } /** diff --git a/bitget-node-sdk-api/__test__/api.spec.ts b/bitget-node-sdk-api/__test__/api.spec.ts index 77f9059e..c91f60b7 100644 --- a/bitget-node-sdk-api/__test__/api.spec.ts +++ b/bitget-node-sdk-api/__test__/api.spec.ts @@ -7,7 +7,6 @@ import {MixOrderApi} from '../src/lib/v2/MixOrderApi'; const apiKey = ''; const secretKey = ""; const passphrase = ''; - describe('ApiTest', () => { const mixOrderApi = new BitgetResetApi.MixOrderApi(apiKey, secretKey, passphrase); const mixOrderV2Api = new MixOrderApi(apiKey, secretKey, passphrase); @@ -44,17 +43,24 @@ describe('ApiTest', () => { }) test('send get request directly If the interface is not defined in the sdk', () => { - const qsOrBody = {'symbol': 'btcusdt_spbl'}; + const qsOrBody = {'symbol': 'btcusdt_spbl','b':'b','a':'a'}; return bitgetApi.get("/api/spot/v1/market/depth", qsOrBody).then((data) => { Console.info(toJsonString(data)); }); }) - test('send get request directly If the interface is not defined in the sdk', () => { - const qsOrBody = {'productType': 'umcbl'}; + test('send get request directly If the interface is not defined in the sdk need auth', () => { + const qsOrBody = {'productType': 'umcbl','b':'b','a':'a'}; return bitgetApi.get("/api/mix/v1/account/accounts", qsOrBody).then((data) => { Console.info(toJsonString(data)); }); }) + + test('send get request directly If the interface is not defined in the sdk need auth spot', () => { + const qsOrBody = {}; + return bitgetApi.get("/api/spot/v1/account/getInfo", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) }); diff --git a/bitget-node-sdk-api/package.json b/bitget-node-sdk-api/package.json index 51b2da07..2bbc4946 100644 --- a/bitget-node-sdk-api/package.json +++ b/bitget-node-sdk-api/package.json @@ -13,11 +13,12 @@ }, "dependencies": { "axios": "^0.19.2", + "crc-32": "^1.2.0", "crypto": "^1.0.1", + "node-rsa": "^1.1.1", + "pako": "^1.0.8", "querystring": "^0.2.0", - "ws": "^6.1.4", - "crc-32": "^1.2.0", - "pako": "^1.0.8" + "ws": "^6.1.4" }, "devDependencies": { "@types/axios": "^0.14.0", @@ -37,7 +38,6 @@ "pre-commit": "npm run lint" } }, - "author": "bitget openapi", "license": "ISC" } diff --git a/bitget-node-sdk-api/src/lib/config.ts b/bitget-node-sdk-api/src/lib/config.ts index 3b1955bf..a93cfe50 100644 --- a/bitget-node-sdk-api/src/lib/config.ts +++ b/bitget-node-sdk-api/src/lib/config.ts @@ -3,5 +3,5 @@ import {BIZ_CONSTANT} from './contant'; export let API_CONFIG = { API_URL: 'https://api.bitget.com', WS_URL: 'wss://ws.bitget.com/mix/v1/stream', - SIGN_TYPE : BIZ_CONSTANT.RSA + SIGN_TYPE : BIZ_CONSTANT.SHA256 } diff --git a/bitget-node-sdk-api/src/lib/util.ts b/bitget-node-sdk-api/src/lib/util.ts index e0540c55..bc4698f1 100644 --- a/bitget-node-sdk-api/src/lib/util.ts +++ b/bitget-node-sdk-api/src/lib/util.ts @@ -56,6 +56,12 @@ export default function getSigner( */ export function encrypt(httpMethod: string, url: string, qsOrBody: NodeJS.Dict | null, timestamp: number,secretKey:string) { httpMethod = httpMethod.toUpperCase() + if (qsOrBody && httpMethod === 'GET') { + qsOrBody = sortByKey(qsOrBody); + } + if (qsOrBody && Object.keys(qsOrBody).length === 0) { + qsOrBody = null; + } const qsOrBodyStr = qsOrBody ? httpMethod === 'GET' ? '?' + stringify(qsOrBody) : toJsonString(qsOrBody) : '' const preHash = String(timestamp) + httpMethod + url + qsOrBodyStr @@ -94,4 +100,21 @@ export function encryptRSA(httpMethod: string, url: string, qsOrBody: NodeJS.Dic const priKey = new NodeRSA(secretKey) const sign = priKey.sign(preHash, 'base64', 'UTF-8') return sign +} + +export function sortByKey(dict:NodeJS.Dict) { + const sorted = []; + for(const key of Object.keys(dict)) { + sorted[sorted.length] = key; + } + sorted.sort(); + + const tempDict:any = {}; + // for(let i = 0; i < sorted.length; i++) { + // tempDict[sorted[i]] = dict[sorted[i]]; + // } + for(const item of sorted) { + tempDict[item] = dict[item]; + } + return tempDict; } \ No newline at end of file diff --git a/bitget-php-sdk-api/src/internal/BitgetApiClient.php b/bitget-php-sdk-api/src/internal/BitgetApiClient.php index 3f416aa6..b38ce420 100644 --- a/bitget-php-sdk-api/src/internal/BitgetApiClient.php +++ b/bitget-php-sdk-api/src/internal/BitgetApiClient.php @@ -14,6 +14,7 @@ class BitgetApiClient extends Config public function doGet($url, $body) { $url = $url . self::buildGetParams($body); +// print_r($url . " ======= url ======\n"); $requestUrl = self::restApiUrl . $url; $headerArray = $this->getHead(self::GET, $url, null); $ch = curl_init(); @@ -74,21 +75,35 @@ function buildGetParams($para) } - $x = 0; - foreach ($para as $key => $value) { - if ($value == "" || $value == null) { - continue; - } +// $x = 0; +// foreach ($para as $key => $value) { +// if ($value == "" || $value == null) { +// continue; +// } +// +// $param = $key . "=" . $value; +// if ($x == 0) { +// $arg = "?" . $arg . $param; +// } else { +// $arg = $arg . "&" . $param; +// } +// $x = $x + 1; +// } + + $arg = self::sort_data($para); + if ($arg == null || $arg == "") { + return ""; + } + return "?".$arg; + } - $param = $key . "=" . $value; - if ($x == 0) { - $arg = "?" . $arg . $param; - } else { - $arg = $arg . "&" . $param; - } - $x = $x + 1; + function sort_data($data){ + ksort($data); + $result = []; + foreach ($data as $key => $val) { + array_push($result, $key."=".urlencode($val)); } - return $arg; + return join("&", $result); } } \ No newline at end of file diff --git a/bitget-php-sdk-api/test/api/MixOrderTest.php b/bitget-php-sdk-api/test/api/MixOrderTest.php index da2bdc53..91d09d58 100644 --- a/bitget-php-sdk-api/test/api/MixOrderTest.php +++ b/bitget-php-sdk-api/test/api/MixOrderTest.php @@ -3,7 +3,6 @@ namespace test\api; - use bitget\api\BitgetApi; use bitget\api\v1\MixOrderApi; use bitget\internal\BitgetApiClient; diff --git a/bitget-python-sdk-api/bitget/utils.py b/bitget-python-sdk-api/bitget/utils.py index 00b5a43d..df2d6534 100644 --- a/bitget-python-sdk-api/bitget/utils.py +++ b/bitget-python-sdk-api/bitget/utils.py @@ -39,11 +39,18 @@ def get_header(api_key, sign, timestamp, passphrase): def parse_params_to_str(params): - url = '?' - for key, value in params.items(): - url = url + str(key) + '=' + str(value) + '&' - - return url[0:-1] + params = [(key, val) for key, val in params.items()] + params.sort(key=lambda x: x[0]) + from urllib.parse import urlencode + url = '?' +urlencode(params); + if url == '?': + return '' + return url + # url = '?' + # for key, value in params.items(): + # url = url + str(key) + '=' + str(value) + '&' + # + # return url[0:-1] def get_timestamp(): From 09179123a62cf2a63ea1cfbb289b85e3a40018f8 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Mon, 25 Dec 2023 09:50:32 +0800 Subject: [PATCH 19/25] java sdk update --- .../com/bitget/openapi/api/v1/MixOrderApi.java | 4 ++-- .../com/bitget/openapi/api/v1/SpotAccountApi.java | 3 ++- .../com/bitget/openapi/api/v1/SpotWalletApi.java | 5 +++-- .../com/bitget/openapi/api/v2/MixOrderApi.java | 4 ++-- .../com/bitget/openapi/api/v2/SpotOrderApi.java | 15 ++++++++------- .../com/bitget/openapi/api/v2/SpotWalletApi.java | 5 +++-- 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java index 70b89948..3c3ee3b3 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/MixOrderApi.java @@ -47,7 +47,7 @@ public interface MixOrderApi { // trader @POST("/api/mix/v1/trace/closeTrackOrder") - Call traderCloseOrder(@QueryMap Map paramMap); + Call traderCloseOrder(@Body Map paramMap); @GET("/api/mix/v1/trace/currentTrack") Call traderCurrentOrders(@QueryMap Map paramMap); @@ -56,7 +56,7 @@ public interface MixOrderApi { Call traderHistoryTrack(@QueryMap Map paramMap); @POST("/api/mix/v1/trace/followerCloseByTrackingNo") - Call followerCloseByTrackingNo(@QueryMap Map paramMap); + Call followerCloseByTrackingNo(@Body Map paramMap); @GET("/api/mix/v1/trace/followerOrder") Call followerOrder(@QueryMap Map paramMap); diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java index adb1669a..9f3d46ec 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotAccountApi.java @@ -2,6 +2,7 @@ import com.bitget.openapi.dto.response.ResponseResult; import retrofit2.Call; +import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.QueryMap; @@ -17,7 +18,7 @@ public interface SpotAccountApi { Call assetsLite(@QueryMap Map paramMap); @POST("/api/spot/v1/account/bills") - Call bills(@QueryMap Map paramMap); + Call bills(@Body Map paramMap); @GET("/api/spot/v1/account/transferRecords") Call transferRecords(@QueryMap Map paramMap); diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java index 2f314ee3..2fc13e91 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v1/SpotWalletApi.java @@ -2,6 +2,7 @@ import com.bitget.openapi.dto.response.ResponseResult; import retrofit2.Call; +import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.QueryMap; @@ -11,13 +12,13 @@ public interface SpotWalletApi { @POST("/api/spot/v1/wallet/transfer") - Call transfer(@QueryMap Map paramMap); + Call transfer(@Body Map paramMap); @GET("/api/spot/v1/wallet/deposit-address") Call depositAddress(@QueryMap Map paramMap); @POST("/api/spot/v1/wallet/withdrawal") - Call withdrawal(@QueryMap Map paramMap); + Call withdrawal(@Body Map paramMap); @GET("/api/spot/v1/wallet/withdrawal-list") Call withdrawalList(@QueryMap Map paramMap); diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java index 6edbba3f..5eebb7d6 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/MixOrderApi.java @@ -50,7 +50,7 @@ public interface MixOrderApi { // trader @POST("/api/v2/copy/mix-trader/order-close-positions") - Call traderOrderClosePositions(@QueryMap Map paramMap); + Call traderOrderClosePositions(@Body Map paramMap); @GET("/api/v2/copy/mix-trader/order-current-track") Call traderOrderCurrentTrack(@QueryMap Map paramMap); @@ -59,7 +59,7 @@ public interface MixOrderApi { Call traderOrderHistoryTrack(@QueryMap Map paramMap); @POST("/api/v2/copy/mix-follower/close-positions") - Call followerClosePositions(@QueryMap Map paramMap); + Call followerClosePositions(@Body Map paramMap); @GET("/api/v2/copy/mix-follower/query-current-orders") Call followerQueryCurrentOrders(@QueryMap Map paramMap); diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java index 815d51ff..acc582a7 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotOrderApi.java @@ -5,6 +5,7 @@ import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; +import retrofit2.http.QueryMap; import java.util.Map; @@ -24,13 +25,13 @@ public interface SpotOrderApi { Call batchCancelOrder(@Body Map body); @GET("/api/v2/spot/trade/unfilled-orders") - Call unfilledOrders(@Body Map body); + Call unfilledOrders(@QueryMap Map body); @GET("/api/v2/spot/trade/history-orders") - Call historyOrders(@Body Map body); + Call historyOrders(@QueryMap Map body); @GET("/api/v2/spot/trade/fills") - Call fills(@Body Map body); + Call fills(@QueryMap Map body); // plan @@ -41,10 +42,10 @@ public interface SpotOrderApi { Call cancelPlanOrder(@Body Map body); @GET("/api/v2/spot/trade/current-plan-order") - Call currentPlanOrder(@Body Map body); + Call currentPlanOrder(@QueryMap Map body); @GET("/api/v2/spot/trade/history-plan-order") - Call historyPlanOrder(@Body Map body); + Call historyPlanOrder(@QueryMap Map body); // trace @@ -52,8 +53,8 @@ public interface SpotOrderApi { Call traderOrderCloseTracking(@Body Map body); @GET("/api/v2/copy/spot-trader/order-current-track") - Call traderOrderCurrentTrack(@Body Map body); + Call traderOrderCurrentTrack(@QueryMap Map body); @GET("/api/v2/copy/spot-trader/order-history-track") - Call traderOrderHistoryTrack(@Body Map body); + Call traderOrderHistoryTrack(@QueryMap Map body); } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java index 791f19a5..7fa4573e 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/api/v2/SpotWalletApi.java @@ -2,6 +2,7 @@ import com.bitget.openapi.dto.response.ResponseResult; import retrofit2.Call; +import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.QueryMap; @@ -11,13 +12,13 @@ public interface SpotWalletApi { @POST("/api/v2/spot/wallet/transfer") - Call transfer(@QueryMap Map paramMap); + Call transfer(@Body Map paramMap); @GET("/api/v2/spot/wallet/deposit-address") Call depositAddress(@QueryMap Map paramMap); @POST("/api/v2/spot/wallet/withdrawal") - Call withdrawal(@QueryMap Map paramMap); + Call withdrawal(@Body Map paramMap); @GET("/api/v2/spot/wallet/withdrawal-records") Call withdrawalRecords(@QueryMap Map paramMap); From d4ef5cbfa22ca918e7da3ed6a2a0029320de9998 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Thu, 11 Jan 2024 11:45:48 +0800 Subject: [PATCH 20/25] sign decode --- bitget-golang-sdk-api/internal/utils.go | 4 ++-- bitget-golang-sdk-api/test/apiclient_test.go | 14 ++++++++++++++ .../bitget/openapi/common/client/ApiClient.java | 4 ++-- .../com/bitget/openapi/api/MixOrderTest.java | 9 +++++++++ bitget-node-sdk-api/__test__/api.spec.ts | 7 +++++++ bitget-node-sdk-api/src/lib/BaseApi.ts | 6 +++++- bitget-node-sdk-api/src/lib/util.ts | 11 ++++++++++- bitget-php-sdk-api/example_api.php | 4 ++++ .../src/internal/BitgetApiClient.php | 3 ++- bitget-php-sdk-api/test/api/MixOrderTest.php | 7 +++++++ bitget-python-sdk-api/bitget/utils.py | 11 +++++++++-- bitget-python-sdk-api/example.py | 16 +++++++++++++--- 12 files changed, 84 insertions(+), 12 deletions(-) diff --git a/bitget-golang-sdk-api/internal/utils.go b/bitget-golang-sdk-api/internal/utils.go index fc650206..4e819c9e 100644 --- a/bitget-golang-sdk-api/internal/utils.go +++ b/bitget-golang-sdk-api/internal/utils.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "net/http" - "net/url" "sort" "strconv" "strings" @@ -70,7 +69,8 @@ func SortParams(params map[string]string) string { sorted := make([]string, len(params)) i = 0 for _, k := range keys { - sorted[i] = k + "=" + url.QueryEscape(params[k]) + //sorted[i] = k + "=" + url.QueryEscape(params[k]) + sorted[i] = k + "=" + params[k] i++ } return strings.Join(sorted, "&") diff --git a/bitget-golang-sdk-api/test/apiclient_test.go b/bitget-golang-sdk-api/test/apiclient_test.go index ecec5e75..ea3a601d 100644 --- a/bitget-golang-sdk-api/test/apiclient_test.go +++ b/bitget-golang-sdk-api/test/apiclient_test.go @@ -70,3 +70,17 @@ func Test_get_with_params(t *testing.T) { } fmt.Println(resp) } + +func Test_get_with_encode_params(t *testing.T) { + client := new(client.BitgetApiClient).Init() + + params := internal.NewParams() + params["symbol"] = "$AIUSDT" + params["businessType"] = "spot" + + resp, err := client.Get("/api/v2/common/trade-rate", params) + if err != nil { + println(err.Error()) + } + fmt.Println(resp) +} diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java index 85684dca..24ccb1ca 100755 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/common/client/ApiClient.java @@ -157,8 +157,8 @@ private String composeParams(TreeMap params) { StringBuffer sb = new StringBuffer(); params.forEach((s, o) -> { try { - sb.append(s).append("=").append(URLEncoder.encode(String.valueOf(o), "UTF-8")).append("&"); - } catch (UnsupportedEncodingException e) { + sb.append(s).append("=").append(o).append("&"); + } catch (Exception e) { e.printStackTrace(); } }); diff --git a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java index fd2c6859..d1d02b6b 100644 --- a/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java +++ b/bitget-java-sdk-api/src/test/java/com/bitget/openapi/api/MixOrderTest.java @@ -54,6 +54,15 @@ public void get() throws IOException { System.out.println(JSON.toJSONString(result)); } + @Test + public void get_comm() throws IOException { + Map paramMap = Maps.newHashMap(); + paramMap.put("symbol", "$AIUSDT"); + paramMap.put("businessType", "spot"); + ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/v2/common/trade-rate", paramMap); + System.out.println(JSON.toJSONString(result)); + } + @Test public void getWithEmptyParams() throws IOException { ResponseResult result = bitgetRestClient.bitget().v1().request().get("/api/mix/v1/market/contract-vip-level", Maps.newHashMap()); diff --git a/bitget-node-sdk-api/__test__/api.spec.ts b/bitget-node-sdk-api/__test__/api.spec.ts index c91f60b7..fe58938c 100644 --- a/bitget-node-sdk-api/__test__/api.spec.ts +++ b/bitget-node-sdk-api/__test__/api.spec.ts @@ -62,5 +62,12 @@ describe('ApiTest', () => { Console.info(toJsonString(data)); }); }) + + test('send get request directly with encode params', () => { + const qsOrBody = {'symbol': '$AIUSDT','businessType':'spot'}; + return bitgetApi.get("/api/v2/common/trade-rate", qsOrBody).then((data) => { + Console.info(toJsonString(data)); + }); + }) }); diff --git a/bitget-node-sdk-api/src/lib/BaseApi.ts b/bitget-node-sdk-api/src/lib/BaseApi.ts index d5ec7ee5..944e6cf3 100644 --- a/bitget-node-sdk-api/src/lib/BaseApi.ts +++ b/bitget-node-sdk-api/src/lib/BaseApi.ts @@ -1,4 +1,4 @@ -import getSigner, {BitgetApiHeader, toJsonString} from './util'; +import getSigner, {BitgetApiHeader, toJsonString, sortByKey} from './util'; import {API_CONFIG} from './config'; import axios, {AxiosInstance, AxiosRequestConfig} from 'axios'; import * as Console from 'console'; @@ -26,6 +26,10 @@ export class BaseApi{ if(data.data){ data.data = toJsonString(data.data); } + if(data.params){ + data.params = sortByKey(data.params) + // Console.log('sort_params:', data.params) + } Console.log('request:',data.data || data.params) return data; }) diff --git a/bitget-node-sdk-api/src/lib/util.ts b/bitget-node-sdk-api/src/lib/util.ts index bc4698f1..493d74fa 100644 --- a/bitget-node-sdk-api/src/lib/util.ts +++ b/bitget-node-sdk-api/src/lib/util.ts @@ -62,7 +62,8 @@ export function encrypt(httpMethod: string, url: string, qsOrBody: NodeJS.Dict){ + let encodedData = Object.keys(formDataDict).map((eachKey) => { + return eachKey + '=' + formDataDict[eachKey]; + }).join('&'); + return encodedData; +} + export function toJsonString(obj: object): string | null { if (obj == null) { return null; diff --git a/bitget-php-sdk-api/example_api.php b/bitget-php-sdk-api/example_api.php index 95683d7f..c656d51e 100644 --- a/bitget-php-sdk-api/example_api.php +++ b/bitget-php-sdk-api/example_api.php @@ -22,6 +22,10 @@ function test() $testGet = $mixOrderTest->testGetWithNoParams(); print_r($testGet . "\n"); + + $testGet = $mixOrderTest->testGetWithEncodeParams(); + print_r($testGet . "\n"); + } diff --git a/bitget-php-sdk-api/src/internal/BitgetApiClient.php b/bitget-php-sdk-api/src/internal/BitgetApiClient.php index b38ce420..a8e88afc 100644 --- a/bitget-php-sdk-api/src/internal/BitgetApiClient.php +++ b/bitget-php-sdk-api/src/internal/BitgetApiClient.php @@ -101,7 +101,8 @@ function sort_data($data){ ksort($data); $result = []; foreach ($data as $key => $val) { - array_push($result, $key."=".urlencode($val)); +// array_push($result, $key."=".urlencode($val)); + array_push($result, $key."=".$val); } return join("&", $result); } diff --git a/bitget-php-sdk-api/test/api/MixOrderTest.php b/bitget-php-sdk-api/test/api/MixOrderTest.php index 91d09d58..c76c73cc 100644 --- a/bitget-php-sdk-api/test/api/MixOrderTest.php +++ b/bitget-php-sdk-api/test/api/MixOrderTest.php @@ -50,6 +50,13 @@ public function testGet() return $this->bitgetApi->get("/api/mix/v1/account/accounts", $params); } + public function testGetWithEncodeParams() + { + $params = array("symbol" => 'AIUSDT', + "businessType" => "spot"); + return $this->bitgetApi->get("/api/v2/common/trade-rate", $params); + } + public function testGetWithNoParams() { $params = array(); diff --git a/bitget-python-sdk-api/bitget/utils.py b/bitget-python-sdk-api/bitget/utils.py index df2d6534..24e72d3c 100644 --- a/bitget-python-sdk-api/bitget/utils.py +++ b/bitget-python-sdk-api/bitget/utils.py @@ -41,8 +41,9 @@ def get_header(api_key, sign, timestamp, passphrase): def parse_params_to_str(params): params = [(key, val) for key, val in params.items()] params.sort(key=lambda x: x[0]) - from urllib.parse import urlencode - url = '?' +urlencode(params); + # from urllib.parse import urlencode + # url = '?' +urlencode(params); + url = '?' +toQueryWithNoEncode(params); if url == '?': return '' return url @@ -52,6 +53,12 @@ def parse_params_to_str(params): # # return url[0:-1] +def toQueryWithNoEncode(params): + url = '' + for key, value in params: + url = url + str(key) + '=' + str(value) + '&' + return url[0:-1] + def get_timestamp(): return int(time.time() * 1000) diff --git a/bitget-python-sdk-api/example.py b/bitget-python-sdk-api/example.py index f0f52dcd..11570cdc 100644 --- a/bitget-python-sdk-api/example.py +++ b/bitget-python-sdk-api/example.py @@ -4,9 +4,9 @@ from bitget.exceptions import BitgetAPIException if __name__ == '__main__': - apiKey = "your apiKey" - secretKey = "your secretKey" - passphrase = "your passphrase" + apiKey = "" + secretKey = '''your''' + passphrase = "" # Demo 1:place order maxOrderApi = maxOrderApi.OrderApi(apiKey, secretKey, passphrase) @@ -53,5 +53,15 @@ try: response = baseApi.get("/api/spot/v1/account/getInfo", {}) print(response) + except BitgetAPIException as e: + print("error:" + e.message) + + # Demo 5:send get request + try: + params = {} + params["symbol"] = "AIUSDT" + params["businessType"] = "spot" + response = baseApi.get("/api/v2/common/trade-rate", params) + print(response) except BitgetAPIException as e: print("error:" + e.message) \ No newline at end of file From 906328b8c13cad8c70150ba6d10cb633bf0eefa0 Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Wed, 31 Jan 2024 18:49:17 +0800 Subject: [PATCH 21/25] ws v2 --- bitget-golang-sdk-api/internal/model/subscribereq.go | 1 + .../pkg/client/ws/bitgetwsclient.go | 3 +++ .../bitget/openapi/dto/request/ws/SubscribeReq.java | 12 +----------- .../java/com/bitget/openapi/ws/BitgetWsHandle.java | 8 ++++++++ bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts | 10 ++++++++++ bitget-node-sdk-api/src/lib/util.ts | 2 +- bitget-python-sdk-api/bitget/ws/bitget_ws_client.py | 7 ++++++- 7 files changed, 30 insertions(+), 13 deletions(-) diff --git a/bitget-golang-sdk-api/internal/model/subscribereq.go b/bitget-golang-sdk-api/internal/model/subscribereq.go index d24cf26d..0a1879de 100644 --- a/bitget-golang-sdk-api/internal/model/subscribereq.go +++ b/bitget-golang-sdk-api/internal/model/subscribereq.go @@ -4,4 +4,5 @@ type SubscribeReq struct { InstType string `json:"instType"` Channel string `json:"channel"` InstId string `json:"instId"` + Coin string `json:"coin"` } diff --git a/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient.go b/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient.go index 9d9a349a..b4e86a69 100644 --- a/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient.go +++ b/bitget-golang-sdk-api/pkg/client/ws/bitgetwsclient.go @@ -78,6 +78,9 @@ func toUpperReq(req model.SubscribeReq) model.SubscribeReq { req.InstType = strings.ToUpper(req.InstType) req.InstId = strings.ToUpper(req.InstId) req.Channel = strings.ToLower(req.Channel) + if "" == req.Coin { + req.Coin = strings.ToLower(req.InstId) + } return req } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java index d09a17df..5525c143 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/dto/request/ws/SubscribeReq.java @@ -15,15 +15,5 @@ public class SubscribeReq { private String instType; private String channel; private String instId; - - @Override - public boolean equals(Object o) { - SubscribeReq that = (SubscribeReq) o; - return Objects.equals(instType.toUpperCase(), that.instType.toUpperCase()) && Objects.equals(channel.toUpperCase(), that.channel.toUpperCase()) && Objects.equals(instId.toUpperCase(), that.instId.toUpperCase()); - } - - @Override - public int hashCode() { - return Objects.hash(instType.toUpperCase(), channel.toUpperCase(), instId.toUpperCase()); - } + private String coin; } diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java index 617525fb..2ab38a78 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java @@ -101,6 +101,14 @@ public void unsubscribe(List channels) { @Override public void subscribe(List channels) { + if (CollectionUtils.isNotEmpty(channels)) { + for (SubscribeReq subscribeReq : channels) { + if (subscribeReq != null && StringUtils.isBlank(subscribeReq.getCoin())) { + subscribeReq.setCoin(subscribeReq.getInstId()); + } + } + } + allSuribe.addAll(channels); sendMessage(new WsBaseReq<>(WS_OP_SUBSCRIBE, channels)); } diff --git a/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts b/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts index a89da157..28945726 100644 --- a/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts +++ b/bitget-node-sdk-api/src/lib/model/ws/SubscribeReq.ts @@ -2,12 +2,14 @@ export class SubscribeReq{ private _instType!:string; private _channel!:string; private _instId!:string; + private _coin!:string; constructor(instType: string, channel: string, instId: string) { this._instType = instType; this._channel = channel; this._instId = instId; + this._coin = instId; } get instType(): string { @@ -33,4 +35,12 @@ export class SubscribeReq{ set instId(value: string) { this._instId = value; } + + get coin(): string { + return this._coin; + } + + set coin(value: string) { + this._coin = value; + } } diff --git a/bitget-node-sdk-api/src/lib/util.ts b/bitget-node-sdk-api/src/lib/util.ts index 493d74fa..da4187b7 100644 --- a/bitget-node-sdk-api/src/lib/util.ts +++ b/bitget-node-sdk-api/src/lib/util.ts @@ -74,7 +74,7 @@ export function encrypt(httpMethod: string, url: string, qsOrBody: NodeJS.Dict){ - let encodedData = Object.keys(formDataDict).map((eachKey) => { + const encodedData = Object.keys(formDataDict).map((eachKey) => { return eachKey + '=' + formDataDict[eachKey]; }).join('&'); return encodedData; diff --git a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py index 2f6eb865..5ccdcf95 100644 --- a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py +++ b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py @@ -189,7 +189,11 @@ def __dict_books_info(self, dict): return BooksInfo(dict['asks'], dict['bids'], dict['checksum']) def __dict_to_subscribe_req(self, dict): - return SubscribeReq(dict['instType'], dict['channel'], dict['instId']) + if "instId" in dict: + instId = dict['instId'] + else: + instId = dict['coin'] + return SubscribeReq(dict['instType'], dict['channel'], instId) def get_listener(self, json_obj): try: @@ -323,6 +327,7 @@ def __init__(self, inst_type, channel, instId): self.inst_type = inst_type self.channel = channel self.inst_id = instId + self.coin = instId def __eq__(self, other) -> bool: return self.__dict__ == other.__dict__ From f3e9b603545a541d77f8c5ca0d59d76cb5b2062b Mon Sep 17 00:00:00 2001 From: BitgetLimited <40291324+BitgetLimited@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:40:39 +0800 Subject: [PATCH 22/25] Update README.md tg --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cbca5292..968b3ee1 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,5 @@ |bitget-node-sdk-api|Node|-| |bitget-golang-sdk-api|Go|-| |bitget-php-sdk-api|Php|-| + +Please join [Telegram](https://t.me/bitgetOpenapi) From e2dd66b2408a64c16d57f36259f281cd4f989a5f Mon Sep 17 00:00:00 2001 From: "armend.ji" Date: Thu, 22 Feb 2024 11:41:40 +0800 Subject: [PATCH 23/25] public --- .../src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java index 2ab38a78..9f14ec4a 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java @@ -362,7 +362,7 @@ private void reConnect() { } - static class BitgetClientBuilder { + public static class BitgetClientBuilder { private String pushUrl; private boolean isLogin; private String apiKey; From 55524e52b9dfa38274a44b6e77cbbcd121438cf5 Mon Sep 17 00:00:00 2001 From: "armend (bitget)" Date: Mon, 18 May 2026 12:11:24 +0800 Subject: [PATCH 24/25] remove checksum --- .../main/java/com/bitget/openapi/ws/BitgetWsHandle.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java index 9f14ec4a..4993951f 100644 --- a/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java +++ b/bitget-java-sdk-api/src/main/java/com/bitget/openapi/ws/BitgetWsHandle.java @@ -271,10 +271,10 @@ public void onMessage(final WebSocket webSocket, final String message) { listener = getListener(jsonObject); //check sum - boolean checkSumFlag = checkSum(jsonObject); - if (!checkSumFlag) { - return; - } +// boolean checkSumFlag = checkSum(jsonObject); +// if (!checkSumFlag) { +// return; +// } if (Objects.nonNull(listener)) { listener.onReceive(message); From 93c852ed70d9c457dab8923d46a730091ae01f58 Mon Sep 17 00:00:00 2001 From: "armend (bitget)" Date: Mon, 18 May 2026 12:12:10 +0800 Subject: [PATCH 25/25] remove checksum --- bitget-python-sdk-api/bitget/ws/bitget_ws_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py index 5ccdcf95..d96f326e 100644 --- a/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py +++ b/bitget-python-sdk-api/bitget/ws/bitget_ws_client.py @@ -174,8 +174,8 @@ def __on_message(self, ws, message): return listenner = None if "data" in json_obj: - if not self.__check_sum(json_obj): - return + # if not self.__check_sum(json_obj): + # return listenner = self.get_listener(json_obj)